// File: /workspace/github_c_makefile_star2_O1/Oric4ever[P]lcc65/6502/build/../src/decl.c
// Function: type
static Type type(int lev, int *sclass) {
	int cls, cons, *p, sign, size, tt, type, vol;
	Type ty = 0;

	if (sclass == 0)
		cls = AUTO;
	else
		*sclass = 0;
	for (vol = cons = sign = size = type = 0;;) {
		p = &type;
		tt = t;
		switch (t) {
		case AUTO: case REGISTER: case STATIC:
		case EXTERN: case TYPEDEF:
			p = sclass ? sclass : &cls;
			break;
		case CONST:
			p = &cons;
			break;
		case VOLATILE:
			p = &vol;
			break;
		case SIGNED: case UNSIGNED:
			p = &sign;
			break;
		case LONG: case SHORT:
			p = &size;
			break;
		case VOID: case CHAR: case INT: case FLOAT: case DOUBLE:
			ty = tsym->type;
			break;
		case ENUM:
			ty = enumdecl();
			break;
		case STRUCT: case UNION:
			ty = structdcl(t);
			break;
		case ID:
			if (tsym && tsym->sclass == TYPEDEF
			&& type == 0 && size == 0 && sign == 0) {
				use(tsym, src);
				ty = tsym->type;
				t = tt = ty->op;
				break;
			}
			/* fall through */
		default:
			p = 0;
		}
		if (p == 0)
			break;
		if (*p)
			error("invalid use of `%k'\n", tt);
		*p = tt;
		if (t == tt)
			t = gettok();
	}
	if (sclass && *sclass
	&& (lev == 0
	||  lev == PARAM  && *sclass != REGISTER
	||  lev == GLOBAL && *sclass == REGISTER))
		error("invalid use of `%k'\n", *sclass);
	if (type == 0) {
		type = INT;
		ty = inttype;
	}
	if (size == SHORT && type != INT
	||  size == LONG  && type != INT && type != DOUBLE
	||  sign && type != INT && type != CHAR)
		error("invalid type specification\n");
	if (type == CHAR && sign)
		ty = sign == UNSIGNED ? unsignedchar : signedchar;
	else if (size == SHORT)
		ty = sign == UNSIGNED ? unsignedshort : shorttype;
	else if (size == LONG && type == DOUBLE)
		ty = longdouble;
	else if (size == LONG)
		ty = sign == UNSIGNED ? unsignedlong : longtype;
	else if (sign == UNSIGNED && type == INT)
		ty = unsignedtype;
	if (cons == CONST)
		ty = qual(CONST, ty);
	if (vol == VOLATILE)
		ty = qual(VOLATILE, ty);
	return ty;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
testq %rsi, %rsi
movl %edi, 0x38(%rsp)
movq %rsi, 0x58(%rsp)
je 0x6ba0
movl $0x0, (%rsi)
movq %rsi, %r13
jmp 0x6bad
leaq 0x64(%rsp), %r13
movl $0x43, (%r13)
xorl %eax, %eax
leaq 0xc(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x1c(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x20(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x34(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x30(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x24e07(%rip), %r12     # 0x2b9e0
xorl %ebx, %ebx
movq %r13, 0x28(%rsp)
movl (%r12), %edx
leal -0x1(%rdx), %eax
cmpl $0x1f, %eax
ja 0x6c14
leaq 0x17705(%rip), %rcx     # 0x1e2f8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x24d4d(%rip), %rax     # 0x2b950
movq (%rax), %rax
movq 0x20(%rax), %rbx
leaq 0xc(%rsp), %r14
jmp 0x76bd
leal -0x43(%rdx), %eax
cmpl $0x10, %eax
ja 0x6cde
movl $0x14881, %ecx          # imm = 0x14881
btl %eax, %ecx
jae 0x6c79
movq %r13, %r14
jmp 0x76bd
movq %rdx, 0x10(%rsp)
callq 0xe1c6
movl %eax, (%r12)
cmpl $0x20, %eax
jne 0x6d28
leaq 0x24cf8(%rip), %rax     # 0x2b948
movq (%rax), %r14
leaq 0x24cde(%rip), %rax     # 0x2b938
movq (%rax), %rbp
movq 0x8(%rax), %r15
callq 0xe1c6
movl %eax, (%r12)
jmp 0x6d37
leaq 0x1c(%rsp), %r14
jmp 0x76bd
cmpl $0xd, %eax
jne 0x6cde
leaq 0x20(%rsp), %r14
jmp 0x76bd
leaq 0x24cc1(%rip), %rax     # 0x2b950
movq (%rax), %rdi
testq %rdi, %rdi
je 0x6cde
cmpb $0x53, 0x1a(%rdi)
jne 0x6cde
cmpl $0x0, 0xc(%rsp)
jne 0x6cde
cmpl $0x0, 0x1c(%rsp)
jne 0x6cde
cmpl $0x0, 0x20(%rsp)
jne 0x6cde
leaq 0x24c7f(%rip), %rax     # 0x2b938
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x17906
leaq 0x24c84(%rip), %rax     # 0x2b950
movq (%rax), %rax
movq 0x20(%rax), %rbx
movl (%rbx), %edx
movl %edx, (%r12)
jmp 0x6c0a
xorl %r14d, %r14d
jmp 0x76bd
callq 0xe1c6
movl %eax, (%r12)
cmpl $0x20, %eax
jne 0x7316
leaq 0x24c49(%rip), %rax     # 0x2b948
movq (%rax), %rbx
leaq 0x24c2f(%rip), %rax     # 0x2b938
movq (%rax), %r15
movq 0x8(%rax), %r14
callq 0xe1c6
movl %eax, (%r12)
jmp 0x7325
leaq 0x30(%rsp), %r14
jmp 0x76bd
leaq 0x18e16(%rip), %rdi     # 0x1fb45
callq 0x16c11
movq %rax, %r14
cmpl $0x7b, (%r12)
movq 0x10(%rsp), %rdx
jne 0x7036
movl %edx, %edi
movq %r14, %rsi
callq 0x199a7
movq %rax, %rbx
cmpb $0x0, (%r14)
je 0x6d66
movq 0x18(%rbx), %rax
movq %rbp, 0x28(%rax)
movq %r15, 0x30(%rax)
callq 0xe1c6
movl %eax, (%r12)
movl %eax, %ecx
leaq 0x21808(%rip), %rdx     # 0x28580
cmpb $0x3, (%rdx,%rcx)
jne 0x7530
xorl %r13d, %r13d
movl (%r12), %eax
leaq 0x217f0(%rip), %rcx     # 0x28580
cmpb $0x3, (%rcx,%rax)
je 0x6dbc
cmpl $0x20, %eax
jne 0x7113
leaq 0x24baa(%rip), %rax     # 0x2b950
movq (%rax), %rax
testq %rax, %rax
je 0x7113
cmpb $0x53, 0x1a(%rax)
jne 0x7113
xorl %edi, %edi
xorl %esi, %esi
callq 0x6b79
movq %rax, %rbp
movq $0x0, 0x40(%rsp)
movq %rbp, %rdi
leaq 0x40(%rsp), %rsi
movl $0x1, %edx
callq 0x793a
movq %rax, %r15
testq %rax, %rax
cmoveq %rbp, %r15
leaq 0x24c64(%rip), %rax     # 0x2ba58
cmpl $0x0, (%rax)
jle 0x6e13
movq %r15, %rdi
callq 0x1980d
testl %eax, %eax
jne 0x6e13
leaq 0x175d3(%rip), %rdi     # 0x1e3df
xorl %eax, %eax
callq 0x9be3
movq 0x40(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1988c
movq %rax, %r14
cmpl $0x3a, (%r12)
jne 0x6efb
cmpl $0xf, (%r15)
jb 0x6e3b
movq 0x10(%r15), %r15
cmpl $0xf, (%r15)
movq %r15, %rax
jb 0x6e48
movq 0x10(%r15), %rax
cmpl $0xd, (%rax)
jne 0x6e51
movq 0x10(%r15), %r15
leaq 0x2b140(%rip), %rax     # 0x31f98
cmpq (%rax), %r15
je 0x6e89
leaq 0x2b174(%rip), %rax     # 0x31fd8
cmpq (%rax), %r15
je 0x6e89
movq 0x8(%r14), %rsi
leaq 0x17b6d(%rip), %rdi     # 0x1e9e1
xorl %eax, %eax
callq 0x9720
leaq 0x2b116(%rip), %rax     # 0x31f98
movq (%rax), %rax
movq %rax, 0x8(%r14)
callq 0xe1c6
movl %eax, (%r12)
xorl %edi, %edi
xorl %esi, %esi
callq 0xb2c3
movw %ax, 0x16(%r14)
movswl %ax, %ecx
testl %ecx, %ecx
js 0x6f1f
leaq 0x2b0ea(%rip), %rdx     # 0x31f98
movq (%rdx), %rdx
movl 0x8(%rdx), %edx
shll $0x3, %edx
cmpl %edx, %ecx
jg 0x6f1f
shll $0x10, %eax
sete %al
movq 0x40(%rsp), %rdx
testq %rdx, %rdx
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x6f45
movq 0x8(%r14), %rsi
leaq 0x17b49(%rip), %rdi     # 0x1ea27
xorl %eax, %eax
callq 0x9be3
movl $0x1, %edi
callq 0x1769a
movl %eax, %edi
callq 0x16e2f
movq %rax, (%r14)
jmp 0x6f45
movq 0x40(%rsp), %rdx
testq %rdx, %rdx
je 0x6f81
movq 0x8(%r14), %rsi
cmpl $0x0, 0x8(%rsi)
jne 0x6f4a
leaq 0x17b99(%rip), %rdi     # 0x1eaaf
xorl %eax, %eax
callq 0x9720
jmp 0x6f4a
movswl %ax, %esi
leaq 0x17adb(%rip), %rdi     # 0x1ea04
xorl %eax, %eax
callq 0x9720
leaq 0x2b061(%rip), %rax     # 0x31f98
movq (%rax), %rax
movl 0x8(%rax), %eax
shll $0x3, %eax
movw %ax, 0x16(%r14)
incw 0x16(%r14)
incl %r13d
leaq 0x24b04(%rip), %rax     # 0x2ba58
cmpl $0x2, (%rax)
setge %al
cmpl $0x80, %r13d
sete %cl
andb %al, %cl
movb $0x1, %r14b
cmpb $0x1, %cl
jne 0x6fe5
leaq 0x17b5c(%rip), %rdi     # 0x1ead1
movq %rbx, %rsi
xorl %eax, %eax
callq 0x9be3
jmp 0x6fe5
movq 0x8(%r14), %rax
movl (%rax), %ecx
movq %rax, %rsi
cmpl $0xf, %ecx
jb 0x6f93
movq 0x10(%rax), %rsi
cmpl $0x9, (%rsi)
je 0x6fa6
cmpl $0xf, %ecx
jb 0x6fa1
movq 0x10(%rax), %rax
cmpl $0xa, (%rax)
jne 0x7004
leaq 0x24aab(%rip), %rax     # 0x2ba58
cmpl $0x2, (%rax)
jl 0x6fc3
leaq 0x17a9c(%rip), %rdi     # 0x1ea55
movq %rbx, %rsi
xorl %eax, %eax
callq 0x9be3
movq 0x8(%r14), %rsi
cmpl $0x0, 0x8(%rsi)
jne 0x6fdb
leaq 0x17aa8(%rip), %rdi     # 0x1ea7c
xorl %eax, %eax
callq 0x9720
movq $0x0, (%r14)
xorl %r14d, %r14d
testb %r14b, %r14b
je 0x7020
cmpl $0x2c, (%r12)
jne 0x7020
callq 0xe1c6
movl %eax, (%r12)
testl %eax, %eax
jne 0x6dc8
jmp 0x7020
testq %rdx, %rdx
jne 0x6f05
leaq 0x17a87(%rip), %rdi     # 0x1ea9b
xorl %eax, %eax
callq 0x9720
jmp 0x6f4a
movl $0x3b, %edi
leaq 0x2111d(%rip), %rsi     # 0x28149
callq 0x9bab
jmp 0x6d85
cmpb $0x0, (%r14)
je 0x70ba
leaq 0x226cd(%rip), %rax     # 0x29710
movq (%rax), %rsi
movq %r14, %rdi
callq 0x173d9
movq 0x10(%rsp), %rdx
testq %rax, %rax
je 0x70ba
movq %rax, %rbx
movq 0x20(%rax), %rax
cmpl %edx, (%rax)
jne 0x70ba
cmpl $0x3b, (%r12)
jne 0x7088
movzwl 0x18(%rbx), %eax
leaq 0x27cbb(%rip), %rcx     # 0x2ed30
cmpl %eax, (%rcx)
jle 0x7088
movl %edx, %edi
movq %r14, %rsi
callq 0x199a7
movq 0x10(%rsp), %rdx
leaq 0x249a5(%rip), %rax     # 0x2ba34
cmpl $0x0, (%rax)
je 0x70a7
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x17906
movq 0x10(%rsp), %rdx
movq 0x20(%rbx), %rbx
jmp 0x6c0a
leaq 0x34(%rsp), %r14
jmp 0x76bd
cmpb $0x0, (%r14)
jne 0x70d8
leaq 0x1790a(%rip), %rdi     # 0x1e9d1
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x9720
movq 0x10(%rsp), %rdx
movl %edx, %edi
movq %r14, %rsi
callq 0x199a7
movq %rax, %rbx
cmpb $0x0, (%r14)
je 0x76b3
leaq 0x2493e(%rip), %rax     # 0x2ba34
cmpl $0x0, (%rax)
je 0x76b3
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x17906
jmp 0x76b3
movw $0x1, 0x4(%rbx)
movq 0x18(%rbx), %rdx
movq 0x58(%rdx), %rsi
addq $0x58, %rdx
testq %rsi, %rsi
je 0x75fd
xorl %eax, %eax
xorl %ecx, %ecx
xorl %edi, %edi
movq 0x28(%rsp), %r13
movq 0x8(%rsi), %r8
movl 0x4(%r8), %r9d
cmpw $0x1, %r9w
adcl $0x0, %r9d
movswl %r9w, %r10d
movl (%rbx), %r9d
cmpl $0xa, %r9d
jne 0x7178
xorl %edi, %edi
cmpw $0x0, 0x16(%rsi)
je 0x7211
leaq 0x2ae6d(%rip), %r10     # 0x31fd8
movq (%r10), %r10
movswl 0x4(%r10), %r10d
jmp 0x7211
testl %edi, %edi
je 0x71da
movswl 0x16(%rsi), %r11d
cmpl $0x2, %r11d
jl 0x71a4
addl %edi, %r11d
addl $-0x2, %r11d
leaq 0x2ae43(%rip), %r14     # 0x31fd8
movq (%r14), %r14
movl 0x8(%r14), %ebp
shll $0x3, %ebp
cmpl %ebp, %r11d
jle 0x7211
leal 0x6(%rdi), %r11d
addl $0xd, %edi
testl %r11d, %r11d
cmovnsl %r11d, %edi
sarl $0x3, %edi
movl %edi, %r11d
xorl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
cmpl %r11d, %ecx
movl $0x1, %r11d
cmovgl %r11d, %eax
movl $0x0, %r11d
cmovgl %r11d, %edi
addl %ecx, %edi
movl %edi, %ecx
cmpw $0x0, 0x16(%rsi)
je 0x71f0
leaq 0x2adf0(%rip), %rdi     # 0x31fd8
movq (%rdi), %rdi
movswl 0x4(%rdi), %r10d
movl $0x80000000, %edi       # imm = 0x80000000
subl %r10d, %edi
cmpl %edi, %ecx
movl $0x1, %edi
cmovgl %edi, %eax
leal (%rcx,%r10), %edi
decl %edi
movl %r10d, %ecx
negl %ecx
andl %edi, %ecx
xorl %edi, %edi
movswl 0x4(%rbx), %r11d
cmpl %r11d, %r10d
jle 0x7220
movw %r10w, 0x4(%rbx)
movl %ecx, 0x10(%rsi)
movzwl 0x16(%rsi), %r10d
testw %r10w, %r10w
je 0x7280
cmpl $0x1, %edi
movl %edi, %r11d
adcl $0x0, %r11d
leal -0x1(%r11), %edi
addl %r11d, %r10d
addl $-0x2, %r10d
movswl %r10w, %r10d
movswl %di, %ebp
movw %bp, 0x14(%rsi)
movw %r10w, 0x16(%rsi)
movl %r10d, %edi
subl %ebp, %edi
addl %r11d, %edi
cmpl $0xa, %r9d
jne 0x72bd
leal 0x6(%rdi), %r10d
leal 0xd(%rdi), %r9d
testl %r10d, %r10d
cmovnsl %r10d, %r9d
sarl $0x3, %r9d
cmpl 0x8(%rbx), %r9d
jle 0x72bd
movl %r9d, 0x8(%rbx)
jmp 0x72bd
movl 0x8(%r8), %r10d
cmpl $0x9, %r9d
jne 0x72b3
movl %r10d, %r9d
xorl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
cmpl %r9d, %ecx
movl $0x1, %r9d
cmovgl %r9d, %eax
movl $0x0, %r9d
cmovgl %r9d, %r10d
addl %ecx, %r10d
movl %r10d, %ecx
jmp 0x72bd
cmpl 0x8(%rbx), %r10d
jle 0x72bd
movl %r10d, 0x8(%rbx)
movl (%r8), %r8d
orl $0x10, %r8d
cmpl $0x1f, %r8d
jne 0x72d3
movq 0x18(%rbx), %r8
orb $0x1, 0x48(%r8)
movq 0x8(%rsi), %r8
movl (%r8), %r8d
cmpl $0x1f, %r8d
je 0x72e6
cmpl $0x10, %r8d
jne 0x72ef
movq 0x18(%rbx), %r8
orb $0x2, 0x48(%r8)
movq (%rsi), %r8
testq %r8, %r8
je 0x72fd
cmpb $0x3a, (%r8)
jl 0x7304
movq %rsi, (%rdx)
leaq 0x18(%rsi), %rdx
movq 0x18(%rsi), %rsi
testq %rsi, %rsi
jne 0x7139
jmp 0x7608
leaq 0x18828(%rip), %rdi     # 0x1fb45
callq 0x16c11
movq %rax, %rbx
cmpl $0x7b, (%r12)
jne 0x74e5
movl $0xd, %edi
movq %rbx, %rsi
callq 0x199a7
movq %rax, %rbx
callq 0xe1c6
movl %eax, (%r12)
cmpl $0x20, %eax
je 0x735c
leaq 0x17595(%rip), %rdi     # 0x1e8ea
xorl %eax, %eax
callq 0x9720
cmpl $0x20, (%r12)
jne 0x75ad
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x7f, 0x3c(%rsp)
xorl %r15d, %r15d
leaq 0x245ca(%rip), %rax     # 0x2b948
movq (%rax), %rax
movq %rax, 0x10(%rsp)
leaq 0x245c3(%rip), %rax     # 0x2b950
movq (%rax), %rdx
testq %rdx, %rdx
je 0x73bb
movzwl 0x18(%rdx), %eax
leaq 0x27990(%rip), %rcx     # 0x2ed30
cmpl %eax, (%rcx)
jne 0x73bb
addq $0x28, %rdx
leaq 0x17117(%rip), %rdi     # 0x1e4c6
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x9720
leaq 0x24576(%rip), %rax     # 0x2b938
movups (%rax), %xmm0
movaps %xmm0, 0x40(%rsp)
callq 0xe1c6
movl %eax, (%r12)
cmpl $0x3d, %eax
jne 0x73ee
callq 0xe1c6
movl %eax, (%r12)
xorl %edi, %edi
xorl %esi, %esi
callq 0xb2c3
movl %eax, %ebp
jmp 0x740a
cmpl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
jne 0x7408
movq 0x10(%r14), %rsi
leaq 0x1750d(%rip), %rdi     # 0x1e90e
xorl %eax, %eax
callq 0x9720
incl %ebp
movl 0x24(%rsp), %eax
cmpl %r13d, %ebp
cmovll %ebp, %r13d
cmpl %eax, %ebp
cmovgl %ebp, %eax
testq %r15, %r15
cmovel %ebp, %r13d
cmovel %ebp, %eax
movl %eax, 0x24(%rsp)
xorl %edx, %edx
leaq 0x278ff(%rip), %rax     # 0x2ed30
cmpl $0x5, (%rax)
setl %dl
movq 0x10(%rsp), %rdi
leaq 0x21ea5(%rip), %rsi     # 0x292e8
callq 0x17429
movq %rax, %r14
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x28(%rax)
movq %rbx, 0x20(%rax)
movb $0xd, 0x1a(%rax)
movl %ebp, 0x48(%rax)
movq %rax, %rdi
movq %r15, %rsi
callq 0x16aec
movq %rax, %r15
leaq 0x245e4(%rip), %rax     # 0x2ba58
cmpl $0x2, (%rax)
setge %al
subl $0x1, 0x3c(%rsp)
setb %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x749a
leaq 0x174af(%rip), %rdi     # 0x1e93f
movq %rbx, %rsi
xorl %eax, %eax
callq 0x9be3
cmpl $0x2c, (%r12)
jne 0x75b0
callq 0xe1c6
movl %eax, (%r12)
leaq 0x245a3(%rip), %rcx     # 0x2ba58
cmpl $0x2, (%rcx)
setge %cl
cmpl $0x7d, %eax
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x74d5
leaq 0x1749e(%rip), %rdi     # 0x1e96c
xorl %eax, %eax
callq 0x9be3
cmpl $0x20, (%r12)
je 0x7377
jmp 0x75b0
leaq 0x22224(%rip), %rax     # 0x29710
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x173d9
testq %rax, %rax
je 0x7574
movq %rax, %rbp
movq 0x20(%rax), %rax
cmpl $0xd, (%rax)
jne 0x7574
cmpb $0x0, (%rbx)
je 0x7527
leaq 0x24520(%rip), %rax     # 0x2ba34
cmpl $0x0, (%rax)
je 0x7527
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x17906
movq 0x20(%rbp), %rbx
jmp 0x77b1
cmpl $0x20, %eax
sete %cl
leaq 0x24413(%rip), %rax     # 0x2b950
movq (%rax), %rax
testq %rax, %rax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x7557
cmpb $0x53, 0x1a(%rax)
je 0x6d82
leaq 0x17454(%rip), %rdi     # 0x1e9b2
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x9720
movq 0x28(%rsp), %r13
jmp 0x769a
leaq 0x1741d(%rip), %rdi     # 0x1e998
movq %rbx, %rsi
xorl %eax, %eax
callq 0x9720
movl $0xd, %edi
movq %rbx, %rsi
callq 0x199a7
movl $0xd, %edx
movq %rax, %rbx
leaq 0x2a9f7(%rip), %rax     # 0x31f98
movq (%rax), %rax
movq %rax, 0x10(%rbx)
jmp 0x6c0a
xorl %r15d, %r15d
movl $0x7d, %edi
leaq 0x20b88(%rip), %rsi     # 0x28144
callq 0x9bab
testl %r13d, %r13d
movl 0x24(%rsp), %ecx
js 0x75de
cmpl $0xff, %ecx
jg 0x75de
leaq 0x2a9e7(%rip), %rax     # 0x31fc0
jmp 0x7743
cmpl $-0x80, %r13d
jl 0x76fe
cmpl $0x7f, %ecx
jg 0x76fe
leaq 0x2a9c0(%rip), %rax     # 0x31fb8
jmp 0x7743
xorl %edi, %edi
xorl %ecx, %ecx
xorl %eax, %eax
movq 0x28(%rsp), %r13
movq $0x0, (%rdx)
testl %edi, %edi
je 0x763f
leal 0x6(%rdi), %edx
addl $0xd, %edi
testl %edx, %edx
cmovnsl %edx, %edi
sarl $0x3, %edi
movl %edi, %edx
xorl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
cmpl %edx, %ecx
movl $0x1, %edx
cmovgl %edx, %eax
movl $0x0, %edx
cmovgl %edx, %edi
addl %ecx, %edi
movl %edi, %ecx
cmpl $0x9, (%rbx)
je 0x7649
cmpl 0x8(%rbx), %ecx
jle 0x764c
movl %ecx, 0x8(%rbx)
movl 0x8(%rbx), %ecx
movswl 0x4(%rbx), %edx
movl $0x80000000, %esi       # imm = 0x80000000
subl %edx, %esi
leal (%rcx,%rdx), %edi
decl %edi
negl %edx
andl %edi, %edx
movl %edx, 0x8(%rbx)
cmpl %esi, %ecx
jg 0x766e
testl %eax, %eax
je 0x7692
leaq 0x1747a(%rip), %rdi     # 0x1eaef
movq %rbx, %rsi
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
xorl %eax, %eax
callq 0x9720
movswl 0x4(%rbx), %eax
negl %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, 0x8(%rbx)
movq %rbx, %rdi
callq 0x18bd8
movl $0x7d, %edi
leaq 0x20aa0(%rip), %rsi     # 0x28146
callq 0x9bab
movq 0x18(%rbx), %rax
orb $0x1, 0x1b(%rax)
leaq 0xc(%rsp), %r14
movq 0x10(%rsp), %rdx
testq %r14, %r14
je 0x77bb
cmpl $0x0, (%r14)
je 0x76e3
leaq 0x171e6(%rip), %rdi     # 0x1e8b9
movq %rdx, %r15
movl %r15d, %esi
xorl %eax, %eax
callq 0x9720
movq %r15, %rdx
movl %edx, (%r14)
cmpl %edx, (%r12)
jne 0x6be0
callq 0xe1c6
movl %eax, (%r12)
jmp 0x6be0
testl %r13d, %r13d
js 0x771b
cmpl $0xffff, %ecx           # imm = 0xFFFF
jg 0x771b
leaq 0x2a8be(%rip), %rax     # 0x31fd0
movq (%rax), %rax
cmpl $0x1, 0x8(%rax)
jg 0x7746
cmpl $0xffff8000, %r13d      # imm = 0xFFFF8000
jl 0x773c
cmpl $0x7fff, %ecx           # imm = 0x7FFF
jg 0x773c
leaq 0x2a87d(%rip), %rax     # 0x31fb0
movq (%rax), %rax
cmpl $0x1, 0x8(%rax)
jg 0x7746
leaq 0x2a855(%rip), %rax     # 0x31f98
movq (%rax), %rax
movq %rax, 0x10(%rbx)
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rbx)
movzwl 0x4(%rax), %eax
movw %ax, 0x4(%rbx)
movq %r15, %rdi
callq 0x16b69
leal 0x8(,%rax,8), %edi
leaq 0x22002(%rip), %rdx     # 0x29770
movq (%rdx), %rax
movl %edi, (%rax)
movq 0x8(%rax), %rsi
movslq %edi, %rcx
addq %rsi, %rcx
cmpq 0x10(%rax), %rcx
jae 0x7789
movq %rcx, 0x8(%rax)
jmp 0x7794
movq %rdx, %rsi
callq 0x17978
movq %rax, %rsi
movq 0x28(%rsp), %r13
movq %r15, %rdi
callq 0x16b7f
movq 0x18(%rbx), %rcx
movq %rax, 0x48(%rcx)
movq 0x18(%rbx), %rax
orb $0x1, 0x1b(%rax)
movl $0xd, %edx
jmp 0x6c0a
movq 0x58(%rsp), %rax
testq %rax, %rax
movl 0x38(%rsp), %ecx
je 0x7802
movl (%rax), %esi
testl %esi, %esi
je 0x7802
testl %ecx, %ecx
je 0x77f4
cmpl $0x3, %ecx
je 0x77ef
cmpl $0x4, %ecx
jne 0x7802
cmpl $0x4e, %esi
setne %al
cmpl $0x3, %ecx
sete %cl
orb %al, %cl
jne 0x77f4
jmp 0x7802
cmpl $0x4e, %esi
jne 0x7802
leaq 0x170be(%rip), %rdi     # 0x1e8b9
xorl %eax, %eax
callq 0x9720
cmpl $0x0, 0xc(%rsp)
jne 0x781b
movl $0x5, 0xc(%rsp)
leaq 0x2a780(%rip), %rax     # 0x31f98
movq (%rax), %rbx
movl 0x1c(%rsp), %ecx
cmpl $0x4, %ecx
sete %dl
movl 0xc(%rsp), %eax
cmpl $0x5, %eax
setne %sil
testb %sil, %dl
jne 0x7855
cmpl $0xe, %ecx
jne 0x7844
cmpl $0x5, %eax
je 0x7844
cmpl $0x2, %eax
jne 0x7855
cmpl $0x0, 0x20(%rsp)
je 0x7863
cmpl $0x5, %eax
je 0x7863
cmpl $0x3, %eax
je 0x7863
leaq 0x17072(%rip), %rdi     # 0x1e8ce
xorl %eax, %eax
callq 0x9720
movl 0xc(%rsp), %ecx
cmpl $0x3, %ecx
sete %dl
movl 0x20(%rsp), %eax
testl %eax, %eax
setne %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x7895
cmpl $0x6, %eax
leaq 0x2a72e(%rip), %rax     # 0x31fb8
jne 0x78c8
leaq 0x2a72d(%rip), %rax     # 0x31fc0
jmp 0x78c8
movl 0x1c(%rsp), %edx
cmpl $0x4, %edx
jne 0x78b3
cmpl $0x6, %eax
leaq 0x2a708(%rip), %rax     # 0x31fb0
jne 0x78c8
leaq 0x2a71f(%rip), %rax     # 0x31fd0
jmp 0x78c8
movl %edx, %esi
xorl $0xe, %esi
movl %ecx, %edi
xorl $0x2, %edi
orl %esi, %edi
jne 0x790b
leaq 0x2a6d8(%rip), %rax     # 0x31fa0
movq (%rax), %rbx
cmpl $0xf, 0x34(%rsp)
jne 0x78e2
movl $0xf, %edi
movq %rbx, %rsi
callq 0x19015
movq %rax, %rbx
cmpl $0x10, 0x30(%rsp)
jne 0x78f9
movl $0x10, %edi
movq %rbx, %rsi
callq 0x19015
movq %rax, %rbx
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0xe, %edx
jne 0x791e
cmpl $0x6, %eax
jne 0x7931
leaq 0x2a6ac(%rip), %rax     # 0x31fc8
jmp 0x78c8
xorl $0x6, %eax
xorl $0x5, %ecx
orl %eax, %ecx
jne 0x78cb
leaq 0x2a6a9(%rip), %rax     # 0x31fd8
jmp 0x78c8
leaq 0x2a670(%rip), %rax     # 0x31fa8
jmp 0x78c8