// File: /workspace/github_c_makefile_star2_O3/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/log/zf_log.c
// Function: zf_log_write_imp
static void _zf_log_write_imp(
        const zf_log_spec *log,
        const src_location *const src, const mem_block *const mem,
        const int lvl, const char *const tag, const char *const fmt, va_list va)
{
    zf_log_message msg;
    char buf[ZF_LOG_BUF_SZ];
    const unsigned mask = log->output->mask;
    msg.lvl = lvl;
    msg.tag = tag;
    g_buffer_cb(&msg, buf);
    if (ZF_LOG_PUT_CTX & mask)
    {
        put_ctx(&msg);
    }
    if (ZF_LOG_PUT_TAG & mask)
    {
        put_tag(&msg, tag);
    }
    if (0 != src && ZF_LOG_PUT_SRC & mask)
    {
        put_src(&msg, src);
    }
    if (ZF_LOG_PUT_MSG & mask)
    {
        put_msg(&msg, fmt, va);
    }
    log->output->callback(&msg, log->output->arg);
    if (0 != mem && ZF_LOG_PUT_MSG & mask)
    {
        output_mem(log, &msg, mem);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %r9, 0x18(%rsp)
movq %r8, %r14
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, 0x68(%rsp)
movq 0x8(%rdi), %rax
movl (%rax), %edi
movl %ecx, 0x20(%rsp)
movq %r8, 0x28(%rsp)
leaq 0x110(%rsp), %rbp
movq %rbp, 0x30(%rsp)
movq %rbp, 0x40(%rsp)
leaq 0x30e(%rsp), %rbx
movq %rbx, 0x38(%rsp)
testb $0x1, %dil
movq %rdx, 0x10(%rsp)
je 0x35ac
movl %edi, 0x74(%rsp)
leaq 0x80(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x20e0
movl 0x8caa(%rip), %eax      # 0xbb18
cmpl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
ja 0x2ef4
movl $0x1, %eax
lock
xaddl %eax, 0x8c96(%rip)      # 0xbb18
cmpl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
ja 0x2eed
movq 0x8f68(%rip), %rax      # 0xbdf8
cmpq 0x80(%rsp), %rax
jne 0x2ee2
movq 0x8f97(%rip), %rax      # 0xbe38
movq %rax, 0xf0(%rsp)
movups 0x8f78(%rip), %xmm0     # 0xbe28
movaps %xmm0, 0xe0(%rsp)
movups 0x8f59(%rip), %xmm0     # 0xbe18
movaps %xmm0, 0xd0(%rsp)
movups 0x8f3a(%rip), %xmm0     # 0xbe08
movaps %xmm0, 0xc0(%rsp)
lock
decl 0x8c3b(%rip)            # 0xbb18
jmp 0x2f73
lock
orl $0x40000000, 0x8c2b(%rip) # imm = 0x40000000
lock
decl 0x8c24(%rip)            # 0xbb18
leaq 0x80(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x2060
movl $0xc0000000, %ecx       # imm = 0xC0000000
movl $0x40000000, %eax       # imm = 0x40000000
lock
cmpxchgl %ecx, 0x8bfd(%rip)      # 0xbb18
jne 0x2f73
movups 0x80(%rsp), %xmm0
movups %xmm0, 0x8ecc(%rip)     # 0xbdf8
movups 0xc0(%rsp), %xmm0
movups 0xd0(%rsp), %xmm1
movups 0xe0(%rsp), %xmm2
movups %xmm0, 0x8ebd(%rip)     # 0xbe08
movups %xmm1, 0x8ec6(%rip)     # 0xbe18
movups %xmm2, 0x8ecf(%rip)     # 0xbe28
movq 0xf0(%rsp), %rax
movq %rax, 0x8ed0(%rip)      # 0xbe38
lock
andl $0x3fffffff, 0x8ba5(%rip) # imm = 0x3FFFFFFF
movl 0x88(%rsp), %ebx
callq 0x20b0
movl %eax, %r15d
movl $0xba, %edi
xorl %eax, %eax
callq 0x2180
movb $0x20, 0xbf(%rsp)
movl 0x20(%rsp), %ecx
decl %ecx
cmpl $0x6, %ecx
jae 0x3a62
shll $0x3, %ecx
movabsq $0x464557494456, %rdx   # imm = 0x464557494456
shrq %cl, %rdx
imulq $0x10624dd3, %rbx, %rbx # imm = 0x10624DD3
movb %dl, 0xbe(%rsp)
movb $0x20, 0xbd(%rsp)
testl %eax, %eax
movq %r14, 0x108(%rsp)
js 0x39bc
movl $0x3d, %ecx
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
movl %eax, %esi
imulq %rdx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %eax, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, 0x7f(%rsp,%rcx)
decq %rcx
cmpl $0x9, %eax
movl %esi, %eax
ja 0x2fe5
leaq (%rsp,%rcx), %r14
addq $0x80, %r14
addq $-0x3c, %rcx
cmpq $-0x4, %rcx
jle 0x304f
movq %r12, %r13
leaq 0xbd(%rsp), %r12
subq %r12, %r14
addq $-0x5, %r12
addq $0x5, %r14
movq %r12, %rdi
movl $0x20, %esi
movq %r14, %rdx
callq 0x2110
movq %r12, %r14
movq %r13, %r12
shrq $0x26, %rbx
movb $0x20, -0x1(%r14)
testl %r15d, %r15d
movq %r12, 0x78(%rsp)
js 0x3a0d
movl $0x1, %eax
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %r15d, %edx
imulq %rcx, %rdx
shrq $0x23, %rdx
leal (%rdx,%rdx), %esi
leal (%rsi,%rsi,4), %esi
movl %r15d, %edi
subl %esi, %edi
orb $0x30, %dil
movb %dil, -0x3(%r14,%rax)
decq %rax
cmpl $0x9, %r15d
movl %edx, %r15d
ja 0x3070
leaq (%r14,%rax), %r11
addq $-0x2, %r11
cmpq $-0x4, %rax
jle 0x30ca
decq %r14
subq %r14, %r11
addq $-0x5, %r14
addq $0x5, %r11
movq %r14, %rdi
movl $0x20, %esi
movq %r11, %rdx
callq 0x2110
movq %r14, %r11
leaq -0x1(%r11), %r14
movb $0x20, -0x1(%r11)
movl $0x1, %r12d
movl $0x3, %edx
movl $0xcccccccd, %eax       # imm = 0xCCCCCCCD
movl %ebx, %ecx
imulq %rax, %rcx
shrq $0x23, %rcx
leal (%rcx,%rcx), %esi
leal (%rsi,%rsi,4), %esi
movl %ebx, %edi
subl %esi, %edi
orb $0x30, %dil
movb %dil, -0x1(%r14)
decq %r14
decq %r12
decq %rdx
cmpl $0x9, %ebx
movl %ecx, %ebx
ja 0x30e3
cmpq $-0x1, %r12
movq %r11, 0x8(%rsp)
jl 0x312f
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
callq 0x2110
movq 0x8(%rsp), %r11
movb $0x2e, -0x1(%r14)
movl 0xc0(%rsp), %esi
cmpq $-0x2, %r12
movq $-0x2, %rcx
cmovlq %r12, %rcx
addq %r11, %rcx
movl $0x1, %ebx
movl $0x3, %eax
movl $0x2, %edx
movl $0xcccccccd, %edi       # imm = 0xCCCCCCCD
movl %esi, %r8d
imulq %rdi, %r8
shrq $0x23, %r8
leal (%r8,%r8), %r9d
leal (%r9,%r9,4), %r9d
movl %esi, %r10d
subl %r9d, %r10d
orb $0x30, %r10b
movb %r10b, -0x6(%rcx,%rdx)
decq %rbx
incq %rax
decq %rdx
cmpl $0x9, %esi
movl %r8d, %esi
ja 0x3161
cmpq $-0x2, %r12
movq $-0x2, %r14
cmovlq %r12, %r14
movq $-0x2, %r15
addq %r11, %r14
subq %rax, %r14
testq %rbx, %rbx
js 0x31ca
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
callq 0x2110
movq 0x8(%rsp), %r11
movb $0x3a, -0x1(%r14)
movl 0xc4(%rsp), %ecx
cmpq $-0x2, %r12
cmovlq %r12, %r15
addq %r11, %r15
cmpq $-0x1, %rbx
movq $-0x1, %rsi
cmovlq %rbx, %rsi
addq %r15, %rsi
movl $0x1, %r13d
movl $0x5, %eax
movl $0x2, %edx
movl $0xcccccccd, %edi       # imm = 0xCCCCCCCD
movl %ecx, %r8d
imulq %rdi, %r8
shrq $0x23, %r8
leal (%r8,%r8), %r9d
leal (%r9,%r9,4), %r9d
movl %ecx, %r10d
subl %r9d, %r10d
orb $0x30, %r10b
movb %r10b, -0x8(%rsi,%rdx)
decq %r13
incq %rax
decq %rdx
cmpl $0x9, %ecx
movl %r8d, %ecx
ja 0x3208
cmpq $-0x2, %r12
movq $-0x2, %rsi
movq $-0x2, %rcx
cmovlq %r12, %rcx
addq %r11, %rcx
cmpq $-0x1, %rbx
movq $-0x1, %r14
cmovlq %rbx, %r14
movq $-0x1, %r15
addq %rcx, %r14
subq %rax, %r14
testq %r13, %r13
js 0x3291
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
callq 0x2110
movq $-0x2, %rsi
movq 0x8(%rsp), %r11
movb $0x3a, -0x1(%r14)
cmpq $-0x2, %r12
cmovlq %r12, %rsi
addq %r11, %rsi
cmpq %r15, %rbx
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %rsi, %rcx
cmpq %r15, %r13
cmovlq %r13, %r15
movl 0xc8(%rsp), %eax
addq %rcx, %r15
movl $0x2, %edx
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %eax, %esi
imulq %rcx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %eax, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, -0xa(%r15,%rdx)
decq %rdx
cmpl $0x9, %eax
movl %esi, %eax
ja 0x32cd
cmpq $-0x2, %r12
movq $-0x2, %rax
cmovlq %r12, %rax
movq $-0x2, %rsi
addq %r11, %rax
movq $-0x1, %r15
cmpq %r15, %rbx
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %rax, %rcx
cmpq %r15, %r13
movq $-0x1, %rax
cmovlq %r13, %rax
addq %rcx, %rax
leaq (%rdx,%rax), %r14
addq $-0x9, %r14
movq %rdx, %r9
decq %r9
movq %r9, 0x60(%rsp)
js 0x336e
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
callq 0x2110
movq $-0x2, %rsi
movq 0x60(%rsp), %r9
movq 0x8(%rsp), %r11
movb $0x20, -0x1(%r14)
cmpq $-0x2, %r12
cmovlq %r12, %rsi
addq %r11, %rsi
cmpq %r15, %rbx
movq $-0x1, %rax
cmovlq %rbx, %rax
addq %rsi, %rax
cmpq %r15, %r13
movq $-0x1, %rcx
cmovlq %r13, %rcx
addq %rax, %rcx
cmpq %r15, %r9
cmovlq %r9, %r15
movl 0xcc(%rsp), %eax
addq %rcx, %r15
movl $0x2, %edx
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %eax, %esi
imulq %rcx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %eax, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, -0xc(%r15,%rdx)
decq %rdx
cmpl $0x9, %eax
movl %esi, %eax
ja 0x33bb
cmpq $-0x2, %r12
movq $-0x2, %rdi
movq $-0x2, %rax
cmovlq %r12, %rax
addq %r11, %rax
movq $-0x1, %r15
cmpq %r15, %rbx
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %rax, %rcx
cmpq %r15, %r13
movq $-0x1, %rax
cmovlq %r13, %rax
cmpq %r15, %r9
movq $-0x1, %rsi
cmovlq %r9, %rsi
addq %rax, %rsi
addq %rcx, %rsi
leaq (%rdx,%rsi), %r14
addq $-0xb, %r14
movq %rdx, %r10
decq %r10
js 0x3478
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
movq %r10, 0x100(%rsp)
callq 0x2110
movq $-0x2, %rdi
movq 0x100(%rsp), %r10
movq 0x60(%rsp), %r9
movq 0x8(%rsp), %r11
movb $0x2d, -0x1(%r14)
movl 0xd0(%rsp), %eax
incl %eax
cmpq $-0x2, %r12
cmovlq %r12, %rdi
addq %r11, %rdi
cmpq %r15, %rbx
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %rdi, %rcx
cmpq %r15, %r13
movq $-0x1, %rdx
cmovlq %r13, %rdx
cmpq %r15, %r9
movq $-0x1, %rsi
cmovlq %r9, %rsi
addq %rdx, %rsi
addq %rcx, %rsi
cmpq %r15, %r10
cmovlq %r10, %r15
addq %rsi, %r15
movl $0x2, %edx
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %eax, %esi
imulq %rcx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %eax, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, -0xe(%r15,%rdx)
decq %rdx
cmpl $0x9, %eax
movl %esi, %eax
ja 0x34d8
cmpq $-0x2, %r12
movq $-0x2, %rax
cmovlq %r12, %rax
addq %rax, %r11
movq $-0x1, %rax
cmpq %rax, %rbx
cmovgeq %rax, %rbx
addq %r11, %rbx
cmpq %rax, %r13
cmovgeq %rax, %r13
cmpq %rax, %r9
cmovgeq %rax, %r9
addq %r13, %r9
addq %rbx, %r9
cmpq %rax, %r10
cmovlq %r10, %rax
addq %r9, %rax
leaq (%rdx,%rax), %r14
addq $-0xd, %r14
movq %rdx, %rax
decq %rax
js 0x3562
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
callq 0x2110
movq 0x10(%rsp), %r13
movq 0x78(%rsp), %r12
movq 0x38(%rsp), %rbx
movq 0x40(%rsp), %r15
movq %rbx, %rax
subq %r15, %rax
subq %r14, %rbp
addq $0x40, %rbp
cmpq %rax, %rbp
cmovgeq %rax, %rbp
movq %r15, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x21a0
addq %r15, %rbp
movq %rbp, 0x40(%rsp)
movl 0x74(%rsp), %edi
movq 0x108(%rsp), %r14
testb $0x2, %dil
je 0x3688
movq %rbp, 0x48(%rsp)
movq 0x8826(%rip), %rax      # 0xbde8
testq %rax, %rax
je 0x35ef
cmpq %rbp, %rbx
je 0x35ef
movb (%rax), %cl
movb %cl, (%rbp)
testb %cl, %cl
je 0x35ef
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rbp
incq %rbp
movq %rbp, 0x40(%rsp)
incq %rax
cmpq %rbp, %rcx
jne 0x35cc
testq %r14, %r14
je 0x3652
cmpb $0x0, (%r14)
je 0x3652
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
cmpq %rax, 0x48(%rsp)
setne %dl
cmpq %rax, %rcx
seta %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x364d
movq %rax, %rdx
incq %rdx
movq %rdx, 0x40(%rsp)
movb $0x2e, (%rax)
movq %rdx, %rax
jmp 0x364d
movb (%r14), %cl
movb %cl, (%rax)
testb %cl, %cl
je 0x3652
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
incq %rax
movq %rax, 0x40(%rsp)
incq %r14
cmpq %rax, %rcx
jne 0x362f
movq 0x38(%rsp), %rbx
movq 0x40(%rsp), %rbp
movq %rbp, 0x50(%rsp)
cmpq %rbp, 0x48(%rsp)
setne %al
cmpq %rbp, %rbx
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x3688
movq %rbp, %rax
incq %rax
movq %rax, 0x40(%rsp)
movb $0x20, (%rbp)
movq %rax, %rbp
testq %r12, %r12
sete %al
testb $0x4, %dil
sete %cl
orb %al, %cl
jne 0x37f5
movl %edi, %r13d
movq (%r12), %rax
testq %rax, %rax
leaq 0x4b6d(%rip), %rsi      # 0x821b
cmovneq %rax, %rsi
movq %rbx, %rcx
subq %rbp, %rcx
movq %rbp, %rdi
xorl %edx, %edx
callq 0x2220
leaq -0x1(%rax), %rdi
testq %rax, %rax
cmoveq %rbx, %rdi
movq %rdi, 0x40(%rsp)
movq 0x38(%rsp), %r15
cmpq %rdi, %r15
jbe 0x36f8
incq %rbx
testq %rax, %rax
cmovneq %rax, %rbx
movq %rbx, 0x40(%rsp)
movb $0x40, (%rdi)
movq 0x38(%rsp), %r15
movq 0x40(%rsp), %rdi
movq 0x8(%r12), %rsi
leaq 0x1(%rsi), %rax
movzbl -0x1(%rax), %ecx
cmpl $0x2f, %ecx
je 0x3715
cmpl $0x5c, %ecx
je 0x3715
testl %ecx, %ecx
jne 0x3718
jmp 0x371d
movq %rax, %rsi
incq %rax
jmp 0x3701
movq %r15, %rcx
subq %rdi, %rcx
xorl %edx, %edx
callq 0x2220
leaq -0x1(%rax), %r14
testq %rax, %rax
cmoveq %r15, %r14
movq 0x38(%rsp), %rbx
cmpq %r14, %rbx
jbe 0x3746
movb $0x3a, (%r14)
incq %r14
movl 0x10(%r12), %eax
xorl %edx, %edx
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %eax, %esi
imulq %rcx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %eax, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, 0x8f(%rsp,%rdx)
decq %rdx
cmpl $0x9, %eax
movl %esi, %eax
ja 0x3752
leaq 0x11(%rdx), %rax
cmpq $0x12, %rax
jl 0x379c
leaq 0x90(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x2110
jmp 0x37a7
leaq (%rsp,%rdx), %r15
addq $0x90, %r15
movq %rbx, %rax
subq %r14, %rax
leaq 0x80(%rsp), %r12
subq %r15, %r12
addq $0x10, %r12
cmpq %rax, %r12
cmovgeq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21a0
addq %r14, %r12
movq %r12, 0x40(%rsp)
cmpq %r12, %rbx
movl %r13d, %edi
movq 0x10(%rsp), %r13
jbe 0x37f5
leaq 0x1(%r12), %rax
movq %rax, 0x40(%rsp)
movb $0x20, (%r12)
testb $0x8, %dil
je 0x3842
movq 0x350(%rsp), %rcx
movq 0x38(%rsp), %rbx
movq 0x40(%rsp), %r14
movq %r14, 0x58(%rsp)
movq %rbx, %r15
subq %r14, %r15
leaq 0x1(%r15), %rsi
movl %edi, %ebp
movq %r14, %rdi
movq 0x18(%rsp), %rdx
callq 0x2080
movl %ebp, %edi
testl %eax, %eax
jle 0x3842
movl %eax, %eax
addq %rax, %r14
cmpq %rax, %r15
cmovgq %r14, %rbx
movq %rbx, 0x40(%rsp)
testb $0x8, %dil
sete %bl
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
leaq 0x20(%rsp), %rdi
callq *0x10(%rax)
testq %r13, %r13
sete %al
orb %bl, %al
jne 0x39aa
movq (%r13), %r15
testq %r15, %r15
je 0x39aa
movl 0x8(%r13), %ebx
testq %rbx, %rbx
je 0x39aa
movq 0x68(%rsp), %rax
movq (%rax), %rax
movl (%rax), %ecx
movq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq (%rax,%rcx,2), %rax
movq %rcx, 0x8(%rsp)
addq %rcx, %rax
addq $0x2, %rax
cmpq %rax, 0x38(%rsp)
jb 0x39aa
addq %r15, %rbx
movq 0x8(%rsp), %rcx
leaq (%rcx,%rcx), %rax
movq 0x18(%rsp), %rdx
leaq (%rdx,%rcx,2), %r8
addq $0x2, %r8
leaq 0x2(%rdx,%rax), %rax
movq %rax, 0x60(%rsp)
leaq 0x4981(%rip), %r14      # 0x8260
movl $0x3f, %ebp
movq %r8, 0x10(%rsp)
movq %rbx, %rax
subq %r15, %rax
movq 0x8(%rsp), %rcx
leaq (%r15,%rcx), %r12
cmpq %rcx, %rax
cmovleq %rbx, %r12
cmpq %r15, %r12
je 0x3960
callq 0x2250
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %rdi
movq %rdi, %rcx
movq %r8, %r13
movzbl (%r15), %edx
movl %edx, %esi
shrl $0x4, %esi
movb (%rsi,%r14), %sil
movb %sil, (%rdi)
movl %edx, %esi
andl $0xf, %esi
movb (%rsi,%r14), %sil
movb %sil, 0x1(%rdi)
addq $0x2, %rdi
movq (%rax), %rsi
movzwl (%rsi,%rdx,2), %esi
btl $0xe, %esi
cmovael %ebp, %edx
movb %dl, (%r13)
incq %r13
incq %r15
addq $0x2, %rcx
cmpq %r12, %r15
jne 0x3919
movq %r12, %r15
jmp 0x396b
movq 0x18(%rsp), %rdi
movq %rdi, %rcx
movq %r8, %r13
cmpq %r8, %rdi
je 0x3982
movq 0x60(%rsp), %rdx
subq %rcx, %rdx
movl $0x20, %esi
callq 0x2110
movq %r13, 0x40(%rsp)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
leaq 0x20(%rsp), %rdi
callq *0x10(%rax)
cmpq %rbx, %r15
movq 0x10(%rsp), %r8
jne 0x38e9
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
negl %eax
movl $0x1, %ecx
leaq 0xbc(%rsp), %r14
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
movl %eax, %esi
imulq %rdx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %eax, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, (%r14)
decq %rcx
decq %r14
cmpl $0x9, %eax
movl %esi, %eax
ja 0x39d0
movb $0x2d, (%r14)
cmpq $-0x2, %rcx
jge 0x3023
jmp 0x304f
negl %r15d
movq $-0x2, %rax
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
movl %r15d, %edx
imulq %rcx, %rdx
shrq $0x23, %rdx
leal (%rdx,%rdx), %esi
leal (%rsi,%rsi,4), %esi
movl %r15d, %edi
subl %esi, %edi
orb $0x30, %dil
movb %dil, (%r14,%rax)
decq %rax
cmpl $0x9, %r15d
movl %edx, %r15d
ja 0x3a1c
leaq (%r14,%rax), %r11
movb $0x2d, (%r14,%rax)
addq $0x3, %rax
cmpq $-0x2, %rax
jge 0x30a9
jmp 0x30ca
leaq 0x47b3(%rip), %rdi      # 0x821c
leaq 0x47c5(%rip), %rsi      # 0x8235
leaq 0x47cf(%rip), %rcx      # 0x8246
movl $0x2b9, %edx            # imm = 0x2B9
callq 0x20f0