require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_AMD64_REG_H_)) {
    eval 'sub _AMD64_REG_H_ () {1;}' unless defined(&_AMD64_REG_H_);
    require 'machine/mcontext.ph';
    require 'machine/fpu.ph';
    eval 'sub tRDI () {0;}' unless defined(&tRDI);
    eval 'sub tRSI () {1;}' unless defined(&tRSI);
    eval 'sub tRDX () {2;}' unless defined(&tRDX);
    eval 'sub tRCX () {3;}' unless defined(&tRCX);
    eval 'sub tR8 () {4;}' unless defined(&tR8);
    eval 'sub tR9 () {5;}' unless defined(&tR9);
    eval 'sub tR10 () {6;}' unless defined(&tR10);
    eval 'sub tR11 () {7;}' unless defined(&tR11);
    eval 'sub tR12 () {8;}' unless defined(&tR12);
    eval 'sub tR13 () {9;}' unless defined(&tR13);
    eval 'sub tR14 () {10;}' unless defined(&tR14);
    eval 'sub tR15 () {11;}' unless defined(&tR15);
    eval 'sub tRBP () {12;}' unless defined(&tRBP);
    eval 'sub tRBX () {13;}' unless defined(&tRBX);
    eval 'sub tRAX () {14;}' unless defined(&tRAX);
    eval 'sub tRSP () {15;}' unless defined(&tRSP);
    eval 'sub tRIP () {16;}' unless defined(&tRIP);
    eval 'sub tRFLAGS () {17;}' unless defined(&tRFLAGS);
    eval 'sub tCS () {18;}' unless defined(&tCS);
    eval 'sub tSS () {19;}' unless defined(&tSS);
    eval 'sub tDS () {20;}' unless defined(&tDS);
    eval 'sub tES () {21;}' unless defined(&tES);
    eval 'sub tFS () {22;}' unless defined(&tFS);
    eval 'sub tGS () {23;}' unless defined(&tGS);
    eval 'sub fp_fcw () { ($fxstate->{fx_fcw});}' unless defined(&fp_fcw);
    eval 'sub fp_fsw () { ($fxstate->{fx_fsw});}' unless defined(&fp_fsw);
    eval 'sub fp_ftw () { ($fxstate->{fx_ftw});}' unless defined(&fp_ftw);
    eval 'sub fp_fop () { ($fxstate->{fx_fop});}' unless defined(&fp_fop);
    eval 'sub fp_rip () { ($fxstate->{fx_rip});}' unless defined(&fp_rip);
    eval 'sub fp_rdp () { ($fxstate->{fx_rdp});}' unless defined(&fp_rdp);
    eval 'sub fp_mxcsr () { ($fxstate->{fx_mxcsr});}' unless defined(&fp_mxcsr);
    eval 'sub fp_mxcsr_mask () { ($fxstate->{fx_mxcsr_mask});}' unless defined(&fp_mxcsr_mask);
    eval 'sub fp_st () { ($fxstate->{fx_st});}' unless defined(&fp_st);
    eval 'sub fp_xmm () { ($fxstate->{fx_xmm});}' unless defined(&fp_xmm);
    if(defined(&_KERNEL)) {
    }
}
1;
