// File: /workspace/github_c_makefile_star2_O1/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 0xe969b
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xeb7d1
movl %eax, 0x4(%r14)
testl %eax, %eax
je 0x920fb
movl %eax, 0x8(%r14)
jmp 0x92108
movl $0x1, 0x8(%r14)
movb $0x1, 0x3(%r14)
cmpl $0x2, 0x90(%rbx)
setge 0x2(%r14)
movq %rbx, %rdi
movl $0x20, %esi
callq 0xeba56
movq %rax, 0x50(%r14)
movq %rbx, %rdi
movl $0x20, %esi
callq 0xeba56
movq %rax, 0x58(%r14)
movq %rbx, %rdi
movl $0x23, %esi
callq 0xeba56
movq %rax, 0x68(%r14)
movq %rbx, %rdi
movl $0x23, %esi
callq 0xeba56
movq %rax, 0x60(%r14)
leaq 0x1c(%rsp), %rsi
movq %rbx, %rdi
callq 0xe958c
leaq 0x9cf63(%rip), %rsi     # 0x12f0cf
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r14, 0x8(%rsp)
leaq 0x10(%rsp), %r15
movq $0x6, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef1ed
movq 0x8(%rsp), %rcx
movl %eax, 0x10(%rcx)
leaq 0x9cf33(%rip), %rsi     # 0x12f0e4
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0xebdc3
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x18(%rbx), %rsi
movq (%r15), %rdx
movl $0x28, %ecx
callq 0xebf09
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0xebe2a
leaq 0x9cf08(%rip), %rsi     # 0x12f102
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef3a0
movq 0x8(%rsp), %rcx
movq %rax, 0x18(%rcx)
leaq 0x9cf00(%rip), %rsi     # 0x12f122
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rax
leaq 0x30(%rax), %r12
movq %r15, %rsi
movq %r12, %rdx
callq 0x92fcd
leaq 0x40(%rsp), %r13
movl $0x40, %edx
movq %r12, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeb4f8
leaq 0xb6b85(%rip), %r12     # 0x148dea
leaq 0x9cec9(%rip), %rdx     # 0x12f135
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %r13
addq $0x40, %r13
movq %r15, %rsi
movq %r13, %rdx
callq 0x92fcd
leaq 0x40(%rsp), %rbp
movl $0x40, %edx
movq %r13, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
callq 0xeb4f8
leaq 0x9ce97(%rip), %rdx     # 0x12f149
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef1ed
movq 0x8(%rsp), %rcx
movl %eax, 0xc(%rcx)
leaq 0x9ce7d(%rip), %rsi     # 0x12f15a
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
addq $0x8, (%r15)
movq 0x8(%rsp), %r15
cmpl $0x0, 0xc(%r15)
movq 0x18(%rbx), %rdi
je 0x92321
leaq 0x10(%rsp), %rsi
callq 0xef3a0
movq %rax, 0x20(%r15)
leaq 0x9ce54(%rip), %rsi     # 0x12f166
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
jmp 0x92329
movq 0x18(%rdi), %rax
movq %rax, 0x20(%r15)
movl $0x30, %eax
movq %rax, 0x10(%rsp)
movq %rax, 0x28(%r15)
movq 0x20(%r15), %rax
movq 0x18(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jle 0x9234b
movw $0x101, (%r15)          # imm = 0x101
movl 0x1c(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb $0x0, (%r15)
je 0x923c3
xorl %ebp, %ebp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x92f84
cmpb $0x0, 0x1(%r15)
je 0x92382
leaq 0x9cd3a(%rip), %rsi     # 0x12f0b2
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
movq 0x50(%r15), %rdi
callq 0xebe1d
movq 0x58(%r15), %rdi
callq 0xebe1d
movq 0x68(%r15), %rdi
callq 0xebe1d
movq 0x60(%r15), %rdi
callq 0xebe1d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe9752
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x18(%r15)
jle 0x9235d
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x28(%r15), %r14
cmpq 0x20(%r15), %r14
jge 0x9235f
testq %rbp, %rbp
je 0x923ee
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x92f84
movl $0xc8, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %rbp
movq %r15, (%rax)
movl %r13d, 0x8(%rax)
movq %rbx, %rdi
callq 0xf6870
movq %rax, 0x98(%rbp)
movq %r14, 0x10(%rbp)
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
callq 0xe958c
movq 0x18(%rbx), %rdi
movq 0x10(%rbp), %rsi
callq 0xef32a
cmpl $0x4ef546d8, %eax       # imm = 0x4EF546D8
jne 0x9254b
movq %r13, 0x28(%rsp)
movl 0x8(%rbp), %edx
movq 0x10(%rbp), %rcx
movq %rbx, %rdi
leaq 0x94938(%rip), %rsi     # 0x126d8b
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %rbx, %rdi
leaq 0x34(%rsp), %rsi
callq 0xe958c
movq 0x10(%rbp), %rdx
movq %rbx, %rdi
leaq 0x9cd15(%rip), %rsi     # 0x12f197
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x10(%rbp), %rax
addq $0x4, %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movl %eax, 0x28(%rbp)
movq %rbx, %rdi
leaq 0x9ccf0(%rip), %rsi     # 0x12f1ac
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movq %rax, 0x20(%rbp)
movq %rbx, %rdi
leaq 0x9ccf2(%rip), %rsi     # 0x12f1d1
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x10(%rbp), %r14
movq 0x20(%rbp), %r15
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movl %eax, 0xc(%rbp)
movq %rbx, %rdi
leaq 0x81faf(%rip), %rsi     # 0x1144b9
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef3a0
movl %eax, 0x2c(%rbp)
movq %rbx, %rdi
leaq 0x9ccb7(%rip), %rsi     # 0x12f1e3
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
cmpl $0x11, 0x2c(%rbp)
jb 0x92569
movq 0x8(%rsp), %r15
movw $0x101, (%r15)          # imm = 0x101
jmp 0x92bfd
movq 0x10(%rbp), %rdx
movq %rbx, %rdi
leaq 0x9cc1d(%rip), %rsi     # 0x12f176
xorl %eax, %eax
callq 0xe9df7
movb $0x1, (%r15)
jmp 0x92f36
leaq (%r14,%r15), %rax
addq $-0x2, %rax
movq %rax, 0x20(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movl %eax, 0x30(%rbp)
movq %rbx, %rdi
leaq 0x9cc66(%rip), %rsi     # 0x12f1f5
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movl %eax, 0x34(%rbp)
movq %rbx, %rdi
leaq 0x9cc57(%rip), %rsi     # 0x12f208
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef3a0
movl %eax, 0x38(%rbp)
movq %rbx, %rdi
leaq 0x9cc4a(%rip), %rsi     # 0x12f21d
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef3a0
movl %eax, 0x3c(%rbp)
movq %rbx, %rdi
leaq 0x9cc37(%rip), %rsi     # 0x12f22c
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef3a0
movl %eax, 0x40(%rbp)
movq %rbx, %rdi
leaq 0x9cc27(%rip), %rsi     # 0x12f23e
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movl %eax, 0x44(%rbp)
movq %rbx, %rdi
leaq 0x93e1c(%rip), %rsi     # 0x126455
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x60(%rbp), %r15
movq %r12, %rsi
movq %r15, %rdx
callq 0x92fcd
movl $0x40, %edx
movq %r15, %rdi
leaq 0x40(%rsp), %r13
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeb4f8
movq %rbx, %rdi
leaq 0xb6774(%rip), %r14     # 0x148dea
movq %r14, %rsi
leaq 0x9cabd(%rip), %rdx     # 0x12f13d
movq %r13, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x70(%rbp), %r15
movq %r12, %rsi
movq %r15, %rdx
callq 0x92fcd
movl $0x40, %edx
movq %r15, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeb4f8
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x9b6a0(%rip), %rdx     # 0x12dd5c
movq %r13, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %rbp, %r15
subq $-0x80, %r15
movq %r12, %rsi
movq %r15, %rdx
callq 0x92fcd
movl $0x40, %edx
movq %r15, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeb4f8
movq %rbx, %rdi
movq %r14, %rsi
movq 0x20(%rsp), %r14
leaq 0x9cb51(%rip), %rdx     # 0x12f251
movq %r13, %rcx
xorl %eax, %eax
callq 0xe9226
cmpl $0x0, 0xc(%rbp)
je 0x92781
movq 0x10(%rsp), %rax
addq $0x2, %rax
cmpq %r14, %rax
jg 0x92781
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movq %rax, 0x50(%rbp)
movq 0x10(%rsp), %rcx
addq %rax, %rcx
cmpq %r14, %rcx
movl $0x0, %edx
cmovleq %rax, %rdx
movq %rdx, 0x50(%rbp)
movq %rbx, %rdi
leaq 0x9cb0f(%rip), %rsi     # 0x12f25f
xorl %eax, %eax
callq 0xe9226
cmpl $0x2, (%rbx)
jl 0x92781
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 0xe975a
movq %r14, 0x10(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movq %rax, %r15
testq %rax, %rax
jle 0x927f3
cmpq $0x0, 0x90(%rbp)
jne 0x927f3
movq %rbx, %rdi
callq 0xf6870
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 0x93096
movq 0x90(%rbp), %rdi
callq 0xf7557
movq %rbx, %rdi
leaq 0x9ca87(%rip), %rsi     # 0x12f270
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
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 0xebdc3
movq 0x50(%r15), %rdi
movq 0x18(%rbx), %rsi
movq 0x10(%rbp), %rdx
movq 0x18(%rbp), %rcx
addq $0x6, %rdx
addq $-0x6, %rcx
callq 0xebf09
movq 0x50(%r15), %rdi
callq 0xebe2a
movq %rbx, %rdi
leaq 0x9ca3b(%rip), %rsi     # 0x12f28b
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movl 0x2c(%rbp), %esi
movl $0x50, %edx
movq %rbx, %rdi
callq 0xea259
movq %rax, 0xa0(%rbp)
movq 0x18(%rbp), %rax
addq 0x10(%rbp), %rax
movq %rax, 0x58(%rbp)
cmpl $0x0, 0x2c(%rbp)
je 0x92bf5
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0xa0(%rbp), %r14
movl %r13d, (%r14,%r12)
movq 0x10(%rsp), %r15
movq %r15, 0x40(%rsp)
movq %rbx, %rdi
leaq 0x1c(%rsp), %rsi
callq 0xe958c
movl (%r14,%r12), %edx
movq %rbx, %rdi
leaq 0x9c9f6(%rip), %rsi     # 0x12f2b2
movq %r15, %rcx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0xef1ed
movl %eax, 0x4(%r14,%r12)
movq %rbx, %rdi
leaq 0x9c9d8(%rip), %rsi     # 0x12f2cb
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef1ed
movl %eax, 0x8(%r14,%r12)
leaq 0x99555(%rip), %rcx     # 0x12be69
cmpl $0x5, %eax
ja 0x9292c
movl %eax, %ecx
andl $0x7, %ecx
leaq 0x9cd7b(%rip), %rdx     # 0x12f6a0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
movq %rbx, %rdi
leaq 0x9c9aa(%rip), %rsi     # 0x12f2e0
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xef1ed
movl %eax, 0xc(%r14,%r12)
movq %rbx, %rdi
leaq 0x9c99b(%rip), %rsi     # 0x12f2f7
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movl 0x4(%r14,%r12), %ecx
movl 0xc(%r14,%r12), %eax
cmpl $0x2, %ecx
movq 0x8(%rsp), %r15
je 0x929ad
cmpl $0x1, %ecx
je 0x9299a
testl %ecx, %ecx
jne 0x929c9
cmpl $0x3, %eax
jae 0x92990
leaq 0x9cd2a(%rip), %rcx     # 0x12f6b8
jmp 0x929c0
cmpl $0x2, %ecx
je 0x929ad
cmpl $0x1, %ecx
jne 0x929c9
testq %rax, %rax
leaq 0x9ca41(%rip), %rdx     # 0x12f3e5
leaq 0x811c7(%rip), %rax     # 0x113b72
jmp 0x929dc
leaq 0x9ca4a(%rip), %rdx     # 0x12f3fe
cmpl $0x3, %eax
jae 0x929e0
leaq 0x9cd04(%rip), %rcx     # 0x12f6c4
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
jmp 0x929e0
xorl $0x3, %ecx
orl %eax, %ecx
leaq 0x99494(%rip), %rdx     # 0x12be69
leaq 0x995eb(%rip), %rax     # 0x12bfc7
cmoveq %rax, %rdx
movq %rbx, %rdi
leaq 0x9af58(%rip), %rsi     # 0x12d942
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xef1ed
movl %eax, 0x10(%r14,%r12)
movl 0xc(%rbp), %ecx
cmpl $0x2, %ecx
jb 0x92a1c
cmpl $0x2, 0x4(%r14,%r12)
jne 0x92a1c
cmpl $0x0, 0x8(%r14,%r12)
jne 0x92a29
cmpl $0x3, %ecx
jb 0x92a2f
cmpl $0x2, 0x4(%r14,%r12)
jne 0x92a2f
movb $0x1, 0x49(%r14,%r12)
cmpb $0x0, 0x49(%r14,%r12)
leaq 0xb2194(%rip), %rcx     # 0x144bd0
leaq 0x9c8e8(%rip), %rdx     # 0x12f32b
cmoveq %rdx, %rcx
movq %rbx, %rdi
leaq 0x9c8ba(%rip), %rsi     # 0x12f30b
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xef3a0
movq %rax, 0x18(%r14,%r12)
movq %rbx, %rdi
leaq 0x826cc(%rip), %rsi     # 0x115143
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
cmpl $0x2, 0x4(%r14,%r12)
jne 0x92b0f
cmpl $0x1, 0xc(%r14,%r12)
jne 0x92b0f
movl 0x40(%rbp), %edx
movq %rdx, 0x40(%r14,%r12)
movq %rbx, %rdi
leaq 0x9c88f(%rip), %rsi     # 0x12f336
xorl %eax, %eax
callq 0xe9226
movl 0x44(%rbp), %eax
movq %rax, 0x38(%r14,%r12)
cmpq $0x7f, %rax
ja 0x92ad6
movq %rbx, %rdi
leaq 0x9c880(%rip), %rsi     # 0x12f346
xorl %eax, %eax
callq 0xe9226
movq $0x200, 0x38(%r14,%r12) # imm = 0x200
movq 0x38(%r14,%r12), %rdx
movq %rbx, %rdi
leaq 0x8eed6(%rip), %rsi     # 0x1219bb
xorl %eax, %eax
callq 0xe9226
movq 0x38(%r14,%r12), %rdx
imulq 0x40(%r14,%r12), %rdx
movq %rdx, 0x20(%r14,%r12)
movq %rbx, %rdi
leaq 0x9c863(%rip), %rsi     # 0x12f369
xorl %eax, %eax
callq 0xe9226
jmp 0x92b19
movq 0x18(%r14,%r12), %rax
movq %rax, 0x20(%r14,%r12)
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xef3a0
movq %rax, 0x28(%r14,%r12)
movq %rbx, %rdi
leaq 0xb7aff(%rip), %rsi     # 0x14a635
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x58(%rbp), %rdx
movq %rdx, 0x30(%r14,%r12)
movq %rbx, %rdi
leaq 0x938a9(%rip), %rsi     # 0x1263fc
xorl %eax, %eax
callq 0xe9226
movq 0x58(%rbp), %rax
addq 0x28(%r14,%r12), %rax
movq %rax, 0x58(%rbp)
cmpq 0x20(%r15), %rax
jle 0x92b75
movw $0x101, (%r15)          # imm = 0x101
jmp 0x92bca
leaq (%r14,%r12), %rax
movl 0x4(%r14,%r12), %ecx
cmpl $0x2, %ecx
je 0x92b95
cmpl $0x3, %ecx
jne 0x92bca
cmpl $0x0, 0xc(%r14,%r12)
je 0x92bb1
cmpl $0x2, %ecx
jne 0x92bca
movl 0xc(%r14,%r12), %ecx
cmpl $0x2, %ecx
je 0x92bc3
cmpl $0x1, %ecx
je 0x92bba
testl %ecx, %ecx
jne 0x92bca
movq %rax, 0xb0(%rbp)
jmp 0x92bca
movq %rax, 0xa8(%rbp)
jmp 0x92bca
movq %rax, 0xc0(%rbp)
jmp 0x92bca
movq %rax, 0xb8(%rbp)
movl 0x1c(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb $0x0, (%r15)
jne 0x92bfd
addq $0x10, 0x10(%rsp)
incq %r13
movl 0x2c(%rbp), %eax
addq $0x50, %r12
cmpq %rax, %r13
jb 0x9288c
movq 0x58(%rbp), %rax
movq %rax, 0x28(%r15)
movl 0x34(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb $0x0, (%r15)
leaq 0x10(%rsp), %r12
movq 0x28(%rsp), %r13
jne 0x92f36
cmpq $0x0, 0xa8(%rbp)
je 0x92ca4
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xf0faf
movq %rax, %r14
movq 0xa8(%rbp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %rax, %r8
callq 0x93156
testl %eax, %eax
je 0x92f2e
movq 0x18(%r14), %r9
testq %r9, %r9
jle 0x92f2e
movq 0x98(%rbp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x93096
movq 0x98(%rbp), %rdi
callq 0xf7557
movq %rbx, %rdi
leaq 0xa8d3c(%rip), %rsi     # 0x13b9d4
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
jmp 0x92ca7
xorl %r14d, %r14d
movq 0x98(%rbp), %rdi
callq 0xf6bea
testl %eax, %eax
je 0x92cda
movq 0x90(%rbp), %rdi
callq 0xf6c00
testl %eax, %eax
je 0x92cda
movq 0x90(%rbp), %rsi
movq 0x98(%rbp), %rdi
callq 0xf6969
movzbl 0x34(%rbp), %eax
cmpl $0x2f, %eax
je 0x92d1d
movq 0x98(%rbp), %rdx
movq 0x10(%rdx), %rcx
testq %rcx, %rcx
jle 0x92d1d
movq 0x8(%rdx), %rdx
xorl %esi, %esi
movl (%rdx,%rsi,4), %r8d
movl $0x2f, %edi
cmpl %eax, %r8d
je 0x92d12
movl $0x5f, %edi
cmpl $0x2f, %r8d
jne 0x92d15
movl %edi, (%rdx,%rsi,4)
incq %rsi
cmpq %rsi, %rcx
jne 0x92cf9
movq %rbx, %rdi
leaq 0x9c6ed(%rip), %rsi     # 0x12f414
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
cmpq $0x0, 0xc0(%rbp)
je 0x92d58
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movl $0x1, %ecx
callq 0x93c31
movq %r14, 0x38(%rsp)
cmpq $0x0, 0xb0(%rbp)
jne 0x92d71
cmpq $0x0, 0xb8(%rbp)
je 0x92d81
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x93c31
cmpq $0x0, 0xb0(%rbp)
jne 0x92db3
cmpq $0x0, 0xb8(%rbp)
jne 0x92db3
cmpq $0x0, 0xc0(%rbp)
jne 0x92db3
movl 0x8(%rbp), %edx
movq %rbx, %rdi
leaq 0x9c67b(%rip), %rsi     # 0x12f427
xorl %eax, %eax
callq 0xe9b27
cmpl $0x0, 0x2c(%rbp)
je 0x92f12
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0xa0(%rbp), %r15
cmpq $0x0, 0x20(%r15,%r14)
jle 0x92eff
cmpl $0x0, 0x4(%r15,%r14)
jne 0x92eff
cmpl $0x1, 0xc(%r15,%r14)
jne 0x92eff
addq %r14, %r15
movq 0x8(%rsp), %rax
cmpb $0x0, 0x2(%rax)
je 0x92e6b
movq %rbx, %rdi
callq 0xea9a9
movq %rax, %r13
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
leaq 0xb1519(%rip), %rdx     # 0x144332
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0xeac7c
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
movl $0x1, %ecx
callq 0xf037a
movq %rax, %r13
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x93156
movq %r13, %rdi
callq 0xf0b13
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0xea9b3
jmp 0x92efa
movl $0x1f4, %esi            # imm = 0x1F4
movq %rbx, %rdi
movl $0x1, %edx
callq 0xf0faf
movq %rax, %r13
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x93156
testl %eax, %eax
je 0x92ee7
movq %rbx, %rdi
callq 0xf6870
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 0xf0203
movq %r15, %rdi
callq 0xf7557
movq %rbx, %rdi
leaq 0x818ca(%rip), %rsi     # 0x1147a5
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
jmp 0x92eea
xorl %r15d, %r15d
movq %r13, %rdi
callq 0xf0b13
movq %r15, %rdi
callq 0xf6bb0
movq 0x28(%rsp), %r13
incq %r12
movl 0x2c(%rbp), %eax
addq $0x50, %r14
cmpq %rax, %r12
jb 0x92dc3
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x8(%rsp), %r15
leaq 0x10(%rsp), %r12
movq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0xf0b13
movl 0x30(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb $0x0, (%r15)
jne 0x9235f
incq %r13
cmpq 0x18(%r15), %r13
jl 0x923d4
jmp 0x9235f