// File: /workspace/github_c_makefile_star2_O1/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 $0x108, %rsp            # imm = 0x108
movq %r8, %r14
movq %rcx, %r15
movq %rdx, 0x28(%rsp)
movq %rsi, %rax
movq %rdi, %rbp
movq 0x18(%rdi), %rdi
movq (%rcx), %rsi
xorl %r8d, %r8d
movq %rax, %r13
cmpl $0x0, 0x4(%rax)
setne %r8b
leaq 0xd8(%rsp), %rdx
movl $0x4, %ecx
callq 0xf1d74
addq $0x4, (%r15)
leaq 0xe8(%rsp), %rbx
leaq 0x8b045(%rip), %rsi     # 0x1336e7
xorl %r12d, %r12d
movq %rbp, 0x30(%rsp)
movq %rbp, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xe9226
movq (%r15), %rsi
movq %r15, 0x8(%rsp)
movq 0x10(%r15), %rax
movq %rsi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rax, 0x20(%rsp)
movl -0xc(%rbx), %eax
cmpl $0x616c6972, %eax       # imm = 0x616C6972
jle 0xa871c
cmpl $0x656e756c, %eax       # imm = 0x656E756C
jle 0xa874c
cmpl $0x6f626a1f, %eax       # imm = 0x6F626A1F
movq %r13, %r15
movq 0x30(%rsp), %r14
jle 0xa891e
cmpl $0x6f626a20, %eax       # imm = 0x6F626A20
je 0xa8c18
cmpl $0x74647461, %eax       # imm = 0x74647461
je 0xa8a00
cmpl $0x74797065, %eax       # imm = 0x74797065
je 0xa896e
jmp 0xa920f
cmpl $0x54455853, %eax       # imm = 0x54455853
jg 0xa8797
cmpl $0x4f624171, %eax       # imm = 0x4F624171
movq %r13, %r15
jg 0xa8869
cmpl $0x476c6243, %eax       # imm = 0x476C6243
je 0xa896e
cmpl $0x476c624f, %eax       # imm = 0x476C624F
je 0xa887f
jmp 0xa920f
cmpl $0x636f6d6f, %eax       # imm = 0x636F6D6F
movq 0x30(%rsp), %r14
jg 0xa8832
cmpl $0x616c6973, %eax       # imm = 0x616C6973
je 0xa8990
cmpl $0x626f6f6c, %eax       # imm = 0x626F6F6C
jne 0xa920f
movq 0x30(%rsp), %rbx
movq 0x18(%rbx), %rdi
callq 0xef0d5
incq 0x10(%rsp)
movzbl %al, %edx
leaq 0x822c5(%rip), %rsi     # 0x12aa54
movq %rbx, %rdi
jmp 0xa8958
cmpl $0x556e7445, %eax       # imm = 0x556E7445
movq %r13, %r15
jg 0xa88b0
cmpl $0x54455854, %eax       # imm = 0x54455854
je 0xa8aad
cmpl $0x556e466c, %eax       # imm = 0x556E466C
jne 0xa920f
movq 0x30(%rsp), %rbp
movq 0x18(%rbp), %rdi
xorl %r8d, %r8d
cmpl $0x0, 0x4(%r15)
setne %r8b
leaq 0x58(%rsp), %rdx
movl $0x4, %ecx
callq 0xf1d74
addq $0x4, 0x10(%rsp)
leaq 0x68(%rsp), %rdx
leaq 0x8af08(%rip), %rsi     # 0x1336f9
movq %rbp, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbp), %rdi
movl 0x4(%r15), %edx
movq 0x10(%rsp), %rsi
callq 0xef614
movq %rax, %rbx
addq $0x4, 0x10(%rsp)
leaq 0x6a3a3(%rip), %rsi     # 0x112bc0
movq %rbp, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
shlq $0x3, %rbx
jmp 0xa89b9
cmpl $0x636f6d70, %eax       # imm = 0x636F6D70
je 0xa89f2
cmpl $0x646f7562, %eax       # imm = 0x646F7562
jne 0xa920f
movq 0x30(%rsp), %rbx
movq 0x18(%rbx), %rdi
movl 0x4(%r13), %edx
callq 0xef9cf
leaq 0x7279d(%rip), %rsi     # 0x11affe
movq %rbx, %rdi
jmp 0xa8bd4
cmpl $0x4f624172, %eax       # imm = 0x4F624172
je 0xa8afc
cmpl $0x4f626a63, %eax       # imm = 0x4F626A63
jne 0xa920f
movl 0x10(%r15), %ecx
leal 0x1(%rcx), %eax
movl %eax, 0x10(%r15)
movb $0x1, %al
cmpl $0x31, %ecx
jg 0xa8b31
leaq 0x9c334(%rip), %r8      # 0x144bd0
leaq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rdi
movq %r15, %rsi
xorl %ecx, %ecx
jmp 0xa8b27
cmpl $0x556e7446, %eax       # imm = 0x556E7446
je 0xa8b78
cmpl $0x566c4c73, %eax       # imm = 0x566C4C73
jne 0xa920f
movq 0x30(%rsp), %rbx
movq 0x18(%rbx), %rdi
movl 0x4(%r15), %edx
callq 0xef614
movq %rax, %r12
addq $0x4, 0x10(%rsp)
leaq 0x8ae37(%rip), %rsi     # 0x13371f
movq %rbx, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe9226
cmpq $0x1389, %r12           # imm = 0x1389
jl 0xa9235
leaq 0x8ae32(%rip), %rsi     # 0x13373b
movq %rbx, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe9b27
movb $0x1, %r8b
jmp 0xa931a
cmpl $0x656e756d, %eax       # imm = 0x656E756D
je 0xa916d
cmpl $0x6c6f6e67, %eax       # imm = 0x6C6F6E67
jne 0xa920f
movq 0x30(%rsp), %rbx
movq 0x18(%rbx), %rdi
movl 0x4(%r15), %edx
callq 0xef654
addq $0x4, 0x10(%rsp)
leaq 0x82101(%rip), %rsi     # 0x12aa54
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rdx
jmp 0xa91dd
leaq 0x10(%rsp), %rbx
movq 0x30(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xa93b0
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rdx
jmp 0xa91dd
movq 0x18(%r14), %rdi
movl 0x4(%r13), %edx
callq 0xef614
movq %rax, %rbx
addq $0x4, 0x10(%rsp)
leaq 0x8aeb1(%rip), %rsi     # 0x13385e
movq %r14, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
addq 0x10(%rsp), %rbx
movq %rbx, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, %rsi
subq %rax, %rsi
jle 0xa91fc
cmpq %rcx, %rbx
movq 0x8(%rsp), %rdx
jg 0xa9203
subq %rax, %rbx
movq %rbx, %rsi
jmp 0xa9203
addq $0x8, %rsi
movq 0x8(%rsp), %rdx
jmp 0xa9206
movq 0x18(%r14), %rdi
movl 0x4(%r15), %edx
callq 0xef614
movq %rax, %r15
movq 0x10(%rsp), %rdx
addq $0x4, %rdx
movq %rdx, 0x10(%rsp)
leaq 0x8adec(%rip), %rsi     # 0x133811
movq %r14, %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x10(%rsp), %rbx
movq 0x20(%rsp), %rbp
leaq (%rbx,%r15), %r13
cmpq %rbp, %r13
jg 0xa8a76
movq 0x28(%rsp), %rax
movq 0x38(%rax), %rdi
testq %rdi, %rdi
je 0xa8a71
leaq 0x8adcf(%rip), %rsi     # 0x133829
callq 0x181a0
testl %eax, %eax
jne 0xa8a71
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xa9442
addq %r15, 0x10(%rsp)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rdx
xorl %r12d, %r12d
movq %rdx, %rax
subq %rcx, %rax
jle 0xa9224
movq 0x10(%rsp), %rsi
cmpq %rdx, %rsi
movq 0x8(%rsp), %rdx
jg 0xa922b
subq %rcx, %rsi
movq %rsi, %rax
jmp 0xa922b
movq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0xf6870
movq %rax, %rbx
leaq 0x10(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
movq %r12, %rcx
callq 0xa803f
movq %rbx, %rdi
callq 0xf7557
leaq 0x69c79(%rip), %rsi     # 0x11275b
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
callq 0xf6bb0
jmp 0xa91d3
movl 0x10(%r15), %ecx
leal 0x1(%rcx), %eax
movl %eax, 0x10(%r15)
movb $0x1, %al
cmpl $0x31, %ecx
jg 0xa8b31
leaq 0x9c0bb(%rip), %r8      # 0x144bd0
movq 0x30(%rsp), %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
movl $0x1, %ecx
callq 0xa8173
testl %eax, %eax
sete %al
decl 0x10(%r15)
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rsi
xorl %r12d, %r12d
movq %rsi, %rcx
subq %rdx, %rcx
jle 0xa8b61
movq 0x10(%rsp), %rdi
cmpq %rsi, %rdi
movq 0x8(%rsp), %rsi
jg 0xa8b68
subq %rdx, %rdi
movq %rdi, %rcx
jmp 0xa8b68
xorl %ecx, %ecx
movq 0x8(%rsp), %rsi
addq %rcx, (%rsi)
testb %al, %al
je 0xa9209
jmp 0xa920f
movq 0x30(%rsp), %rbp
movq 0x18(%rbp), %rdi
xorl %r8d, %r8d
cmpl $0x0, 0x4(%r15)
setne %r8b
leaq 0x58(%rsp), %rdx
movl $0x4, %ecx
callq 0xf1d74
addq $0x4, 0x10(%rsp)
leaq 0x68(%rsp), %rdx
leaq 0x8ab4b(%rip), %rsi     # 0x1336f9
movq %rbp, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbp), %rdi
movq 0x10(%rsp), %rsi
movl 0x4(%r15), %edx
callq 0xef9cf
leaq 0x7242d(%rip), %rsi     # 0x11affe
movq %rbp, %rdi
movb $0x1, %al
callq 0xe9226
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
addq $0x8, %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdx
movq %rdx, %rsi
subq %rcx, %rsi
jle 0xa91fc
cmpq %rdx, %rax
movq 0x8(%rsp), %rdx
jg 0xa9203
subq %rcx, %rax
movq %rax, %rsi
jmp 0xa9203
leaq 0x54(%rsp), %rsi
movq %r14, %rdi
callq 0xe958c
movq 0x18(%r14), %rdi
movl 0x4(%r15), %edx
movq 0x10(%rsp), %rsi
callq 0xef614
movq %rax, %r13
addq $0x4, 0x10(%rsp)
leaq 0x8ab32(%rip), %rsi     # 0x133779
xorl %ebx, %ebx
movq %r14, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0xe9226
testq %r13, %r13
jle 0xa9365
xorl %ebp, %ebp
movq %r13, 0x28(%rsp)
movq 0x10(%rsp), %rbx
movl $0x5, %r12d
cmpq 0x20(%rsp), %rbx
jge 0xa914f
movq 0x18(%r14), %rdi
xorl %r8d, %r8d
cmpl $0x0, 0x4(%r15)
setne %r8b
movq %rbx, %rsi
leaq 0xa8(%rsp), %rdx
movl $0x4, %ecx
callq 0xf1d74
addq $0x4, 0x10(%rsp)
movq %r14, %rdi
leaq 0x8aae9(%rip), %rsi     # 0x13379a
movl %ebp, %edx
leaq 0xb8(%rsp), %rcx
movl %ebx, %r8d
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0x40(%rsp)
movq %rax, 0x38(%rsp)
movq %rcx, 0x48(%rsp)
movl 0xac(%rsp), %eax
cmpl $0x6e616d64, %eax       # imm = 0x6E616D64
jg 0xa8dc3
cmpl $0x436c7373, %eax       # imm = 0x436C7373
je 0xa8ebf
cmpl $0x456e6d72, %eax       # imm = 0x456E6D72
je 0xa8fa8
cmpl $0x696e6478, %eax       # imm = 0x696E6478
jne 0xa914f
movq %r14, %rdi
callq 0xf6870
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rcx
callq 0xa803f
movq %r13, %rdi
callq 0xf7557
movq %r14, %rdi
leaq 0x8a8b6(%rip), %rsi     # 0x133607
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r13, %rdi
callq 0xf6883
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
leaq 0x58(%rsp), %rbx
movq %rbx, %rcx
callq 0xa84c7
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x8aa44(%rip), %rdx     # 0x1337ca
callq 0xa85b9
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa8605
movq 0x18(%r14), %rdi
movl 0x4(%r15), %edx
movq 0x38(%rsp), %r12
movq %r12, %rsi
callq 0xef654
addq $0x4, %r12
movq %r12, 0x38(%rsp)
movq %r14, %rdi
leaq 0x8aa3e(%rip), %rsi     # 0x1337fc
jmp 0xa8e84
cmpl $0x6e616d65, %eax       # imm = 0x6E616D65
je 0xa8efe
cmpl $0x70726f70, %eax       # imm = 0x70726F70
je 0xa9069
cmpl $0x72656c65, %eax       # imm = 0x72656C65
jne 0xa914f
movq %r14, %rdi
callq 0xf6870
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rcx
callq 0xa803f
movq %r13, %rdi
callq 0xf7557
movq %r14, %rdi
leaq 0x8a7f0(%rip), %rsi     # 0x133607
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r13, %rdi
callq 0xf6883
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
leaq 0x58(%rsp), %rbx
movq %rbx, %rcx
callq 0xa84c7
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x8a7d3(%rip), %rdx     # 0x13361f
callq 0xa85b9
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa8605
movq 0x18(%r14), %rdi
movl 0x4(%r15), %edx
movq 0x38(%rsp), %r12
movq %r12, %rsi
callq 0xef654
addq $0x4, %r12
movq %r12, 0x38(%rsp)
movq %r14, %rdi
leaq 0x86f52(%rip), %rsi     # 0x12fdd6
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %r13, %rdi
callq 0xf6bb0
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
jle 0xa9133
cmpq %rdx, %r12
jg 0xa9135
subq %rcx, %r12
movq %r12, %rax
jmp 0xa9135
movq %r14, %rdi
movq %r15, %rsi
leaq 0x38(%rsp), %rdx
callq 0xa93b0
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rsi
movq %rsi, %rax
subq %rcx, %rax
jle 0xa9169
movq 0x38(%rsp), %rdx
cmpq %rsi, %rdx
jg 0xa913a
subq %rcx, %rdx
movq %rdx, %rax
jmp 0xa913a
movq %r14, %rdi
callq 0xf6870
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rcx
callq 0xa803f
movq %r13, %rdi
callq 0xf7557
movq %r14, %rdi
leaq 0x8a6d6(%rip), %rsi     # 0x133607
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r13, %rdi
callq 0xf6883
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
leaq 0x58(%rsp), %r12
movq %r12, %rcx
callq 0xa84c7
movq %r14, %rdi
movq %r12, %rsi
leaq 0x8a864(%rip), %rdx     # 0x1337ca
callq 0xa85b9
movq %r14, %rdi
movq %r12, %rsi
callq 0xa8605
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0xa803f
movq %r13, %rdi
callq 0xf7557
movq %r14, %rdi
leaq 0x8a841(%rip), %rsi     # 0x1337da
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
jmp 0xa9107
movq %r14, %rdi
callq 0xf6870
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rcx
callq 0xa803f
movq %r13, %rdi
callq 0xf7557
movq %r14, %rdi
leaq 0x8a62c(%rip), %rsi     # 0x133607
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
leaq 0x58(%rsp), %r12
movq %r12, %rcx
callq 0xa84c7
movq %r14, %rdi
movq %r12, %rsi
leaq 0x8a617(%rip), %rdx     # 0x13361f
callq 0xa85b9
movq %r14, %rdi
movq %r12, %rsi
callq 0xa8605
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0xa84c7
movq %r14, %rdi
movq %r12, %rsi
leaq 0x8a782(%rip), %rdx     # 0x1337b8
callq 0xa85b9
movq %r14, %rdi
movq %r12, %rsi
callq 0xa8605
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0xa84c7
movq %r14, %rdi
movq %r12, %rsi
leaq 0x8a75b(%rip), %rdx     # 0x1337bf
jmp 0xa90f7
movq %r14, %rdi
callq 0xf6870
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
leaq 0x38(%rsp), %rbx
movq %rbx, %rcx
callq 0xa803f
movq %r13, %rdi
callq 0xf7557
movq %r14, %rdi
leaq 0x8a56b(%rip), %rsi     # 0x133607
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
leaq 0x58(%rsp), %r12
movq %r12, %rcx
callq 0xa84c7
movq %r14, %rdi
movq %r12, %rsi
leaq 0x8a556(%rip), %rdx     # 0x13361f
callq 0xa85b9
movq %r14, %rdi
movq %r12, %rsi
callq 0xa8605
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0xa84c7
movq %r14, %rdi
movq %r12, %rsi
leaq 0x8a6cd(%rip), %rdx     # 0x1337c4
callq 0xa85b9
movq %r14, %rdi
movq %r12, %rsi
callq 0xa8605
movq %r13, %rdi
callq 0xf6bb0
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %rsi
movq %rsi, %rax
subq %rcx, %rax
jle 0xa9133
movq 0x38(%rsp), %rdx
cmpq %rsi, %rdx
jg 0xa9135
subq %rcx, %rdx
movq %rdx, %rax
jmp 0xa9135
xorl %eax, %eax
movq 0x28(%rsp), %r13
addq %rax, 0x10(%rsp)
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
xorl %r12d, %r12d
testl %r12d, %r12d
jne 0xa9359
incq %rbp
cmpq %rbp, %r13
jne 0xa8c66
jmp 0xa9363
xorl %eax, %eax
jmp 0xa913a
leaq 0x10(%rsp), %r12
leaq 0x58(%rsp), %r13
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0xa84c7
leaq 0x8a57b(%rip), %rdx     # 0x13370a
movq %r14, %rdi
movq %r13, %rsi
callq 0xa85b9
movq %r14, %rdi
movq %r13, %rsi
callq 0xa8605
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0xa84c7
leaq 0x8a557(%rip), %rdx     # 0x133714
movq %r14, %rdi
movq %r13, %rsi
callq 0xa85b9
movq %r14, %rdi
movq %r13, %rsi
callq 0xa8605
movq 0x8(%r12), %rax
movq 0x10(%r12), %rdx
movq %rdx, %rsi
subq %rax, %rsi
jle 0xa91fc
movq 0x10(%rsp), %rcx
cmpq %rdx, %rcx
movq 0x8(%rsp), %rdx
jg 0xa9203
subq %rax, %rcx
movq %rcx, %rsi
jmp 0xa9203
xorl %esi, %esi
movq 0x8(%rsp), %rdx
addq (%rdx), %rsi
movq %rsi, (%rdx)
movl $0x1, %r12d
movl %r12d, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
movq 0x8(%rsp), %rdx
addq %rax, (%rdx)
cmpq %rbp, %r13
jle 0xa9209
jmp 0xa920f
movb $0x1, %r8b
cmpl $0x32, 0x10(%r15)
jg 0xa931a
movq %r12, %rax
testq %r12, %r12
jle 0xa9317
xorl %r12d, %r12d
movq %r14, %r13
movq 0x30(%rsp), %rbp
movq %rax, %r14
movq 0x10(%rsp), %rbx
movq %rbp, %rdi
leaq 0x8a4f0(%rip), %rsi     # 0x13375c
movl %r12d, %edx
movl %ebx, %ecx
movl %r13d, %r8d
xorl %eax, %eax
callq 0xe9226
movq %rbp, %rdi
movl $0x1, %esi
callq 0xe9585
incl 0x10(%r15)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rax, 0x60(%rsp)
movq %rax, 0x58(%rsp)
movq %rcx, 0x68(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
movq 0x28(%rsp), %rdx
leaq 0x58(%rsp), %rcx
movq %rbx, %r8
callq 0xa8646
movl %eax, %ebx
decl 0x10(%r15)
movq %rbp, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
testl %ebx, %ebx
je 0xa8916
movq 0x60(%rsp), %rcx
movq 0x68(%rsp), %rsi
movq %rsi, %rax
subq %rcx, %rax
jle 0xa92fc
movq 0x58(%rsp), %rdx
cmpq %rsi, %rdx
jg 0xa92fe
subq %rcx, %rdx
movq %rdx, %rax
jmp 0xa92fe
xorl %eax, %eax
addq %rax, 0x10(%rsp)
testl %ebx, %ebx
je 0xa8916
incq %r12
cmpq %r12, %r14
jne 0xa925d
xorl %r8d, %r8d
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rdx
xorl %r12d, %r12d
movq %rdx, %rax
subq %rcx, %rax
movq 0x8(%rsp), %rdi
jle 0xa9346
movq 0x10(%rsp), %rsi
cmpq %rdx, %rsi
jg 0xa9348
subq %rcx, %rsi
movq %rsi, %rax
jmp 0xa9348
xorl %eax, %eax
addq %rax, (%rdi)
testb %r8b, %r8b
je 0xa9209
jmp 0xa920f
movb $0x1, %bl
cmpl $0x5, %r12d
je 0xa9365
jmp 0xa9371
xorl %ebx, %ebx
movl 0x54(%rsp), %esi
movq %r14, %rdi
callq 0xe9595
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rdx
xorl %r12d, %r12d
movq %rdx, %rax
subq %rcx, %rax
jle 0xa939d
movq 0x10(%rsp), %rsi
cmpq %rdx, %rsi
jg 0xa939f
subq %rcx, %rsi
movq %rsi, %rax
jmp 0xa939f
xorl %eax, %eax
addq %rax, (%rdi)
testb $0x1, %bl
je 0xa9209
jmp 0xa920f