// File: /workspace/github_c_makefile_star2_O2/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 0x2875c
cmpl $0x40, %edx
jne 0x287c5
movq %rax, %rdx
addq $0x5, %rdx
cmpq %rdx, %rcx
jb 0x287d1
pushq $0x20
popq %rcx
movl %ecx, 0x260(%rbx)
movl $0x40, 0xe0(%rbx)
movl %ecx, 0x148(%rbx)
movl 0x1(%rax), %r15d
leaq 0x2321(%rip), %rdx      # 0x2aa54
movq %rbx, %rdi
movq %r15, %rcx
callq 0x283ec
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xe48d(%rip), %rax      # 0x36be0
leaq 0xe466(%rip), %rsi      # 0x36bc0
jmp 0x287af
movq %rax, %rdx
addq $0x5, %rdx
cmpq %rdx, %rcx
jb 0x287d1
pushq $0x20
popq %rcx
movl %ecx, 0x260(%rbx)
movl %ecx, 0xe0(%rbx)
movl %ecx, 0x148(%rbx)
movl 0x1(%rax), %r15d
leaq 0x22d4(%rip), %rdx      # 0x2aa5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x283ec
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xe498(%rip), %rax      # 0x36c40
leaq 0xe451(%rip), %rsi      # 0x36c00
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x8170
addq $0x5, 0x1f0(%rbx)
jmp 0x28839
movq %rax, %rdx
addq $0x3, %rdx
cmpq %rdx, %rcx
jae 0x287dd
movl $0x1, 0x289(%rbx)
jmp 0x28839
pushq $0x10
popq %rcx
movl %ecx, 0x260(%rbx)
movl %ecx, 0xe0(%rbx)
movl %ecx, 0x148(%rbx)
movzwl 0x1(%rax), %r15d
leaq 0x225e(%rip), %rdx      # 0x2aa5c
movq %rbx, %rdi
movq %r15, %rcx
callq 0x283ec
movq %r15, 0x90(%rbx)
cmpb $0x1, 0x287(%rbx)
leaq 0xe4a2(%rip), %rax      # 0x36cc0
leaq 0xe45b(%rip), %rsi      # 0x36c80
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x8170
addq $0x3, 0x1f0(%rbx)
popq %rbx
popq %r14
popq %r15
retq