require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&r0)) {
    sub r0 () {	0;}
}
unless(defined(&sp)) {
    sub sp () {	1;}
}
unless(defined(&toc)) {
    sub toc () {	2;}
}
unless(defined(&r3)) {
    sub r3 () {	3;}
}
unless(defined(&r4)) {
    sub r4 () {	4;}
}
unless(defined(&r5)) {
    sub r5 () {	5;}
}
unless(defined(&r6)) {
    sub r6 () {	6;}
}
unless(defined(&r7)) {
    sub r7 () {	7;}
}
unless(defined(&r8)) {
    sub r8 () {	8;}
}
unless(defined(&r9)) {
    sub r9 () {	9;}
}
unless(defined(&r10)) {
    sub r10 () {	10;}
}
unless(defined(&r11)) {
    sub r11 () {	11;}
}
unless(defined(&r12)) {
    sub r12 () {	12;}
}
unless(defined(&r13)) {
    sub r13 () {	13;}
}
unless(defined(&r14)) {
    sub r14 () {	14;}
}
unless(defined(&r15)) {
    sub r15 () {	15;}
}
unless(defined(&r16)) {
    sub r16 () {	16;}
}
unless(defined(&r17)) {
    sub r17 () {	17;}
}
unless(defined(&r18)) {
    sub r18 () {	18;}
}
unless(defined(&r19)) {
    sub r19 () {	19;}
}
unless(defined(&r20)) {
    sub r20 () {	20;}
}
unless(defined(&r21)) {
    sub r21 () {	21;}
}
unless(defined(&r22)) {
    sub r22 () {	22;}
}
unless(defined(&r23)) {
    sub r23 () {	23;}
}
unless(defined(&r24)) {
    sub r24 () {	24;}
}
unless(defined(&r25)) {
    sub r25 () {	25;}
}
unless(defined(&r26)) {
    sub r26 () {	26;}
}
unless(defined(&r27)) {
    sub r27 () {	27;}
}
unless(defined(&r28)) {
    sub r28 () {	28;}
}
unless(defined(&r29)) {
    sub r29 () {	29;}
}
unless(defined(&r30)) {
    sub r30 () {	30;}
}
unless(defined(&r31)) {
    sub r31 () {	31;}
}
unless(defined(&cr0)) {
    sub cr0 () {	0;}
}
unless(defined(&cr1)) {
    sub cr1 () {	1;}
}
unless(defined(&cr2)) {
    sub cr2 () {	2;}
}
unless(defined(&cr3)) {
    sub cr3 () {	3;}
}
unless(defined(&cr4)) {
    sub cr4 () {	4;}
}
unless(defined(&cr5)) {
    sub cr5 () {	5;}
}
unless(defined(&cr6)) {
    sub cr6 () {	6;}
}
unless(defined(&cr7)) {
    sub cr7 () {	7;}
}
unless(defined(&f0)) {
    sub f0 () {	0;}
}
unless(defined(&f1)) {
    sub f1 () {	1;}
}
unless(defined(&f2)) {
    sub f2 () {	2;}
}
unless(defined(&f3)) {
    sub f3 () {	3;}
}
unless(defined(&f4)) {
    sub f4 () {	4;}
}
unless(defined(&f5)) {
    sub f5 () {	5;}
}
unless(defined(&f6)) {
    sub f6 () {	6;}
}
unless(defined(&f7)) {
    sub f7 () {	7;}
}
unless(defined(&f8)) {
    sub f8 () {	8;}
}
unless(defined(&f9)) {
    sub f9 () {	9;}
}
unless(defined(&f10)) {
    sub f10 () {	10;}
}
unless(defined(&f11)) {
    sub f11 () {	11;}
}
unless(defined(&f12)) {
    sub f12 () {	12;}
}
unless(defined(&f13)) {
    sub f13 () {	13;}
}
unless(defined(&f14)) {
    sub f14 () {	14;}
}
unless(defined(&f15)) {
    sub f15 () {	15;}
}
unless(defined(&f16)) {
    sub f16 () {	16;}
}
unless(defined(&f17)) {
    sub f17 () {	17;}
}
unless(defined(&f18)) {
    sub f18 () {	18;}
}
unless(defined(&f19)) {
    sub f19 () {	19;}
}
unless(defined(&f20)) {
    sub f20 () {	20;}
}
unless(defined(&f21)) {
    sub f21 () {	21;}
}
unless(defined(&f22)) {
    sub f22 () {	22;}
}
unless(defined(&f23)) {
    sub f23 () {	23;}
}
unless(defined(&f24)) {
    sub f24 () {	24;}
}
unless(defined(&f25)) {
    sub f25 () {	25;}
}
unless(defined(&f26)) {
    sub f26 () {	26;}
}
unless(defined(&f27)) {
    sub f27 () {	27;}
}
unless(defined(&f28)) {
    sub f28 () {	28;}
}
unless(defined(&f29)) {
    sub f29 () {	29;}
}
unless(defined(&f30)) {
    sub f30 () {	30;}
}
unless(defined(&f31)) {
    sub f31 () {	31;}
}
if(defined(&__STDC__)) {
    eval 'sub XGLUE {
        my($a,$b) = @_;
	    eval q($a$b);
    }' unless defined(&XGLUE);
} else {
    eval 'sub XGLUE {
        my($a,$b) = @_;
	    eval q($a $b);
    }' unless defined(&XGLUE);
}
unless(defined(&GLUE)) {
    sub GLUE {
	my($a,$b) = @_;
	eval q( &XGLUE($a,$b));
    }
}
if(defined (&__powerpc64__)) {
    eval 'sub FUNC_NAME {
        my($name) = @_;
	    eval q( &GLUE(.,$name));
    }' unless defined(&FUNC_NAME);
    eval 'sub JUMP_TARGET {
        my($name) = @_;
	    eval q( &FUNC_NAME($name));
    }' unless defined(&JUMP_TARGET);
    eval 'sub FUNC_START {
        my($name) = @_;
	    eval q(. &section \\".opd\\",\\"aw\\"; $name: . &quad  &GLUE(.,$name); . &quad . &TOC.@ &tocbase; . &quad 0; . &previous; . &type  &GLUE(.,$name),@ &function; . &globl $name; . &globl  &GLUE(.,$name);  &GLUE(.,$name):);
    }' unless defined(&FUNC_START);
    eval 'sub FUNC_END {
        my($name) = @_;
	    eval q( &GLUE(. &L,$name): . &size  &GLUE(.,$name), &GLUE(. &L,$name)- &GLUE(.,$name));
    }' unless defined(&FUNC_END);
}
 elsif(defined(&_CALL_AIXDESC)) {
    if(defined(&_RELOCATABLE)) {
	eval 'sub DESC_SECTION () {".got2";}' unless defined(&DESC_SECTION);
    } else {
	eval 'sub DESC_SECTION () {".got1";}' unless defined(&DESC_SECTION);
    }
    eval 'sub FUNC_NAME {
        my($name) = @_;
	    eval q( &GLUE(.,$name));
    }' unless defined(&FUNC_NAME);
    eval 'sub JUMP_TARGET {
        my($name) = @_;
	    eval q( &FUNC_NAME($name));
    }' unless defined(&JUMP_TARGET);
    eval 'sub FUNC_START {
        my($name) = @_;
	    eval q(. &section  &DESC_SECTION,\\"aw\\"; $name: . &long GLUE(.,$name); .\'long _GLOBAL_OFFSET_TABLE_\'; .\'long 0\'; . &previous; . &type  &GLUE(.,$name),@ &function; . &globl $name; . &globl  &GLUE(.,$name);  &GLUE(.,$name):);
    }' unless defined(&FUNC_START);
    eval 'sub FUNC_END {
        my($name) = @_;
	    eval q( &GLUE(. &L,$name): . &size  &GLUE(.,$name), &GLUE(. &L,$name)- &GLUE(.,$name));
    }' unless defined(&FUNC_END);
} else {
    eval 'sub FUNC_NAME {
        my($name) = @_;
	    eval q( &GLUE( &__USER_LABEL_PREFIX__,$name));
    }' unless defined(&FUNC_NAME);
    if(defined (&__PIC__) || defined (&__pic__)) {
	eval 'sub JUMP_TARGET {
	    my($name) = @_;
    	    eval q( &FUNC_NAME($name@ &plt));
	}' unless defined(&JUMP_TARGET);
    } else {
	eval 'sub JUMP_TARGET {
	    my($name) = @_;
    	    eval q( &FUNC_NAME($name));
	}' unless defined(&JUMP_TARGET);
    }
    eval 'sub FUNC_START {
        my($name) = @_;
	    eval q(. &type  &FUNC_NAME($name),@ &function; . &globl  &FUNC_NAME($name);  &FUNC_NAME($name):);
    }' unless defined(&FUNC_START);
    eval 'sub FUNC_END {
        my($name) = @_;
	    eval q( &GLUE(. &L,$name): . &size  &FUNC_NAME($name), &GLUE(. &L,$name)- &FUNC_NAME($name));
    }' unless defined(&FUNC_END);
}
if(defined (&__linux__)  && !defined (&__powerpc64__)) {
}
1;
