// File: /workspace/github_c_makefile_star2_O1/MikeGray-APH[P]LibLouisAPH/source/pattern.c
// Function: pattern_compile_expression
static int pattern_compile_expression(
	const unichar *input,
	const int input_len,
	int *input_crs,
	unichar *expr_data,
	const int expr_len,
	unichar *expr_crs,
	unichar *loop_cnts,
	struct subpattern *subpatterns)
{
	struct subpattern *subpattern;
	unichar *data, attrs0, attrs1;;
	int expr_start, expr_end, expr_sub, expr_crs_prv;
	int input_end, subinput_crs;
	int set, esc, nest, i;

	switch(input[*input_crs])
	{
	case '(':

		if(*expr_crs + 10 >= expr_len)
			return 0;

		(*input_crs)++;
		if(*input_crs >= input_len)
			return 0;

		/*   find closing parenthesis   */
		nest = esc = 0;
		for(input_end = *input_crs; input_end < input_len; input_end++)
		{
			if(input[input_end] == '\\' && !esc)
			{
				esc = 1;
				continue;
			}

			if(input[input_end] == '(' && !esc)
				nest++;
			else if(input[input_end] == ')' && !esc)
			{
				if(nest)
					nest--;
				else
					break;
			}

			esc = 0;
		}
		if(input_end >= input_len)
			return 0;

		EXPR_TYPE(*expr_crs) = PTN_GROUP;

		/*   compile sub expressions   */
		expr_crs_prv = *expr_crs;
		*expr_crs += 4;
		EXPR_DATA_0(expr_crs_prv) = *expr_crs;
		expr_sub = *expr_crs;
		EXPR_TYPE(expr_sub) = PTN_ERROR;
		EXPR_PRV(expr_sub) = PTN_END;
		EXPR_NXT(expr_sub) = PTN_END;
		if(!pattern_compile_1(input, input_end, input_crs, expr_data, expr_len, expr_crs, loop_cnts, subpatterns))
			return 0;
		(*input_crs)++;

		/*   reset end expression   */
		expr_end = *expr_crs;
		EXPR_NXT(expr_end) = expr_crs_prv;

		return *expr_crs += 3;

	case '!':

		if(*expr_crs + 10 >= expr_len)
			return 0;

		(*input_crs)++;
		if(*input_crs >= input_len)
			return 0;

		EXPR_TYPE(*expr_crs) = PTN_NOT;
		expr_crs_prv = *expr_crs;
		*expr_crs += 4;
		EXPR_DATA_0(expr_crs_prv) = *expr_crs;

		/*   create start expression   */
		expr_start = *expr_crs;
		EXPR_TYPE(expr_start) = PTN_START;
		EXPR_PRV(expr_start) = PTN_END;
		*expr_crs += 3;
		EXPR_NXT(expr_start) = *expr_crs;

		/*   compile sub expression   */
		expr_sub = *expr_crs;
		EXPR_TYPE(expr_sub) = PTN_ERROR;
		EXPR_PRV(expr_sub) = expr_start;
		EXPR_NXT(expr_sub) = PTN_END;

		if(!pattern_compile_expression(input, input_len, input_crs, expr_data, expr_len, expr_crs, loop_cnts, subpatterns))
			return 0;

		EXPR_NXT(expr_sub) = *expr_crs;

		/*   create end expression   */
		expr_end = *expr_crs;
		EXPR_TYPE(expr_end) = PTN_END;
		EXPR_PRV(expr_end) = expr_sub;
		EXPR_NXT(expr_end) = expr_crs_prv;

		return *expr_crs += 3;

	case '+':

		if(*expr_crs + 4 >= expr_len)
			return 0;
		EXPR_TYPE(*expr_crs) = PTN_ONE_MORE;
		EXPR_DATA_1(*expr_crs) = (*loop_cnts)++;
		(*input_crs)++;
		return *expr_crs += 5;

	case '*':

		if(*expr_crs + 4 >= expr_len)
			return 0;
		EXPR_TYPE(*expr_crs) = PTN_ZERO_MORE;
		EXPR_DATA_1(*expr_crs) = (*loop_cnts)++;
		(*input_crs)++;
		return *expr_crs += 5;

	case '?':

		if(*expr_crs + 4 >= expr_len)
			return 0;
		EXPR_TYPE(*expr_crs) = PTN_OPTIONAL;
		(*input_crs)++;
		return *expr_crs += 4;

	case '|':

		if(*expr_crs + 5 >= expr_len)
			return 0;
		EXPR_TYPE(*expr_crs) = PTN_ALTERNATE;
		(*input_crs)++;
		return *expr_crs += 5;

	case '.':

		if(*expr_crs + 3 >= expr_len)
			return 0;
		EXPR_TYPE(*expr_crs) = PTN_ANY;
		(*input_crs)++;
		return *expr_crs += 3;

	case '%':

		if(*expr_crs + 5 >= expr_len)
			return 0;

		(*input_crs)++;
		if(*input_crs >= input_len)
			return 0;

		/*   find closing bracket   */
		if(input[*input_crs] == '[')
		{
			set = 1;
			(*input_crs)++;
			for(input_end = *input_crs; input_end < input_len; input_end++)
			if(input[input_end] == ']')
				break;
			if(input_end >= input_len)
				return 0;
		}
		else
		{
			set = 0;
			input_end = *input_crs + 1;
		}

		EXPR_TYPE(*expr_crs) = PTN_ATTRIBUTES;

		attrs0 = attrs1 = 0;
		for( ; (*input_crs) < input_end; (*input_crs)++)
			attr_from_char(&attrs0, &attrs1, input[*input_crs]);

		EXPR_DATA_0(*expr_crs) = attrs0;
		EXPR_DATA_1(*expr_crs) = attrs1;

		if(set)
			(*input_crs)++;
		return *expr_crs += 5;

	case '[':

		(*input_crs)++;
		if(*input_crs >= input_len)
			return 0;

		/*   find closing bracket   */
		esc = 0;
		for(input_end = *input_crs; input_end < input_len; input_end++)
		{
			if(input[input_end] == '\\' && !esc)
			{
				esc = 1;
				continue;
			}

			if(input[input_end] == ']' && !esc)
				break;
			esc = 0;
		}
		if(input_end >= input_len)
			return 0;

		if(*expr_crs + 4 + (input_end - *input_crs) >= expr_len)
			return 0;

		EXPR_TYPE(*expr_crs) = PTN_CHARS;

		esc = 0;
		data = EXPR_DATA(*expr_crs);
		for(i = 1; *input_crs < input_end; (*input_crs)++)
		{
			if(input[*input_crs] == '\\' && !esc)
			{
				esc = 1;
				continue;
			}

			esc = 0;
			data[i++] = (unichar)input[*input_crs];
		}
		data[0] = i - 1;
		(*input_crs)++;
		return *expr_crs += 4 + data[0];

	case '@':

		if(*expr_crs + 10 >= expr_len)
			return 0;

		(*input_crs)++;
		if(*input_crs >= input_len)
			return 0;

		/*   which bracket   */
		if(input[*input_crs] == '{')
		{
			set = 1;
			(*input_crs)++;
			for(input_end = *input_crs; input_end < input_len; input_end++)
			if(input[input_end] == '}')
				break;
			if(input_end >= input_len)
				return 0;

			if(*expr_crs + 4 + (input_end - *input_crs) >= expr_len)
				return 0;

			EXPR_TYPE(*expr_crs) = PTN_SUBPATTERN;

			esc = 0;
			data = EXPR_DATA(*expr_crs);
			for(i = 1; *input_crs < input_end; (*input_crs)++)
			{
				if(input[*input_crs] == '\\' && !esc)
				{
					esc = 1;
					continue;
				}

				esc = 0;
				data[i++] = (unichar)input[*input_crs];
			}
			data[0] = i - 1;
			(*input_crs)++;
			return *expr_crs += 4 + data[0];
		}

		/*   find closing bracket   */
		else if(input[*input_crs] == '[')
		{
			set = 1;
			(*input_crs)++;
			for(input_end = *input_crs; input_end < input_len; input_end++)
			if(input[input_end] == ']')
				break;
			if(input_end >= input_len)
				return 0;

			subpattern = subpattern_find(subpatterns, &input[*input_crs], input_end - *input_crs);
			if(!subpattern)
				return 0;
			if(subpattern->processing)
				return 0;

			EXPR_TYPE(*expr_crs) = PTN_GROUP;

			/*   compile sub pattern   */
			expr_crs_prv = *expr_crs;
			*expr_crs += 4;
			EXPR_DATA_0(expr_crs_prv) = *expr_crs;
			expr_sub = *expr_crs;
			EXPR_TYPE(expr_sub) = PTN_ERROR;
			EXPR_PRV(expr_sub) = PTN_END;
			EXPR_NXT(expr_sub) = PTN_END;
			subinput_crs = 0;
			subpattern->processing = 1;
			if(!pattern_compile_1(subpattern->src_data, subpattern->src_len, &subinput_crs, expr_data, expr_len, expr_crs, loop_cnts, subpatterns))
				return 0;
			subpattern->processing = 0;
			*input_crs = input_end + 1;

			/*   reset end expression   */
			expr_end = *expr_crs;
			EXPR_NXT(expr_end) = expr_crs_prv;

			return *expr_crs += 3;
		}

		return 0;

	case '^':
	case '$':

		if(*expr_crs + 3 >= expr_len)
			return 0;
		EXPR_TYPE(*expr_crs) = PTN_END_OF_INPUT;
		(*input_crs)++;
		return *expr_crs += 3;

	case '\\':

		(*input_crs)++;
		if(*input_crs >= input_len)
			return 0;

	default:

		if(*expr_crs + 5 >= expr_len)
			return 0;
		EXPR_TYPE(*expr_crs) = PTN_CHARS;
		EXPR_DATA_0(*expr_crs) = 1;
		EXPR_DATA_1(*expr_crs) = (unichar)input[*input_crs];
		(*input_crs)++;
		return *expr_crs += 5;
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movl %r8d, %ebp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %eax
movq 0x58(%rsp), %r11
movq 0x50(%rsp), %r10
movslq (%rdx), %rsi
movzwl (%rdi,%rsi,2), %ecx
cmpl $0x3e, %ecx
jg 0x88d9
addl $-0x21, %ecx
cmpl $0xd, %ecx
ja 0x8bd4
leaq 0xb1df(%rip), %rdx      # 0x139f8
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movzwl (%rbx), %ecx
leal 0xa(%rcx), %edx
xorl %r12d, %r12d
cmpl %ebp, %edx
jge 0x8c17
leal 0x1(%rsi), %edx
movl %edx, (%r14)
cmpl %eax, %edx
jge 0x8c17
movw $0x3, (%r15,%rcx,2)
movzwl (%rbx), %edx
leal 0x4(%rdx), %ecx
movw %cx, (%rbx)
movq %rdx, (%rsp)
movw %cx, 0x6(%r15,%rdx,2)
movzwl (%rbx), %ecx
movl $0xffff0001, (%r15,%rcx,2) # imm = 0xFFFF0001
movzwl (%rbx), %edx
addl $0x3, %edx
movw %dx, (%rbx)
movw %dx, 0x4(%r15,%rcx,2)
movzwl (%rbx), %r13d
movw $0x0, (%r15,%r13,2)
movw %cx, 0x2(%r15,%r13,2)
movw $0xffff, 0x4(%r15,%r13,2) # imm = 0xFFFF
movl %eax, %esi
movq %r14, %rdx
movq %r15, %rcx
movl %ebp, %r8d
movq %rbx, %r9
pushq %r11
pushq %r10
callq 0x87d0
addq $0x10, %rsp
testl %eax, %eax
je 0x8c17
movzwl (%rbx), %eax
movw %ax, 0x4(%r15,%r13,2)
movzwl (%rbx), %eax
movw $0xffff, (%r15,%rax,2)  # imm = 0xFFFF
movw %r13w, 0x2(%r15,%rax,2)
movq (%rsp), %rcx
movw %cx, 0x4(%r15,%rax,2)
jmp 0x89ca
cmpl $0x5b, %ecx
jg 0x8964
cmpl $0x3f, %ecx
je 0x8bab
cmpl $0x40, %ecx
je 0x8c29
cmpl $0x5b, %ecx
jne 0x8bd4
incq %rsi
movl %esi, (%r14)
movl %esi, %ecx
subl %eax, %ecx
jge 0x8c14
movslq %eax, %rdx
movq %rsi, %r8
incq %r8
movb $0x1, %r9b
xorl %eax, %eax
xorl %r11d, %r11d
movzwl -0x2(%rdi,%r8,2), %r12d
testl %r11d, %r11d
jne 0x8936
movl $0x1, %r10d
cmpw $0x5c, %r12w
je 0x8949
xorl %r10d, %r10d
testl %r11d, %r11d
jne 0x8949
cmpw $0x5d, %r12w
je 0x8d1d
cmpq %rdx, %r8
setl %r9b
decl %eax
incq %r8
xorl %r12d, %r12d
movl %r10d, %r11d
cmpl %eax, %ecx
jne 0x891e
jmp 0x8c17
cmpl $0x5c, %ecx
je 0x8bca
cmpl $0x5e, %ecx
je 0x8998
cmpl $0x7c, %ecx
jne 0x8bd4
movzwl (%rbx), %eax
leal 0x5(%rax), %ecx
cmpl %ebp, %ecx
jge 0x8c14
movw $0x7, (%r15,%rax,2)
leal 0x1(%rsi), %eax
jmp 0x8c02
movzwl (%rbx), %eax
leal 0x3(%rax), %ecx
cmpl %ebp, %ecx
jge 0x8c14
movw $0xc, (%r15,%rax,2)
jmp 0x89c4
movzwl (%rbx), %eax
leal 0x3(%rax), %ecx
cmpl %ebp, %ecx
jge 0x8c14
movw $0x8, (%r15,%rax,2)
leal 0x1(%rsi), %eax
movl %eax, (%r14)
movzwl (%rbx), %eax
addl $0x3, %eax
jmp 0x8c0b
movzwl (%rbx), %ecx
leal 0x5(%rcx), %edx
xorl %r12d, %r12d
cmpl %ebp, %edx
jge 0x8c17
leal 0x1(%rsi), %edx
movl %edx, (%r14)
cmpl %eax, %edx
jge 0x8c17
movzwl 0x2(%rdi,%rsi,2), %edx
addl $0x2, %esi
cmpw $0x5b, %dx
jne 0x8a4e
movl %esi, (%r14)
cmpl %eax, %esi
setl %r9b
jge 0x8c17
movslq %esi, %r8
cmpw $0x5d, (%rdi,%r8,2)
je 0x8a45
movslq %eax, %r9
negl %eax
leal (%rax,%r8), %esi
cmpl $-0x1, %esi
je 0x8c17
leaq 0x1(%r8), %rsi
cmpw $0x5d, 0x2(%rdi,%r8,2)
movq %rsi, %r8
jne 0x8a21
cmpq %r9, %rsi
setl %r9b
testb %r9b, %r9b
je 0x8c17
movw $0x9, (%r15,%rcx,2)
movl (%r14), %eax
cmpl %esi, %eax
jge 0x8ec5
cltq
movslq %esi, %r9
xorl %esi, %esi
leaq 0xf692(%rip), %r10      # 0x18100
xorl %r8d, %r8d
movzwl (%rdi,%rax,2), %r11d
xorl %ecx, %ecx
movsbl (%rcx,%r10), %ebp
cmpl %r11d, %ebp
je 0x8aa3
incq %rcx
cmpq $0x10, %rcx
jne 0x8a78
xorl %ecx, %ecx
movsbl 0x10(%rcx,%r10), %ebp
cmpl %r11d, %ebp
je 0x8ab1
incq %rcx
cmpq $0x10, %rcx
jne 0x8a8d
jmp 0x8abd
movl $0x1, %r11d
shlq %cl, %r11
orl %r11d, %r8d
jmp 0x8abd
movl $0x1, %r11d
shlq %cl, %r11
orl %r11d, %esi
incq %rax
cmpq %r9, %rax
jne 0x8a71
movl %eax, (%r14)
jmp 0x8eca
movzwl (%rbx), %eax
leal 0x4(%rax), %ecx
cmpl %ebp, %ecx
jge 0x8c14
movw $0x5, (%r15,%rax,2)
jmp 0x8b8f
movzwl (%rbx), %ecx
leal 0xa(%rcx), %edx
xorl %r12d, %r12d
cmpl %ebp, %edx
jge 0x8c17
incq %rsi
movl %esi, (%r14)
cmpl %eax, %esi
jge 0x8c17
movslq %eax, %rdx
movq %rsi, %r8
incq %r8
xorl %r9d, %r9d
movb $0x1, %r10b
xorl %r13d, %r13d
movzwl -0x2(%rdi,%r8,2), %r12d
testl %r13d, %r13d
jne 0x8b30
movl $0x1, %r11d
cmpw $0x5c, %r12w
je 0x8b5f
testl %r13d, %r13d
jne 0x8b44
cmpw $0x28, %r12w
jne 0x8b44
incl %r9d
xorl %r11d, %r11d
jmp 0x8b5f
xorl %r11d, %r11d
testl %r13d, %r13d
jne 0x8b5f
cmpw $0x29, %r12w
jne 0x8b5f
testl %r9d, %r9d
je 0x8ef0
decl %r9d
cmpq %rdx, %r8
setl %r10b
incl %esi
incq %r8
xorl %r12d, %r12d
movl %r11d, %r13d
cmpl %esi, %eax
jne 0x8b18
jmp 0x8c17
movzwl (%rbx), %eax
leal 0x4(%rax), %ecx
cmpl %ebp, %ecx
jge 0x8c14
movw $0x4, (%r15,%rax,2)
movzwl (%r10), %eax
movl %eax, %ecx
incl %ecx
movw %cx, (%r10)
movzwl (%rbx), %ecx
movw %ax, 0x8(%r15,%rcx,2)
incl %esi
movl %esi, (%r14)
jmp 0x8c05
movzwl (%rbx), %eax
leal 0x4(%rax), %ecx
cmpl %ebp, %ecx
jge 0x8c14
movw $0x6, (%r15,%rax,2)
leal 0x1(%rsi), %eax
movl %eax, (%r14)
movzwl (%rbx), %eax
addl $0x4, %eax
jmp 0x8c0b
leal 0x1(%rsi), %ecx
movl %ecx, (%r14)
cmpl %eax, %ecx
jge 0x8c14
movzwl (%rbx), %eax
leal 0x5(%rax), %ecx
cmpl %ebp, %ecx
jge 0x8c14
movw $0xa, (%r15,%rax,2)
movzwl (%rbx), %eax
movw $0x1, 0x6(%r15,%rax,2)
movslq (%r14), %rax
movzwl (%rdi,%rax,2), %ecx
movzwl (%rbx), %edx
movw %cx, 0x8(%r15,%rdx,2)
incl %eax
movl %eax, (%r14)
movzwl (%rbx), %eax
addl $0x5, %eax
movw %ax, (%rbx)
movzwl %ax, %r12d
jmp 0x8c17
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzwl (%rbx), %r13d
leal 0xa(%r13), %ecx
xorl %r12d, %r12d
cmpl %ebp, %ecx
jge 0x8c17
leal 0x1(%rsi), %ecx
movl %ecx, (%r14)
cmpl %eax, %ecx
jge 0x8c17
movzwl 0x2(%rdi,%rsi,2), %ecx
cmpl $0x5b, %ecx
je 0x8dbd
cmpl $0x7b, %ecx
jne 0x8c17
leaq 0x2(%rsi), %r8
movl %r8d, (%r14)
cmpl %eax, %r8d
setl %cl
jge 0x8c17
cmpw $0x7d, 0x4(%rdi,%rsi,2)
movl %r8d, %r9d
je 0x8c96
movslq %eax, %rcx
negl %eax
leal (%rax,%r8), %edx
cmpl $-0x1, %edx
je 0x8c17
leaq 0x1(%r8), %r9
cmpw $0x7d, 0x2(%rdi,%r8,2)
movq %r9, %r8
jne 0x8c74
cmpq %rcx, %r9
setl %cl
movl %r9d, %r8d
testb %cl, %cl
je 0x8c17
movl %r13d, %eax
subl %esi, %eax
addl %r9d, %eax
addl $0x2, %eax
cmpl %ebp, %eax
jge 0x8c17
movw $0xb, (%r15,%r13,2)
movzwl (%rbx), %eax
leaq (%r15,%rax,2), %rcx
addq $0x6, %rcx
movl (%r14), %edx
movw $0x1, %ax
cmpl %r9d, %edx
jge 0x8daa
movslq %edx, %rax
movslq %r8d, %r8
leaq (%rdi,%rax,2), %rdi
subq %rax, %r8
xorl %esi, %esi
movl $0x1, %eax
xorl %r9d, %r9d
movzwl (%rdi,%rsi,2), %r10d
testl %r9d, %r9d
jne 0x8d03
cmpw $0x5c, %r10w
jne 0x8d03
movl $0x1, %r9d
jmp 0x8d10
movslq %eax, %r9
incl %eax
movw %r10w, (%rcx,%r9,2)
xorl %r9d, %r9d
incq %rsi
cmpq %rsi, %r8
jne 0x8cea
jmp 0x8da0
xorl %r12d, %r12d
testb $0x1, %r9b
je 0x8c17
movzwl (%rbx), %ecx
movl %ecx, %edx
subl %eax, %edx
addl $0x4, %edx
cmpl %ebp, %edx
jge 0x8c17
subl %eax, %esi
movw $0xa, (%r15,%rcx,2)
movzwl (%rbx), %eax
leaq (%r15,%rax,2), %rcx
addq $0x6, %rcx
movl (%r14), %edx
movw $0x1, %ax
cmpl %esi, %edx
jge 0x8daa
movslq %edx, %rax
leaq (%rdi,%rax,2), %rdi
movslq %esi, %r8
subq %rax, %r8
xorl %esi, %esi
movl $0x1, %eax
xorl %r9d, %r9d
movzwl (%rdi,%rsi,2), %r10d
testl %r9d, %r9d
jne 0x8d8b
cmpw $0x5c, %r10w
jne 0x8d8b
movl $0x1, %r9d
jmp 0x8d98
movslq %eax, %r9
incl %eax
movw %r10w, (%rcx,%r9,2)
xorl %r9d, %r9d
incq %rsi
cmpq %rsi, %r8
jne 0x8d72
leal (%rdx,%rsi), %edi
addl %edx, %esi
movl %esi, (%r14)
movl %edi, %edx
leal -0x1(%rax), %esi
movw %si, (%rcx)
incl %edx
movl %edx, (%r14)
addw (%rbx), %ax
jmp 0x89cd
leaq 0x2(%rsi), %rcx
movl %ecx, (%r14)
cmpl %eax, %ecx
setl %dl
jge 0x8c17
cmpw $0x5d, 0x4(%rdi,%rsi,2)
movl %ecx, %r8d
je 0x8e05
movslq %eax, %rdx
negl %eax
movq %rcx, %rsi
leal (%rax,%rsi), %r8d
cmpl $-0x1, %r8d
je 0x8c17
leaq 0x1(%rsi), %r8
cmpw $0x5d, 0x2(%rdi,%rsi,2)
movq %r8, %rsi
jne 0x8de2
cmpq %rdx, %r8
setl %dl
testb %dl, %dl
je 0x8c17
movslq %ecx, %rax
leaq (%rdi,%rax,2), %rsi
movq %r8, (%rsp)
movl %r8d, %edx
subl %ecx, %edx
movq %r11, %rdi
callq 0x8f5e
testq %rax, %rax
je 0x8c17
cmpl $0x0, 0x2c(%rax)
jne 0x8c17
movl %r13d, %ecx
movw $0x2, (%r15,%rcx,2)
movzwl (%rbx), %edx
leal 0x4(%rdx), %ecx
movw %cx, (%rbx)
movq %rdx, 0x8(%rsp)
movw %cx, 0x6(%r15,%rdx,2)
movzwl (%rbx), %ecx
movl $0xffff0000, (%r15,%rcx,2) # imm = 0xFFFF0000
movw $0xffff, 0x4(%r15,%rcx,2) # imm = 0xFFFF
leaq 0x14(%rsp), %rdx
movl $0x0, (%rdx)
movl $0x1, 0x2c(%rax)
movq 0x18(%rax), %rdi
movq %rax, %r13
movl 0x28(%rax), %esi
movq %r15, %rcx
movl %ebp, %r8d
movq %rbx, %r9
pushq 0x58(%rsp)
pushq 0x58(%rsp)
callq 0x8213
addq $0x10, %rsp
testl %eax, %eax
je 0x8c17
movl $0x0, 0x2c(%r13)
movq (%rsp), %rax
incl %eax
movl %eax, (%r14)
movzwl (%rbx), %eax
movq 0x8(%rsp), %rcx
jmp 0x88ce
xorl %r8d, %r8d
xorl %esi, %esi
movzwl (%rbx), %ecx
movw %r8w, 0x6(%r15,%rcx,2)
movzwl (%rbx), %ecx
movw %si, 0x8(%r15,%rcx,2)
cmpw $0x5b, %dx
jne 0x8c05
incl %eax
movl %eax, (%r14)
jmp 0x8c05
xorl %r12d, %r12d
testb $0x1, %r10b
je 0x8c17
movw $0x2, (%r15,%rcx,2)
movzwl (%rbx), %r13d
leal 0x4(%r13), %eax
movw %ax, (%rbx)
movw %ax, 0x6(%r15,%r13,2)
movzwl (%rbx), %eax
movl $0xffff0000, (%r15,%rax,2) # imm = 0xFFFF0000
movw $0xffff, 0x4(%r15,%rax,2) # imm = 0xFFFF
movq %r14, %rdx
movq %r15, %rcx
movl %ebp, %r8d
movq %rbx, %r9
pushq 0x58(%rsp)
pushq 0x58(%rsp)
callq 0x8213
addq $0x10, %rsp
testl %eax, %eax
je 0x8c17
incl (%r14)
movzwl (%rbx), %eax
movw %r13w, 0x4(%r15,%rax,2)
jmp 0x89ca