// File: /workspace/github_c_makefile_star2_O2/buptlxb[P]xRay/disasm/Routines_Disasm.c
// Function: EvIb
void __bea_callspec__ EvIb(PDISASM pMyDisasm)
{
    Int8 MyNumber;
    (*pMyDisasm).Argument2.ArgType = CONSTANT_TYPE+ABSOLUTE_;
    (*pMyDisasm).Argument2.ArgSize = 8;
    GV.ImmediatSize = 8;
    if (GV.OperandSize >= 32) {
        if (GV.OperandSize == 64) {
            GV.MemDecoration = Arg1qword;
        }
        else {
            GV.MemDecoration = Arg1dword;
        }
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+3;
        if (!Security(0, pMyDisasm)) return;
		if (GV.OperandSize == 32) {
			#ifndef BEA_LIGHT_DISASSEMBLY
			MyNumber = *((Int8*)(UIntPtr) (GV.EIP_-1));
			if (MyNumber > 0) {
                (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument2.ArgMnemonic,"%.2X",(Int64)*((Int8*)(UIntPtr) (GV.EIP_-1)));
			}
			else {
                (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument2.ArgMnemonic,"%.8X",(Int64)*((Int8*)(IntPtr) (GV.EIP_-1)));
			}
            #endif
		}
		else {
			#ifndef BEA_LIGHT_DISASSEMBLY
			MyNumber = *((Int8*)(UIntPtr) (GV.EIP_-1));
			if (MyNumber > 0) {
                (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument2.ArgMnemonic,"%.2X",(Int64)*((Int8*)(UIntPtr) (GV.EIP_-1)));
			}
			else {
                (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument2.ArgMnemonic,"%.16llX",(Int64)*((Int8*)(IntPtr) (GV.EIP_-1)));
			}
            #endif
		}

        (*pMyDisasm).Instruction.Immediat = *((UInt8*)(UIntPtr) (GV.EIP_-1));
    }
    else {
        GV.MemDecoration = Arg1word;
        MOD_RM(&(*pMyDisasm).Argument1, pMyDisasm);
        GV.EIP_ += GV.DECALAGE_EIP+3;
        if (!Security(0, pMyDisasm)) return;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) CopyFormattedNumber(pMyDisasm, (char*) &(*pMyDisasm).Argument2.ArgMnemonic,"%.4X",(Int64)*((Int8*)(UIntPtr) (GV.EIP_-1)));
        #endif

        (*pMyDisasm).Instruction.Immediat = *((UInt8*)(UIntPtr) (GV.EIP_-1));
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x104(%rdi), %r14
movabsq $0x888000000, %rax      # imm = 0x888000000
movq %rax, 0x144(%rdi)
movl $0x8, 0x260(%rdi)
movl 0x20c(%rdi), %eax
cmpl $0x20, %eax
jl 0x28fb7
xorl %ecx, %ecx
cmpl $0x40, %eax
sete %cl
addl $0x3, %ecx
movl %ecx, 0x210(%rbx)
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x28863
movl 0x244(%rbx), %eax
addl $0x3, %eax
addq 0x1f0(%rbx), %rax
movq %rax, 0x1f0(%rbx)
movq 0x250(%rbx), %rcx
decq %rcx
cmpq %rax, %rcx
jb 0x28ff6
cmpl $0x20, 0x20c(%rbx)
movsbq -0x1(%rax), %rcx
jne 0x29010
testb %cl, %cl
jg 0x29014
leaq 0x1aa7(%rip), %rdx      # 0x2aa5c
jmp 0x29024
movl $0x2, 0x210(%rbx)
leaq 0x9c(%rbx), %rdi
movq %rbx, %rsi
callq 0x28863
movl 0x244(%rbx), %eax
addl $0x3, %eax
addq 0x1f0(%rbx), %rax
movq %rax, 0x1f0(%rbx)
movq 0x250(%rbx), %rcx
decq %rcx
cmpq %rax, %rcx
jae 0x29002
movl $0x1, 0x289(%rbx)
jmp 0x29041
movsbq -0x1(%rax), %rcx
leaq 0x1a64(%rip), %rdx      # 0x2aa72
jmp 0x29024
testb %cl, %cl
jle 0x2901d
leaq 0x19f8(%rip), %rdx      # 0x2aa13
jmp 0x29024
leaq 0x1a30(%rip), %rdx      # 0x2aa54
movq %rbx, %rdi
movq %r14, %rsi
callq 0x283ec
movq 0x1f0(%rbx), %rax
movzbl -0x1(%rax), %eax
movq %rax, 0x90(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq