// File: /workspace/github_c_makefile_star2_O0/mmcco[P]sljit/regex_src/regexJIT.c
// Function: parse_iterator
static int parse_iterator(const regex_char_t *regex_string, int length, struct stack *stack, long *dfa_size, int begin)
{
	/* We only know that *regex_string == { . */
	int val1, val2;
	const regex_char_t *base_from = regex_string;
	const regex_char_t *from;

	length--;
	regex_string++;

	/* Decode left value. */
	val2 = -1;
	if (length == 0)
		return -2;
	if (*regex_string == ',') {
		val1 = 0;
		length--;
		regex_string++;
	}
	else {
		from = regex_string;
		regex_string = decode_number(regex_string, length, &val1);
		if (val1 < 0)
			return -2;
		length -= regex_string - from;

		if (length == 0)
			return -2;
		if (*regex_string == '}') {
			val2 = val1;
			if (val1 == 0)
				val1 = -1;
		}
		else if (length >= 2 && *regex_string == '!' && regex_string[1] == '}') {
			/* Non posix extension. */
			if (stack_push(stack, type_id, val1))
				return -1;
			(*dfa_size)++;
			return (regex_string - base_from) + 1;
		}
		else {
			if (*regex_string != ',')
				return -2;
			length--;
			regex_string++;
		}
	}

	if (begin)
		return -2;

	/* Decode right value. */
	if (val2 == -1) {
		if (length == 0)
			return -2;
		if (*regex_string == '}')
			val2 = 0;
		else {
			from = regex_string;
			regex_string = decode_number(regex_string, length, &val2);
			length -= regex_string - from;
			if (val2 < 0 || length == 0 || *regex_string != '}' || val2 < val1)
				return -2;
			if (val2 == 0) {
				SLJIT_ASSERT(val1 == 0);
				val1 = -1;
			}
		}
	}

	/* Fast cases. */
	if (val1 > 1 || val2 > 1) {
		val1 = iterate(stack, val1, val2);
		if (val1 < 0)
			return -1;
		*dfa_size += val1;
	}
	else if (val1 == 0 && val2 == 0) {
		if (stack_push(stack, type_asterisk, 0))
			return -1;
		*dfa_size += 2;
	}
	else if (val1 == 1 && val2 == 0) {
		if (stack_push(stack, type_plus_sign, 0))
			return -1;
		(*dfa_size)++;
	}
	else if (val1 == 0 && val2 == 1) {
		if (stack_push(stack, type_qestion_mark, 0))
			return -1;
		(*dfa_size)++;
	}
	else if (val1 == -1) {
		val1 = iterate(stack, 0, 0);
		if (val1 < 0)
			return -1;
		*dfa_size -= val1;
		SLJIT_ASSERT(*dfa_size >= 2);
	}
	else {
		/* Ignore. */
		SLJIT_ASSERT(val1 == 1 && val2 == 1);
	}
	return regex_string - base_from;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movl $0xffffffff, -0x34(%rbp) # imm = 0xFFFFFFFF
cmpl $0x0, -0x14(%rbp)
jne 0x8b81
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f33
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2c, %eax
jne 0x8bae
movl $0x0, -0x30(%rbp)
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x8cbe
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
leaq -0x30(%rbp), %rdx
callq 0x9470
movq %rax, -0x10(%rbp)
cmpl $0x0, -0x30(%rbp)
jge 0x8bdc
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f33
movq -0x10(%rbp), %rcx
movq -0x48(%rbp), %rax
subq %rax, %rcx
movslq -0x14(%rbp), %rax
subq %rcx, %rax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x8c03
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f33
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x7d, %eax
jne 0x8c27
movl -0x30(%rbp), %eax
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x30(%rbp)
jne 0x8c22
movl $0xffffffff, -0x30(%rbp) # imm = 0xFFFFFFFF
jmp 0x8cbc
cmpl $0x2, -0x14(%rbp)
jl 0x8c8d
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x21, %eax
jne 0x8c8d
movq -0x10(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x7d, %eax
jne 0x8c8d
movq -0x20(%rbp), %rdi
movl -0x30(%rbp), %edx
movl $0x4, %esi
callq 0x8980
cmpl $0x0, %eax
je 0x8c68
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x8f33
movq -0x28(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
addq $0x1, %rax
movl %eax, -0x4(%rbp)
jmp 0x8f33
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2c, %eax
je 0x8ca5
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f33
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x8cbc
jmp 0x8cbe
cmpl $0x0, -0x2c(%rbp)
je 0x8cd0
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f33
cmpl $-0x1, -0x34(%rbp)
jne 0x8d94
cmpl $0x0, -0x14(%rbp)
jne 0x8cec
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f33
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x7d, %eax
jne 0x8d04
movl $0x0, -0x34(%rbp)
jmp 0x8d92
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
leaq -0x34(%rbp), %rdx
callq 0x9470
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rcx
movq -0x48(%rbp), %rax
subq %rax, %rcx
movslq -0x14(%rbp), %rax
subq %rcx, %rax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x34(%rbp)
jl 0x8d55
cmpl $0x0, -0x14(%rbp)
je 0x8d55
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x7d, %eax
jne 0x8d55
movl -0x34(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0x8d61
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x8f33
cmpl $0x0, -0x34(%rbp)
jne 0x8d90
jmp 0x8d69
cmpl $0x0, -0x30(%rbp)
je 0x8d87
leaq 0x16a9a(%rip), %rdi     # 0x1f810
movl $0x270, %esi            # imm = 0x270
movb $0x0, %al
callq 0x2060
callq 0x2040
jmp 0x8d89
movl $0xffffffff, -0x30(%rbp) # imm = 0xFFFFFFFF
jmp 0x8d92
jmp 0x8d94
cmpl $0x1, -0x30(%rbp)
jg 0x8da0
cmpl $0x1, -0x34(%rbp)
jle 0x8dd7
movq -0x20(%rbp), %rdi
movl -0x30(%rbp), %esi
movl -0x34(%rbp), %edx
callq 0x9560
movl %eax, -0x30(%rbp)
cmpl $0x0, -0x30(%rbp)
jge 0x8dc4
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x8f33
movslq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
jmp 0x8f25
cmpl $0x0, -0x30(%rbp)
jne 0x8e17
cmpl $0x0, -0x34(%rbp)
jne 0x8e17
movq -0x20(%rbp), %rdi
movl $0xf, %esi
xorl %edx, %edx
callq 0x8980
cmpl $0x0, %eax
je 0x8e04
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x8f33
movq -0x28(%rbp), %rax
movq (%rax), %rcx
addq $0x2, %rcx
movq %rcx, (%rax)
jmp 0x8f23
cmpl $0x1, -0x30(%rbp)
jne 0x8e57
cmpl $0x0, -0x34(%rbp)
jne 0x8e57
movq -0x20(%rbp), %rdi
movl $0x10, %esi
xorl %edx, %edx
callq 0x8980
cmpl $0x0, %eax
je 0x8e44
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x8f33
movq -0x28(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x8f21
cmpl $0x0, -0x30(%rbp)
jne 0x8e97
cmpl $0x1, -0x34(%rbp)
jne 0x8e97
movq -0x20(%rbp), %rdi
movl $0x11, %esi
xorl %edx, %edx
callq 0x8980
cmpl $0x0, %eax
je 0x8e84
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x8f33
movq -0x28(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x8f1f
cmpl $-0x1, -0x30(%rbp)
jne 0x8ef3
movq -0x20(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x9560
movl %eax, -0x30(%rbp)
cmpl $0x0, -0x30(%rbp)
jge 0x8ebc
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x8f33
movslq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rax
movq (%rax), %rcx
subq %rdx, %rcx
movq %rcx, (%rax)
movq -0x28(%rbp), %rax
cmpq $0x2, (%rax)
jge 0x8eef
leaq 0x16932(%rip), %rdi     # 0x1f810
movl $0x291, %esi            # imm = 0x291
movb $0x0, %al
callq 0x2060
callq 0x2040
jmp 0x8ef1
jmp 0x8f1d
jmp 0x8ef5
cmpl $0x1, -0x30(%rbp)
jne 0x8f01
cmpl $0x1, -0x34(%rbp)
je 0x8f19
leaq 0x16908(%rip), %rdi     # 0x1f810
movl $0x295, %esi            # imm = 0x295
movb $0x0, %al
callq 0x2060
callq 0x2040
jmp 0x8f1b
jmp 0x8f1d
jmp 0x8f1f
jmp 0x8f21
jmp 0x8f23
jmp 0x8f25
movq -0x10(%rbp), %rax
movq -0x40(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)