// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/nufx.c
// Function: de_run_nufx
static void de_run_nufx(deark *c, de_module_params *mparams)
{
	struct nufx_ctx *d = NULL;
	struct nufx_record *rec = NULL;
	i64 pos;
	i64 rec_idx = 0;

	d = de_malloc(c, sizeof(struct nufx_ctx));
	// TODO: More work on filename encodings.
	d->input_encoding_req = de_get_input_encoding(c, NULL, DE_ENCODING_UNKNOWN);
	if(d->input_encoding_req==DE_ENCODING_UNKNOWN) {
		d->input_encoding = DE_ENCODING_ASCII;
		d->using_default_encoding = 1;
	}
	else {
		d->input_encoding = d->input_encoding_req;
	}
	d->extract_comments = (c->extract_level>=2);
	d->crco_misc = de_crcobj_create(c, DE_CRCOBJ_CRC16_XMODEM);
	d->crco_for_lzw_codec = de_crcobj_create(c, DE_CRCOBJ_CRC16_XMODEM);
	d->crco_dfork = de_crcobj_create(c, DE_CRCOBJ_CRC16_IBM3740);
	d->crco_rfork = de_crcobj_create(c, DE_CRCOBJ_CRC16_IBM3740);

	do_nufx_master_record(c, d);
	if(d->fatalerrflag) goto done;
	pos = d->next_record_pos;

	for(rec_idx=0; rec_idx<d->total_records; rec_idx++) {
		if(pos >= d->master_eof) goto done;

		if(rec) {
			destroy_record(c, rec);
			rec = NULL;
		}

		rec = de_malloc(c, sizeof(struct nufx_record));
		rec->d = d;
		rec->idx = (UI)rec_idx;
		rec->filename = ucstring_create(c);
		rec->hdr_pos = pos;
		do_nufx_record(c, d, rec);
		if(d->fatalerrflag) goto done;

		pos = d->next_record_pos;
	}

done:
	destroy_record(c, rec);
	if(d) {
		if(d->need_errmsg) {
			de_err(c, "Bad or unsupported NuFX file");
		}
		de_crcobj_destroy(d->crco_misc);
		de_crcobj_destroy(d->crco_for_lzw_codec);
		de_crcobj_destroy(d->crco_dfork);
		de_crcobj_destroy(d->crco_rfork);
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movl $0x70, %esi
callq 0xe8b2b
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xeb220
movl %eax, 0x4(%r14)
testl %eax, %eax
jne 0x9179b
movb $0x1, 0x3(%r14)
movl $0x1, %eax
movl %eax, 0x8(%r14)
cmpl $0x2, 0x90(%rbx)
setge 0x2(%r14)
movq %rbx, %rdi
movl $0x20, %esi
callq 0xeb499
movq %rax, 0x50(%r14)
movq %rbx, %rdi
movl $0x20, %esi
callq 0xeb499
movq %rax, 0x58(%r14)
movq %rbx, %rdi
movl $0x23, %esi
callq 0xeb499
movq %rax, 0x68(%r14)
movq %rbx, %rdi
movl $0x23, %esi
callq 0xeb499
movq %rax, 0x60(%r14)
leaq 0x1c(%rsp), %rsi
movq %rbx, %rdi
callq 0xe8a1c
leaq 0x9dbaf(%rip), %rsi     # 0x12f3b2
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r14, 0x8(%rsp)
leaq 0x10(%rsp), %r15
movq $0x6, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeebeb
movq 0x8(%rsp), %rcx
movl %eax, 0x10(%rcx)
leaq 0x9db7f(%rip), %rsi     # 0x12f3c7
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0xeb7fe
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x18(%rbx), %rsi
movq (%r15), %rdx
movl $0x28, %ecx
callq 0xeb944
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0xeb865
leaq 0x9db54(%rip), %rsi     # 0x12f3e5
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeed83
movq 0x8(%rsp), %rcx
movq %rax, 0x18(%rcx)
leaq 0x9db4c(%rip), %rsi     # 0x12f405
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rax
leaq 0x30(%rax), %r12
movq %r15, %rsi
movq %r12, %rdx
callq 0x92674
leaq 0x40(%rsp), %r13
movl $0x40, %edx
movq %r12, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeaf46
leaq 0xb7a86(%rip), %r12     # 0x149382
leaq 0x9db15(%rip), %rdx     # 0x12f418
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %r13
addq $0x40, %r13
movq %r15, %rsi
movq %r13, %rdx
callq 0x92674
leaq 0x40(%rsp), %rbp
movl $0x40, %edx
movq %r13, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
callq 0xeaf46
leaq 0x9dae3(%rip), %rdx     # 0x12f42c
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeebeb
movq 0x8(%rsp), %rcx
movl %eax, 0xc(%rcx)
leaq 0x9dac9(%rip), %rsi     # 0x12f43d
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
addq $0x8, (%r15)
movq 0x8(%rsp), %r15
cmpl $0x0, 0xc(%r15)
movq 0x18(%rbx), %rdi
je 0x919ea
leaq 0x10(%rsp), %r15
movq %r15, %rsi
callq 0xeed83
movq 0x8(%rsp), %rcx
movq %rax, 0x20(%rcx)
leaq 0x9da98(%rip), %rsi     # 0x12f449
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rbx), %rcx
movl $0x30, %edx
cmpq 0x18(%rcx), %rax
movq %rdx, (%r15)
movq 0x8(%rsp), %r15
movq %rdx, 0x28(%r15)
jle 0x91a00
movw $0x101, (%r15)          # imm = 0x101
jmp 0x91a00
movq 0x18(%rdi), %rax
movq %rax, 0x20(%r15)
movl $0x30, %eax
movq %rax, 0x10(%rsp)
movq %rax, 0x28(%r15)
movl 0x1c(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
cmpb $0x0, (%r15)
je 0x91a78
xorl %ebp, %ebp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x9262b
cmpb $0x0, 0x1(%r15)
je 0x91a37
leaq 0x9d968(%rip), %rsi     # 0x12f395
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movq 0x50(%r15), %rdi
callq 0xeb858
movq 0x58(%r15), %rdi
callq 0xeb858
movq 0x68(%r15), %rdi
callq 0xeb858
movq 0x60(%r15), %rdi
callq 0xeb858
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe8be2
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x18(%r15)
jle 0x91a12
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x28(%r15), %r14
cmpq 0x20(%r15), %r14
jge 0x91a14
testq %rbp, %rbp
je 0x91aa3
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x9262b
movl $0xc8, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %rbp
movq %r15, (%rax)
movl %r13d, 0x8(%rax)
movq %rbx, %rdi
callq 0xf6410
movq %rax, 0x98(%rbp)
movq %r14, 0x10(%rbp)
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
callq 0xe8a1c
movq 0x18(%rbx), %rdi
movq 0x10(%rbp), %rsi
callq 0xeed0d
cmpl $0x4ef546d8, %eax       # imm = 0x4EF546D8
jne 0x91c00
movq %r13, 0x28(%rsp)
movl 0x8(%rbp), %edx
movq 0x10(%rbp), %rcx
movq %rbx, %rdi
leaq 0x954b3(%rip), %rsi     # 0x126fbb
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %rbx, %rdi
leaq 0x34(%rsp), %rsi
callq 0xe8a1c
movq 0x10(%rbp), %rdx
movq %rbx, %rdi
leaq 0x9d943(%rip), %rsi     # 0x12f47a
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x10(%rbp), %rax
addq $0x4, %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeebeb
movl %eax, 0x28(%rbp)
movq %rbx, %rdi
leaq 0x9d91e(%rip), %rsi     # 0x12f48f
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeebeb
movq %rax, 0x20(%rbp)
movq %rbx, %rdi
leaq 0x9d920(%rip), %rsi     # 0x12f4b4
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x10(%rbp), %r14
movq 0x20(%rbp), %r15
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeebeb
movl %eax, 0xc(%rbp)
movq %rbx, %rdi
leaq 0x829aa(%rip), %rsi     # 0x114569
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeed83
movl %eax, 0x2c(%rbp)
movq %rbx, %rdi
leaq 0x9d8e5(%rip), %rsi     # 0x12f4c6
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpl $0x11, 0x2c(%rbp)
jb 0x91c1e
movq 0x8(%rsp), %r15
movw $0x101, (%r15)          # imm = 0x101
jmp 0x922a4
movq 0x10(%rbp), %rdx
movq %rbx, %rdi
leaq 0x9d84b(%rip), %rsi     # 0x12f459
xorl %eax, %eax
callq 0xe9295
movb $0x1, (%r15)
jmp 0x925dd
leaq (%r14,%r15), %rax
addq $-0x2, %rax
movq %rax, 0x20(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeebeb
movl %eax, 0x30(%rbp)
movq %rbx, %rdi
leaq 0x9d894(%rip), %rsi     # 0x12f4d8
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeebeb
movl %eax, 0x34(%rbp)
movq %rbx, %rdi
leaq 0x9d885(%rip), %rsi     # 0x12f4eb
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeed83
movl %eax, 0x38(%rbp)
movq %rbx, %rdi
leaq 0x9d878(%rip), %rsi     # 0x12f500
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeed83
movl %eax, 0x3c(%rbp)
movq %rbx, %rdi
leaq 0x9d865(%rip), %rsi     # 0x12f50f
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeed83
movl %eax, 0x40(%rbp)
movq %rbx, %rdi
leaq 0x9d855(%rip), %rsi     # 0x12f521
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeebeb
movl %eax, 0x44(%rbp)
movq %rbx, %rdi
leaq 0x94997(%rip), %rsi     # 0x126685
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x60(%rbp), %r15
movq %r12, %rsi
movq %r15, %rdx
callq 0x92674
movl $0x40, %edx
movq %r15, %rdi
leaq 0x40(%rsp), %r13
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeaf46
movq %rbx, %rdi
leaq 0xb7657(%rip), %r14     # 0x149382
movq %r14, %rsi
leaq 0x9d6eb(%rip), %rdx     # 0x12f420
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x70(%rbp), %r15
movq %r12, %rsi
movq %r15, %rdx
callq 0x92674
movl $0x40, %edx
movq %r15, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeaf46
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x9c2e3(%rip), %rdx     # 0x12e054
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %rbp, %r15
subq $-0x80, %r15
movq %r12, %rsi
movq %r15, %rdx
callq 0x92674
movl $0x40, %edx
movq %r15, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeaf46
movq %rbx, %rdi
movq %r14, %rsi
movq 0x20(%rsp), %r14
leaq 0x9d77f(%rip), %rdx     # 0x12f534
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8617
cmpl $0x0, 0xc(%rbp)
je 0x91e32
movq 0x10(%rsp), %rax
addq $0x2, %rax
cmpq %r14, %rax
jg 0x91e32
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeebeb
movq 0x10(%rsp), %rcx
addq %rax, %rcx
cmpq %r14, %rcx
movl $0x0, %edx
cmovleq %rax, %rdx
movq %rdx, 0x50(%rbp)
movq %rbx, %rdi
leaq 0x9d741(%rip), %rsi     # 0x12f542
xorl %eax, %eax
callq 0xe8617
cmpl $0x2, (%rbx)
jl 0x91e32
movq 0x18(%rbx), %rsi
movq 0x10(%rsp), %rdx
movq 0x50(%rbp), %rcx
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0xe8bea
movq %r14, 0x10(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeebeb
movq %rax, %r15
testq %rax, %rax
jle 0x91ea4
cmpq $0x0, 0x90(%rbp)
jne 0x91ea4
movq %rbx, %rdi
callq 0xf6410
movq %rax, 0x90(%rbp)
movq 0x18(%rbx), %rcx
movq 0x10(%rsp), %r8
movq %rax, (%rsp)
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r15, %r9
callq 0x9273d
movq 0x90(%rbp), %rdi
callq 0xf70f6
movq %rbx, %rdi
leaq 0x9d6b9(%rip), %rsi     # 0x12f553
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x10(%rsp), %rax
addq %r15, %rax
movq %rax, 0x10(%rsp)
movl 0x2c(%rbp), %ecx
subq 0x10(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x18(%rbp)
movq 0x8(%rsp), %r15
movq 0x50(%r15), %rdi
callq 0xeb7fe
movq 0x50(%r15), %rdi
movq 0x18(%rbx), %rsi
movq 0x10(%rbp), %rdx
movq 0x18(%rbp), %rcx
addq $0x6, %rdx
addq $-0x6, %rcx
callq 0xeb944
movq 0x50(%r15), %rdi
callq 0xeb865
movq %rbx, %rdi
leaq 0x9d66d(%rip), %rsi     # 0x12f56e
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movl 0x2c(%rbp), %esi
movl $0x50, %edx
movq %rbx, %rdi
callq 0xe96f7
movq %rax, 0xa0(%rbp)
movq 0x18(%rbp), %rax
addq 0x10(%rbp), %rax
movq %rax, 0x58(%rbp)
cmpl $0x0, 0x2c(%rbp)
je 0x922a0
movq 0x10(%rsp), %r15
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0xa0(%rbp), %r14
movl %r13d, (%r14,%r12)
movq %r15, 0x40(%rsp)
movq %rbx, %rdi
leaq 0x1c(%rsp), %rsi
callq 0xe8a1c
movl (%r14,%r12), %edx
movq %rbx, %rdi
leaq 0x9d628(%rip), %rsi     # 0x12f595
movq %r15, %rcx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0xeebeb
movl %eax, 0x4(%r14,%r12)
movq %rbx, %rdi
leaq 0x9d60a(%rip), %rsi     # 0x12f5ae
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeebeb
movl %eax, 0x8(%r14,%r12)
leaq 0x9a18c(%rip), %rcx     # 0x12c151
cmpl $0x5, %eax
ja 0x91fdd
movl %eax, %ecx
andl $0x7, %ecx
leaq 0x9d9ae(%rip), %rdx     # 0x12f984
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
movq %rbx, %rdi
leaq 0x9d5dc(%rip), %rsi     # 0x12f5c3
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeebeb
movl %eax, 0xc(%r14,%r12)
movq %rbx, %rdi
leaq 0x9d5cd(%rip), %rsi     # 0x12f5da
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movl 0x4(%r14,%r12), %ecx
movl 0xc(%r14,%r12), %eax
cmpl $0x2, %ecx
movq 0x8(%rsp), %r15
je 0x9206d
cmpl $0x1, %ecx
je 0x92056
testl %ecx, %ecx
jne 0x92041
cmpl $0x3, %eax
jae 0x92041
leaq 0x9d95d(%rip), %rcx     # 0x12f99c
jmp 0x92080
xorl $0x3, %ecx
orl %eax, %ecx
leaq 0x9a104(%rip), %rdx     # 0x12c151
leaq 0x9a25b(%rip), %rax     # 0x12c2af
jmp 0x92067
testq %rax, %rax
leaq 0x9d668(%rip), %rdx     # 0x12f6c8
leaq 0x81bbb(%rip), %rax     # 0x113c22
cmoveq %rax, %rdx
jmp 0x92087
leaq 0x9d66d(%rip), %rdx     # 0x12f6e1
cmpl $0x3, %eax
jae 0x92087
leaq 0x9d928(%rip), %rcx     # 0x12f9a8
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
movq %rbx, %rdi
leaq 0x9bba9(%rip), %rsi     # 0x12dc3a
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeebeb
movl %eax, 0x10(%r14,%r12)
movl 0xc(%rbp), %ecx
cmpl $0x2, %ecx
jb 0x920ce
cmpl $0x2, 0x4(%r14,%r12)
jne 0x920ce
cmpl $0x2, %ecx
jne 0x920c8
cmpl $0x0, 0x8(%r14,%r12)
je 0x920ce
movb $0x1, 0x49(%r14,%r12)
cmpb $0x0, 0x49(%r14,%r12)
leaq 0xb2fd5(%rip), %rcx     # 0x1450b0
leaq 0x9d52c(%rip), %rdx     # 0x12f60e
cmoveq %rdx, %rcx
movq %rbx, %rdi
leaq 0x9d4fe(%rip), %rsi     # 0x12f5ee
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeed83
movq %rax, 0x18(%r14,%r12)
movq %rbx, %rdi
leaq 0x830dd(%rip), %rsi     # 0x1151f3
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpl $0x2, 0x4(%r14,%r12)
jne 0x921ae
cmpl $0x1, 0xc(%r14,%r12)
jne 0x921ae
movl 0x40(%rbp), %edx
movq %rdx, 0x40(%r14,%r12)
movq %rbx, %rdi
leaq 0x9d4d3(%rip), %rsi     # 0x12f619
xorl %eax, %eax
callq 0xe8617
movl 0x44(%rbp), %edx
movq %rdx, 0x38(%r14,%r12)
cmpq $0x7f, %rdx
ja 0x9217a
movq %rbx, %rdi
leaq 0x9d4c4(%rip), %rsi     # 0x12f629
xorl %eax, %eax
callq 0xe8617
movq $0x200, 0x38(%r14,%r12) # imm = 0x200
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
leaq 0x8f943(%rip), %rsi     # 0x121ac7
xorl %eax, %eax
callq 0xe8617
movq 0x38(%r14,%r12), %rdx
imulq 0x40(%r14,%r12), %rdx
movq %rdx, 0x20(%r14,%r12)
movq %rbx, %rdi
leaq 0x9d4a7(%rip), %rsi     # 0x12f64c
xorl %eax, %eax
callq 0xe8617
jmp 0x921b8
movq 0x18(%r14,%r12), %rax
movq %rax, 0x20(%r14,%r12)
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeed83
movq %rax, 0x28(%r14,%r12)
movq %rbx, %rdi
leaq 0xb8a10(%rip), %rsi     # 0x14abe5
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x58(%rbp), %rdx
movq %rdx, 0x30(%r14,%r12)
movq %rbx, %rdi
leaq 0x9443a(%rip), %rsi     # 0x12662c
xorl %eax, %eax
callq 0xe8617
movq 0x58(%rbp), %rax
addq 0x28(%r14,%r12), %rax
movq %rax, 0x58(%rbp)
cmpq 0x20(%r15), %rax
jle 0x92214
movw $0x101, (%r15)          # imm = 0x101
jmp 0x92264
leaq (%r14,%r12), %rax
movl 0x4(%r14,%r12), %ecx
cmpl $0x2, %ecx
je 0x92238
cmpl $0x3, %ecx
jne 0x92264
cmpl $0x0, 0xc(%r14,%r12)
jne 0x92264
movq %rax, 0xa8(%rbp)
jmp 0x92264
movl 0xc(%r14,%r12), %ecx
cmpl $0x2, %ecx
je 0x9225d
cmpl $0x1, %ecx
je 0x92254
testl %ecx, %ecx
jne 0x92264
movq %rax, 0xb0(%rbp)
jmp 0x92264
movq %rax, 0xc0(%rbp)
jmp 0x92264
movq %rax, 0xb8(%rbp)
movl 0x1c(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
cmpb $0x0, (%r15)
jne 0x922a4
movq 0x10(%rsp), %r15
addq $0x10, %r15
movq %r15, 0x10(%rsp)
incq %r13
movl 0x2c(%rbp), %eax
addq $0x50, %r12
cmpq %rax, %r13
jb 0x91f42
movq 0x58(%rbp), %rax
movq 0x8(%rsp), %r15
movq %rax, 0x28(%r15)
movl 0x34(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
cmpb $0x0, (%r15)
leaq 0x10(%rsp), %r12
movq 0x28(%rsp), %r13
jne 0x925dd
cmpq $0x0, 0xa8(%rbp)
je 0x9234b
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xf09c5
movq %rax, %r14
movq 0xa8(%rbp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %rax, %r8
callq 0x927fd
testl %eax, %eax
je 0x925d5
movq 0x18(%r14), %r9
testq %r9, %r9
jle 0x925d5
movq 0x98(%rbp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x9273d
movq 0x98(%rbp), %rdi
callq 0xf70f6
movq %rbx, %rdi
leaq 0xa9a0f(%rip), %rsi     # 0x13bd4e
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
jmp 0x9234e
xorl %r14d, %r14d
movq 0x98(%rbp), %rdi
callq 0xf678d
testl %eax, %eax
je 0x92381
movq 0x90(%rbp), %rdi
callq 0xf67a3
testl %eax, %eax
je 0x92381
movq 0x90(%rbp), %rsi
movq 0x98(%rbp), %rdi
callq 0xf6509
movzbl 0x34(%rbp), %eax
cmpl $0x2f, %eax
je 0x923c4
movq 0x98(%rbp), %rdx
movq 0x10(%rdx), %rcx
testq %rcx, %rcx
jle 0x923c4
movq 0x8(%rdx), %rdx
xorl %esi, %esi
movl (%rdx,%rsi,4), %r8d
movl $0x2f, %edi
cmpl %eax, %r8d
je 0x923b9
movl $0x5f, %edi
cmpl $0x2f, %r8d
jne 0x923bc
movl %edi, (%rdx,%rsi,4)
incq %rsi
cmpq %rsi, %rcx
jne 0x923a0
movq %r14, 0x38(%rsp)
movq %rbx, %rdi
leaq 0x9d324(%rip), %rsi     # 0x12f6f7
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
cmpq $0x0, 0xc0(%rbp)
je 0x92404
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movl $0x1, %ecx
callq 0x932ae
cmpq $0x0, 0xb0(%rbp)
jne 0x92418
cmpq $0x0, 0xb8(%rbp)
je 0x9243c
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x932ae
cmpq $0x0, 0xb0(%rbp)
jne 0x9245a
cmpq $0x0, 0xb8(%rbp)
jne 0x9245a
cmpq $0x0, 0xc0(%rbp)
jne 0x9245a
movl 0x8(%rbp), %edx
movq %rbx, %rdi
leaq 0x9d2b7(%rip), %rsi     # 0x12f70a
xorl %eax, %eax
callq 0xe8faa
cmpl $0x0, 0x2c(%rbp)
je 0x925b9
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0xa0(%rbp), %r15
cmpq $0x0, 0x20(%r15,%r14)
jle 0x925a6
cmpl $0x0, 0x4(%r15,%r14)
jne 0x925a6
cmpl $0x1, 0xc(%r15,%r14)
jne 0x925a6
addq %r14, %r15
movq 0x8(%rsp), %rax
cmpb $0x0, 0x2(%rax)
je 0x92512
movq %rbx, %rdi
callq 0xea504
movq %rax, %r13
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
leaq 0xb2352(%rip), %rdx     # 0x144812
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0xea78f
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
movl $0x1, %ecx
callq 0xefda1
movq %rax, %r13
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x927fd
movq %r13, %rdi
callq 0xf052b
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0xea50e
jmp 0x925a1
movl $0x1f4, %esi            # imm = 0x1F4
movq %rbx, %rdi
movl $0x1, %edx
callq 0xf09c5
movq %rax, %r13
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x927fd
testl %eax, %eax
je 0x9258e
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r15
movq 0x18(%r13), %rdx
movq 0x8(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, (%rsp)
movl $0x1f4, %ecx            # imm = 0x1F4
movq %r13, %rdi
xorl %esi, %esi
movq %r15, %r8
xorl %r9d, %r9d
callq 0xefc2a
movq %r15, %rdi
callq 0xf70f6
movq %rbx, %rdi
leaq 0x822fe(%rip), %rsi     # 0x114880
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
jmp 0x92591
xorl %r15d, %r15d
movq %r13, %rdi
callq 0xf052b
movq %r15, %rdi
callq 0xf6753
movq 0x28(%rsp), %r13
incq %r12
movl 0x2c(%rbp), %eax
addq $0x50, %r14
cmpq %rax, %r12
jb 0x9246a
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x8(%rsp), %r15
leaq 0x10(%rsp), %r12
movq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0xf052b
movl 0x30(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
cmpb $0x0, (%r15)
jne 0x91a14
incq %r13
cmpq 0x18(%r15), %r13
jl 0x91a89
jmp 0x91a14