// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/src/fmtutil-lzh.c
// Function: fmtutil_deflate_codectype1_native
static void fmtutil_deflate_codectype1_native(deark *c, struct de_dfilter_in_params *dcmpri,
	struct de_dfilter_out_params *dcmpro, struct de_dfilter_results *dres,
	void *codec_private_params)
{
	struct de_deflate_params *deflparams = (struct de_deflate_params*)codec_private_params;
	struct lzh_ctx *cctx = NULL;
	u8 is_zlib = 0;

	cctx = de_malloc(c, sizeof(struct lzh_ctx));
	cctx->modname = "deflate-native";
	cctx->c = c;
	cctx->dcmpri = dcmpri;
	cctx->dcmpro = dcmpro;
	cctx->dres = dres;

	if(deflparams->flags & DE_DEFLATEFLAG_ISZLIB) is_zlib = 1;
	if(deflparams->flags & DE_DEFLATEFLAG_DEFLATE64) cctx->is_deflate64 = 1;

	cctx->bitrd.bbll.is_lsb = 1;
	cctx->bitrd.f = dcmpri->f;
	cctx->bitrd.curpos = dcmpri->pos;
	cctx->bitrd.endpos = dcmpri->pos + dcmpri->len;

	if(is_zlib) {
		if(!lzh_read_zlib_header(c, cctx)) goto done;

		cctx->crco = de_crcobj_create(c, DE_CRCOBJ_ADLER32);
	}

	if(deflparams->ringbuf_to_use) {
		cctx->ringbuf = deflparams->ringbuf_to_use;
		cctx->ringbuf_owned_by_caller = 1;
	}
	else {
		cctx->ringbuf = de_lz77buffer_create(c, (cctx->is_deflate64 ? 65536 : 32768));
	}

	cctx->ringbuf->userdata = (void*)cctx;
	cctx->ringbuf->writebyte_cb = lzh_lz77buf_writebytecb;

	decompress_deflate_internal(cctx);

	cctx->ringbuf->userdata = NULL;
	cctx->ringbuf->writebyte_cb = NULL;

	if(!cctx->err_flag && is_zlib) {
		if(!lzh_read_zlib_trailer(c, cctx)) goto done;
	}

	if(cctx->err_flag) {
		// A default error message
		de_dfilter_set_errorf(c, dres, cctx->modname, "Deflate decoding error");
		goto done;
	}

	de_bitreader_skip_to_byte_boundary(&cctx->bitrd);
	cctx->dres->bytes_consumed = cctx->bitrd.curpos - cctx->dcmpri->pos;
	if(cctx->dres->bytes_consumed<0) {
		cctx->dres->bytes_consumed = 0;
	}
	cctx->dres->bytes_consumed_valid = 1;

done:
	destroy_lzh_ctx(cctx);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r8, %r14
movq %rcx, %rbp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r13
movl $0xd0, %esi
callq 0xe969b
movq %rax, %rbx
leaq 0x4af06(%rip), %rcx     # 0x14aee7
movq %rcx, 0x20(%rax)
movq %r13, 0x30(%rsp)
movq %r13, (%rax)
movq %r15, 0x8(%rax)
movq %r12, 0x10(%rax)
movq %rbp, 0x50(%rsp)
movq %rax, 0x8(%rsp)
movq %rbp, 0x18(%rax)
movl (%r14), %ecx
testb $0x4, %cl
je 0x10000f
movb $0x1, 0x7c(%rbx)
movq 0x8(%rsp), %rax
addq $0x38, %rax
movq %rax, (%rsp)
movb $0x1, 0x58(%rbx)
movq (%r15), %rax
movq %rax, 0x38(%rbx)
movq 0x8(%r15), %rdx
movq %rdx, 0x40(%rbx)
movq 0x10(%r15), %rax
addq %rdx, %rax
movq %rax, 0x48(%rbx)
testb $0x1, %cl
movq 0x30(%rsp), %r15
movl %ecx, 0x40(%rsp)
je 0x100182
leaq 0x4aeba(%rip), %rsi     # 0x14af0d
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
movq (%rsp), %r12
movq %r12, %rdi
movl $0x8, %esi
callq 0xf2271
movq %rax, %r13
movq %r12, %rdi
movl $0x8, %esi
callq 0xf2271
movq %rax, %r12
movl $0xff, %eax
movl %r13d, %ebp
andl %eax, %ebp
andl $0xf, %r13d
leaq 0x4ae7d(%rip), %rsi     # 0x14af20
movq %r15, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0xe93cf
movl %ebp, %edx
shrl $0x4, %edx
leaq 0x4ae6b(%rip), %rsi     # 0x14af27
movq %r15, %rdi
xorl %eax, %eax
callq 0xe93cf
movl %r12d, %edx
andl $0x1f, %edx
leaq 0x4ae5e(%rip), %rsi     # 0x14af31
movq %r15, %rdi
xorl %eax, %eax
callq 0xe93cf
movl %r12d, %edx
shrl $0x5, %edx
andl $0x1, %edx
leaq 0x4ae4f(%rip), %rsi     # 0x14af3c
movq %r15, %rdi
xorl %eax, %eax
callq 0xe93cf
movl %r12d, %edx
shrl $0x6, %edx
andl $0x3, %edx
leaq 0x4ae3f(%rip), %rsi     # 0x14af46
movq %r15, %rdi
xorl %eax, %eax
callq 0xe93cf
btl $0x5, %r12d
jb 0x100ca6
cmpl $0x8, %r13d
jne 0x100ca6
movl $0xff, %eax
andl %eax, %r12d
movl %ebp, %eax
shll $0x8, %eax
orl %r12d, %eax
imulq $0x8421085, %rax, %rcx  # imm = 0x8421085
shrq $0x20, %rcx
movl %ecx, %edx
shll $0x5, %edx
subl %edx, %ecx
addl %eax, %ecx
jne 0x100ca6
cmpl $0x80, %ebp
jae 0x100ca6
movq 0x30(%rsp), %r15
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %r15, %rdi
movl $0x15, %esi
callq 0xeba56
movq %rax, 0xc0(%rbx)
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x100198
movq %rax, 0x70(%rbx)
movl $0x1, 0x78(%rbx)
jmp 0x1001b7
xorl %esi, %esi
cmpb $0x0, 0x7c(%rbx)
setne %sil
shll $0xf, %esi
addl $0x8000, %esi           # imm = 0x8000
movq %r15, %rdi
callq 0xfb2c3
movq %rax, 0x70(%rbx)
movq 0x8(%rsp), %rdx
leaq 0x40(%rdx), %rax
movq %rax, 0x48(%rsp)
movq 0x70(%rbx), %rax
movq %rbx, (%rax)
leaq 0x17e7(%rip), %rcx      # 0x1019ba
movq %rcx, 0x8(%rax)
movq (%rbx), %r15
leaq 0x90(%rdx), %rax
movq %rax, 0x38(%rsp)
leaq 0x98(%rdx), %rax
movq %rax, 0x10(%rsp)
addq $0xa0, %rdx
movq %rdx, 0x8(%rsp)
cmpb $0x0, 0x50(%rbx)
jne 0x100bad
cmpl $0x0, 0x30(%rbx)
jne 0x100bad
movq 0x10(%rbx), %rax
cmpb $0x0, 0x8(%rax)
je 0x10022a
movq 0x28(%rbx), %rcx
cmpq 0x10(%rax), %rcx
jge 0x100bad
movq %rbx, %rdi
callq 0x10277d
movl $0x20, %edx
movq (%rsp), %r14
movq %r14, %rdi
leaq 0xb0(%rsp), %r12
movq %r12, %rsi
callq 0xf2360
movq %r14, %rdi
movl $0x1, %esi
callq 0xf2271
movq %rax, %r13
movq %r14, %rdi
movl $0x2, %esi
callq 0xf2271
movq %rax, %r14
movq %r15, %rdi
leaq 0x4acfc(%rip), %rsi     # 0x14af74
movq %r12, %rdx
movl %r14d, %ecx
movq %r13, 0x58(%rsp)
movl %r13d, %r8d
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
cmpl $0x2, %r14d
je 0x1006ee
cmpl $0x1, %r14d
je 0x100369
testl %r14d, %r14d
jne 0x100a93
movq (%rsp), %r13
movq %r13, %rdi
callq 0xf22f1
movq %r13, %rdi
movl $0x10, %esi
callq 0xf2271
movq %rax, %r14
movq %r15, %rdi
leaq 0x4acd0(%rip), %rsi     # 0x14afad
movl %r14d, %edx
xorl %eax, %eax
callq 0xe93cf
movq %r13, %rdi
movl $0x10, %esi
callq 0xf2271
movq %rax, %r12
movq %r15, %rdi
leaq 0x4acca(%rip), %rsi     # 0x14afcb
movl %r12d, %edx
xorl %eax, %eax
callq 0xe93cf
xorl %r14d, %r12d
cmpl $0xffff, %r12d          # imm = 0xFFFF
jne 0x100ab7
movl %r14d, %r14d
movq %r13, %rdi
callq 0xf22f1
testq %r14, %r14
jle 0x100ae4
movq 0x40(%rbx), %r12
movq 0x48(%rbx), %r13
cmpq %r13, %r12
jge 0x10035b
movq 0x38(%rbx), %rdi
movq 0x48(%rsp), %rsi
callq 0xef14d
movq 0x70(%rbx), %rdi
movzbl %al, %esi
callq 0xfb382
decq %r14
jmp 0x10035f
movb $0x1, 0x50(%rbx)
cmpq %r13, %r12
jl 0x100326
jmp 0x100ae7
movl $0x120, %esi            # imm = 0x120
movl $0x120, %edx            # imm = 0x120
movq %r15, %rdi
callq 0x105165
movq %rax, %r14
movq 0x10(%rsp), %rax
movq %r14, (%rax)
xorl %r12d, %r12d
movq 0x10(%r14), %rsi
movq %r15, %rdi
movl %r12d, %edx
movl $0x8, %ecx
callq 0x104de7
testl %eax, %eax
je 0x1003b2
leaq 0x1(%r12), %rax
cmpq $0x8f, %r12
movq %rax, %r12
jne 0x100389
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq $-0x6f, %r12
movq 0x10(%r14), %rsi
leal 0xff(%r12), %edx
movq %r15, %rdi
movl $0x9, %ecx
callq 0x104de7
testl %eax, %eax
je 0x1003eb
leaq 0x1(%r12), %rax
testq %r12, %r12
movq %rax, %r12
jne 0x1003c1
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq $-0x17, %r12
movq 0x10(%r14), %rsi
leal 0x117(%r12), %edx
movq %r15, %rdi
movl $0x7, %ecx
callq 0x104de7
testl %eax, %eax
je 0x100424
leaq 0x1(%r12), %rax
testq %r12, %r12
movq %rax, %r12
jne 0x1003fa
movq 0x10(%rsp), %rax
movq (%rax), %r14
movq $-0x7, %r12
movq 0x10(%r14), %rsi
leal 0x11f(%r12), %edx
movq %r15, %rdi
movl $0x8, %ecx
callq 0x104de7
testl %eax, %eax
je 0x10045d
leaq 0x1(%r12), %rax
testq %r12, %r12
movq %rax, %r12
jne 0x100433
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
xorl %r12d, %r12d
movq %r15, %rdi
xorl %ecx, %ecx
leaq 0x4ad01(%rip), %r8      # 0x14b17d
callq 0x104e5d
testl %eax, %eax
je 0x100b90
movl $0x20, %esi
movl $0x20, %edx
movq %r15, %rdi
callq 0x105165
movq %rax, %r14
movq 0x8(%rsp), %rax
movq %r14, (%rax)
xorl %r12d, %r12d
movq 0x10(%r14), %rsi
movq %r15, %rdi
movl %r12d, %edx
movl $0x5, %ecx
callq 0x104de7
testl %eax, %eax
je 0x1004cf
leaq 0x1(%r12), %rax
cmpq $0x1f, %r12
movq %rax, %r12
jne 0x1004a9
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
xorl %r12d, %r12d
movq %r15, %rdi
xorl %ecx, %ecx
leaq 0x4aca8(%rip), %r8      # 0x14b196
callq 0x104e5d
testl %eax, %eax
je 0x100b90
xorl %r12d, %r12d
cmpb $0x0, 0x50(%rbx)
jne 0x10050a
cmpl $0x0, 0x30(%rbx)
je 0x100516
xorl %ebp, %ebp
testb %bpl, %bpl
jne 0x1004fe
jmp 0x100ad8
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0x1026f6
movl %eax, %r14d
cmpl $0xff, %eax
ja 0x10055b
movq (%rbx), %rax
cmpl $0x4, (%rax)
jl 0x100549
movq %r15, %rdi
leaq 0x4aad4(%rip), %rsi     # 0x14b013
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x70(%rbx), %rdi
movzbl %r14b, %esi
callq 0xfb382
jmp 0x1006c1
cmpl $0x100, %r14d           # imm = 0x100
sete %al
cmpl $0x11e, %r14d           # imm = 0x11E
setae %cl
orb %al, %cl
jne 0x100590
cmpl $0x108, %r14d           # imm = 0x108
movq (%rsp), %rdi
ja 0x1005c8
movl %r14d, %ebp
addl $0xffffff02, %ebp       # imm = 0xFFFFFF02
xorl %esi, %esi
jmp 0x10062b
cmpl $0x100, %r14d           # imm = 0x100
jne 0x1005ef
movq (%rbx), %rax
movl $0x1, %r12d
cmpl $0x4, (%rax)
jl 0x10050a
xorl %ebp, %ebp
movq %r15, %rdi
leaq 0x4aa76(%rip), %rsi     # 0x14b02d
movl $0x100, %edx            # imm = 0x100
xorl %eax, %eax
callq 0xe9226
jmp 0x10050c
cmpl $0x11c, %r14d           # imm = 0x11C
ja 0x100611
leal -0x105(%r14), %esi
shrl $0x2, %esi
movl %r14d, %ebp
decl %ebp
andl $0x3, %ebp
orl $0x4, %ebp
movl %esi, %ecx
shll %cl, %ebp
addl $0x3, %ebp
jmp 0x10062b
xorl %ebp, %ebp
movq %r15, %rdi
leaq 0x4aa3a(%rip), %rsi     # 0x14b035
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
movl $0x1, 0x30(%rbx)
jmp 0x10050c
xorl %esi, %esi
cmpb $0x0, 0x7c(%rbx)
setne %sil
movl $0x3, %ebp
movl $0x102, %eax            # imm = 0x102
cmovel %eax, %ebp
shll $0x4, %esi
testl %esi, %esi
je 0x100636
callq 0xf2271
addl %eax, %ebp
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x1026f6
movl %eax, %r13d
cmpl $0x4, %eax
jae 0x100653
xorl %esi, %esi
movq (%rsp), %rdi
jmp 0x10067d
cmpl $0x1e, %r13d
movq (%rsp), %rdi
jb 0x100669
cmpl $0x1f, %r13d
ja 0x1006c9
cmpb $0x0, 0x7c(%rbx)
je 0x1006c9
movl %r13d, %esi
shrl %esi
decl %esi
andl $0x1, %r13d
orl $0x2, %r13d
movl %esi, %ecx
shll %cl, %r13d
testl %esi, %esi
je 0x100689
callq 0xf2271
addl %eax, %r13d
movq (%rbx), %rax
cmpl $0x4, (%rax)
jl 0x1006ac
leal 0x1(%r13), %ecx
movq %r15, %rdi
leaq 0x4a97b(%rip), %rsi     # 0x14b01a
movl %r14d, %edx
movl %ebp, %r8d
xorl %eax, %eax
callq 0xe9226
movq 0x70(%rbx), %rdi
notl %r13d
addl 0x10(%rdi), %r13d
movl %r13d, %esi
movl %ebp, %edx
callq 0xfb3af
movb $0x1, %bpl
jmp 0x10050c
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
xorl %r13d, %r13d
movq %r15, %rdi
leaq 0x4aac9(%rip), %rcx     # 0x14b1a7
xorl %eax, %eax
callq 0xfa71e
movl $0x1, 0x30(%rbx)
jmp 0x100689
movq %r15, %rdi
leaq 0x2c(%rsp), %rsi
callq 0xe958c
movq %rbx, %rdi
callq 0x10277d
xorps %xmm0, %xmm0
movups %xmm0, 0x9c(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movq (%rsp), %r12
movq %r12, %rdi
movl $0x5, %esi
callq 0xf2271
movq %rax, 0x18(%rsp)
leal 0x101(%rax), %edx
movq %r15, %rdi
leaq 0x4a8fb(%rip), %rsi     # 0x14b049
movl %edx, 0x28(%rsp)
xorl %eax, %eax
callq 0xe93cf
movq %r12, %rdi
movl $0x5, %esi
callq 0xf2271
movq %rax, %rbp
leal 0x1(%rax), %r14d
movq %r15, %rdi
leaq 0x4a8e8(%rip), %rsi     # 0x14b05f
movl %r14d, %edx
xorl %eax, %eax
callq 0xe93cf
movq %r12, %rdi
movl $0x4, %esi
callq 0xf2271
movq %rax, %r12
leal 0x4(%rax), %edx
movq %r15, %rdi
leaq 0x4a8d4(%rip), %rsi     # 0x14b072
xorl %eax, %eax
callq 0xe93cf
movl $0x13, %esi
movl $0x13, %edx
movq %r15, %rdi
callq 0x105165
movq %rax, 0x90(%rbx)
addl $0x4, %r12d
je 0x10080d
movl %r12d, %r13d
xorl %r12d, %r12d
movq (%rsp), %rdi
movl $0x3, %esi
callq 0xf2271
leaq 0x4ac21(%rip), %rcx     # 0x14b400
movzbl (%r12,%rcx), %ecx
movl %eax, 0x60(%rsp,%rcx,4)
cmpl $0x3, (%r15)
jl 0x100805
movq %r15, %rdi
leaq 0x4a893(%rip), %rsi     # 0x14b08b
movl %r12d, %edx
movl %eax, %r8d
xorl %eax, %eax
callq 0xe9461
incq %r12
cmpq %r12, %r13
jne 0x1007ca
xorl %r12d, %r12d
movl 0x60(%rsp,%r12,4), %ecx
testl %ecx, %ecx
je 0x100830
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
movl %r12d, %edx
callq 0x104de7
incq %r12
cmpq $0x13, %r12
jne 0x100810
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rdi
callq 0x104de2
leaq 0x4a84e(%rip), %rcx     # 0x14b09f
testq %rax, %rax
jle 0x100b6f
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
leaq 0x4a847(%rip), %r8      # 0x14b0bd
callq 0x104e5d
testl %eax, %eax
je 0x100b81
movl 0x28(%rsp), %r12d
movl %r12d, %esi
movl $0x11e, %edx            # imm = 0x11E
movq %r15, %rdi
callq 0x105165
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movl %r14d, %esi
movl $0x20, %edx
movq %r15, %rdi
callq 0x105165
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq %r15, %rdi
leaq 0x4a818(%rip), %rsi     # 0x14b0da
xorl %eax, %eax
callq 0xe9461
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
leaq 0x4a870(%rip), %rcx     # 0x14b14d
addl %r12d, %r14d
je 0x100b6f
movq 0x18(%rsp), %rax
addl %ebp, %eax
addl $0x102, %eax            # imm = 0x102
movl %eax, 0x44(%rsp)
movl $0x0, 0x24(%rsp)
xorl %ebp, %ebp
movl $0x0, 0x18(%rsp)
xorl %r14d, %r14d
movl 0x28(%rsp), %r12d
cmpl %r12d, %r14d
leaq 0x4aa4a(%rip), %r13     # 0x14b364
leaq 0x4a7e1(%rip), %rax     # 0x14b102
cmovbq %rax, %r13
movl $0x0, %eax
cmovbl %eax, %r12d
testl %ebp, %ebp
je 0x100986
decl %ebp
cmpl $0x0, 0x18(%rsp)
je 0x10099f
cmpl 0x28(%rsp), %r14d
jae 0x1009a6
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
movl %r14d, %edx
movl 0x18(%rsp), %ecx
callq 0x104de7
testl %eax, %eax
setne %cl
cmpl $0x100, %r14d           # imm = 0x100
sete %dl
testb %cl, %dl
movl $0x1, %ecx
cmovnel %ecx, %eax
movl 0x24(%rsp), %edx
movzbl %dl, %edx
cmovnel %ecx, %edx
movl %edx, 0x24(%rsp)
jmp 0x1009c4
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
callq 0x1026f6
xorl %ebp, %ebp
cmpl $0x0, 0x30(%rbx)
je 0x1009e4
xorl %eax, %eax
jmp 0x1009c9
movl $0x1, %eax
jmp 0x1009c4
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rsi
movl %r14d, %edx
subl %r12d, %edx
movq %r15, %rdi
movl 0x18(%rsp), %ecx
callq 0x104de7
testl %eax, %eax
setne %al
testb %al, %al
je 0x100b81
incl %r14d
cmpl %r14d, 0x44(%rsp)
jne 0x10090b
jmp 0x100af3
cmpl $0xf, %eax
ja 0x100a15
movl %r14d, %ecx
subl %r12d, %ecx
xorl %ebp, %ebp
movq %r15, %rdi
leaq 0x4a70f(%rip), %rsi     # 0x14b10a
movq %r13, %rdx
movl %eax, %r8d
movl %eax, %r13d
xorl %eax, %eax
callq 0xe9461
movl %r13d, 0x18(%rsp)
jmp 0x100934
cmpl $0x12, %eax
movq (%rsp), %rdi
je 0x100a62
cmpl $0x11, %eax
je 0x100a4d
xorl %ebp, %ebp
cmpl $0x10, %eax
jne 0x10099b
movl $0x2, %esi
callq 0xf2271
movq %rax, %rbp
leal 0x3(%rax), %edx
addl $0x2, %ebp
movq %r15, %rdi
leaq 0x4a6d1(%rip), %rsi     # 0x14b11c
jmp 0x100a87
movl $0x3, %esi
callq 0xf2271
movq %rax, %rbp
leal 0x3(%rax), %edx
addl $0x2, %ebp
jmp 0x100a75
movl $0x7, %esi
callq 0xf2271
movq %rax, %rbp
leal 0xb(%rax), %edx
addl $0xa, %ebp
movl $0x0, 0x18(%rsp)
movq %r15, %rdi
leaq 0x4a6b2(%rip), %rsi     # 0x14b139
xorl %eax, %eax
callq 0xe9461
jmp 0x100934
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
xorl %r12d, %r12d
movq %r15, %rdi
leaq 0x4a4ea(%rip), %rcx     # 0x14af92
movl %r14d, %r8d
xorl %eax, %eax
callq 0xfa71e
jmp 0x100b90
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
xorl %r12d, %r12d
movq %r15, %rdi
leaq 0x4a519(%rip), %rcx     # 0x14afe5
xorl %eax, %eax
callq 0xfa71e
jmp 0x100b90
testl %r12d, %r12d
setne %r12b
jmp 0x100b90
xorl %r14d, %r14d
testq %r14, %r14
sete %r12b
jmp 0x100b90
leaq 0x4a653(%rip), %rcx     # 0x14b14d
cmpb $0x0, 0x24(%rsp)
je 0x100b6f
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
leaq 0x4a64b(%rip), %r8      # 0x14b175
callq 0x104e5d
testl %eax, %eax
je 0x100b81
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
xorl %r12d, %r12d
movq %r15, %rdi
xorl %ecx, %ecx
leaq 0x4a63c(%rip), %r8      # 0x14b18e
callq 0x104e5d
movl %eax, %ebp
movl 0x2c(%rsp), %esi
movq %r15, %rdi
callq 0xe9595
testl %ebp, %ebp
jne 0x1004fb
jmp 0x100b90
movq (%rbx), %rdi
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
xorl %eax, %eax
callq 0xfa71e
movl 0x2c(%rsp), %esi
movq %r15, %rdi
callq 0xe9595
xorl %r12d, %r12d
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
testb %r12b, %r12b
je 0x100bad
cmpl $0x0, 0x58(%rsp)
je 0x1001fe
movq 0x70(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
testb $0x1, 0x40(%rsp)
movq 0x30(%rsp), %r15
je 0x100c62
cmpl $0x0, 0x30(%rbx)
jne 0x100c62
movq (%rsp), %rdi
callq 0xf22f1
movq 0x40(%rbx), %rdx
leaq 0x4a5d4(%rip), %rsi     # 0x14b1b9
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x40(%rbx), %rax
addq $0x4, %rax
cmpq 0x48(%rbx), %rax
jg 0x100c88
movq 0x38(%rbx), %rdi
movq 0x48(%rsp), %rsi
callq 0xef34e
movq %rax, %r14
leaq 0x21cf1(%rip), %rsi     # 0x122913
movq %r15, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe93cf
movq 0xc0(%rbx), %rdi
callq 0xebe2a
movl %eax, %ebp
leaq 0x21de7(%rip), %rsi     # 0x122a2b
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe93cf
cmpl %r14d, %ebp
jne 0x100c88
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
cmpl $0x0, 0x30(%rbx)
movq (%rsp), %rdi
je 0x100cd3
movq 0x20(%rbx), %rdx
leaq 0x4a27f(%rip), %rcx     # 0x14aef6
movq %r15, %rdi
movq 0x50(%rsp), %rsi
xorl %eax, %eax
callq 0xfa71e
jmp 0x100cf9
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
leaq 0x4a536(%rip), %rcx     # 0x14b1cd
movq %r15, %rdi
xorl %eax, %eax
callq 0xfa71e
movq %r15, %rdi
jmp 0x100cc7
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
leaq 0x4a29c(%rip), %rcx     # 0x14af51
movq 0x30(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0xfa71e
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
jmp 0x100cf9
callq 0xf22f1
movq 0x40(%rbx), %rax
movq 0x8(%rbx), %rcx
movq 0x18(%rbx), %rdx
subq 0x8(%rcx), %rax
xorl %ecx, %ecx
testq %rax, %rax
cmovgq %rax, %rcx
movq %rcx, 0x8(%rdx)
movb $0x1, 0x4(%rdx)
movq %rbx, %rdi
callq 0xffe9f
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq