// File: /workspace/github_c_makefile_star2_O0/mmcco[P]sljit/regex_src/regexJIT.c
// Function: compile_uncond_tran
static int compile_uncond_tran(struct compiler_common *compiler_common, int reg)
{
	struct sljit_compiler *compiler = compiler_common->compiler;
	struct stack *stack = &compiler_common->stack;
	struct stack_item *search_states = compiler_common->search_states;
	int flags = compiler_common->flags;
	long no_states = compiler_common->no_states;
	unsigned long head = 0;
	long offset, value;

	if (reg != R_CURR_STATE || !(compiler_common->flags & REGEX_FAKE_MATCH_BEGIN)) {
		CHECK(trace_transitions(0, compiler_common));
	}
	else {
		CHECK(trace_transitions(1, compiler_common));
	}

	while (stack->count > 0) {
		value = stack_pop(stack)->value;
		if (search_states[value].type >= 0) {
			offset = TERM_OFFSET_OF(search_states[value].type, 0);
			EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 1), SLJIT_IMM, head);
			if (offset > 0)
				head = offset;

			if (!(flags & REGEX_MATCH_BEGIN)) {
				EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 2), R_TEMP, 0);
				if (flags & REGEX_ID_CHECK) {
					EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 3), SLJIT_IMM, search_states[value].value);
				}
			}
			else if (flags & REGEX_ID_CHECK) {
				EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 2), SLJIT_IMM, search_states[value].value);
			}
		}
		search_states[value].value = -1;
	}
	if (reg == R_NEXT_STATE) {
		EMIT_OP1(SLJIT_MOV, R_TEMP, 0, R_NEXT_HEAD, 0);
	}
	else if (flags & REGEX_FAKE_MATCH_BEGIN) {
		SLJIT_ASSERT(compiler_common->dfa_transitions[1].type == type_newline && !compiler_common->dfa_transitions[1].value);
		offset = TERM_OFFSET_OF(search_states[1].type, 0);

		SLJIT_ASSERT(!(flags & REGEX_MATCH_BEGIN));

		EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 1), SLJIT_IMM, head);
		head = offset;

		EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 2), SLJIT_IMM, 1);
		if (flags & REGEX_ID_CHECK) {
			EMIT_OP1(SLJIT_MOV, SLJIT_MEM1(reg), TERM_REL_OFFSET_OF(offset, 3), SLJIT_IMM, 0);
		}
	}
	EMIT_OP1(SLJIT_MOV, R_NEXT_HEAD, 0, SLJIT_IMM, head);
	return REGEX_NO_ERROR;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
cmpl $0xc, -0x14(%rbp)
jne 0x5c24
movq -0x10(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
jne 0x5c42
movq -0x10(%rbp), %rsi
xorl %edi, %edi
callq 0x5970
cmpl $0x0, %eax
je 0x5c40
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
jmp 0x5c63
movq -0x10(%rbp), %rsi
movl $0x1, %edi
callq 0x5970
cmpl $0x0, %eax
je 0x5c61
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
jmp 0x5c63
jmp 0x5c65
movq -0x28(%rbp), %rax
cmpl $0x0, 0x14(%rax)
jle 0x5e05
movq -0x28(%rbp), %rdi
callq 0x5b40
movslq 0x4(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rax
movq -0x58(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,8)
jl 0x5df0
movq -0x30(%rbp), %rax
movq -0x58(%rbp), %rcx
movslq (%rax,%rcx,8), %rax
imulq -0x40(%rbp), %rax
addq $0x0, %rax
shlq $0x3, %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
orl $0x80, %edx
movq -0x50(%rbp), %rcx
addq $0x8, %rcx
movq -0x48(%rbp), %r9
movl $0x20, %esi
movl $0x40, %r8d
callq 0xeee0
cmpl $0x0, %eax
je 0x5ced
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
cmpq $0x0, -0x50(%rbp)
jle 0x5cfc
movq -0x50(%rbp), %rax
movq %rax, -0x48(%rbp)
movl -0x34(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x5d9a
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
orl $0x80, %edx
movq -0x50(%rbp), %rcx
addq $0x10, %rcx
movl $0x20, %esi
movl $0x3, %r8d
xorl %eax, %eax
movl %eax, %r9d
callq 0xeee0
cmpl $0x0, %eax
je 0x5d46
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
movl -0x34(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x5d98
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
orl $0x80, %edx
movq -0x50(%rbp), %rcx
addq $0x18, %rcx
movq -0x30(%rbp), %rax
movq -0x58(%rbp), %rsi
movslq 0x4(%rax,%rsi,8), %r9
movl $0x20, %esi
movl $0x40, %r8d
callq 0xeee0
cmpl $0x0, %eax
je 0x5d96
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
jmp 0x5d98
jmp 0x5dee
movl -0x34(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x5dec
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
orl $0x80, %edx
movq -0x50(%rbp), %rcx
addq $0x10, %rcx
movq -0x30(%rbp), %rax
movq -0x58(%rbp), %rsi
movslq 0x4(%rax,%rsi,8), %r9
movl $0x20, %esi
movl $0x40, %r8d
callq 0xeee0
cmpl $0x0, %eax
je 0x5dea
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
jmp 0x5dec
jmp 0x5dee
jmp 0x5df0
movq -0x30(%rbp), %rax
movq -0x58(%rbp), %rcx
movl $0xffffffff, 0x4(%rax,%rcx,8) # imm = 0xFFFFFFFF
jmp 0x5c65
cmpl $0xb, -0x14(%rbp)
jne 0x5e42
movq -0x20(%rbp), %rdi
movl $0x20, %esi
movl $0x3, %edx
xorl %eax, %eax
movl %eax, %r9d
movl $0xa, %r8d
movq %r9, %rcx
callq 0xeee0
cmpl $0x0, %eax
je 0x5e3d
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
jmp 0x5f92
movl -0x34(%rbp), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x5f90
jmp 0x5e55
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
cmpl $0x3, 0x8(%rax)
jne 0x5e71
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
cmpl $0x0, 0xc(%rax)
je 0x5e89
leaq 0x19998(%rip), %rdi     # 0x1f810
movl $0x54a, %esi            # imm = 0x54A
movb $0x0, %al
callq 0x2060
callq 0x2040
jmp 0x5e8b
movq -0x30(%rbp), %rax
movslq 0x8(%rax), %rax
imulq -0x40(%rbp), %rax
addq $0x0, %rax
shlq $0x3, %rax
movq %rax, -0x50(%rbp)
movl -0x34(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x5ec7
leaq 0x1995a(%rip), %rdi     # 0x1f810
movl $0x54d, %esi            # imm = 0x54D
movb $0x0, %al
callq 0x2060
callq 0x2040
jmp 0x5ec9
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
orl $0x80, %edx
movq -0x50(%rbp), %rcx
addq $0x8, %rcx
movq -0x48(%rbp), %r9
movl $0x20, %esi
movl $0x40, %r8d
callq 0xeee0
cmpl $0x0, %eax
je 0x5f03
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
movq -0x50(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
orl $0x80, %edx
movq -0x50(%rbp), %rcx
addq $0x10, %rcx
movl $0x20, %esi
movl $0x40, %r8d
movl $0x1, %r9d
callq 0xeee0
cmpl $0x0, %eax
je 0x5f47
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
movl -0x34(%rbp), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x5f8e
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %edx
orl $0x80, %edx
movq -0x50(%rbp), %rcx
addq $0x18, %rcx
movl $0x20, %esi
movl $0x40, %r8d
xorl %eax, %eax
movl %eax, %r9d
callq 0xeee0
cmpl $0x0, %eax
je 0x5f8c
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
jmp 0x5f8e
jmp 0x5f90
jmp 0x5f92
movq -0x20(%rbp), %rdi
movq -0x48(%rbp), %r9
movl $0x20, %esi
movl $0xa, %edx
xorl %eax, %eax
movl %eax, %ecx
movl $0x40, %r8d
callq 0xeee0
cmpl $0x0, %eax
je 0x5fc1
movl $0x1, -0x4(%rbp)
jmp 0x5fc8
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)