// File: /workspace/github_c_makefile_star2_O1/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 0x1cec3
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rcx, %r12
movl %edx, %r15d
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x0, 0x84(%rdi)
je 0x1cee7
movl $0x0, 0x84(%r14)
jmp 0x1d1a5
leal -0x16(%rbx), %eax
cmpl $0x6, %eax
jae 0x1d327
movl 0x48(%r14), %eax
cmpl $-0x1, %eax
je 0x1d089
movl 0x4c(%r14), %edx
cmpl $-0x1, %edx
je 0x1d089
testl %r15d, %r15d
setg %cl
cmpl %r15d, %eax
setge %sil
testb %sil, %cl
jne 0x1cf3d
movl $0xc, %ecx
subl %edx, %ecx
cmpl %r15d, %ecx
setge %dl
cmpl $0xd, %r15d
setge %sil
orb %dl, %sil
jne 0x1cfbe
testq %r12, %r12
jne 0x1d089
movq 0x78(%r14), %rdi
testq %rdi, %rdi
je 0x1d1a5
movl %ebx, %eax
leaq 0xada4(%rip), %rcx      # 0x27d00
movq (%rcx,%rax,8), %rdx
leaq 0x6655(%rip), %rsi      # 0x235bc
xorl %eax, %eax
callq 0x20b0
testb $0x40, %r15b
jne 0x1cfa4
testb %r15b, %r15b
js 0x1cfeb
testl %r15d, %r15d
je 0x1d09a
movq 0x78(%r14), %rdi
cmpl %r15d, 0x48(%r14)
jge 0x1d0cb
movl $0xc, %edx
subl %r15d, %edx
leaq 0x6533(%rip), %rsi      # 0x234d2
jmp 0x1d0d6
movq 0x78(%r14), %rdi
leaq 0x63c2(%rip), %rsi      # 0x23371
movq %r12, %rdx
xorl %eax, %eax
callq 0x20b0
jmp 0x1d197
cmpl $0x40, %r15d
je 0x1cf46
cmpl $0x8d, %r15d
jne 0x1d026
testq %r12, %r12
js 0x1d089
movslq 0x80(%r14), %rax
cmpq %r12, %rax
jg 0x1cf46
jmp 0x1d089
movl %r15d, %ebp
movq 0x78(%r14), %rsi
andl $0x3f, %ebp
je 0x1d0b9
movl $0x5b, %edi
callq 0x20a0
movq 0x78(%r14), %rdi
cmpl 0x48(%r14), %ebp
jle 0x1d0e2
movl $0xc, %edx
subl %ebp, %edx
leaq 0x64b1(%rip), %rsi      # 0x234d2
jmp 0x1d0ed
testb %r15b, %r15b
jns 0x1d089
movl %r15d, %edx
andl $0x3f, %edx
sete %sil
cmpl %eax, %edx
setle %dil
orb %sil, %dil
jne 0x1d049
cmpl $0xc, %edx
ja 0x1d089
cmpl %ecx, %edx
jle 0x1d089
testl $0x3f00, %r15d          # imm = 0x3F00
je 0x1d07c
testl %edx, %edx
je 0x1d089
movl %r15d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
setne %sil
cmpl %eax, %edx
setle %al
testb %al, %sil
jne 0x1d076
cmpl $0xc, %edx
ja 0x1d089
cmpl %ecx, %edx
jle 0x1d089
cmpq $0x4, %r12
jae 0x1d089
cmpl $0x4000, %r15d          # imm = 0x4000
jb 0x1cf46
leaq 0x61df(%rip), %rdi      # 0x2326f
movl $0x561, %esi            # imm = 0x561
jmp 0x1d333
movq 0x78(%r14), %rcx
leaq 0x62e9(%rip), %rdi      # 0x2338e
movl $0x6, %esi
movl $0x1, %edx
callq 0x2120
jmp 0x1d197
leaq 0x62c7(%rip), %rax      # 0x23387
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x1cfaf
leal -0x1(%r15), %edx
leaq 0x63f7(%rip), %rsi      # 0x234cd
xorl %eax, %eax
callq 0x20b0
jmp 0x1d197
decl %ebp
leaq 0x63e2(%rip), %rsi      # 0x234cd
movl %ebp, %edx
xorl %eax, %eax
callq 0x20b0
testl $0x3f00, %r15d          # imm = 0x3F00
je 0x1d13c
movq 0x78(%r14), %rcx
leaq 0x626e(%rip), %rdi      # 0x23376
movl $0x3, %esi
movl $0x1, %edx
callq 0x2120
movl %r15d, %edx
shrl $0x8, %edx
andl $0x3f, %edx
movq 0x78(%r14), %rdi
cmpl 0x48(%r14), %edx
jle 0x1d158
movl $0xc, %eax
subl %edx, %eax
leaq 0x639a(%rip), %rsi      # 0x234d2
movl %eax, %edx
jmp 0x1d161
testq %r12, %r12
je 0x1d189
movq 0x78(%r14), %rdi
leaq 0x6234(%rip), %rsi      # 0x23380
movq %r12, %rdx
xorl %eax, %eax
callq 0x20b0
jmp 0x1d189
decl %edx
leaq 0x636c(%rip), %rsi      # 0x234cd
xorl %eax, %eax
callq 0x20b0
testq %r12, %r12
je 0x1d189
movq 0x78(%r14), %rdi
movl $0x1, %edx
movl %r12d, %ecx
shll %cl, %edx
leaq 0x61f8(%rip), %rsi      # 0x2337a
xorl %eax, %eax
callq 0x20b0
movq 0x78(%r14), %rsi
movl $0x5d, %edi
callq 0x20a0
movq 0x78(%r14), %rsi
movl $0xa, %edi
callq 0x20a0
leaq 0x8(%r12), %r13
cmpl $0x8d, %r15d
cmovneq %r12, %r13
cmpl $0x0, 0x74(%r14)
je 0x1d1fc
cmpl $0x16, %ebx
jg 0x1d1f4
movl $0x7, %esi
movq %r14, %rdi
callq 0x152be
testq %rax, %rax
je 0x1d315
movb $0x6, (%rax)
addq $0x6, 0x60(%r14)
movl $0x648d489d, 0x1(%rax)  # imm = 0x648D489D
movw $0xf824, 0x5(%rax)      # imm = 0xF824
movl $0x0, 0x74(%r14)
movl $0x0, 0x74(%r14)
cmpl $0x19, %ebx
jl 0x1d25b
xorl %r12d, %r12d
cmpl $0x1b, %ebx
setge %r12b
leal (%r12,%r12,2), %esi
addl $0x4, %esi
movq %r14, %rdi
callq 0x152be
testq %rax, %rax
je 0x1d243
leal (%r12,%r12,2), %ecx
addl $0x3, %ecx
movb %cl, (%rax)
movl %ecx, %ecx
addq %rcx, 0x60(%r14)
cmpl $0x1b, %ebx
jl 0x1d24f
movw $0x8b48, 0x1(%rax)      # imm = 0x8B48
movb $-0x2f, 0x3(%rax)
addq $0x4, %rax
jmp 0x1d252
cmpl $0x0, (%r14)
jne 0x1d31f
jmp 0x1d25b
incq %rax
movw $0x8b48, (%rax)         # imm = 0x8B48
movb $-0x8, 0x2(%rax)
cmpl $0x40, %r15d
jne 0x1d2c7
movl $0x20, %esi
movq %r14, %rdi
callq 0x149da
testq %rax, %rax
je 0x1d304
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 %r13, 0x18(%rax)
addq $0xd, 0x60(%r14)
movl $0x2, %esi
movq %r14, %rdi
callq 0x152be
testq %rax, %rax
je 0x1d304
movb $0x0, (%rax)
addb $0x4, %bl
movb %bl, 0x1(%rax)
xorl %ebp, %ebp
jmp 0x1ceb2
movl $0x1, 0x70(%r14)
xorl %ebp, %ebp
movq %r14, %rdi
movl $0x1, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r15d, %r8d
movq %r13, %r9
callq 0x15e07
testq %rax, %rax
je 0x1d31f
movb $-0x1, (%rax)
cmpl $0x17, %ebx
setl %cl
shlb $0x4, %cl
addb $0x10, %cl
orb %cl, 0x1(%rax)
jmp 0x1ceb2
movl $0x2, (%r14)
movl $0x2, %ebp
jmp 0x1ceb2
cmpl $0x0, (%r14)
je 0x1d1f4
movl (%r14), %ebp
jmp 0x1ceb2
leaq 0x5f41(%rip), %rdi      # 0x2326f
movl $0x560, %esi            # imm = 0x560
xorl %eax, %eax
callq 0x2080
callq 0x2040