// File: /workspace/github_c_makefile_star2_O3/mmcco[P]sljit/sljit_src/sljitNativeX86_common.c
// Function: sljit_emit_ijump
int sljit_emit_ijump(struct sljit_compiler *compiler, int type, int src, long srcw)
{
	u_char *inst;
	struct sljit_jump *jump;

	CHECK_ERROR();
	CHECK(check_sljit_emit_ijump(compiler, type, src, srcw));
	ADJUST_LOCAL_OFFSET(src, srcw);

	CHECK_EXTRA_REGS(src, srcw, (void)0);

	if (compiler->flags_saved) {
		if (type <= SLJIT_JUMP)
			FAIL_IF(emit_restore_flags(compiler, 0));
		compiler->flags_saved = 0;
	}

	if (type >= SLJIT_CALL1) {
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)
#if (defined SLJIT_X86_32_FASTCALL && SLJIT_X86_32_FASTCALL)
		if (src == SLJIT_R2) {
			EMIT_MOV(compiler, TMP_REG1, 0, src, 0);
			src = TMP_REG1;
		}
		if (src == SLJIT_MEM1(SLJIT_SP) && type >= SLJIT_CALL3)
			srcw += sizeof(long);
#endif
#endif
#if (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) && defined(_WIN64)
		if (src == SLJIT_R2) {
			EMIT_MOV(compiler, TMP_REG1, 0, src, 0);
			src = TMP_REG1;
		}
#endif
		FAIL_IF(call_with_args(compiler, type));
	}

	if (src == SLJIT_IMM) {
		jump = ensure_abuf(compiler, sizeof(struct sljit_jump));
		if (jump == NULL) {
			compiler->error = SLJIT_ERR_ALLOC_FAILED;
			return SLJIT_ERR_ALLOC_FAILED;
		}
		set_jump(jump, compiler, JUMP_ADDR);
		jump->u.target = srcw;

		/* Worst case size. */
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)
		compiler->size += 5;
#else
		compiler->size += 10 + 3;
#endif

		inst = ensure_buf(compiler, 2);
		if (inst == NULL) {
			compiler->error = SLJIT_ERR_ALLOC_FAILED;
			return SLJIT_ERR_ALLOC_FAILED;
		}

		*inst++ = 0;
		*inst++ = type + 4;
	}
	else {
#if (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
		/* REX_W is not necessary (src is not immediate). */
		compiler->mode32 = 1;
#endif
		inst = emit_x86_instruction(compiler, 1, 0, 0, src, srcw);
		FAIL_IF(!inst);
		*inst++ = GROUP_FF;
		*inst |= (type >= SLJIT_FAST_CALL) ? CALL_rm : JMP_rm;
	}
	return SLJIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl (%rdi), %ebp
testl %ebp, %ebp
je 0x1d35c
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rcx, %r15
movl %edx, %r12d
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x0, 0x84(%rdi)
je 0x1d380
movl $0x0, 0x84(%r14)
jmp 0x1d660
leal -0x16(%rbx), %eax
cmpl $0x6, %eax
jae 0x1d7d9
movl 0x48(%r14), %eax
cmpl $-0x1, %eax
je 0x1d602
movl 0x4c(%r14), %edx
cmpl $-0x1, %edx
je 0x1d602
testl %r12d, %r12d
setg %cl
cmpl %r12d, %eax
setge %sil
testb %sil, %cl
jne 0x1d3d6
movl $0xc, %ecx
subl %edx, %ecx
cmpl %r12d, %ecx
setge %dl
cmpl $0xd, %r12d
setge %sil
orb %dl, %sil
jne 0x1d457
testq %r15, %r15
jne 0x1d602
movq 0x78(%r14), %rdi
testq %rdi, %rdi
je 0x1d660
movl %ebx, %eax
leaq 0xa90b(%rip), %rcx      # 0x27d00
movq (%rcx,%rax,8), %rdx
leaq 0x628c(%rip), %rsi      # 0x2368c
xorl %eax, %eax
callq 0x20c0
testb $0x40, %r12b
jne 0x1d43d
testb %r12b, %r12b
js 0x1d484
testl %r12d, %r12d
je 0x1d52d
movq 0x78(%r14), %rdi
cmpl %r12d, 0x48(%r14)
jge 0x1d55e
movl $0xc, %edx
subl %r12d, %edx
leaq 0x616a(%rip), %rsi      # 0x235a2
jmp 0x1d56a
movq 0x78(%r14), %rdi
leaq 0x5ff9(%rip), %rsi      # 0x23441
movq %r15, %rdx
xorl %eax, %eax
callq 0x20c0
jmp 0x1d652
cmpl $0x40, %r12d
je 0x1d3df
cmpl $0x8d, %r12d
jne 0x1d4bf
testq %r15, %r15
js 0x1d602
movslq 0x80(%r14), %rax
cmpq %r15, %rax
jg 0x1d3df
jmp 0x1d602
movl %r12d, %ebp
movq 0x78(%r14), %rsi
andl $0x3f, %ebp
je 0x1d54c
movl $0x5b, %edi
callq 0x20a0
movq 0x78(%r14), %rdi
cmpl 0x48(%r14), %ebp
jle 0x1d576
movl $0xc, %edx
subl %ebp, %edx
leaq 0x60e8(%rip), %rsi      # 0x235a2
jmp 0x1d581
testb %r12b, %r12b
jns 0x1d602
movl %r12d, %edx
andl $0x3f, %edx
je 0x1d5ec
cmpl %eax, %edx
jle 0x1d4e9
cmpl $0xc, %edx
ja 0x1d602
cmpl %ecx, %edx
jle 0x1d602
testl $0x3f00, %r12d          # imm = 0x3F00
je 0x1d5f5
movl %r12d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
setne %sil
cmpl %eax, %edx
setle %al
testb %al, %sil
jne 0x1d51e
cmpl $0xc, %edx
ja 0x1d602
cmpl %ecx, %edx
jle 0x1d602
cmpq $0x4, %r15
jb 0x1d5f5
jmp 0x1d602
movq 0x78(%r14), %rcx
leaq 0x5f26(%rip), %rdi      # 0x2345e
movl $0x6, %esi
movl $0x1, %edx
callq 0x2130
jmp 0x1d652
leaq 0x5f04(%rip), %rax      # 0x23457
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x1d448
leal -0x1(%r12), %edx
leaq 0x6033(%rip), %rsi      # 0x2359d
xorl %eax, %eax
callq 0x20c0
jmp 0x1d652
decl %ebp
leaq 0x601e(%rip), %rsi      # 0x2359d
movl %ebp, %edx
xorl %eax, %eax
callq 0x20c0
testl $0x3f00, %r12d          # imm = 0x3F00
je 0x1d5d0
movq 0x78(%r14), %rcx
leaq 0x5eaa(%rip), %rdi      # 0x23446
movl $0x3, %esi
movl $0x1, %edx
callq 0x2130
movl %r12d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
movq 0x78(%r14), %rdi
cmpl 0x48(%r14), %edx
jle 0x1d613
movl $0xc, %eax
subl %edx, %eax
leaq 0x5fd6(%rip), %rsi      # 0x235a2
movl %eax, %edx
jmp 0x1d61c
testq %r15, %r15
je 0x1d644
movq 0x78(%r14), %rdi
leaq 0x5e70(%rip), %rsi      # 0x23450
movq %r15, %rdx
xorl %eax, %eax
callq 0x20c0
jmp 0x1d644
testl $0x3f00, %r12d          # imm = 0x3F00
jne 0x1d602
cmpl $0x4000, %r12d          # imm = 0x4000
jb 0x1d3df
leaq 0x5d36(%rip), %rdi      # 0x2333f
movl $0x561, %esi            # imm = 0x561
jmp 0x1d7e5
decl %edx
leaq 0x5f81(%rip), %rsi      # 0x2359d
xorl %eax, %eax
callq 0x20c0
testq %r15, %r15
je 0x1d644
movq 0x78(%r14), %rdi
movl $0x1, %edx
movl %r15d, %ecx
shll %cl, %edx
leaq 0x5e0d(%rip), %rsi      # 0x2344a
xorl %eax, %eax
callq 0x20c0
movq 0x78(%r14), %rsi
movl $0x5d, %edi
callq 0x20a0
movq 0x78(%r14), %rsi
movl $0xa, %edi
callq 0x20a0
leaq 0x8(%r15), %r13
cmpl $0x8d, %r12d
cmovneq %r15, %r13
cmpl $0x0, 0x74(%r14)
je 0x1d6ae
cmpl $0x16, %ebx
jg 0x1d6a6
movl $0x7, %esi
movq %r14, %rdi
callq 0x15218
testq %rax, %rax
je 0x1d7c9
movb $0x6, (%rax)
addq $0x6, 0x60(%r14)
movl $0x648d489d, 0x1(%rax)  # imm = 0x648D489D
movw $0xf824, 0x5(%rax)      # imm = 0xF824
movl $0x0, 0x74(%r14)
cmpl $0x19, %ebx
jl 0x1d707
xorl %ebp, %ebp
cmpl $0x1b, %ebx
setae %bpl
leal 0x4(%rbp,%rbp,2), %esi
movq %r14, %rdi
callq 0x15218
testq %rax, %rax
je 0x1d6ee
leal 0x3(%rbp,%rbp,2), %ecx
movb %cl, (%rax)
movl %ecx, %ecx
addq %rcx, 0x60(%r14)
cmpl $0x1b, %ebx
jb 0x1d6fb
movw $0x8b48, 0x1(%rax)      # imm = 0x8B48
movb $-0x2f, 0x3(%rax)
addq $0x4, %rax
jmp 0x1d6fe
movl (%r14), %ebp
testl %ebp, %ebp
jne 0x1d34b
jmp 0x1d707
incq %rax
movw $0x8b48, (%rax)         # imm = 0x8B48
movb $-0x8, 0x2(%rax)
cmpl $0x40, %r12d
jne 0x1d773
movl $0x20, %esi
movq %r14, %rdi
callq 0x14955
testq %rax, %rax
je 0x1d7b0
movq $0x0, (%rax)
movq $0x2, 0x10(%rax)
movq 0x28(%r14), %rcx
leaq 0x10(%r14), %rdx
testq %rcx, %rcx
cmovneq %rcx, %rdx
movq %rax, (%rdx)
movq %rax, 0x28(%r14)
movq %r15, 0x18(%rax)
addq $0xd, 0x60(%r14)
movl $0x2, %esi
movq %r14, %rdi
callq 0x15218
testq %rax, %rax
je 0x1d7b0
movb $0x0, (%rax)
addb $0x4, %bl
movb %bl, 0x1(%rax)
xorl %ebp, %ebp
jmp 0x1d34b
movl $0x1, 0x70(%r14)
xorl %ebp, %ebp
movq %r14, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r12d, %r8d
movq %r13, %r9
callq 0x15da2
testq %rax, %rax
je 0x1d7c1
movb $-0x1, (%rax)
cmpl $0x17, %ebx
setl %cl
shlb $0x4, %cl
addb $0x10, %cl
orb %cl, 0x1(%rax)
jmp 0x1d34b
movl $0x2, (%r14)
movl $0x2, %ebp
jmp 0x1d34b
movl (%r14), %ebp
jmp 0x1d34b
movl (%r14), %ebp
testl %ebp, %ebp
jne 0x1d34b
jmp 0x1d6a6
leaq 0x5b5f(%rip), %rdi      # 0x2333f
movl $0x560, %esi            # imm = 0x560
xorl %eax, %eax
callq 0x2080
callq 0x2040