// File: /workspace/github_c_makefile_star2_O1/buptlxb[P]xRay/disasm/Routines_Disasm.c
// Function: eAX_Iv
void __bea_callspec__ eAX_Iv(PDISASM pMyDisasm)
{
    UInt32 MyNumber;
    (*pMyDisasm).Argument1.ArgType = REGISTER_TYPE+GENERAL_REG+REG0;
    (*pMyDisasm).Argument2.ArgType = CONSTANT_TYPE+ABSOLUTE_;
    if (GV.OperandSize == 64) {
        if (!Security(5, pMyDisasm)) return;
        GV.ImmediatSize = 32;
        (*pMyDisasm).Argument1.ArgSize = 64;
        (*pMyDisasm).Argument2.ArgSize = 32;
        MyNumber = *((UInt32*)(UIntPtr) (GV.EIP_+1));
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument2.ArgMnemonic,"%.16llX",(Int64) MyNumber);
        #endif
        (*pMyDisasm).Instruction.Immediat = MyNumber;
         if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument1.ArgMnemonic, Registers64Bits[0+8]);
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument1.ArgMnemonic, Registers64Bits[0]);
            #endif
        }
        GV.EIP_+= 5;
    }
    else if (GV.OperandSize == 32) {
        if (!Security(5, pMyDisasm)) return;
        GV.ImmediatSize = 32;
        (*pMyDisasm).Argument1.ArgSize = 32;
        (*pMyDisasm).Argument2.ArgSize = 32;
        MyNumber = *((UInt32*)(UIntPtr) (GV.EIP_+1));
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument2.ArgMnemonic,"%.8X",(Int64) MyNumber);
        #endif
        (*pMyDisasm).Instruction.Immediat = MyNumber;
         if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument1.ArgMnemonic, Registers32Bits[0+8]);
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument1.ArgMnemonic, Registers32Bits[0]);
            #endif
        }
        GV.EIP_+= 5;
    }
    else {
        if (!Security(3, pMyDisasm)) return;
        GV.ImmediatSize = 16;
        (*pMyDisasm).Argument1.ArgSize = 16;
        (*pMyDisasm).Argument2.ArgSize = 16;
        MyNumber = *((UInt16*)(UIntPtr) (GV.EIP_+1));
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument2.ArgMnemonic,"%.8X", (Int64) MyNumber);
        #endif
        (*pMyDisasm).Instruction.Immediat = MyNumber;
         if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument1.ArgMnemonic, Registers16Bits[0+8]);
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyDisasm).Argument1.ArgMnemonic, Registers16Bits[0]);
            #endif
        }
        GV.EIP_+= 3;
    }

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x9c(%rdi), %r14
movl $0x20020001, 0xdc(%rdi) # imm = 0x20020001
leaq 0x104(%rdi), %rsi
movl $0x88000000, 0x144(%rdi) # imm = 0x88000000
movl 0x20c(%rdi), %ecx
movq 0x250(%rdi), %rax
cmpl $0x20, %ecx
je 0x2b064
cmpl $0x40, %ecx
jne 0x2b0e6
testq %rax, %rax
je 0x2b00e
movq 0x1f0(%rbx), %rcx
addq $0x5, %rcx
cmpq %rax, %rcx
jae 0x2b162
movl $0x20, %eax
movl %eax, 0x260(%rbx)
movl $0x40, 0xe0(%rbx)
movl %eax, 0x148(%rbx)
movq 0x1f0(%rbx), %rax
movl 0x1(%rax), %r15d
leaq 0x2a19(%rip), %rdx      # 0x2da54
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2acdf
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xdb65(%rip), %rax      # 0x38bc0
leaq 0xdb3e(%rip), %rsi      # 0x38ba0
jmp 0x2b0cd
testq %rax, %rax
je 0x2b07d
movq 0x1f0(%rbx), %rcx
addq $0x5, %rcx
cmpq %rax, %rcx
jae 0x2b162
movl $0x20, %eax
movl %eax, 0x260(%rbx)
movl %eax, 0xe0(%rbx)
movl %eax, 0x148(%rbx)
movq 0x1f0(%rbx), %rax
movl 0x1(%rax), %r15d
leaq 0x29b6(%rip), %rdx      # 0x2da5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2acdf
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xdb5a(%rip), %rax      # 0x38c20
leaq 0xdb13(%rip), %rsi      # 0x38be0
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x8150
addq $0x5, 0x1f0(%rbx)
jmp 0x2b16c
testq %rax, %rax
je 0x2b0fb
movq 0x1f0(%rbx), %rcx
addq $0x3, %rcx
cmpq %rax, %rcx
jae 0x2b162
movl $0x10, %eax
movl %eax, 0x260(%rbx)
movl %eax, 0xe0(%rbx)
movl %eax, 0x148(%rbx)
movq 0x1f0(%rbx), %rax
movzwl 0x1(%rax), %r15d
leaq 0x2937(%rip), %rdx      # 0x2da5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2acdf
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xdb5b(%rip), %rax      # 0x38ca0
leaq 0xdb14(%rip), %rsi      # 0x38c60
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x8150
addq $0x3, 0x1f0(%rbx)
jmp 0x2b16c
movl $0x1, 0x289(%rbx)
popq %rbx
popq %r14
popq %r15
retq