// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/psd.c
// Function: do_descriptor_item_ostype_and_data
static int do_descriptor_item_ostype_and_data(deark *c, lctx *d,
	const struct flexible_id *key_flid, zztype *zz, i64 itempos)
{
	int ret;
	int retval = 0;
	struct de_fourcc type4cc;
	zztype czz;

	psd_read_fourcc_zz(c, d, zz, &type4cc);
	de_dbg(c, "item OSType: '%s'", type4cc.id_dbgstr);

	zz_init(&czz, zz);

	switch(type4cc.id) {
	case CODE_bool:
		do_item_type_bool(c, d, &czz);
		zz->pos += zz_used(&czz);
		break;
	case CODE_long:
		do_item_type_long(c, d, &czz);
		zz->pos += zz_used(&czz);
		break;
	case CODE_doub:
		do_item_type_doub(c, d, &czz);
		zz->pos += zz_used(&czz);
		break;
	case CODE_comp:
		// TODO
		zz->pos += 8;
		break;
	case CODE_UntF:
		do_item_type_UntF(c, d, &czz);
		zz->pos += zz_used(&czz);
		break;
	case CODE_UnFl:
		do_item_type_UnFl(c, d, &czz);
		zz->pos += zz_used(&czz);
		break;
	case CODE_TEXT:
		do_item_type_TEXT(c, d, &czz);
		zz->pos += zz_used(&czz);
		break;
	case CODE_enum:
		do_item_type_enum(c, d, &czz);
		zz->pos += zz_used(&czz);
		break;
	case CODE_VlLs:
		ret = do_item_type_VlLs(c, d, key_flid, &czz, itempos);
		zz->pos += zz_used(&czz);
		if(!ret) goto done;
		break;
	case CODE_Objc:
	case CODE_GlbO:
		ret = do_item_type_descriptor(c, d, &czz, 0);
		zz->pos += zz_used(&czz);
		if(!ret) goto done;
		break;
	case CODE_ObAr:
		// Undocumented type. Appears to contain a versioned descriptor.
		ret = do_item_type_descriptor(c, d, zz, 1);
		zz->pos += zz_used(&czz);
		if(!ret) goto done;
		break;
	case CODE_obj:
		ret = do_item_type_obj(c, d, &czz);
		zz->pos += zz_used(&czz);
		if(!ret) goto done;
		break;
	case CODE_tdta:
		ret = do_item_type_tdta(c, d, key_flid, &czz);
		zz->pos += zz_used(&czz);
		if(!ret) goto done;
		break;
	case CODE_type:
	case CODE_GlbC:
		ret = do_item_type_class(c, d, &czz);
		zz->pos += zz_used(&czz);
		if(!ret) goto done;
		break;
	case CODE_alis:
		ret = do_item_type_alis(c, d, &czz);
		zz->pos += zz_used(&czz);
		if(!ret) goto done;
		break;
		// TODO: 'Pth ' (undocumented type)
	default:
		goto done;
	}

	retval = 1;
done:
	return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %r8, %rbp
movq %rcx, %r15
movq %rdx, 0x38(%rsp)
movq %rsi, %rbx
movq %rdi, %r12
movq 0x18(%rdi), %rdi
movq (%rcx), %rsi
xorl %r8d, %r8d
cmpl $0x0, 0x4(%rbx)
setne %r8b
leaq 0xf8(%rsp), %rdx
movl $0x4, %ecx
callq 0xf1762
addq $0x4, (%r15)
leaq 0x108(%rsp), %r14
leaq 0x8be90(%rip), %rsi     # 0x133adf
movq %r12, %r13
movq %r12, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xe8617
movq (%r15), %r12
movq %r15, (%rsp)
movq 0x10(%r15), %rax
movq %r12, 0x58(%rsp)
movq %r12, 0x50(%rsp)
movq %rax, 0x8(%rsp)
movq %rax, 0x60(%rsp)
movl -0xc(%r14), %eax
cmpl $0x616c6972, %eax       # imm = 0x616C6972
movq %rbx, 0x10(%rsp)
jle 0xa7cd8
cmpl $0x656e756c, %eax       # imm = 0x656E756C
jle 0xa7d1c
cmpl $0x6f626a1f, %eax       # imm = 0x6F626A1F
movq 0x8(%rsp), %r14
movq %r13, %r15
jle 0xa7f88
cmpl $0x6f626a20, %eax       # imm = 0x6F626A20
movl $0x0, %r13d
je 0xa81ad
cmpl $0x74647461, %eax       # imm = 0x74647461
je 0xa8061
cmpl $0x74797065, %eax       # imm = 0x74797065
je 0xa7fec
jmp 0xa8815
movq %rbp, 0x40(%rsp)
cmpl $0x54455853, %eax       # imm = 0x54455853
jg 0xa7d7d
cmpl $0x4f624171, %eax       # imm = 0x4F624171
movq 0x8(%rsp), %rsi
movq %r13, %r15
jg 0xa7e86
cmpl $0x476c6243, %eax       # imm = 0x476C6243
movl $0x0, %r13d
je 0xa7fec
cmpl $0x476c624f, %eax       # imm = 0x476C624F
je 0xa7ea2
jmp 0xa8815
cmpl $0x636f6d6f, %eax       # imm = 0x636F6D6F
movq 0x8(%rsp), %r14
movq %r13, %r15
jg 0xa7e33
cmpl $0x616c6973, %eax       # imm = 0x616C6973
movl $0x0, %r13d
je 0xa8004
cmpl $0x626f6f6c, %eax       # imm = 0x626F6F6C
jne 0xa8815
movq 0x18(%r15), %rdi
movq %r12, %rsi
callq 0xeead3
movzbl %al, %edx
leaq 0x82fc3(%rip), %rsi     # 0x12ad24
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8617
movq %r12, %rax
xorl %r12d, %r12d
cmpq %rax, %r14
setg %r12b
jmp 0xa8805
cmpl $0x556e7445, %eax       # imm = 0x556E7445
movq 0x8(%rsp), %r14
movq %r13, %r15
jg 0xa7f1b
cmpl $0x54455854, %eax       # imm = 0x54455854
movl $0x0, %r13d
je 0xa80ae
cmpl $0x556e466c, %eax       # imm = 0x556E466C
jne 0xa8815
movq 0x18(%r15), %rdi
xorl %r8d, %r8d
cmpl $0x0, 0x4(%rbx)
setne %r8b
leaq 0xa8(%rsp), %rdx
movq %r12, %rsi
movl $0x4, %ecx
callq 0xf1762
movq %rbx, %r13
leaq 0x4(%r12), %rbx
leaq 0xb8(%rsp), %rdx
leaq 0x8bd0a(%rip), %rsi     # 0x133af1
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movl 0x4(%r13), %edx
movq %rbx, %rsi
callq 0xeeff3
movq %rax, %rbx
leaq 0x6adc5(%rip), %rsi     # 0x112bd0
movq %r15, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rcx
movq %r14, %r12
subq %rcx, %r12
jle 0xa8802
leaq (%rcx,%rbx,8), %rax
addq $0x8, %rax
jmp 0xa8040
cmpl $0x636f6d70, %eax       # imm = 0x636F6D70
movl $0x0, %r13d
je 0xa8054
cmpl $0x646f7562, %eax       # imm = 0x646F7562
jne 0xa8815
leaq 0x8(%r12), %rax
movq %r14, %rcx
subq %r12, %rcx
cmpq %r14, %rax
movl $0x8, %eax
cmovgq %rcx, %rax
movq %r12, %rsi
xorl %r12d, %r12d
cmpq %rsi, %r14
movl 0x4(%rbx), %edx
movq 0x18(%r15), %rdi
leaq 0x732a9(%rip), %rbx     # 0x11b126
cmovgq %rax, %r12
jmp 0xa8196
cmpl $0x4f624172, %eax       # imm = 0x4F624172
movl $0x0, %r13d
je 0xa8100
cmpl $0x4f626a63, %eax       # imm = 0x4F626A63
jne 0xa8815
movl 0x10(%rbx), %ecx
leal 0x1(%rcx), %eax
movl %eax, 0x10(%rbx)
movb $0x1, %al
cmpl $0x31, %ecx
jg 0xa7eec
leaq 0x9d1f7(%rip), %r8      # 0x1450b0
leaq 0x50(%rsp), %rbx
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xa7748
testl %eax, %eax
sete %al
movq 0x10(%rsp), %rcx
movl 0x10(%rcx), %ecx
movq 0x8(%rbx), %r12
movq 0x10(%rbx), %rsi
movq 0x10(%rsp), %rbx
decl %ecx
movl %ecx, 0x10(%rbx)
xorl %r13d, %r13d
movq %rsi, %rcx
subq %r12, %rcx
jle 0xa882a
movq 0x50(%rsp), %rdx
cmpq %rsi, %rdx
movq (%rsp), %rsi
jg 0xa8830
subq %r12, %rdx
movq %rdx, %rcx
jmp 0xa8830
cmpl $0x556e7446, %eax       # imm = 0x556E7446
movl $0x0, %r13d
je 0xa811a
cmpl $0x566c4c73, %eax       # imm = 0x566C4C73
jne 0xa8815
movq 0x18(%r15), %rdi
movl 0x4(%rbx), %edx
movq %r12, %rsi
callq 0xeeff3
movq %rax, %rbp
leaq 0x4(%r12), %r14
leaq 0x8bbc2(%rip), %rsi     # 0x133b17
movq %r15, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
cmpq $0x1389, %rbp           # imm = 0x1389
jl 0xa88d5
leaq 0x8bbbe(%rip), %rsi     # 0x133b33
movq %r15, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8faa
movb $0x1, %al
jmp 0xa88dd
cmpl $0x656e756d, %eax       # imm = 0x656E756D
movl $0x0, %r13d
je 0xa8770
cmpl $0x6c6f6e67, %eax       # imm = 0x6C6F6E67
jne 0xa8815
leaq 0x4(%r12), %rax
movq %r14, %rcx
subq %r12, %rcx
cmpq %r14, %rax
movq %r12, %rsi
movl $0x4, %r12d
cmovgq %rcx, %r12
xorl %eax, %eax
cmpq %rsi, %r14
movl 0x4(%rbx), %edx
movq 0x18(%r15), %rdi
cmovleq %rax, %r12
callq 0xef033
leaq 0x82d49(%rip), %rsi     # 0x12ad24
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
jmp 0xa8805
movq %rbx, %rsi
leaq 0x50(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rdx
callq 0xa8a86
jmp 0xa87dc
movl 0x4(%rbx), %edx
movq 0x18(%r15), %rdi
movq %r12, %rsi
callq 0xeeff3
movq %rax, %rbx
leaq 0x8bc39(%rip), %rsi     # 0x133c56
movq %r15, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rcx
movq %r14, %r12
subq %rcx, %r12
jle 0xa8802
leaq (%rcx,%rbx), %rax
addq $0x4, %rax
cmpq %r14, %rax
jg 0xa8805
subq %rcx, %rax
movq %rax, %r12
jmp 0xa8805
addq $0x8, %r12
movq (%rsp), %rdx
jmp 0xa880c
movl 0x4(%rbx), %edx
movq 0x18(%r15), %rdi
movq %r12, %rsi
callq 0xeeff3
movq %rax, %rbx
movq %r14, %r13
leaq 0x4(%r12), %r14
leaq 0x8bb87(%rip), %rsi     # 0x133c09
movq %r15, %rdi
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0xe8617
movq %r12, 0x30(%rsp)
addq %rbx, %r12
addq $0x4, %r12
cmpq %r13, %r12
jle 0xa8839
movq %r14, %rcx
jmp 0xa886e
movq %r15, %rdi
callq 0xf6410
movq %rbx, %rsi
movq %rax, %rbx
leaq 0x50(%rsp), %r14
movq %r15, %rdi
movq %rax, %rdx
movq %r14, %rcx
callq 0xa7614
movq %rbx, %rdi
callq 0xf70f6
leaq 0x6a68d(%rip), %rsi     # 0x11276b
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xf6753
movq 0x8(%r14), %rax
movq 0x10(%r14), %rdx
jmp 0xa87e4
movl 0x10(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x10(%rbx)
cmpl $0x31, %eax
jle 0xa88aa
movl %eax, 0x10(%rbx)
jmp 0xa8815
leaq 0xc(%r12), %rax
movq %r14, %rcx
subq %r12, %rcx
cmpq %r14, %rax
movq %r12, %r13
movl $0xc, %r12d
cmovgq %rcx, %r12
xorl %eax, %eax
cmpq %r13, %r14
cmovleq %rax, %r12
xorl %r8d, %r8d
cmpl $0x0, 0x4(%rbx)
movq 0x18(%r15), %rdi
setne %r8b
leaq 0xb8(%rsp), %rbp
leaq 0x8b995(%rip), %r14     # 0x133af1
leaq 0xa8(%rsp), %rdx
movq %r13, %rsi
movl $0x4, %ecx
callq 0xf1762
addq $0x4, %r13
movq %r15, %rdi
movq %r14, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movl 0x4(%rbx), %edx
leaq 0x72f93(%rip), %rbx     # 0x11b126
movq %r13, %rsi
callq 0xef39e
movq %r15, %rdi
movq %rbx, %rsi
movb $0x1, %al
callq 0xe8617
jmp 0xa8805
leaq 0x4c(%rsp), %rsi
movq %r15, %rdi
callq 0xe8a1c
movq 0x18(%r15), %rdi
movl 0x4(%rbx), %edx
movq %r12, %rsi
callq 0xeeff3
movq %rax, %rbx
movq %r12, 0x30(%rsp)
addq $0x4, %r12
leaq 0x8b995(%rip), %rsi     # 0x133b71
xorl %ebp, %ebp
movq %r15, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, 0x38(%rsp)
testq %rbx, %rbx
jle 0xa8a47
leaq 0x80(%rsp), %r13
xorl %ebp, %ebp
movq %r12, %rbx
cmpq %r14, %r12
jge 0xa8a41
movq 0x18(%r15), %rdi
xorl %r8d, %r8d
movq 0x10(%rsp), %rax
cmpl $0x0, 0x4(%rax)
setne %r8b
movq %rbx, %rsi
leaq 0x70(%rsp), %rdx
movl $0x4, %ecx
callq 0xf1762
leaq 0x4(%rbx), %r12
movq %r15, %rdi
leaq 0x8b950(%rip), %rsi     # 0x133b92
movl %ebp, %edx
movq %r13, %rcx
movl %ebx, %r8d
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r12, 0x20(%rsp)
movq %r12, 0x18(%rsp)
movq %r14, 0x28(%rsp)
movl 0x74(%rsp), %eax
cmpl $0x6e616d64, %eax       # imm = 0x6E616D64
jg 0xa834a
cmpl $0x436c7373, %eax       # imm = 0x436C7373
je 0xa8466
cmpl $0x456e6d72, %eax       # imm = 0x456E6D72
je 0xa858c
cmpl $0x696e6478, %eax       # imm = 0x696E6478
jne 0xa8a3e
movq %r15, %rdi
callq 0xf6410
movq %rax, %rbx
movq %r15, %rdi
movq 0x10(%rsp), %r14
movq %r14, %rsi
movq %rax, %rdx
leaq 0x18(%rsp), %r13
movq %r13, %rcx
callq 0xa7614
movq %rbx, %rdi
callq 0xf70f6
movq %r15, %rdi
leaq 0x8b72a(%rip), %rsi     # 0x1339ff
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xf6423
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
leaq 0xa8(%rsp), %r13
movq %r13, %rcx
callq 0xa7a77
movq %r15, %rdi
movq %r13, %rsi
leaq 0x8b8b5(%rip), %rdx     # 0x133bc2
callq 0xa7b69
movq %r15, %rdi
movq %r13, %rsi
callq 0xa7bb5
movq 0x18(%r15), %rdi
movl 0x4(%r14), %edx
movq 0x18(%rsp), %r14
movq %r14, %rsi
callq 0xef033
addq $0x4, %r14
movq %r14, 0x18(%rsp)
movq %r15, %rdi
leaq 0x8b8af(%rip), %rsi     # 0x133bf4
jmp 0xa8413
cmpl $0x6e616d65, %eax       # imm = 0x6E616D65
je 0xa84a1
cmpl $0x70726f70, %eax       # imm = 0x70726F70
je 0xa8659
cmpl $0x72656c65, %eax       # imm = 0x72656C65
jne 0xa8a3e
movq %r15, %rdi
callq 0xf6410
movq %rax, %rbx
movq %r15, %rdi
movq 0x10(%rsp), %r14
movq %r14, %rsi
movq %rax, %rdx
leaq 0x18(%rsp), %r13
movq %r13, %rcx
callq 0xa7614
movq %rbx, %rdi
callq 0xf70f6
movq %r15, %rdi
leaq 0x8b65c(%rip), %rsi     # 0x1339ff
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xf6423
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
leaq 0xa8(%rsp), %r13
movq %r13, %rcx
callq 0xa7a77
movq %r15, %rdi
movq %r13, %rsi
leaq 0x8b63c(%rip), %rdx     # 0x133a17
callq 0xa7b69
movq %r15, %rdi
movq %r13, %rsi
callq 0xa7bb5
movq 0x18(%r15), %rdi
movl 0x4(%r14), %edx
movq 0x18(%rsp), %r14
movq %r14, %rsi
callq 0xef033
addq $0x4, %r14
movq %r14, 0x18(%rsp)
movq %r15, %rdi
leaq 0x87ccf(%rip), %rsi     # 0x1300e2
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xf6753
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
jle 0xa8452
cmpq %rdx, %r14
leaq 0x80(%rsp), %r13
jg 0xa8744
subq %rcx, %r14
movq %r14, %rax
jmp 0xa8744
xorl %eax, %eax
movq 0x8(%rsp), %r14
leaq 0x80(%rsp), %r13
jmp 0xa8749
movq %r15, %rdi
movq 0x10(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0xa8a86
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rsi
movq %rsi, %rax
subq %rcx, %rax
jle 0xa876c
movq 0x18(%rsp), %rdx
cmpq %rsi, %rdx
jle 0xa8732
jmp 0xa8749
movq %r15, %rdi
callq 0xf6410
movq %rax, %rbx
movq %r15, %rdi
movq 0x10(%rsp), %r13
movq %r13, %rsi
movq %rax, %rdx
leaq 0x18(%rsp), %r14
movq %r14, %rcx
callq 0xa7614
movq %rbx, %rdi
callq 0xf70f6
movq %r15, %rdi
leaq 0x8b526(%rip), %rsi     # 0x1339ff
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xf6423
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
leaq 0xa8(%rsp), %r14
movq %r14, %rcx
callq 0xa7a77
movq %r15, %rdi
movq %r14, %rsi
leaq 0x8b6b1(%rip), %rdx     # 0x133bc2
callq 0xa7b69
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7bb5
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
leaq 0x18(%rsp), %rcx
callq 0xa7614
movq %rbx, %rdi
callq 0xf70f6
movq %r15, %rdi
leaq 0x8b68c(%rip), %rsi     # 0x133bd2
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xf6753
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rsi
movq %rsi, %rax
subq %rcx, %rax
jle 0xa873a
movq 0x18(%rsp), %rdx
cmpq %rsi, %rdx
movq 0x8(%rsp), %r14
jg 0xa8459
subq %rcx, %rdx
movq %rdx, %rax
jmp 0xa8459
movq %r15, %rdi
callq 0xf6410
movq %rax, %rbx
movq %r15, %rdi
movq 0x10(%rsp), %r13
movq %r13, %rsi
movq %rax, %rdx
leaq 0x18(%rsp), %r14
movq %r14, %rcx
callq 0xa7614
movq %rbx, %rdi
callq 0xf70f6
movq %r15, %rdi
leaq 0x8b43b(%rip), %rsi     # 0x1339ff
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
leaq 0xa8(%rsp), %r14
movq %r14, %rcx
callq 0xa7a77
movq %r15, %rdi
movq %r14, %rsi
leaq 0x8b423(%rip), %rdx     # 0x133a17
callq 0xa7b69
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7bb5
movq %r15, %rdi
movq %r13, %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rcx
callq 0xa7a77
movq %r15, %rdi
movq %r14, %rsi
leaq 0x8b58c(%rip), %rdx     # 0x133bb0
callq 0xa7b69
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7bb5
movq %r15, %rdi
movq %r13, %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rcx
callq 0xa7a77
movq %r15, %rdi
movq %r14, %rsi
leaq 0x8b563(%rip), %rdx     # 0x133bb7
jmp 0xa86f1
movq %r15, %rdi
callq 0xf6410
movq %rax, %rbx
movq %r15, %rdi
movq 0x10(%rsp), %r13
movq %r13, %rsi
movq %rax, %rdx
leaq 0x18(%rsp), %r14
movq %r14, %rcx
callq 0xa7614
movq %rbx, %rdi
callq 0xf70f6
movq %r15, %rdi
leaq 0x8b36e(%rip), %rsi     # 0x1339ff
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
leaq 0xa8(%rsp), %r14
movq %r14, %rcx
callq 0xa7a77
movq %r15, %rdi
movq %r14, %rsi
leaq 0x8b356(%rip), %rdx     # 0x133a17
callq 0xa7b69
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7bb5
movq %r15, %rdi
movq %r13, %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rcx
callq 0xa7a77
movq %r15, %rdi
movq %r14, %rsi
leaq 0x8b4cb(%rip), %rdx     # 0x133bbc
callq 0xa7b69
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7bb5
movq %rbx, %rdi
callq 0xf6753
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rsi
movq %rsi, %rax
subq %rcx, %rax
jle 0xa873a
movq 0x18(%rsp), %rdx
cmpq %rsi, %rdx
leaq 0x80(%rsp), %r13
movq 0x8(%rsp), %r14
jg 0xa8749
subq %rcx, %rdx
movq %rdx, %rax
jmp 0xa8749
xorl %eax, %eax
leaq 0x80(%rsp), %r13
movq 0x8(%rsp), %r14
addq %rax, %r12
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
incq %rbp
cmpq %rbp, 0x38(%rsp)
jne 0xa8202
jmp 0xa8910
xorl %eax, %eax
jmp 0xa8749
movq %rbx, %r12
leaq 0x50(%rsp), %rbx
leaq 0xa8(%rsp), %r14
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xa7a77
leaq 0x8b36a(%rip), %rdx     # 0x133b02
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7b69
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7bb5
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xa7a77
leaq 0x8b346(%rip), %rdx     # 0x133b0c
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7b69
movq %r15, %rdi
movq %r14, %rsi
callq 0xa7bb5
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rdx
movq %rdx, %r12
subq %rax, %r12
jle 0xa8802
movq 0x50(%rsp), %rcx
cmpq %rdx, %rcx
movq (%rsp), %rdx
jg 0xa8809
subq %rax, %rcx
movq %rcx, %r12
jmp 0xa8809
xorl %r12d, %r12d
movq (%rsp), %rdx
addq (%rdx), %r12
movq %r12, (%rdx)
movl $0x1, %r13d
movl %r13d, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ecx, %ecx
movq (%rsp), %rsi
addq %rcx, (%rsi)
testb %al, %al
je 0xa880f
jmp 0xa8815
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rdi
movq %r12, %rcx
testq %rdi, %rdi
je 0xa886e
leaq 0x8b3d0(%rip), %rsi     # 0x133c21
callq 0x181a0
movq %r12, %rcx
testl %eax, %eax
jne 0xa886e
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xa8b18
movq %r12, %rcx
xorl %r13d, %r13d
movq 0x8(%rsp), %rdx
movq %rdx, %rax
subq 0x30(%rsp), %rax
jle 0xa8893
cmpq %rdx, %rcx
movq (%rsp), %rsi
jg 0xa8899
subq 0x30(%rsp), %rcx
movq %rcx, %rax
jmp 0xa8899
xorl %eax, %eax
movq (%rsp), %rsi
addq %rax, (%rsi)
cmpq %rdx, %r12
jle 0xa880f
jmp 0xa8815
leaq 0x9c7ff(%rip), %r8      # 0x1450b0
movq %r15, %rdi
movq %rbx, %rsi
movq (%rsp), %rdx
movl $0x1, %ecx
callq 0xa7748
decl 0x10(%rbx)
testl %eax, %eax
jne 0xa880f
jmp 0xa8815
movb $0x1, %al
cmpl $0x32, 0x10(%rbx)
jle 0xa8917
movq (%rsp), %r9
xorl %r13d, %r13d
movq 0x8(%rsp), %rdx
movq %rdx, %rcx
subq %r12, %rcx
jle 0xa88fe
cmpq %rdx, %r14
jg 0xa8900
subq %r12, %r14
movq %r14, %rcx
jmp 0xa8900
xorl %ecx, %ecx
addq %rcx, (%r9)
testb %al, %al
je 0xa880f
jmp 0xa8815
xorl %ebp, %ebp
jmp 0xa8a47
testq %rbp, %rbp
movq (%rsp), %r9
jle 0xa8a2a
movq %r15, 0xa0(%rsp)
xorl %r13d, %r13d
movq 0x40(%rsp), %r8
movq %r12, 0x30(%rsp)
movq %rbp, 0x68(%rsp)
movq 0xa0(%rsp), %r15
movq 0x10(%rsp), %rbx
movq %r9, %r12
movq %r15, %rdi
leaq 0x8b1fc(%rip), %rsi     # 0x133b54
movl %r13d, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8a15
incl 0x10(%rbx)
movq %r14, 0xb0(%rsp)
movq %r14, 0xa8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
movq 0x38(%rsp), %rdx
leaq 0xa8(%rsp), %rcx
movq %r14, %r8
callq 0xa7bf6
movl %eax, %ebp
decl 0x10(%rbx)
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
testl %ebp, %ebp
sete %al
je 0xa8a31
movq 0xb0(%rsp), %rdx
movq 0xb8(%rsp), %rdi
movq %rdi, %rcx
subq %rdx, %rcx
movq %r12, %r9
jle 0xa8a05
movq 0xa8(%rsp), %rsi
cmpq %rdi, %rsi
movq 0x30(%rsp), %r12
movq 0x40(%rsp), %r8
movq 0x68(%rsp), %rbp
jg 0xa8a16
subq %rdx, %rsi
movq %rsi, %rcx
jmp 0xa8a16
xorl %ecx, %ecx
movq 0x30(%rsp), %r12
movq 0x40(%rsp), %r8
movq 0x68(%rsp), %rbp
addq %rcx, %r14
incq %r13
cmpq %r13, %rbp
jne 0xa894b
jmp 0xa88e1
xorl %eax, %eax
jmp 0xa88e1
movq %r12, %r9
movq 0x30(%rsp), %r12
jmp 0xa88e1
movq %r12, %rbx
movb $0x1, %bpl
movq %rbx, %r12
movl 0x4c(%rsp), %esi
movq %r15, %rdi
callq 0xe8a25
xorl %r13d, %r13d
movq %r14, %rax
subq 0x30(%rsp), %rax
jle 0xa8a6f
cmpq %r14, %r12
jg 0xa8a71
subq 0x30(%rsp), %r12
movq %r12, %rax
jmp 0xa8a71
xorl %eax, %eax
movq (%rsp), %rcx
addq %rax, (%rcx)
testb %bpl, %bpl
je 0xa880f
jmp 0xa8815