// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl $0x20020001, 0xdc(%rax) # imm = 0x20020001
movq -0x8(%rbp), %rax
movl $0x88000000, 0x144(%rax) # imm = 0x88000000
movq -0x8(%rbp), %rax
cmpl $0x40, 0x20c(%rax)
jne 0x4d987
movq -0x8(%rbp), %rsi
movl $0x5, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x4d8c1
jmp 0x4db52
movq -0x8(%rbp), %rax
movl $0x20, 0x260(%rax)
movq -0x8(%rbp), %rax
movl $0x40, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0x148(%rax)
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movl 0x1(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x104, %rsi            # imm = 0x104
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0x3b91(%rip), %rdx      # 0x514a8
callq 0x4d3a0
movl -0xc(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x90(%rax)
movq -0x8(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x4d955
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x152d2(%rip), %rsi     # 0x62c20
callq 0x81c0
jmp 0x4d96c
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x15299(%rip), %rsi     # 0x62c00
callq 0x81c0
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rcx
addq $0x5, %rcx
movq %rcx, 0x1f0(%rax)
jmp 0x4db52
movq -0x8(%rbp), %rax
cmpl $0x20, 0x20c(%rax)
jne 0x4da76
movq -0x8(%rbp), %rsi
movl $0x5, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x4d9b0
jmp 0x4db52
movq -0x8(%rbp), %rax
movl $0x20, 0x260(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x20, 0x148(%rax)
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movl 0x1(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x104, %rsi            # imm = 0x104
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0x3aaa(%rip), %rdx      # 0x514b0
callq 0x4d3a0
movl -0xc(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x90(%rax)
movq -0x8(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x4da44
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x15243(%rip), %rsi     # 0x62c80
callq 0x81c0
jmp 0x4da5b
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x151ea(%rip), %rsi     # 0x62c40
callq 0x81c0
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rcx
addq $0x5, %rcx
movq %rcx, 0x1f0(%rax)
jmp 0x4db50
movq -0x8(%rbp), %rsi
movl $0x3, %edi
callq 0x4d340
cmpl $0x0, %eax
jne 0x4da8e
jmp 0x4db52
movq -0x8(%rbp), %rax
movl $0x10, 0x260(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0xe0(%rax)
movq -0x8(%rbp), %rax
movl $0x10, 0x148(%rax)
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rax
movzwl 0x1(%rax), %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0x104, %rsi            # imm = 0x104
movl -0xc(%rbp), %eax
movl %eax, %ecx
leaq 0x39cb(%rip), %rdx      # 0x514b0
callq 0x4d3a0
movl -0xc(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x90(%rax)
movq -0x8(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x4db23
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x151e4(%rip), %rsi     # 0x62d00
callq 0x81c0
jmp 0x4db3a
movq -0x8(%rbp), %rdi
addq $0x9c, %rdi
leaq 0x1518b(%rip), %rsi     # 0x62cc0
callq 0x81c0
movq -0x8(%rbp), %rax
movq 0x1f0(%rax), %rcx
addq $0x3, %rcx
movq %rcx, 0x1f0(%rax)
jmp 0x4db52
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)