// File: /workspace/github_c_makefile_star2_O0/buptlxb[P]xRay/disasm/Routines_ModRM.c
// Function: Addr_EAX
void __bea_callspec__ Addr_EAX(ARGTYPE* pMyArgument, PDISASM pMyDisasm)
{
    #ifndef BEA_LIGHT_DISASSEMBLY
	size_t i = 0;
    if (GV.SYNTAX_ == ATSyntax) {
	   (void) strcpy((char*) (*pMyArgument).ArgMnemonic, "(%");
	   i += 2;
    }
    #endif
    (*pMyArgument).ArgType = MEMORY_TYPE;
    if (GV.AddressSize == 64) {
        if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers64Bits[8]);
            #endif
            (*pMyArgument).Memory.BaseRegister = REGS[8];
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers64Bits[0]);
            #endif
            (*pMyArgument).Memory.BaseRegister = REGS[0];
        }
    }
    else if (GV.AddressSize == 32) {

        if (GV.REX.B_ == 1) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers32Bits[8]);
            #endif
            (*pMyArgument).Memory.BaseRegister = REGS[8];

        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, Registers32Bits[0]);
            #endif
            (*pMyArgument).Memory.BaseRegister = REGS[0];
        }
    }
    else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) strcpy ((char*) (*pMyArgument).ArgMnemonic+i, BXSI_);
            #endif
            (*pMyArgument).Memory.BaseRegister = REGS[3];
            (*pMyArgument).Memory.IndexRegister = REGS[6];
    }
    #ifndef BEA_LIGHT_DISASSEMBLY
       i = strlen ((char*) &(*pMyArgument).ArgMnemonic);
       if (GV.SYNTAX_ == ATSyntax) {
           (void) strcpy((char*) (*pMyArgument).ArgMnemonic+i, ")");
           i += 1;
       }
    #endif

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x400, 0x24c(%rax)     # imm = 0x400
jne 0x46164
movq -0x8(%rbp), %rdi
leaq 0xc463(%rip), %rsi      # 0x525b6
callq 0x81c0
movq -0x18(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl $0x40000000, 0x40(%rax) # imm = 0x40000000
movq -0x10(%rbp), %rax
cmpl $0x40, 0x214(%rax)
jne 0x461d5
movq -0x10(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x461af
movq -0x8(%rbp), %rdi
addq -0x18(%rbp), %rdi
leaq 0x1ca85(%rip), %rsi     # 0x62c20
callq 0x81c0
movl 0x1cd1a(%rip), %ecx     # 0x62ec0
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
jmp 0x461d0
movq -0x8(%rbp), %rdi
addq -0x18(%rbp), %rdi
leaq 0x1ca42(%rip), %rsi     # 0x62c00
callq 0x81c0
movl 0x1ccd7(%rip), %ecx     # 0x62ea0
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
jmp 0x46268
movq -0x10(%rbp), %rax
cmpl $0x20, 0x214(%rax)
jne 0x46238
movq -0x10(%rbp), %rax
movzbl 0x287(%rax), %eax
cmpl $0x1, %eax
jne 0x46215
movq -0x8(%rbp), %rdi
addq -0x18(%rbp), %rdi
leaq 0x1ca7f(%rip), %rsi     # 0x62c80
callq 0x81c0
movl 0x1ccb4(%rip), %ecx     # 0x62ec0
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
jmp 0x46236
movq -0x8(%rbp), %rdi
addq -0x18(%rbp), %rdi
leaq 0x1ca1c(%rip), %rsi     # 0x62c40
callq 0x81c0
movl 0x1cc71(%rip), %ecx     # 0x62ea0
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
jmp 0x46266
movq -0x8(%rbp), %rdi
addq -0x18(%rbp), %rdi
leaq 0x1cc99(%rip), %rsi     # 0x62ee0
callq 0x81c0
movl 0x1cc5a(%rip), %ecx     # 0x62eac
movq -0x8(%rbp), %rax
movl %ecx, 0x50(%rax)
movl 0x1cc59(%rip), %ecx     # 0x62eb8
movq -0x8(%rbp), %rax
movl %ecx, 0x54(%rax)
jmp 0x46268
movq -0x8(%rbp), %rdi
callq 0x80b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x400, 0x24c(%rax)     # imm = 0x400
jne 0x462a5
movq -0x8(%rbp), %rdi
addq -0x18(%rbp), %rdi
leaq 0xb0fe(%rip), %rsi      # 0x51392
callq 0x81c0
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)