// File: /workspace/github_c_makefile_star2_O3/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), %edx
movq 0x250(%rdi), %rcx
movq 0x1f0(%rdi), %rax
decq %rcx
cmpl $0x20, %edx
je 0x2a981
cmpl $0x40, %edx
jne 0x2a9ec
movq %rax, %rdx
addq $0x5, %rdx
cmpq %rdx, %rcx
jb 0x2a9f8
movl $0x20, %ecx
movl %ecx, 0x260(%rbx)
movl $0x40, 0xe0(%rbx)
movl %ecx, 0x148(%rbx)
movl 0x1(%rax), %r15d
leaq 0x30fc(%rip), %rdx      # 0x2da54
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2a60b
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xe248(%rip), %rax      # 0x38bc0
leaq 0xe221(%rip), %rsi      # 0x38ba0
jmp 0x2a9d6
movq %rax, %rdx
addq $0x5, %rdx
cmpq %rdx, %rcx
jb 0x2a9f8
movl $0x20, %ecx
movl %ecx, 0x260(%rbx)
movl %ecx, 0xe0(%rbx)
movl %ecx, 0x148(%rbx)
movl 0x1(%rax), %r15d
leaq 0x30ad(%rip), %rdx      # 0x2da5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2a60b
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xe251(%rip), %rax      # 0x38c20
leaq 0xe20a(%rip), %rsi      # 0x38be0
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x8150
addq $0x5, 0x1f0(%rbx)
jmp 0x2aa62
movq %rax, %rdx
addq $0x3, %rdx
cmpq %rdx, %rcx
jae 0x2aa04
movl $0x1, 0x289(%rbx)
jmp 0x2aa62
movl $0x10, %ecx
movl %ecx, 0x260(%rbx)
movl %ecx, 0xe0(%rbx)
movl %ecx, 0x148(%rbx)
movzwl 0x1(%rax), %r15d
leaq 0x3035(%rip), %rdx      # 0x2da5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x2a60b
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xe259(%rip), %rax      # 0x38ca0
leaq 0xe212(%rip), %rsi      # 0x38c60
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x8150
addq $0x3, 0x1f0(%rbx)
popq %rbx
popq %r14
popq %r15
retq