// File: /workspace/github_c_makefile_star2_O3/mmcco[P]sljit/regex_src/regexJIT.c
// Function: compile_leave_fast_forward
static int compile_leave_fast_forward(struct compiler_common *compiler_common, struct sljit_label *fast_forward_label)
{
	struct sljit_compiler *compiler = compiler_common->compiler;
	struct stack *stack = &compiler_common->stack;
	struct stack_item *dfa_transitions = compiler_common->dfa_transitions;
	struct stack_item *search_states = compiler_common->search_states;
	int ind;
	struct sljit_jump *jump;
	int init_range = 1, prev_value = 0;

	while (stack->count > 0) {
		ind = stack_pop(stack)->value;
		search_states[ind].value = -1;
		if (search_states[ind].type >= 0) {
			if (dfa_transitions[ind].type == type_char) {
				EMIT_CMP(jump, SLJIT_EQUAL, R_CURR_CHAR, 0, SLJIT_IMM, dfa_transitions[ind].value);
				sljit_set_label(jump, fast_forward_label);
			}
			else if (dfa_transitions[ind].type == type_rng_start) {
				SLJIT_ASSERT(!dfa_transitions[ind].value);
				ind++;
				while (dfa_transitions[ind].type != type_rng_end) {
					if (dfa_transitions[ind].type == type_rng_char) {
						EMIT_CMP(jump, SLJIT_EQUAL, R_CURR_CHAR, 0, SLJIT_IMM, dfa_transitions[ind].value);
						sljit_set_label(jump, fast_forward_label);
					}
					else {
						SLJIT_ASSERT(dfa_transitions[ind].type == type_rng_left);
						if (init_range) {
							EMIT_OP1(SLJIT_MOV, R_TEMP, 0, R_CURR_CHAR, 0);
							init_range = 0;
						}
						if (dfa_transitions[ind].value != prev_value) {
							/* Best compatibility to all archs. */
							prev_value -= dfa_transitions[ind].value;
							if (prev_value < 0) {
								EMIT_OP2(SLJIT_SUB, R_TEMP, 0, R_TEMP, 0, SLJIT_IMM, -prev_value);
							}
							else {
								EMIT_OP2(SLJIT_ADD, R_TEMP, 0, R_TEMP, 0, SLJIT_IMM, prev_value);
							}
							prev_value = dfa_transitions[ind].value;
						}
						EMIT_CMP(jump, SLJIT_LESS_EQUAL, R_TEMP, 0, SLJIT_IMM, dfa_transitions[ind + 1].value - dfa_transitions[ind].value);
						sljit_set_label(jump, fast_forward_label);
						ind++;
					}
					ind++;
				}
			}
			else {
				SLJIT_ASSERT(dfa_transitions[ind].type == type_newline);
				EMIT_CMP(jump, SLJIT_EQUAL, R_CURR_CHAR, 0, SLJIT_IMM, '\n');
				sljit_set_label(jump, fast_forward_label);
				EMIT_CMP(jump, SLJIT_EQUAL, R_CURR_CHAR, 0, SLJIT_IMM, '\r');
				sljit_set_label(jump, fast_forward_label);
			}
		}
	}
	return REGEX_NO_ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x10(%rsp)
cmpl $0x0, 0x14(%rdi)
jle 0x5496
movq %rdi, %rbx
movq 0x68(%rdi), %rax
movq %rax, 0x8(%rsp)
movq 0x58(%rdi), %r12
movq 0x60(%rdi), %r13
movl $0x1, %r14d
xorl %r15d, %r15d
movq %rdi, 0x20(%rsp)
movq %r13, 0x18(%rsp)
movq %rbx, %rdi
callq 0x4ee0
movl 0x4(%rax), %ebp
movslq %ebp, %rax
movl $0xffffffff, 0x4(%r13,%rax,8) # imm = 0xFFFFFFFF
cmpl $0x0, (%r13,%rax,8)
js 0x535e
movl (%r12,%rax,8), %ecx
cmpl $0x5, %ecx
je 0x536d
cmpl $0x3, %ecx
je 0x52e9
cmpl $0x2, %ecx
jne 0x54c1
movslq 0x4(%r12,%rax,8), %r9
movq 0x8(%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x117ca
testq %rax, %rax
jne 0x5351
jmp 0x548f
movl $0xa, %r9d
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x117ca
movl $0x1, %ecx
testq %rax, %rax
je 0x5498
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x78d1
movl $0xd, %r9d
movq %rbp, %rdi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x117ca
movl $0x1, %ecx
testq %rax, %rax
je 0x5498
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x78d1
cmpl $0x0, 0x14(%rbx)
jg 0x5283
jmp 0x5496
cmpl $0x0, 0x4(%r12,%rax,8)
jne 0x54cf
movslq %ebp, %rbx
leaq 0x1(%rbx), %r13
movl 0x8(%r12,%rbx,8), %eax
cmpl $0x7, %eax
je 0x53dc
cmpl $0x8, %eax
jne 0x547b
testl %r14d, %r14d
movq 0x8(%rsp), %r14
je 0x53c2
movq %r14, %rdi
movl $0x20, %esi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x9c63
testl %eax, %eax
jne 0x548f
movq %r15, %rcx
movl %ecx, %eax
subl 0x4(%r12,%r13,8), %eax
je 0x5436
js 0x5407
movl %eax, %eax
movq %r14, %rdi
movl $0x60, %esi
jmp 0x5411
movslq 0x4(%r12,%r13,8), %r9
movq 0x8(%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x117ca
testq %rax, %rax
je 0x548f
incl %ebp
jmp 0x5469
negl %eax
movq %r14, %rdi
movl $0x62, %esi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x3, %r8d
xorl %r9d, %r9d
pushq %rax
pushq $0x40
callq 0xb023
addq $0x10, %rsp
testl %eax, %eax
jne 0x548f
movl 0x4(%r12,%r13,8), %ecx
movslq 0x14(%r12,%rbx,8), %r9
movq %rcx, %r15
movslq %ecx, %rax
subq %rax, %r9
movq %r14, %rdi
xorl %r14d, %r14d
movl $0x5, %esi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x117ca
testq %rax, %rax
je 0x548f
addl $0x2, %ebp
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x78d1
jmp 0x5379
cmpl $0x6, %eax
jne 0x54a9
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r13
jmp 0x535e
movl $0x1, %ecx
jmp 0x5498
xorl %ecx, %ecx
movl %ecx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe248(%rip), %rdi      # 0x136f8
movl $0x67b, %esi            # imm = 0x67B
xorl %eax, %eax
callq 0x2080
callq 0x2050
leaq 0xe230(%rip), %rdi      # 0x136f8
movl $0x693, %esi            # imm = 0x693
jmp 0x54b5
leaq 0xe222(%rip), %rdi      # 0x136f8
movl $0x673, %esi            # imm = 0x673
jmp 0x54b5