// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/src/fmtutil-lzh.c
// Function: fmtutil_decompress_lh5x
void fmtutil_decompress_lh5x(deark *c, struct de_dfilter_in_params *dcmpri,
	struct de_dfilter_out_params *dcmpro, struct de_dfilter_results *dres,
	struct de_lh5x_params *lzhp)
{
	struct lzh_ctx *cctx = NULL;

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

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

	decompress_lh5x_internal(cctx, lzhp);

	if(cctx->err_flag) {
		// A default error message
		de_dfilter_set_errorf(c, dres, cctx->modname, "LZH 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 $0xb8, %rsp
movq %r8, %rbp
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl $0xd0, %esi
callq 0xe969b
movq %rax, %rbx
leaq 0x4b975(%rip), %rax     # 0x14acd9
movq %rax, 0x20(%rbx)
movq %r12, 0x40(%rsp)
movq %r12, (%rbx)
movq %r15, 0x8(%rbx)
movq %r14, 0x10(%rbx)
movq %r13, 0x18(%rbx)
movq (%r15), %rax
leaq 0x38(%rbx), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, 0x38(%rbx)
movq 0x8(%r15), %rax
movq %rax, 0x40(%rbx)
addq 0x10(%r15), %rax
movq %rax, 0x48(%rbx)
movl $0x1fe, 0x80(%rbx)      # imm = 0x1FE
movq %rbp, 0x58(%rsp)
movl (%rbp), %eax
cmpl $0x6, %eax
movq %r13, 0x60(%rsp)
jg 0xff3ce
cmpl $0x5, %eax
je 0xff419
cmpl $0x6, %eax
jne 0xff3f7
movl $0x8000, %esi           # imm = 0x8000
movl $0x10, %eax
jmp 0xff434
cmpl $0x7, %eax
je 0xff42a
cmpl $0x64, %eax
jne 0xff3f7
movb $0x1, 0x7d(%rbx)
movl $0x121, 0x80(%rbx)      # imm = 0x121
movl $0x10000, %esi          # imm = 0x10000
movl $0x20, %eax
movl $0x6, %ecx
jmp 0xff439
leaq 0x4b8db(%rip), %rdx     # 0x14acd9
leaq 0x4b935(%rip), %rcx     # 0x14ad3a
movq 0x40(%rsp), %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0xfa71e
jmp 0xffe26
movl $0x2000, %esi           # imm = 0x2000
movl $0xe, %eax
movl $0x4, %ecx
jmp 0xff439
movl $0x10000, %esi          # imm = 0x10000
movl $0x11, %eax
movl $0x5, %ecx
movl %ecx, 0x84(%rbx)
movl %eax, 0x88(%rbx)
movq 0x58(%rsp), %r14
movb 0x4(%r14), %al
movb %al, 0x68(%rbx)
movb 0x5(%r14), %al
movb %al, 0x69(%rbx)
movq 0x40(%rsp), %rdi
callq 0xfb2c3
movq %rax, 0x70(%rbx)
movq %rbx, (%rax)
leaq 0x254a(%rip), %rcx      # 0x1019ba
movq %rcx, 0x8(%rax)
movzbl 0x6(%r14), %esi
testl %esi, %esi
je 0xff485
movq %rax, %rdi
callq 0xfb332
cmpb $0x0, 0x50(%rbx)
jne 0xffe26
leaq 0x90(%rbx), %rax
movq %rax, 0x48(%rsp)
leaq 0x98(%rbx), %rax
movq %rax, 0x38(%rsp)
movq %rbx, %rax
addq $0xa0, %rax
movq %rax, 0x28(%rsp)
leaq 0x70(%rsp), %r15
leaq 0x1ec5c(%rip), %r13     # 0x11e11d
leaq 0x4b97b(%rip), %r12     # 0x14ae43
movl $0x0, 0x24(%rsp)
movq 0x10(%rbx), %rax
cmpb $0x0, 0x8(%rax)
je 0xff4e8
movq 0x28(%rbx), %rcx
cmpq 0x10(%rax), %rcx
jge 0xffe26
movq (%rbx), %rbp
movq %rbp, %rdi
leaq 0x54(%rsp), %rsi
callq 0xe958c
movl $0x20, %edx
movq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xf2360
movq %r14, %rdi
movl $0x10, %esi
callq 0xf2271
cmpb $0x0, 0x50(%rbx)
je 0xff539
movq %rbp, %rdi
leaq 0x4b83d(%rip), %rsi     # 0x14ad67
movq %r15, %rdx
xorl %eax, %eax
callq 0xe93cf
jmp 0xffdea
movq %rax, %r14
movq %rbp, %rdi
leaq 0x4b84d(%rip), %rsi     # 0x14ad93
movl 0x24(%rsp), %edx
movq %r15, %rcx
xorl %eax, %eax
callq 0xe93cf
movq %rbp, 0x18(%rsp)
movq %rbp, %rdi
movl $0x1, %esi
callq 0xe9585
movq (%rbx), %rdi
leaq 0x4b832(%rip), %rsi     # 0x14ada2
movl %r14d, %edx
xorl %eax, %eax
callq 0xe93cf
testl %r14d, %r14d
movq 0x10(%rsp), %rbp
je 0xff6e9
movq %r14, 0x68(%rsp)
movq %rbx, %rdi
callq 0x10277d
movq (%rbx), %r15
movq %r15, %rdi
leaq 0xc(%rsp), %rsi
callq 0xe958c
movl $0x20, %edx
movq %rbp, %rdi
leaq 0x90(%rsp), %r14
movq %r14, %rsi
callq 0xf2360
movq %r15, %rdi
leaq 0x4b89a(%rip), %rsi     # 0x14ae61
leaq 0x4b886(%rip), %r12     # 0x14ae54
movq %r12, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0xe93cf
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
movq %rbp, %rdi
movl $0x5, %esi
callq 0xf2271
movq %rax, %r14
movq %r15, %rdi
leaq 0x4b86d(%rip), %rsi     # 0x14ae6f
movq %r12, %rdx
movl %r14d, %ecx
xorl %eax, %eax
callq 0xe93cf
cmpl $0x14, %r14d
movl $0x14, %r12d
cmovbl %r14d, %r12d
movq %r15, %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0x105165
movq %rax, 0x90(%rbx)
testl %r14d, %r14d
je 0xff736
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x1027ff
movl %eax, %r14d
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9461
movq 0x90(%rbx), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %r14d, %ecx
callq 0x104de7
incl %ebp
cmpl $0x3, %ebp
jne 0xff6ab
movq 0x10(%rsp), %rdi
movl $0x2, %esi
callq 0xf2271
movq %rax, %rbp
testl %ebp, %ebp
je 0xff6a6
movq %r15, %rdi
leaq 0x4b7f0(%rip), %rsi     # 0x14ae88
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9461
addl $0x3, %ebp
jmp 0xff6ab
movl $0x3, %ebp
cmpl %r12d, %ebp
jb 0xff63d
cmpb $0x0, 0x50(%rbx)
movq 0x10(%rsp), %rbp
jne 0xffda9
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x104e5d
testl %eax, %eax
jne 0xff775
jmp 0xffda9
cmpb $0x0, 0x69(%rbx)
je 0xff70c
cmpb $0x0, 0x6a(%rbx)
jne 0xff70c
movq 0x18(%rsp), %rdi
leaq 0x4b6b8(%rip), %rsi     # 0x14adb9
xorl %eax, %eax
callq 0xe9b27
movb $0x1, 0x6a(%rbx)
movzbl 0x68(%rbx), %eax
cmpl $0x1, %eax
je 0xff940
cmpl $0x2, %eax
je 0xff938
cmpl $0x3, %eax
jne 0xff958
movl $0x10000, %r14d         # imm = 0x10000
jmp 0xff588
movq %rbp, %rdi
movl $0x5, %esi
callq 0xf2271
movq %rax, %r14
movq %r15, %rdi
leaq 0x1e9c4(%rip), %rsi     # 0x11e114
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9461
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r14d, %r8d
callq 0x104901
movl 0xc(%rsp), %esi
movq %r15, %rdi
callq 0xe9595
movq %rbp, %r12
movq (%rbx), %rbp
movq %rbp, %rdi
leaq 0xc(%rsp), %rsi
callq 0xe958c
movl $0x20, %edx
movq %r12, %rdi
leaq 0x90(%rsp), %r14
movq %r14, %rsi
callq 0xf2360
movq %rbp, %rdi
leaq 0x4b6ab(%rip), %rsi     # 0x14ae61
leaq 0x2dced(%rip), %r15     # 0x12d4aa
movq %r15, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0xe93cf
movq %rbp, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r12, %rdi
movl $0x9, %esi
callq 0xf2271
movq %rbp, %rdi
leaq 0x4b681(%rip), %rsi     # 0x14ae6f
movq %r15, %rdx
movq %rbp, %r15
movq %r12, %rbp
movq %rax, %r12
movl %r12d, %ecx
xorl %eax, %eax
callq 0xe93cf
movl %r12d, %edx
movq %r15, %rdi
movq %rdx, %rsi
callq 0x105165
movq %rax, 0x98(%rbx)
cmpl %r12d, 0x80(%rbx)
jb 0xffda9
testl %r12d, %r12d
je 0xff97f
xorl %ebp, %ebp
movq %r12, 0x30(%rsp)
movq %rbx, %rdi
movq 0x48(%rsp), %rsi
callq 0x1026f6
movl %eax, %r13d
cmpl $0x2, %eax
ja 0xff869
movl %r13d, %r14d
testl %r13d, %r13d
je 0xff8cd
movq %r15, %r12
cmpl $0x1, %r13d
jne 0xff8aa
movl $0x2, %r15d
movl $0x4, %esi
jmp 0xff8b5
movl %r13d, %r14d
addl $-0x2, %r14d
movq %r15, %rdi
leaq 0x4b652(%rip), %rsi     # 0x14aecc
movl %ebp, %edx
movl %r13d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0xe9461
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %r14d, %ecx
callq 0x104de7
movl $0x1, %r14d
jmp 0xff8ec
movl $0x13, %r15d
movl $0x9, %esi
movq 0x10(%rsp), %rdi
callq 0xf2271
movq %rax, %r14
addl %r15d, %r14d
movq %r12, %r15
movq 0x30(%rsp), %r12
movq %r15, %rdi
leaq 0x4b5c0(%rip), %rsi     # 0x14ae97
movl %ebp, %edx
movl %r13d, %ecx
movl %r13d, %r8d
movl %r14d, %r9d
xorl %eax, %eax
callq 0xe9461
incl %r14d
addl %r14d, %ebp
cmpl %r12d, %ebp
jb 0xff836
cmpb $0x0, 0x50(%rbx)
movq 0x10(%rsp), %rbp
leaq 0x1e815(%rip), %r13     # 0x11e11d
jne 0xffda9
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x104e5d
testl %eax, %eax
jne 0xff9cb
jmp 0xffda9
xorl %r14d, %r14d
jmp 0xff588
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
leaq 0x4b4a7(%rip), %rsi     # 0x14adf6
xorl %eax, %eax
callq 0xe93cf
jmp 0xff976
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
leaq 0x4b4a3(%rip), %rcx     # 0x14ae12
xorl %eax, %eax
callq 0xfa71e
movb $0x1, 0x50(%rbx)
jmp 0xffdea
movq %rbp, %rdi
movl $0x9, %esi
callq 0xf2271
movq %rax, %r14
movq %r15, %rdi
leaq 0x1e77b(%rip), %rsi     # 0x11e114
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9461
cmpl %r14d, 0x80(%rbx)
jbe 0xffda9
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r14d, %r8d
callq 0x104901
movl 0xc(%rsp), %esi
movq %r15, %rdi
callq 0xe9595
movq (%rbx), %r15
movq %r15, %rdi
leaq 0xc(%rsp), %rsi
callq 0xe958c
movl $0x20, %edx
movq %rbp, %rdi
leaq 0x90(%rsp), %r14
movq %r14, %rsi
callq 0xf2360
movq %r15, %rdi
leaq 0x4b458(%rip), %rsi     # 0x14ae61
leaq 0x291c3(%rip), %r13     # 0x128bd3
movq %r13, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0xe93cf
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
movl 0x84(%rbx), %esi
movq %rbp, %rdi
callq 0xf2271
movq %rax, %r12
movq %r15, %rdi
leaq 0x4b42a(%rip), %rsi     # 0x14ae6f
movq %r13, %rdx
leaq 0x1e6ce(%rip), %r13     # 0x11e11d
movl %r12d, %ecx
xorl %eax, %eax
callq 0xe93cf
cmpl %r12d, 0x88(%rbx)
jb 0xffda9
movl %r12d, %edx
movq %r15, %rdi
movq %rdx, %rsi
callq 0x105165
movq 0x28(%rsp), %rcx
movq %rax, (%rcx)
testl %r12d, %r12d
je 0xffaf3
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x1027ff
movl %eax, %r14d
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9461
movq 0xa0(%rbx), %rax
movq 0x10(%rax), %rsi
movq %r15, %rdi
movl %ebp, %edx
movl %r14d, %ecx
callq 0x104de7
incl %ebp
cmpl %ebp, %r12d
jne 0xffa83
cmpb $0x0, 0x50(%rbx)
movq 0x10(%rsp), %rbp
jne 0xffda9
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x104e5d
testl %eax, %eax
jne 0xffb40
jmp 0xffda9
movl 0x84(%rbx), %esi
movq %rbp, %rdi
callq 0xf2271
movq %rax, %r14
movq %r15, %rdi
leaq 0x1e606(%rip), %rsi     # 0x11e114
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9461
cmpl %r14d, 0x88(%rbx)
jbe 0xffda9
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r14d, %r8d
callq 0x104901
movl 0xc(%rsp), %esi
movq %r15, %rdi
callq 0xe9595
movl $0x20, %edx
movq %rbp, %rdi
leaq 0x70(%rsp), %r15
movq %r15, %rsi
callq 0xf2360
movq 0x18(%rsp), %rdi
leaq 0x1e56f(%rip), %rsi     # 0x11e0dc
movq %r15, %rdx
xorl %eax, %eax
callq 0xe93cf
leaq 0x4b2c5(%rip), %r12     # 0x14ae43
movq 0x68(%rsp), %r14
testl %r14d, %r14d
je 0xffbb6
cmpb $0x0, 0x50(%rbx)
movq 0x10(%rsp), %rbp
jne 0xffbb9
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
callq 0x1026f6
cmpb $0x0, 0x50(%rbx)
je 0xffbc9
xorl %eax, %eax
leaq 0x70(%rsp), %r15
leaq 0x4b28f(%rip), %r12     # 0x14ae43
jmp 0xffbbb
xorl %r14d, %r14d
xorl %eax, %eax
testb %al, %al
movq 0x18(%rsp), %rbp
jne 0xffb83
jmp 0xffdea
movl %eax, %r12d
cmpl $0xff, %eax
ja 0xffc11
movq 0x18(%rsp), %rax
cmpl $0x4, (%rax)
jl 0xffbf3
movq 0x18(%rsp), %rdi
leaq 0x4a963(%rip), %rsi     # 0x14a54c
movl %r12d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x70(%rbx), %rdi
movzbl %r12b, %esi
callq 0xfb382
leaq 0x70(%rsp), %r15
leaq 0x4b237(%rip), %r12     # 0x14ae43
jmp 0xffcea
cmpb $0x0, 0x7d(%rbx)
setne %al
cmpl $0x108, %r12d           # imm = 0x108
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xffc82
movl $0x202, %r15d           # imm = 0x202
cmpl $0x11f, %r12d           # imm = 0x11F
ja 0xffc8c
movq %rbp, %rdi
leal -0x104(%r12), %ebp
shrl $0x2, %ebp
movl %ebp, %esi
callq 0xf2271
movb 0x50(%rbx), %dl
movl $0x2, %r13d
testb %dl, %dl
movl 0x30(%rsp), %r15d
jne 0xffc77
andl $0x3, %r12d
orl $0x4, %r12d
movl %ebp, %ecx
shll %cl, %r12d
leal (%r12,%rax), %r15d
addl $0x3, %r15d
xorl %r13d, %r13d
testb %dl, %dl
movq 0x10(%rsp), %rbp
jne 0xffca5
jmp 0xffc8c
addl $0xffffff03, %r12d      # imm = 0xFFFFFF03
movl %r12d, %r15d
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
callq 0x1026f6
movl $0x2, %r13d
cmpb $0x0, 0x50(%rbx)
je 0xffcf4
movq %r14, %rcx
testl %r13d, %r13d
je 0xffccf
xorl %eax, %eax
movl %r15d, 0x30(%rsp)
leaq 0x70(%rsp), %r15
leaq 0x1e45d(%rip), %r13     # 0x11e11d
leaq 0x4b17c(%rip), %r12     # 0x14ae43
movq %rcx, %r14
jmp 0xffbbb
movl %r15d, 0x30(%rsp)
leaq 0x70(%rsp), %r15
leaq 0x1e43d(%rip), %r13     # 0x11e11d
leaq 0x4b15c(%rip), %r12     # 0x14ae43
movq %rcx, %r14
decl %r14d
movb $0x1, %al
jmp 0xffbbb
movl %eax, %r12d
cmpb $0x0, 0x7d(%rbx)
je 0xffd26
cmpl $0x4, %r12d
jb 0xffd53
movq %rbp, %rdi
leal -0x2(%r12), %ebp
shrl %ebp
movl %ebp, %esi
callq 0xf2271
cmpb $0x0, 0x50(%rbx)
jne 0xffca5
andl $0x1, %r12d
orl $0x2, %r12d
movl %ebp, %ecx
jmp 0xffd4d
cmpl $0x2, %r12d
jb 0xffd53
decl %r12d
movq %rbp, %rdi
movl %r12d, %esi
callq 0xf2271
cmpb $0x0, 0x50(%rbx)
jne 0xffca5
movl %r12d, %ecx
movl $0x1, %r12d
shll %cl, %r12d
addl %eax, %r12d
movq 0x18(%rsp), %rdi
cmpl $0x4, (%rdi)
jl 0xffd73
leal 0x1(%r12), %edx
leaq 0x4b644(%rip), %rsi     # 0x14b3ad
movl %r15d, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x70(%rbx), %rdi
movl %r12d, %esi
notl %esi
addl 0x10(%rdi), %esi
movl %r15d, %edx
callq 0xfb3af
movl %r12d, %eax
xorl %r13d, %r13d
cmpq %rax, 0xc8(%rbx)
jg 0xffca5
incq %rax
movq %rax, 0xc8(%rbx)
jmp 0xffca5
movb $0x1, 0x50(%rbx)
movl $0x1, 0x30(%rbx)
movl 0xc(%rsp), %esi
movq %r15, %rdi
callq 0xe9595
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
leaq 0x4b04f(%rip), %rcx     # 0x14ae26
xorl %eax, %eax
callq 0xfa71e
leaq 0x70(%rsp), %r15
leaq 0x4b059(%rip), %r12     # 0x14ae43
movl $0x20, %edx
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0xf2360
movq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe9461
movl 0x54(%rsp), %esi
movq %rbp, %rdi
callq 0xe9595
incl 0x24(%rsp)
cmpb $0x0, 0x50(%rbx)
je 0xff4d0
movq 0xc8(%rbx), %rax
movq 0x58(%rsp), %rcx
movq %rax, 0x8(%rcx)
cmpl $0x0, 0x30(%rbx)
je 0xffe5a
movq 0x20(%rbx), %rdx
leaq 0x1e235(%rip), %rcx     # 0x11e07c
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
xorl %eax, %eax
callq 0xfa71e
jmp 0xffe85
movq 0x10(%rsp), %rdi
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 $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq