// File: /workspace/github_c_makefile_star2_O1/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, 0x8(%rsp)
cmpl $0x0, 0x14(%rdi)
jle 0x5557
movq %rdi, %rbx
movq 0x68(%rdi), %r15
movq 0x58(%rdi), %r12
movq 0x60(%rdi), %r14
movl $0x1, %r13d
movq $0x0, 0x10(%rsp)
movq %rdi, 0x20(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, %rdi
callq 0x4fb0
movl 0x4(%rax), %ebp
movslq %ebp, %rax
movl $0xffffffff, 0x4(%r14,%rax,8) # imm = 0xFFFFFFFF
cmpl $0x0, (%r14,%rax,8)
js 0x5422
movl (%r12,%rax,8), %ecx
cmpl $0x5, %ecx
je 0x5431
cmpl $0x3, %ecx
je 0x53b7
cmpl $0x2, %ecx
jne 0x5582
movslq 0x4(%r12,%rax,8), %r9
movq %r15, %rdi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x1133a
testq %rax, %rax
jne 0x5415
jmp 0x5550
movl $0xa, %r9d
movq %r15, %rdi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x1133a
movl $0x1, %ebp
testq %rax, %rax
je 0x5559
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x79c2
movl $0xd, %r9d
movq %r15, %rdi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x1133a
testq %rax, %rax
je 0x5559
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x79c2
cmpl $0x0, 0x14(%rbx)
jg 0x5354
jmp 0x5557
cmpl $0x0, 0x4(%r12,%rax,8)
jne 0x5590
movslq %ebp, %rbx
leaq 0x1(%rbx), %r14
movl 0x8(%r12,%rbx,8), %eax
cmpl $0x7, %eax
je 0x549b
cmpl $0x8, %eax
jne 0x553c
testl %r13d, %r13d
je 0x5481
movq %r15, %rdi
movl $0x20, %esi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x2, %r8d
xorl %r9d, %r9d
callq 0x9cef
testl %eax, %eax
jne 0x5550
movq 0x10(%rsp), %rax
subl 0x4(%r12,%r14,8), %eax
je 0x54f8
js 0x54c4
movl %eax, %eax
movq %r15, %rdi
movl $0x60, %esi
jmp 0x54ce
movslq 0x4(%r12,%r14,8), %r9
movq %r15, %rdi
xorl %esi, %esi
movl $0x2, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x1133a
testq %rax, %rax
je 0x5550
incl %ebp
jmp 0x552a
negl %eax
movq %r15, %rdi
movl $0x62, %esi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x3, %r8d
xorl %r9d, %r9d
pushq %rax
pushq $0x40
callq 0xb069
addq $0x10, %rsp
testl %eax, %eax
jne 0x5550
movl 0x4(%r12,%r14,8), %eax
movq %rax, 0x10(%rsp)
movslq 0x14(%r12,%rbx,8), %r9
movslq 0x4(%r12,%r14,8), %rax
subq %rax, %r9
xorl %r13d, %r13d
movq %r15, %rdi
movl $0x5, %esi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x40, %r8d
callq 0x1133a
testq %rax, %rax
je 0x5550
addl $0x2, %ebp
movq %rax, %rdi
movq 0x8(%rsp), %rsi
callq 0x79c2
jmp 0x543d
cmpl $0x6, %eax
jne 0x556a
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r14
jmp 0x5422
movl $0x1, %ebp
jmp 0x5559
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe16b(%rip), %rdi      # 0x136dc
movl $0x67b, %esi            # imm = 0x67B
xorl %eax, %eax
callq 0x2080
callq 0x2050
leaq 0xe153(%rip), %rdi      # 0x136dc
movl $0x693, %esi            # imm = 0x693
jmp 0x5576
leaq 0xe145(%rip), %rdi      # 0x136dc
movl $0x673, %esi            # imm = 0x673
jmp 0x5576