// File: /workspace/github_c_makefile_star2_O2/buptlxb[P]xRay/disasm/instr_set/opcodes_A_M.c
// Function: jl_near
void __bea_callspec__ jl_near(PDISASM pMyDisasm)
{
    UInt64 MyAddress;
    long MyNumber;
    if ((*pMyDisasm).Prefix.CSPrefix == InUsePrefix) {
        (*pMyDisasm).Prefix.CSPrefix = NotUsedPrefix;
        (*pMyDisasm).Prefix.BranchNotTaken = InUsePrefix;
    }
    if ((*pMyDisasm).Prefix.DSPrefix == InUsePrefix) {
        (*pMyDisasm).Prefix.DSPrefix = NotUsedPrefix;
        (*pMyDisasm).Prefix.BranchTaken = InUsePrefix;
    }
    (*pMyDisasm).Instruction.Category = GENERAL_PURPOSE_INSTRUCTION+CONTROL_TRANSFER;
    (*pMyDisasm).Instruction.BranchType = JL;
    (*pMyDisasm).Argument1.ArgSize = GV.OperandSize;
    #ifndef BEA_LIGHT_DISASSEMBLY
       (void) strcpy ((*pMyDisasm).Instruction.Mnemonic, "jl ");
    #endif
    if (GV.OperandSize >= 32) {
        if (!Security(5, pMyDisasm)) return;
        MyNumber = *((Int32*)(UIntPtr) (GV.EIP_+1));
        CalculateRelativeAddress(&MyAddress,(Int64) GV.NB_PREFIX+6+MyNumber, pMyDisasm);
        if (MyAddress >= W64LIT (0x100000000)) {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) CopyFormattedNumber(pMyDisasm, (char*) (*pMyDisasm).Argument1.ArgMnemonic, "%.16llX",(Int64) MyAddress);
            #endif
        }
        else {
            #ifndef BEA_LIGHT_DISASSEMBLY
               (void) CopyFormattedNumber(pMyDisasm, (char*) (*pMyDisasm).Argument1.ArgMnemonic, "%.8X",(Int64) MyAddress);
            #endif
        }
        (*pMyDisasm).Argument1.ArgType = CONSTANT_TYPE+RELATIVE_;
        (*pMyDisasm).Argument1.AccessMode = READ;
        (*pMyDisasm).Instruction.AddrValue = MyAddress;
        GV.EIP_+=5;
        FillFlags(pMyDisasm,122);
    }
    else {
        if (!Security(3, pMyDisasm)) return;
        MyNumber = *((Int16*)(UIntPtr) (GV.EIP_+1));
        CalculateRelativeAddress(&MyAddress,(Int64) GV.NB_PREFIX+4+MyNumber, pMyDisasm);
        MyAddress = MyAddress & 0xffff;
        #ifndef BEA_LIGHT_DISASSEMBLY
           (void) CopyFormattedNumber(pMyDisasm, (char*) (*pMyDisasm).Argument1.ArgMnemonic, "%.4X",(Int64) MyAddress);
        #endif
        (*pMyDisasm).Argument1.ArgType = CONSTANT_TYPE+RELATIVE_;
        (*pMyDisasm).Argument1.AccessMode = READ;
        (*pMyDisasm).Instruction.AddrValue = MyAddress;
        GV.EIP_+=3;
        FillFlags(pMyDisasm,122);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x1, 0x1e5(%rdi)
jne 0x1d8b7
movb $0x0, 0x1e5(%rbx)
movb $0x1, 0x1e8(%rbx)
cmpb $0x1, 0x1e6(%rbx)
jne 0x1d8c9
movw $0x100, 0x1e6(%rbx)     # imm = 0x100
movl $0x10006, 0x60(%rbx)    # imm = 0x10006
movl $0x7, 0x78(%rbx)
movl 0x20c(%rbx), %edx
leaq 0x9c(%rbx), %rsi
movl %edx, 0xe0(%rbx)
movl $0x206c6a, 0x68(%rbx)   # imm = 0x206C6A
movq 0x250(%rbx), %rcx
decq %rcx
movq 0x1f0(%rbx), %rax
cmpl $0x20, %edx
jl 0x1d997
movq %rax, %rdx
addq $0x5, %rdx
cmpq %rdx, %rcx
jb 0x1d9a3
movslq 0x1(%rax), %rax
movslq 0x264(%rbx), %rcx
movl $0x1, 0x258(%rbx)
movq 0x1f8(%rbx), %rdx
testq %rdx, %rdx
jne 0x1d943
movq 0x200(%rbx), %rdx
addq %rcx, %rax
leaq (%rdx,%rax), %r14
addq $0x6, %r14
movq %r14, %rax
shrq $0x20, %rax
leaq 0xd0f8(%rip), %rax      # 0x2aa54
leaq 0xd0f9(%rip), %rdx      # 0x2aa5c
cmovneq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x283ec
movl $0x84000000, 0xdc(%rbx) # imm = 0x84000000
movl $0x1, 0xe8(%rbx)
movq %r14, 0x88(%rbx)
addq $0x5, 0x1f0(%rbx)
jmp 0x1da16
movq %rax, %rdx
addq $0x3, %rdx
cmpq %rdx, %rcx
jae 0x1d9af
movl $0x1, 0x289(%rbx)
jmp 0x1da2d
movzwl 0x1(%rax), %ecx
movl 0x264(%rbx), %eax
movl $0x1, 0x258(%rbx)
movq 0x1f8(%rbx), %rdx
testq %rdx, %rdx
jne 0x1d9d6
movq 0x200(%rbx), %rdx
addl %ecx, %eax
addl %edx, %eax
addl $0x4, %eax
movzwl %ax, %r14d
leaq 0xd08a(%rip), %rdx      # 0x2aa72
movq %rbx, %rdi
movq %r14, %rcx
callq 0x283ec
movl $0x84000000, 0xdc(%rbx) # imm = 0x84000000
movl $0x1, 0xe8(%rbx)
movq %r14, 0x88(%rbx)
addq $0x3, 0x1f0(%rbx)
movq 0x18d3b(%rip), %rax     # 0x36758
movq %rax, 0x7c(%rbx)
movl 0x18d39(%rip), %eax     # 0x36760
movl %eax, 0x84(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq