require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_MCOUNT_DECL)) {
    sub _MCOUNT_DECL () {	 &static  &__inline  &void  &_mcount;}
}
unless(defined(&MCOUNT)) {
    sub MCOUNT () {	 &extern  &void  &mcount( &void)  &__asm("__mcount");  &__weak_alias( &mcount, &__mcount);  &void  &mcount() { 'int'  &selfpc,  &frompcindex;  &__asm  &__volatile ("movl 4(%%ebp),%0" : "=r" ( &selfpc));  &__asm  &__volatile ("movl (%%ebp),%0;movl 4(%0),%0" : "+r" ( &frompcindex));  &_mcount( &frompcindex,  &selfpc); };}
}
if(defined(&_KERNEL)) {
    eval 'sub MCOUNT_ENTER () { &_SPLRAISE( &s,  &IPL_HIGH);  &__splbarrier();}' unless defined(&MCOUNT_ENTER);
    eval 'sub MCOUNT_EXIT () { &__splbarrier();  &_SPLX( &s);}' unless defined(&MCOUNT_EXIT);
}
1;
