// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/jpeg.c
// Function: handler_app
static void handler_app(deark *c, lctx *d,
	const struct marker_info *mi, i64 seg_data_pos, i64 seg_data_size)
{
	int appsegtype;
	i64 payload_pos;
	i64 payload_size;
	struct app_id_info_struct app_id_info;

	de_zeromem(&app_id_info, sizeof(struct app_id_info_struct));

	detect_app_seg_type(c, d, mi, seg_data_pos, seg_data_size, &app_id_info);
	appsegtype = app_id_info.appsegtype;
	payload_pos = app_id_info.payload_pos;
	if(app_id_info.app_id_found) {
		de_dbg(c, "app id: \"%s\", identified as: %s", ucstring_getpsz(app_id_info.app_id_str),
			app_id_info.app_type_name);
	}
	else {
		de_dbg(c, "app id: (not found), identified as: %s", app_id_info.app_type_name);
	}

	payload_size = seg_data_pos + seg_data_size - payload_pos;
	if(payload_size<0) goto done;

	switch(appsegtype) {
	case APPSEGTYPE_JFIF:
		do_jfif_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_JFXX:
		do_jfxx_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_ADOBEAPP14:
		do_adobeapp14_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_EXIF:
		do_exif_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_META:
		do_meta_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_ICC_PROFILE:
		do_icc_profile_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_FPXR:
		d->has_flashpix = 1;
		do_fpxr_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_SPIFF:
		d->has_spiff_seg = 1;
		break;
	case APPSEGTYPE_PHOTOSHOP:
		do_photoshop_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_DUCKY:
		do_ducky_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_XMP:
		de_dbg(c, "XMP data at %d, size=%d", (int)(payload_pos), (int)(payload_size));
		d->has_xmp = 1;
		dbuf_create_file_from_slice(c->infile, payload_pos, payload_size, "xmp", NULL, DE_CREATEFLAG_IS_AUX);
		break;
	case APPSEGTYPE_XMP_EXTENSION:
		d->has_xmp_ext = 1;
		do_xmp_extension_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_HDR_RI_VER:
		d->is_jpeghdr = 1;
		do_jpeghdr_segment(c, d, seg_data_pos, seg_data_size, 0);
		break;
	case APPSEGTYPE_HDR_RI_EXT:
		do_jpeghdr_segment(c, d, seg_data_pos, seg_data_size, 1);
		break;
	case APPSEGTYPE_BOXFORMAT:
		do_boxformat_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_MPF:
		do_mpf_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_JPS:
		d->is_jps = 1;
		do_jps_segment(c, d, payload_pos, payload_size);
		break;
	case APPSEGTYPE_AROT:
		do_arot_segment(c, d, payload_pos, payload_size);
		break;
	default:
		if(c->debug_level>=2) {
			de_dbg_hexdump(c, c->infile, seg_data_pos, seg_data_size, 256, "segment data", 0x1);
		}
		break;
	}

done:
	if(app_id_info.app_id_str) {
		ucstring_destroy(app_id_info.app_id_str);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %r8, %r13
movq %rcx, %rbp
movq %rsi, 0x18(%rsp)
movq %rdi, %r14
movzbl (%rdx), %r12d
leaq 0x40(%rsp), %rbx
xorl %r15d, %r15d
movl $0x108, %edx            # imm = 0x108
movq %rbx, %rdi
xorl %esi, %esi
callq 0x18140
cmpq $0x50, %r13
movl $0x50, %ecx
cmovlq %r13, %rcx
movq %rcx, 0x50(%rbx)
cmpq $0x2, %r13
movq %r14, 0x8(%rsp)
jge 0x81eb3
xorl %ebx, %ebx
xorl %edi, %edi
xorl %r14d, %r14d
jmp 0x82003
movq 0x18(%r14), %rdi
decq %rcx
leaq 0x40(%rsp), %rbx
movq %rbx, %rsi
movq %rbp, %rdx
callq 0xeeee8
movq %rbx, %rdi
callq 0x84438
cmpl $0x0, 0x100(%rbx)
je 0x81f09
movq %r14, %rdi
callq 0xf6870
leaq 0x98(%rsp), %rsi
movq 0xa0(%rsi), %rdx
movq %rax, 0x10(%rsp)
movq %rax, %rdi
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0xf7131
jmp 0x81f12
movq $0x0, 0x10(%rsp)
cmpl $0xe1, %r12d
jne 0x81fdc
movq 0x90(%rsp), %rbx
cmpq $0x15, %rbx
jl 0x81fdc
cmpl $0x0, 0x140(%rsp)
je 0x81fdc
cmpl $0x504d58, 0x98(%rsp) # imm = 0x504D58
jne 0x81fdc
leaq -0x108(%rbx), %rax
negq %rax
xorl %edx, %edx
cmpq $0x108, %rbx            # imm = 0x108
cmovbq %rax, %rdx
leaq (%rsp,%rbx), %rdi
addq $0x150, %rdi            # imm = 0x150
xorl %esi, %esi
callq 0x18140
leaq 0x150(%rsp), %r15
leaq 0x40(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x181e0
movq %rbx, 0x50(%r15)
movl $0x70747468, (%r15)     # imm = 0x70747468
movq %r15, %rdi
callq 0x84438
cmpl $0x0, 0x100(%r15)
je 0x81fdc
movl $0xa8, %eax
addq %rax, %r14
addq %rax, %r15
movl $0x50, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0xe8ded
movq 0x248(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x138(%rsp), %r14
incq %r14
xorl %r15d, %r15d
cmpl $0x0, 0x140(%rsp)
setne %bl
cmoveq %r15, %r14
cmpq %r13, %r14
jle 0x8200f
movq 0x10(%rsp), %rdi
leaq 0xa9e5f(%rip), %r12     # 0x12be69
jmp 0x824cf
cmpl $0xe0, %r12d
jne 0x82050
movl $0x4649464a, %eax       # imm = 0x4649464A
xorl 0xe8(%rsp), %eax
movzbl 0xec(%rsp), %ecx
orl %eax, %ecx
je 0x821bd
movl $0x5858464a, %eax       # imm = 0x5858464A
xorl 0xe8(%rsp), %eax
movzbl 0xec(%rsp), %ecx
orl %eax, %ecx
je 0x8238b
cmpl $0xee, %r12d
sete %al
movq 0x90(%rsp), %rdx
cmpq $0x5, %rdx
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x82089
movl $0x626f6441, %eax       # imm = 0x626F6441
xorl 0x40(%rsp), %eax
movzbl 0x44(%rsp), %ecx
xorl $0x65, %ecx
orl %eax, %ecx
je 0x82373
cmpq $0x5, %rdx
setge %al
cmpl $0xec, %r12d
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x820ba
movl $0x6b637544, %eax       # imm = 0x6B637544
xorl 0x40(%rsp), %eax
movzbl 0x44(%rsp), %ecx
xorl $0x79, %ecx
orl %eax, %ecx
je 0x8239d
cmpl $0xe1, %r12d
setne %al
cmpq $0x6, %r13
setl %cl
orb %al, %cl
jne 0x820eb
movl $0x46495845, %eax       # imm = 0x46495845
xorl 0xe8(%rsp), %eax
movzbl 0xec(%rsp), %ecx
orl %eax, %ecx
je 0x823b5
cmpl $0xe1, %r12d
sete %al
cmpl $0xe3, %r12d
sete %cl
orb %al, %cl
cmpq $0xe, %rdx
setge %al
andb %cl, %al
cmpb $0x1, %al
jne 0x8213c
movl $0x6174654d, %eax       # imm = 0x6174654D
xorl 0x40(%rsp), %eax
movzwl 0x44(%rsp), %ecx
orl %eax, %ecx
jne 0x8213c
movb 0x46(%rsp), %al
andb $-0x5, %al
cmpb $0x49, %al
jne 0x8213c
leaq 0xa8add(%rip), %r12     # 0x12ac0e
movl $0x1a, %r15d
jmp 0x824ca
cmpl $0xe2, %r12d
jne 0x8216e
movabsq $0x464f52505f434349, %rax # imm = 0x464F52505F434349
xorq 0xe8(%rsp), %rax
movl 0xf0(%rsp), %ecx
xorq $0x454c49, %rcx         # imm = 0x454C49
orq %rax, %rcx
je 0x823cd
cmpl $0xe7, %r12d
jg 0x821cf
cmpl $0xe2, %r12d
je 0x8218d
cmpl $0xe4, %r12d
jne 0x8222d
movl $0x52585046, %eax       # imm = 0x52585046
xorl 0xe8(%rsp), %eax
movzbl 0xec(%rsp), %ecx
orl %eax, %ecx
je 0x823df
cmpl $0xed, %r12d
je 0x82200
cmpl $0xe8, %r12d
je 0x821d8
jmp 0x8222d
leaq 0xa939f(%rip), %r12     # 0x12b563
movl $0x2, %r15d
jmp 0x824ca
cmpl $0xe8, %r12d
jne 0x821f7
movl $0x46495053, %eax       # imm = 0x46495053
xorl 0xe8(%rsp), %eax
movzwl 0xec(%rsp), %ecx
xorl $0x46, %ecx
orl %eax, %ecx
je 0x8243d
cmpl $0xed, %r12d
jne 0x8222d
movabsq $0x4f48534f544f4850, %rax # imm = 0x4F48534F544F4850
xorq 0xe8(%rsp), %rax
movabsq $0x302e3320504f48, %rcx # imm = 0x302E3320504F48
xorq 0xee(%rsp), %rcx
orq %rax, %rcx
je 0x823f1
cmpl $0xe1, %r12d
jne 0x8226b
movdqu 0xe8(%rsp), %xmm0
movdqu 0xf5(%rsp), %xmm1
pcmpeqb 0xa84c0(%rip), %xmm1    # 0x12a710
pcmpeqb 0xa84c8(%rip), %xmm0    # 0x12a720
pand %xmm1, %xmm0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x82403
cmpl $0xe1, %r12d
sete %al
cmpq $0x20, %rdx
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x822a0
movdqu 0x40(%rsp), %xmm0
pcmpeqb 0xa849f(%rip), %xmm0    # 0x12a730
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x8244c
cmpl $0xe1, %r12d
jne 0x822d4
leaq 0xe8(%rsp), %rdi
leaq 0xa89d0(%rip), %rsi     # 0x12ac88
movq %rdx, 0x28(%rsp)
movl $0x23, %edx
callq 0x18230
movq 0x28(%rsp), %rdx
testl %eax, %eax
je 0x8245e
cmpl $0xeb, %r12d
sete %al
cmpq $0xa, %rdx
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x82334
movabsq $0x762049525f524448, %rax # imm = 0x762049525F524448
xorq 0x40(%rsp), %rax
movzwl 0x48(%rsp), %ecx
xorq $0x7265, %rcx           # imm = 0x7265
orq %rax, %rcx
je 0x8246d
movabsq $0x652049525f524448, %rax # imm = 0x652049525F524448
xorq 0x40(%rsp), %rax
movzwl 0x48(%rsp), %ecx
xorq $0x7478, %rcx           # imm = 0x7478
orq %rax, %rcx
je 0x824bd
cmpl $0xeb, %r12d
jne 0x82415
cmpq $0x2, %rdx
jl 0x82415
movzwl 0x40(%rsp), %eax
cmpl $0x504a, %eax           # imm = 0x504A
jne 0x82415
movl $0x2, %r14d
leaq 0xa8981(%rip), %r12     # 0x12ace9
movl $0x14, %r15d
jmp 0x824ca
movl $0x5, %r14d
leaq 0xa8878(%rip), %r12     # 0x12abf8
movl $0x9, %r15d
jmp 0x824ca
leaq 0xa8856(%rip), %r12     # 0x12abe8
movl $0x3, %r15d
jmp 0x824ca
movl $0x5, %r14d
leaq 0xa8859(%rip), %r12     # 0x12ac03
movl $0xc, %r15d
jmp 0x824ca
movl $0x6, %r14d
leaq 0xa9349(%rip), %r12     # 0x12b70b
movl $0x6, %r15d
jmp 0x824ca
leaq 0xaaed6(%rip), %r12     # 0x12d2aa
movl $0xa, %r15d
jmp 0x824ca
leaq 0xa883e(%rip), %r12     # 0x12ac24
movl $0x7, %r15d
jmp 0x824ca
leaq 0xa884e(%rip), %r12     # 0x12ac46
movl $0xb, %r15d
jmp 0x824ca
leaq 0xa9364(%rip), %r12     # 0x12b76e
movl $0xe, %r15d
jmp 0x824ca
cmpl $0xe2, %r12d
jne 0x8247c
cmpl $0x46504d, 0xe8(%rsp) # imm = 0x46504D
jne 0x8247c
leaq 0xa88cc(%rip), %r12     # 0x12acfe
movl $0x15, %r15d
jmp 0x824ca
leaq 0xa92c0(%rip), %r12     # 0x12b704
movl $0x5, %r15d
jmp 0x824ca
leaq 0xa931b(%rip), %r12     # 0x12b76e
movl $0xe, %r15d
xorl %r14d, %r14d
jmp 0x824ca
leaq 0xa8846(%rip), %r12     # 0x12acab
movl $0xf, %r15d
jmp 0x824ca
leaq 0xa8850(%rip), %r12     # 0x12acc4
movl $0x18, %r15d
jmp 0x824ca
cmpl $0xe3, %r12d
jne 0x834b5
cmpq $0x8, %rdx
jl 0x834b5
movabsq $0x5f53504a53504a5f, %rax # imm = 0x5F53504A53504A5F
cmpq %rax, 0x40(%rsp)
jne 0x834b5
movl $0x8, %r14d
leaq 0xa92af(%rip), %r12     # 0x12b764
movl $0x16, %r15d
jmp 0x824ca
leaq 0xa8818(%rip), %r12     # 0x12acdc
movl $0x19, %r15d
movq 0x10(%rsp), %rdi
testb %bl, %bl
movq %rdi, 0x10(%rsp)
je 0x824f8
callq 0xf74bd
leaq 0xa8698(%rip), %rsi     # 0x12ab7c
movq 0x8(%rsp), %rdi
movq %rax, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xe9226
jmp 0x8250e
leaq 0xa869d(%rip), %rsi     # 0x12ab9c
movq 0x8(%rsp), %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r13, %rbx
subq %r14, %rbx
js 0x83391
addl $-0x2, %r15d
cmpl $0x19, %r15d
ja 0x82d7f
leaq (%r14,%rbp), %rdx
movq %r13, %r12
addq %rbp, %r12
leaq 0xa810f(%rip), %rax     # 0x12a648
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x18(%rsp), %r13
movb $0x1, 0x2(%r13)
cmpq $0x9, %rbx
movq 0x8(%rsp), %r15
jl 0x83391
leaq 0x40(%rsp), %rbx
movq %rdx, (%rbx)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xef14d
movb %al, 0x38(%r13)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xef14d
movb %al, 0x39(%r13)
movzbl 0x38(%r13), %edx
movzbl %al, %ecx
leaq 0xa8815(%rip), %rsi     # 0x12ada7
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xef14d
movl %eax, %ebp
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xef193
movq %rax, %r14
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xef193
cmpb $0x2, %bpl
leaq 0xa87ed(%rip), %rcx     # 0x12adbd
leaq 0xa87ee(%rip), %rdx     # 0x12adc5
cmoveq %rcx, %rdx
cmpb $0x1, %bpl
leaq 0xbeaa1(%rip), %r8      # 0x141087
cmovneq %rdx, %r8
leaq 0xa87e2(%rip), %rsi     # 0x12add3
movq %r15, %rdi
movl %r14d, %edx
movq %r15, %r14
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xef14d
movzbl %al, %r15d
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0xef14d
movzbl %al, %ebp
leaq 0xa886c(%rip), %rsi     # 0x12ae95
movq %r14, %rdi
movl %r15d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0xe9226
movq (%rbx), %rdx
subq %rdx, %r12
testb %r15b, %r15b
setne %al
testb %bpl, %bpl
setne %cl
andb %al, %cl
testq %r12, %r12
setg %al
andb %cl, %al
cmpb $0x1, %al
jne 0x83391
leaq 0xa878a(%rip), %rsi     # 0x12aded
movq %r14, %rdi
movq %r12, %rcx
xorl %eax, %eax
callq 0xe9226
movb $0x1, 0x3(%r13)
movq %r15, %rax
imulq %rbp, %rax
leaq (%rax,%rax,2), %rdx
cmpq %r12, %rdx
je 0x82699
leaq 0xa877b(%rip), %rsi     # 0x12ae07
movq %r14, %rdi
movq %r12, %rcx
xorl %eax, %eax
callq 0xe9b27
movq 0x40(%rsp), %rsi
leaq 0xa879d(%rip), %r9      # 0x12ae42
movq %r14, %rdi
movq %r15, %rdx
movq %rbp, %rcx
xorl %r8d, %r8d
jmp 0x83276
movq 0x18(%rsp), %rax
movb $0x1, 0x1a(%rax)
movq %rdx, 0x40(%rsp)
cmpq $0x8, %rbx
jl 0x826e7
movq 0x8(%rsp), %r14
movq 0x18(%r14), %rdi
leaq 0x40(%rsp), %rsi
callq 0xef193
cmpq $0x4, %rax
jge 0x831bd
xorl %ebx, %ebx
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0xf6bb0
movq %rbp, %rdi
jmp 0x82750
movq 0x18(%rsp), %r13
movb $0x1, 0xe(%r13)
movq %rdx, 0x150(%rsp)
leaq 0xa8a1b(%rip), %rsi     # 0x12b12c
xorl %r12d, %r12d
movq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebx, %ecx
xorl %eax, %eax
movq %rdx, %r15
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
cmpl $0x0, 0x60(%r13)
je 0x830e9
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %r12, %rdi
callq 0xf6bb0
jmp 0x83391
movq 0x18(%rsp), %r13
movb $0x1, 0x10(%r13)
movq %rdx, 0x20(%rsp)
leaq 0x3c(%rsp), %rsi
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xe958c
cmpq $0x2, %rbx
jl 0x83385
movq 0x18(%r15), %rdi
leaq 0x20(%rsp), %r14
movq %r14, %rsi
callq 0xef14d
movzbl %al, %edx
leaq 0xb421a(%rip), %rsi     # 0x1369ba
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xef14d
movzbl %al, %ebp
leaq 0xa87a2(%rip), %rax     # 0x12af62
leaq 0xa96a2(%rip), %rdx     # 0x12be69
cmpb $0x2, %bpl
cmoveq %rax, %rdx
cmpb $0x1, %bpl
leaq 0xa877a(%rip), %rcx     # 0x12af54
cmovneq %rdx, %rcx
leaq 0xa8789(%rip), %rsi     # 0x12af6e
movq %r15, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
cmpb $0x2, %bpl
je 0x8329d
cmpl $0x1, %ebp
movq 0x8(%rsp), %r15
jne 0x83385
movq %r15, %rdi
movq %r13, %rsi
callq 0x84628
movl $0x10, %esi
movq %r15, %rdi
callq 0xe969b
movq %rax, 0xa8(%r13)
cmpq $0x4, %rbx
jl 0x83385
movq 0x18(%r15), %rdi
leaq 0x20(%rsp), %rsi
callq 0xef193
movq 0xa8(%r13), %rcx
movq %rax, (%rcx)
leaq 0xa8733(%rip), %rsi     # 0x12af84
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0xa8(%r13), %rax
movq (%rax), %rsi
movl $0x28, %edx
movq %r15, %rdi
callq 0xea259
movq 0xa8(%r13), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, (%rcx)
je 0x83385
movl $0x20, %r14d
leaq 0x20(%rsp), %rbp
xorl %ebx, %ebx
movq $0x0, 0x30(%rsp)
cmpq %r12, 0x20(%rsp)
jge 0x83385
movq 0x8(%rcx), %r13
movq %rbx, -0x20(%r13,%r14)
movl 0x20(%rsp), %ecx
movq %r15, %rdi
leaq 0xa86de(%rip), %rsi     # 0x12af9f
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r15), %rdi
movq %rbp, %rsi
callq 0xef34e
movq %rax, %rbp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rbp
jne 0x828f9
movl $0x1, (%r13,%r14)
cmpl $0x0, (%r13,%r14)
leaq 0xa86ba(%rip), %rdx     # 0x12afc0
leaq 0x9753f(%rip), %rax     # 0x119e4c
cmoveq %rax, %rdx
movq 0x8(%rsp), %r15
movq %r15, %rdi
leaq 0xa8690(%rip), %rsi     # 0x12afb0
xorl %eax, %eax
callq 0xe9226
cmpl $0x0, (%r13,%r14)
jne 0x82947
movq %r15, %rdi
leaq 0xa868f(%rip), %rsi     # 0x12afc8
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbp, -0x8(%r13,%r14)
movq 0x18(%r15), %rdi
leaq 0x20(%rsp), %rbp
movq %rbp, %rsi
callq 0xef14d
movzbl %al, %edx
movq %r15, %rdi
leaq 0xa8673(%rip), %rsi     # 0x12afd8
xorl %eax, %eax
callq 0xe9226
movq 0x20(%rsp), %rsi
movq %r12, %rdx
subq %rsi, %rdx
movq 0x18(%r15), %rdi
leaq 0x30(%rsp), %rcx
callq 0xf1c0a
testl %eax, %eax
je 0x83385
movq 0x18(%r15), %rdi
movq 0x20(%rsp), %rsi
movq 0x30(%rsp), %rcx
addq $-0x2, %rcx
movq %rcx, %rdx
movl $0x10, %r8d
movl $0x3, %r9d
callq 0xefe67
movq %rax, -0x18(%r13,%r14)
movq 0x18(%rax), %rdi
callq 0xf7557
movq %r15, %rdi
leaq 0xa8623(%rip), %rsi     # 0x12afee
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x20(%rsp), %rdx
addq 0x30(%rsp), %rdx
movq %rdx, 0x20(%rsp)
cmpl $0x0, (%r13,%r14)
je 0x82a3f
movq 0x18(%r15), %rdi
movl $0x10, %ecx
leaq 0x150(%rsp), %r13
movq %r13, %rsi
callq 0xeeee8
addq $0x10, 0x20(%rsp)
movq %r13, %rdi
callq 0xf8617
movl $0x32, %ecx
movq %r15, %rdi
movq %r13, %rsi
leaq 0x40(%rsp), %r13
movq %r13, %rdx
callq 0xf8559
movq %r15, %rdi
leaq 0xa85cb(%rip), %rsi     # 0x12b000
movq %r13, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
incq %rbx
movq 0x18(%rsp), %rax
movq 0xa8(%rax), %rcx
addq $0x28, %r14
cmpq (%rcx), %rbx
jb 0x82896
jmp 0x83385
movq 0x18(%rsp), %r15
movb $0x1, 0x8(%r15)
leaq 0xa88e5(%rip), %rsi     # 0x12b363
movq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebx, %ecx
xorl %eax, %eax
movq %rdx, %r13
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movl $0x70, %esi
movq %r14, %rdi
callq 0xe969b
movq %rax, %r12
leaq 0x9dc78(%rip), %rax     # 0x12072e
movq %rax, (%r12)
orb $0x1, 0x8(%r12)
movq %r13, 0x18(%r12)
movq 0x18(%r14), %rcx
movq %rcx, 0x20(%r12)
leaq 0xc740b(%rip), %rsi     # 0x149ee0
movq %r14, %rdi
movq %r12, %rdx
movq %r13, %r8
movq %rbx, %r9
callq 0xea5fa
testb $-0x80, 0x40(%r12)
je 0x82afb
cmpl $0x2, 0x4c(%r12)
jb 0x82afb
movb $0x1, 0x19(%r15)
movq %r14, %rdi
movq %r12, %rsi
callq 0xe9752
jmp 0x830d7
movq 0x18(%rsp), %rax
movb $0x1, 0x4(%rax)
leaq 0xa8331(%rip), %rsi     # 0x12ae4c
movq 0x8(%rsp), %rdi
movl %ebx, %ecx
xorl %eax, %eax
movq %rdx, %r12
callq 0xe9226
cmpq %r14, %r13
je 0x83391
movq 0x8(%rsp), %r15
movq 0x18(%r15), %rdi
movq %r12, %rsi
callq 0xef0d5
movl %eax, %ebp
movzbl %al, %r14d
leaq 0xa8318(%rip), %rsi     # 0x12ae6b
movq %r15, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
cmpb $0x10, %r14b
jne 0x831fe
movq 0x18(%r15), %rdi
incq %r12
decq %rbx
leaq 0xa8307(%rip), %rcx     # 0x12ae82
movq %r12, %rsi
jmp 0x82f67
cmpq $0x7, %rbx
jl 0x83391
movq 0x18(%rsp), %r14
movb $0x1, 0x1d(%r14)
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
addq $0x6, %rdx
movq %rdx, %rsi
callq 0xef0d5
movb %al, 0x1e(%r14)
movzbl %al, %edx
cmpb $0x2, %al
ja 0x83280
leaq 0xa7b42(%rip), %rax     # 0x12a704
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmp 0x83287
cmpq $0xe, %rbx
jl 0x83391
movq 0x8(%rsp), %r15
movq 0x18(%r15), %rdi
movq %rdx, %rsi
movq %rdx, %r13
callq 0xef169
leaq 0xa8724(%rip), %rsi     # 0x12b317
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r15), %rdi
leaq 0x2(%r13), %rsi
callq 0xef32a
movq %rax, %r14
leaq 0xa8710(%rip), %rsi     # 0x12b326
movq %r15, %r12
movq %r15, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
cmpq $0x1, %r14
jg 0x83391
movq %r13, %r15
leaq 0x6(%r13), %rsi
leaq -0x6(%rbx), %r13
movq %r12, %r14
movq 0x18(%r12), %rdi
movq %rsi, 0x28(%rsp)
callq 0xef32a
movq %rax, %rbp
cmpq $0x12, %rbx
jl 0x8373f
movq 0x18(%r14), %rdi
addq $0xa, %r15
leaq 0xa86cc(%rip), %rdx     # 0x12b335
movl $0x4, %ecx
movq %r15, %rsi
callq 0xf025e
testl %eax, %eax
je 0x83725
movq 0x18(%r14), %rdi
leaq 0xa86c0(%rip), %rdx     # 0x12b349
movl $0x8, %ecx
movq %r15, %rsi
callq 0xf025e
testl %eax, %eax
jne 0x8373f
movq 0x18(%rsp), %rax
movb $0x1, 0x18(%rax)
leaq 0xa86a4(%rip), %rsi     # 0x12b352
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
jmp 0x8373f
xorl %eax, %eax
movl %eax, 0x40(%rsp)
movl %eax, 0x150(%rsp)
movl %eax, 0x20(%rsp)
cmpq $0x8, %rbx
jl 0x83391
leaq 0xa820d(%rip), %rsi     # 0x12aeec
movq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebx, %ecx
xorl %eax, %eax
movq %rdx, %r13
callq 0xe9226
movq 0x18(%rsp), %r12
movb $0x1, 0x5(%r12)
cmpb $0x0, 0x2(%r12)
jne 0x82d0c
movb $0x1, 0xa(%r12)
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r14, %rdi
leaq 0x40(%rsp), %r14
leaq 0x150(%rsp), %r8
leaq 0x20(%rsp), %r9
movq %rdi, %r15
movq %r13, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xf7da3
movl (%r14), %eax
testb $0x8, %al
je 0x82d4c
movb $0x1, 0x6(%r12)
testb $0x10, %al
je 0x82d56
movb $0x1, 0x20(%r12)
testb $0x20, %al
movq %r15, %rdi
je 0x82d69
movl 0x150(%rsp), %ecx
movl %ecx, 0x3c(%r12)
testb $0x40, %al
je 0x830da
movl 0x20(%rsp), %eax
movl %eax, 0x40(%r12)
jmp 0x830da
movq 0x8(%rsp), %rax
cmpl $0x2, (%rax)
jl 0x83391
movq 0x8(%rsp), %rdi
movq 0x18(%rdi), %rsi
movl $0x1, (%rsp)
leaq 0xa7e37(%rip), %r9      # 0x12abdb
movl $0x100, %r8d            # imm = 0x100
movq %rbp, %rdx
movq %r13, %rcx
callq 0xe975a
jmp 0x83391
movq 0x18(%rsp), %rax
movb $0x1, 0x7(%rax)
jmp 0x83391
cmpq $0x2, %rbx
jl 0x83391
movq 0x8(%rsp), %r14
movq 0x18(%r14), %rdi
movq %rdx, %rsi
movq %rdx, %r13
callq 0xef0d5
movl %eax, %ebp
movq 0x18(%r14), %rdi
leaq 0x1(%r13), %rsi
callq 0xef0d5
movl %eax, %r12d
addq $-0x2, %rbx
movzbl %bpl, %r8d
movzbl %al, %r9d
leaq 0xa8115(%rip), %rsi     # 0x12af20
movq %r14, %rdi
movl %r13d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rsp), %r15
cmpq $0x0, 0x48(%r15)
jne 0x82e45
movb $0x1, 0xf(%r15)
leaq 0x92cbb(%rip), %rsi     # 0x115aed
movq %r14, %rdi
xorl %edx, %edx
movl $0x1, %ecx
callq 0xf037a
movq %rax, 0x48(%r15)
movq 0x18(%r14), %rdi
addq $0x2, %r13
movq 0x48(%r15), %rcx
movq %r13, %rsi
movq %rbx, %rdx
callq 0xefabc
cmpb %r12b, %bpl
jne 0x83391
movq 0x18(%rsp), %rbx
movq 0x48(%rbx), %rdi
callq 0xf0b13
movq $0x0, 0x48(%rbx)
jmp 0x83391
pxor %xmm0, %xmm0
leaq 0x40(%rsp), %r12
movdqa %xmm0, 0x20(%r12)
movdqa %xmm0, 0x10(%r12)
movdqa %xmm0, (%r12)
leaq 0xa825e(%rip), %rsi     # 0x12b102
movq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebx, %ecx
xorl %eax, %eax
movq %rdx, %r13
callq 0xe9226
movq 0x18(%rsp), %r15
movb $0x1, 0xb(%r15)
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r14), %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
movq %r12, %r9
callq 0xf81ef
testb $0x2, (%r12)
je 0x830d7
movb $0x1, 0xc(%r15)
jmp 0x830d7
movq 0x18(%rsp), %rsi
movb $0x1, 0x17(%rsi)
movq 0x8(%rsp), %rdi
movq %rbp, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
jmp 0x82f2b
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rbp, %rdx
movq %r13, %rcx
movl $0x1, %r8d
callq 0x8432e
jmp 0x83391
leaq 0xa7c87(%rip), %rsi     # 0x12abc3
movq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebx, %ecx
xorl %eax, %eax
movq %rdx, %r15
callq 0xe9226
movq 0x18(%rsp), %rax
movb $0x1, 0xd(%rax)
movq 0x18(%r14), %rdi
leaq 0xb47f2(%rip), %rcx     # 0x137756
movq %r15, %rsi
movq %rbx, %rdx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0xf0321
jmp 0x83391
leaq 0x40(%rsp), %rsi
movq %rdx, (%rsi)
movq 0x8(%rsp), %r14
movq 0x18(%r14), %rdi
callq 0xef193
movq %rax, %r15
testl %r15d, %r15d
je 0x83391
leaq 0x40(%rsp), %rbx
leaq 0xc1387(%rip), %r13     # 0x144332
movq 0x40(%rsp), %rax
addq $0x2, %rax
cmpq %r12, %rax
jg 0x83391
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0xef193
movq %rax, %rbp
movq 0x40(%rsp), %rsi
addq %rsi, %rax
cmpq %r12, %rax
jg 0x83391
cmpl $0x3, %r15d
je 0x8301e
cmpl $0x2, %r15d
je 0x83013
cmpl $0x1, %r15d
jne 0x83030
cmpq $0x4, %rbp
jne 0x83030
movq 0x18(%r14), %rdi
callq 0xef32a
movq %r14, %rdi
leaq 0xa8118(%rip), %rsi     # 0x12b120
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
jmp 0x83030
movq %r14, %rdi
movq %rbp, %rdx
movq %r13, %rcx
jmp 0x8302b
movq %r14, %rdi
movq %rbp, %rdx
leaq 0x8f6b4(%rip), %rcx     # 0x1126df
callq 0x84923
addq %rbp, 0x40(%rsp)
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0xef193
movq %rax, %r15
testl %r15d, %r15d
jne 0x82fab
jmp 0x83391
cmpq $0x8, %rbx
jl 0x83391
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
movq %rdx, %rsi
callq 0xef32a
leaq 0xa83e0(%rip), %rsi     # 0x12b454
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
jmp 0x83391
cmpq %r14, %r13
je 0x83391
incq %rdx
decq %rbx
leaq 0xa7e6a(%rip), %rsi     # 0x12af05
movq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebx, %ecx
xorl %eax, %eax
movq %rdx, %r15
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r14), %rcx
leaq 0xc6e19(%rip), %rsi     # 0x149ee0
movq %r14, %rdi
xorl %edx, %edx
movq %r15, %r8
movq %rbx, %r9
callq 0xea66a
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
jmp 0x83391
movq %r15, 0x28(%rsp)
movq 0x18(%r14), %rdi
movq 0x150(%rsp), %rdx
movq %r14, %r15
leaq 0x40(%rsp), %r14
movl $0x20, %ecx
movq %r14, %rsi
callq 0xeeee8
addq $0x20, 0x150(%rsp)
movq %r15, %rdi
callq 0xf6870
movq %rax, %r12
movl $0x20, %edx
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %r14
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0xf7131
movq %r12, %rdi
callq 0xf74bd
leaq 0xa8006(%rip), %rsi     # 0x12b153
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movl 0x58(%r13), %ebp
testl %ebp, %ebp
je 0x833b2
movdqu 0x70(%r13), %xmm0
movdqu 0x80(%r13), %xmm1
pcmpeqb 0x50(%rsp), %xmm1
pcmpeqb 0x40(%rsp), %xmm0
pand %xmm1, %xmm0
pmovmskb %xmm0, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x833d5
cmpl $0x0, 0x5c(%r13)
jne 0x82740
leaq 0xa7fba(%rip), %rsi     # 0x12b160
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9b27
movl $0x1, 0x5c(%r13)
jmp 0x82740
movq %rax, %r15
movq 0x18(%r14), %rdi
movq 0x40(%rsp), %rsi
callq 0xef32a
movq %rax, %r13
movq %r14, %rdi
callq 0xf6870
movq %rax, %rbx
testb %r13b, %r13b
je 0x83472
movzbl %r13b, %eax
cmpl $0x1, %eax
jne 0x83637
leaq 0xa8193(%rip), %rsi     # 0x12b38c
jmp 0x83479
orl $0x2, %r14d
cmpl $0x13, %r14d
jne 0x83391
cmpq $0x3, %rbx
jl 0x83391
xorl %ebx, %ebx
cmpb $0x11, %bpl
sete %bl
movq 0x18(%r15), %rdi
leaq 0x1(%r12), %rsi
movq %r12, %r13
callq 0xef0d5
movzbl %al, %r12d
movq 0x18(%r15), %rdi
leaq 0x2(%r13), %rsi
callq 0xef0d5
movzbl %al, %r14d
leaq 0xa7c44(%rip), %rsi     # 0x12ae90
movq %r15, %rdi
movl %r12d, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0xe9226
addq $0x3, %r13
leaq 0xa7c4b(%rip), %r9      # 0x12aeb2
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebx, %r8d
callq 0x8450a
jmp 0x83391
leaq 0x8f205(%rip), %rcx     # 0x11248c
leaq 0xa7c45(%rip), %rsi     # 0x12aed3
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
jmp 0x83391
cmpq $0x6, %rbx
movq 0x8(%rsp), %r15
jl 0x83385
movq 0x18(%r15), %rdi
leaq 0x20(%rsp), %r14
movq %r14, %rsi
callq 0xef193
movq %rax, %rbx
leaq 0xa7d48(%rip), %rsi     # 0x12b00f
movq %r15, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xef34e
leaq 0xa7d44(%rip), %rsi     # 0x12b02a
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq (%r14), %rcx
subq %rcx, %r12
testq %r12, %r12
jle 0x83311
leaq 0xa7d44(%rip), %rsi     # 0x12b048
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0xa8(%r13), %rax
testq %rax, %rax
je 0x83385
cmpq %rbx, (%rax)
jb 0x83385
movq 0x8(%rax), %rax
leaq (%rbx,%rbx,4), %rcx
cmpl $0x0, 0x24(%rax,%rcx,8)
jne 0x83385
movq 0x20(%rsp), %r14
leaq (%rax,%rcx,8), %rbx
cmpq $0x0, 0x10(%rbx)
jne 0x83354
movq 0x8(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xf0faf
movq %rax, 0x10(%rbx)
movq 0x8(%rsp), %r15
movq 0x18(%r15), %rdi
movq 0x10(%rbx), %rcx
movq %r14, %rsi
movq %r12, %rdx
callq 0xefabc
movq 0x10(%rbx), %rax
movq 0x18(%rax), %rax
cmpq 0x18(%rbx), %rax
jl 0x83385
movq %r15, %rdi
movq %rbx, %rsi
callq 0x846e8
movl 0x3c(%rsp), %esi
movq %r15, %rdi
callq 0xe9595
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x833a0
callq 0xf6bb0
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, 0x58(%r13)
movdqa 0x40(%rsp), %xmm0
movdqa 0x50(%rsp), %xmm1
movdqu %xmm0, 0x70(%r13)
movdqu %xmm1, 0x80(%r13)
movq 0x18(%r14), %rdi
leaq 0x150(%rsp), %rsi
callq 0xef34e
movq %r14, %r13
movq %rax, %r14
testl %ebp, %ebp
jne 0x833fc
movq 0x18(%rsp), %rax
movq %r14, 0x90(%rax)
leaq 0xa7da4(%rip), %rsi     # 0x12b1a7
movq %r13, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rsp), %rbp
movq 0x90(%rbp), %rax
cmpq %rax, %r14
jne 0x83452
cmpq $0x989681, %rax         # imm = 0x989681
jl 0x8358c
leaq 0xa7db4(%rip), %rsi     # 0x12b1e8
movq %r15, %r14
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9b27
movq 0x18(%rsp), %rax
movl $0x1, 0x60(%rax)
jmp 0x82740
leaq 0xa7d67(%rip), %rsi     # 0x12b1c0
movq %r13, %rdi
xorl %eax, %eax
callq 0xe9b27
movl $0x1, 0x60(%rbp)
movq %r13, %r14
jmp 0x82740
leaq 0xa7f02(%rip), %rsi     # 0x12b37b
movq %rbx, %rdi
callq 0xf7566
cmpb $0x1, %r13b
je 0x83612
movzbl %r13b, %eax
testl %eax, %eax
jne 0x83637
movq %r13, %rax
shrq $0x8, %rax
cmpb $0x3, %al
jae 0x83637
andl $0x3, %eax
leaq 0x100640(%rip), %rcx    # 0x183af0
jmp 0x83628
cmpq $0x6, %r13
setl %al
cmpl $0xea, %r12d
setne %cl
orb %al, %cl
jne 0x834e6
movl $0x544f5241, %eax       # imm = 0x544F5241
xorl 0xe8(%rsp), %eax
movzbl 0xec(%rsp), %ecx
orl %eax, %ecx
je 0x837b8
cmpl $0xe1, %r12d
jne 0x81ffe
movabsq $0x534d5f6b72616544, %rax # imm = 0x534D5F6B72616544
xorq 0x98(%rsp), %rax
movabsq $0x41424752534d5f, %rcx # imm = 0x41424752534D5F
xorq 0x9d(%rsp), %rcx
orq %rax, %rcx
je 0x837d0
movabsq $0x42525f6b72616544, %rax # imm = 0x42525F6B72616544
xorq 0x98(%rsp), %rax
movabsq $0x706177735f4252, %rcx # imm = 0x706177735F4252
xorq 0x9e(%rsp), %rcx
orq %rax, %rcx
je 0x837e2
movq 0x18(%rsp), %rax
cmpb $0x0, 0x1(%rax)
setne %al
cmpl $0x434950, 0x98(%rsp) # imm = 0x434950
sete %cl
xorl %edx, %edx
testb %cl, %al
movl $0x6e, %r15d
cmovel %edx, %r15d
leaq 0xa7818(%rip), %rax     # 0x12ad94
leaq 0xa88e6(%rip), %r12     # 0x12be69
cmovneq %rax, %r12
jmp 0x824ca
movq 0x18(%r15), %rdi
leaq 0x150(%rsp), %r14
movq %r14, %rsi
callq 0xef34e
movq %rax, %r13
leaq 0xa7c5b(%rip), %rsi     # 0x12b205
movq %r15, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0xe9226
movq (%r14), %rcx
movq %r15, %r14
movq 0x28(%rsp), %r15
subq %rcx, %r15
addq %rbx, %r15
leaq 0xa7c51(%rip), %rsi     # 0x12b220
movq %r14, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9226
leaq (%r15,%r13), %rax
movq 0x18(%rsp), %rbx
movq 0x90(%rbx), %rsi
cmpq %rsi, %rax
jle 0x83780
leaq 0xa7c46(%rip), %rsi     # 0x12b242
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9b27
movl $0x1, 0x60(%rbx)
jmp 0x82740
movl %r13d, %eax
shrl $0x8, %eax
decb %al
cmpb $0x4, %al
jae 0x83637
movzbl %al, %eax
leaq 0x1004e0(%rip), %rcx    # 0x183b08
leaq (%rcx,%rax,8), %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0xf7566
btl $0x10, %r13d
leaq 0xa7dca(%rip), %rax     # 0x12b40d
leaq 0xa7db7(%rip), %rsi     # 0x12b401
cmovaeq %rax, %rsi
movq %rbx, %rdi
callq 0xf7566
btl $0x11, %r13d
leaq 0xa7dc2(%rip), %rax     # 0x12b424
leaq 0xa7db0(%rip), %rsi     # 0x12b419
cmovaeq %rax, %rsi
movq %rbx, %rdi
callq 0xf7566
movq %rbx, %rdi
callq 0xf74bd
leaq 0xa7dab(%rip), %rsi     # 0x12b42f
xorl %ebp, %ebp
movq %r14, %rdi
movl %r13d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9226
addq 0x40(%rsp), %r15
movq %r15, 0x40(%rsp)
movq %r12, %rax
subq %r15, %rax
cmpq $0x2, %rax
jl 0x826eb
movq 0x18(%r14), %rdi
movq %r14, %r13
leaq 0x40(%rsp), %r14
movq %r14, %rsi
callq 0xef193
movq %rax, %r15
movq (%r14), %rax
addq %r15, %rax
cmpq %r12, %rax
jg 0x826e9
movq %r13, %rdi
callq 0xf6870
movq %rax, %rbp
movq 0x18(%r13), %rdi
movq 0x40(%rsp), %rsi
movl $0x1, (%rsp)
movl $0x1f4, %ecx            # imm = 0x1F4
movq %r15, %rdx
movq %rax, %r8
xorl %r9d, %r9d
callq 0xf0203
movq %rbp, %rdi
callq 0xf74bd
leaq 0x91092(%rip), %rsi     # 0x1147a5
movq %r13, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
jmp 0x826eb
leaq 0xa7c0e(%rip), %rsi     # 0x12b33a
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rsp), %rax
movb $0x1, 0x11(%rax)
cmpq %r13, %rbp
jg 0x83391
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rcx
leaq 0x91b8f(%rip), %rsi     # 0x1152f0
leaq 0xa531d(%rip), %rdx     # 0x128a85
movq %r12, %rdi
movq 0x28(%rsp), %r8
movq %r13, %r9
callq 0xea66a
movq %r12, %rdi
jmp 0x830da
cmpq $0x0, 0x68(%rbx)
jne 0x83798
movq %r14, %rdi
movl $0x1, %edx
callq 0xf0faf
movq %rax, 0x68(%rbx)
movq 0x18(%r14), %rdi
movq 0x150(%rsp), %rsi
movq 0x68(%rbx), %rcx
movq %r15, %rdx
movq %r13, %r8
callq 0xefe16
jmp 0x82740
movl $0x6, %r14d
leaq 0xa7553(%rip), %r12     # 0x12ad18
movl $0x1b, %r15d
jmp 0x824ca
leaq 0xa7574(%rip), %r12     # 0x12ad4b
movl $0x64, %r15d
jmp 0x824ca
leaq 0xa7591(%rip), %r12     # 0x12ad7a
movl $0x65, %r15d
jmp 0x824ca