// File: /workspace/github_c_makefile_star2_O1/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 $0x308, %rsp            # imm = 0x308
movq %r9, 0x58(%rsp)
movq %r8, %r14
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, 0x60(%rsp)
movq 0x8(%rdi), %rax
movl (%rax), %edx
movl %ecx, 0x10(%rsp)
movq %r8, 0x18(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x2fe(%rsp), %rax
movq %rax, 0x28(%rsp)
movl %edx, 0x8(%rsp)
testb $0x1, %dl
je 0x358f
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
callq 0x20e0
movl 0x8c9a(%rip), %eax      # 0xbb18
cmpl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movq %r15, 0xf8(%rsp)
ja 0x2f09
movl $0x1, %eax
lock
xaddl %eax, 0x8c7e(%rip)      # 0xbb18
cmpl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
ja 0x2f02
movq 0x8f50(%rip), %rax      # 0xbdf8
cmpq 0x70(%rsp), %rax
jne 0x2ef7
movq 0x8f82(%rip), %rax      # 0xbe38
movq %rax, 0xe0(%rsp)
movups 0x8f63(%rip), %xmm0     # 0xbe28
movaps %xmm0, 0xd0(%rsp)
movups 0x8f44(%rip), %xmm0     # 0xbe18
movaps %xmm0, 0xc0(%rsp)
movups 0x8f25(%rip), %xmm0     # 0xbe08
movaps %xmm0, 0xb0(%rsp)
lock
decl 0x8c26(%rip)            # 0xbb18
jmp 0x2f82
lock
orl $0x40000000, 0x8c16(%rip) # imm = 0x40000000
lock
decl 0x8c0f(%rip)            # 0xbb18
leaq 0x70(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x2060
movl $0xc0000000, %ecx       # imm = 0xC0000000
movl $0x40000000, %eax       # imm = 0x40000000
lock
cmpxchgl %ecx, 0x8beb(%rip)      # 0xbb18
jne 0x2f82
movups 0x70(%rsp), %xmm0
movups %xmm0, 0x8ebd(%rip)     # 0xbdf8
movups 0xb0(%rsp), %xmm0
movups 0xc0(%rsp), %xmm1
movups 0xd0(%rsp), %xmm2
movups %xmm0, 0x8eae(%rip)     # 0xbe08
movups %xmm1, 0x8eb7(%rip)     # 0xbe18
movups %xmm2, 0x8ec0(%rip)     # 0xbe28
movq 0xe0(%rsp), %rax
movq %rax, 0x8ec1(%rip)      # 0xbe38
lock
andl $0x3fffffff, 0x8b96(%rip) # imm = 0x3FFFFFFF
movl 0x78(%rsp), %ebx
callq 0x20b0
movl %eax, %r15d
movl $0xba, %edi
xorl %eax, %eax
callq 0x2180
movb $0x20, 0xaf(%rsp)
movl 0x10(%rsp), %ecx
decl %ecx
cmpl $0x6, %ecx
jae 0x3a29
shll $0x3, %ecx
movabsq $0x464557494456, %rdx   # imm = 0x464557494456
shrq %cl, %rdx
imulq $0x10624dd3, %rbx, %rbx # imm = 0x10624DD3
movb %dl, 0xae(%rsp)
movb $0x20, 0xad(%rsp)
testl %eax, %eax
movq %r14, 0xf0(%rsp)
js 0x3983
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, 0x6f(%rsp,%rcx)
decq %rcx
cmpl $0x9, %eax
movl %esi, %eax
ja 0x2ff1
leaq (%rsp,%rcx), %r14
addq $0x70, %r14
addq $-0x3c, %rcx
cmpq $-0x4, %rcx
jle 0x3052
leaq 0xad(%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
shrq $0x26, %rbx
movb $0x20, -0x1(%r14)
testl %r15d, %r15d
js 0x39d4
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 0x306e
leaq (%r14,%rax), %r10
addq $-0x2, %r10
cmpq $-0x4, %rax
jle 0x30c8
decq %r14
subq %r14, %r10
addq $-0x5, %r14
addq $0x5, %r10
movq %r14, %rdi
movl $0x20, %esi
movq %r10, %rdx
callq 0x2110
movq %r14, %r10
leaq -0x1(%r10), %r14
movb $0x20, -0x1(%r10)
movl $0x1, %r12d
movq $-0x3, %rdx
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
incq %rdx
cmpl $0x9, %ebx
movl %ecx, %ebx
ja 0x30e3
cmpq $-0x1, %r12
jl 0x312e
addq %rdx, %r14
negq %rdx
movq %r14, %rdi
movl $0x30, %esi
movq %r10, %rbx
callq 0x2110
movq %rbx, %r10
movb $0x2e, -0x1(%r14)
cmpq $-0x2, %r12
movq $-0x2, %rax
cmovlq %r12, %rax
movl 0xb0(%rsp), %ecx
addq %r10, %rax
movl $0x2, %edx
movl $0xcccccccd, %esi       # imm = 0xCCCCCCCD
movl %ecx, %edi
imulq %rsi, %rdi
shrq $0x23, %rdi
leal (%rdi,%rdi), %r8d
leal (%r8,%r8,4), %r8d
movl %ecx, %r9d
subl %r8d, %r9d
orb $0x30, %r9b
movb %r9b, -0x6(%rax,%rdx)
decq %rdx
cmpl $0x9, %ecx
movl %edi, %ecx
ja 0x3156
cmpq $-0x2, %r12
movq $-0x2, %r15
movq $-0x2, %rax
cmovlq %r12, %rax
addq %r10, %rax
leaq (%rdx,%rax), %r14
addq $-0x5, %r14
movq %rdx, %rbx
decq %rbx
js 0x31c0
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
movq %r10, %r13
callq 0x2110
movq %r13, %r10
movq %rbp, 0x68(%rsp)
movb $0x3a, -0x1(%r14)
cmpq $-0x2, %r12
cmovlq %r12, %r15
addq %r10, %r15
cmpq $-0x1, %rbx
movq $-0x1, %rax
cmovlq %rbx, %rax
movl 0xb4(%rsp), %ecx
addq %r15, %rax
movl $0x2, %edx
movl $0xcccccccd, %esi       # imm = 0xCCCCCCCD
movl %ecx, %edi
imulq %rsi, %rdi
shrq $0x23, %rdi
leal (%rdi,%rdi), %r8d
leal (%r8,%r8,4), %r8d
movl %ecx, %r9d
subl %r8d, %r9d
orb $0x30, %r9b
movb %r9b, -0x8(%rax,%rdx)
decq %rdx
cmpl $0x9, %ecx
movl %edi, %ecx
ja 0x31f8
cmpq $-0x2, %r12
movq $-0x2, %r13
movq $-0x2, %rax
cmovlq %r12, %rax
addq %r10, %rax
cmpq $-0x1, %rbx
movq $-0x1, %r15
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %rax, %rcx
leaq (%rdx,%rcx), %r14
addq $-0x7, %r14
movq %rdx, %r9
decq %r9
movq %r9, (%rsp)
js 0x3283
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
movq %r10, %rbp
callq 0x2110
movq (%rsp), %r9
movq %rbp, %r10
movb $0x3a, -0x1(%r14)
cmpq $-0x2, %r12
cmovlq %r12, %r13
addq %r10, %r13
cmpq %r15, %rbx
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %r13, %rcx
cmpq %r15, %r9
cmovlq %r9, %r15
movl 0xb8(%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 0x32bf
cmpq $-0x2, %r12
movq $-0x2, %rax
cmovlq %r12, %rax
movq $-0x2, %rbp
addq %r10, %rax
movq $-0x1, %r15
cmpq %r15, %rbx
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %rax, %rcx
cmpq %r15, %r9
movq $-0x1, %rax
cmovlq %r9, %rax
addq %rcx, %rax
leaq (%rdx,%rax), %r14
addq $-0x9, %r14
movq %rdx, %r13
decq %r13
movq %r10, 0x50(%rsp)
js 0x3358
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
callq 0x2110
movq (%rsp), %r9
movq 0x50(%rsp), %r10
movb $0x20, -0x1(%r14)
cmpq $-0x2, %r12
cmovlq %r12, %rbp
addq %r10, %rbp
cmpq %r15, %rbx
movq $-0x1, %rax
cmovlq %rbx, %rax
addq %rbp, %rax
cmpq %r15, %r9
movq $-0x1, %rcx
cmovlq %r9, %rcx
addq %rax, %rcx
cmpq %r15, %r13
cmovlq %r13, %r15
movl 0xbc(%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 0x33a5
cmpq $-0x2, %r12
movq $-0x2, %rbp
movq $-0x2, %rax
cmovlq %r12, %rax
addq %r10, %rax
movq $-0x1, %r15
cmpq %r15, %rbx
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %rax, %rcx
cmpq %r15, %r9
movq $-0x1, %rax
cmovlq %r9, %rax
cmpq %r15, %r13
movq $-0x1, %rsi
cmovlq %r13, %rsi
addq %rax, %rsi
addq %rcx, %rsi
leaq (%rdx,%rsi), %r14
addq $-0xb, %r14
movq %rdx, %r11
decq %r11
js 0x345a
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
movq %r11, 0xe8(%rsp)
callq 0x2110
movq 0xe8(%rsp), %r11
movq (%rsp), %r9
movq 0x50(%rsp), %r10
movb $0x2d, -0x1(%r14)
movl 0xc0(%rsp), %eax
incl %eax
cmpq $-0x2, %r12
cmovlq %r12, %rbp
addq %r10, %rbp
cmpq %r15, %rbx
movq $-0x1, %rcx
cmovlq %rbx, %rcx
addq %rbp, %rcx
cmpq %r15, %r9
movq $-0x1, %rdx
cmovlq %r9, %rdx
cmpq %r15, %r13
movq $-0x1, %rsi
cmovlq %r13, %rsi
addq %rdx, %rsi
addq %rcx, %rsi
cmpq %r15, %r11
cmovlq %r11, %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 0x34ba
cmpq $-0x2, %r12
movq $-0x2, %rax
cmovlq %r12, %rax
addq %rax, %r10
movq $-0x1, %rax
cmpq %rax, %rbx
cmovgeq %rax, %rbx
addq %r10, %rbx
cmpq %rax, %r9
cmovgeq %rax, %r9
cmpq %rax, %r13
cmovgeq %rax, %r13
addq %r9, %r13
addq %rbx, %r13
cmpq %rax, %r11
cmovlq %r11, %rax
addq %r13, %rax
leaq (%rdx,%rax), %r14
addq $-0xd, %r14
movq %rdx, %rax
decq %rax
js 0x3544
subq %rdx, %r14
movq %r14, %rdi
movl $0x30, %esi
callq 0x2110
movq 0x68(%rsp), %rbp
leaq 0x70(%rsp), %rbx
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %r15
subq %r15, %rax
subq %r14, %rbx
addq $0x40, %rbx
cmpq %rax, %rbx
cmovgeq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x21a0
addq %r15, %rbx
movq %rbx, 0x30(%rsp)
movq 0xf8(%rsp), %r15
movq 0xf0(%rsp), %r14
testb $0x2, 0x8(%rsp)
je 0x3659
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %rcx, 0x38(%rsp)
movq 0x8838(%rip), %rax      # 0xbde8
testq %rax, %rax
je 0x35d9
cmpq %rcx, %rdx
je 0x35d9
movb (%rax), %dl
movb %dl, (%rcx)
testb %dl, %dl
je 0x35d9
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
incq %rcx
movq %rcx, 0x30(%rsp)
incq %rax
jmp 0x35b5
testq %r14, %r14
je 0x3632
cmpb $0x0, (%r14)
je 0x3632
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x3603
cmpq %rax, 0x28(%rsp)
jbe 0x3603
leaq 0x1(%rax), %rcx
movq %rcx, 0x30(%rsp)
movb $0x2e, (%rax)
movq 0x30(%rsp), %rax
cmpq %rax, 0x28(%rsp)
je 0x3632
movb (%r14), %cl
movb %cl, (%rax)
testb %cl, %cl
je 0x3632
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
incq %rax
movq %rax, 0x30(%rsp)
incq %r14
cmpq %rax, %rcx
jne 0x360f
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpq %rax, 0x38(%rsp)
je 0x3659
cmpq %rax, %rcx
jbe 0x3659
leaq 0x1(%rax), %rcx
movq %rcx, 0x30(%rsp)
movb $0x20, (%rax)
testq %r15, %r15
sete %al
testb $0x4, 0x8(%rsp)
sete %cl
orb %al, %cl
jne 0x37c8
movq (%r15), %rax
testq %rax, %rax
leaq 0x4b9f(%rip), %rsi      # 0x821b
cmovneq %rax, %rsi
movq 0x28(%rsp), %rbx
movq 0x30(%rsp), %rdi
movq %rbx, %rcx
subq %rdi, %rcx
xorl %edx, %edx
callq 0x2220
leaq -0x1(%rax), %rdi
testq %rax, %rax
cmoveq %rbx, %rdi
movq %rdi, 0x30(%rsp)
movq 0x28(%rsp), %rbx
cmpq %rdi, %rbx
jbe 0x36c7
leaq 0x1(%rdi), %rax
movq %rax, 0x30(%rsp)
movb $0x40, (%rdi)
movq 0x28(%rsp), %rbx
movq 0x30(%rsp), %rdi
movq 0x8(%r15), %rsi
leaq 0x1(%rsi), %rax
movzbl -0x1(%rax), %ecx
cmpl $0x2f, %ecx
je 0x36e3
cmpl $0x5c, %ecx
je 0x36e3
testl %ecx, %ecx
jne 0x36e6
jmp 0x36eb
movq %rax, %rsi
incq %rax
jmp 0x36cf
movq %rbx, %rcx
subq %rdi, %rcx
xorl %edx, %edx
callq 0x2220
leaq -0x1(%rax), %r14
testq %rax, %rax
cmoveq %rbx, %r14
movq %r14, 0x30(%rsp)
movq 0x28(%rsp), %rbx
cmpq %r14, %rbx
jbe 0x3729
leaq 0x1(%r14), %rax
movq %rax, 0x30(%rsp)
movb $0x3a, (%r14)
movq 0x28(%rsp), %rbx
movq 0x30(%rsp), %r14
movl 0x10(%r15), %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, 0x7f(%rsp,%rdx)
decq %rdx
cmpl $0x9, %eax
movl %esi, %eax
ja 0x3734
leaq 0x11(%rdx), %rax
cmpq $0x12, %rax
jl 0x377b
leaq 0x80(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x2110
jmp 0x3786
leaq (%rsp,%rdx), %r15
addq $0x80, %r15
subq %r14, %rbx
leaq 0x70(%rsp), %r12
subq %r15, %r12
addq $0x10, %r12
cmpq %rbx, %r12
cmovgeq %rbx, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21a0
addq %r14, %r12
movq %r12, 0x30(%rsp)
cmpq %r12, 0x28(%rsp)
jbe 0x37c8
leaq 0x1(%r12), %rax
movq %rax, 0x30(%rsp)
movb $0x20, (%r12)
testb $0x8, 0x8(%rsp)
je 0x381b
movq 0x340(%rsp), %rcx
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdi
movq %rdi, 0x48(%rsp)
subq %rdi, %rsi
incq %rsi
movq 0x58(%rsp), %rdx
callq 0x2080
testl %eax, %eax
jle 0x381b
movl %eax, %eax
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rdx
movq %rcx, %rsi
subq %rdx, %rsi
addq %rax, %rdx
cmpq %rax, %rsi
cmovleq %rcx, %rdx
movq %rdx, 0x30(%rsp)
testb $0x8, 0x8(%rsp)
sete %bl
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
leaq 0x10(%rsp), %rdi
callq *0x10(%rax)
testq %rbp, %rbp
sete %al
orb %bl, %al
jne 0x3971
movq (%rbp), %rbx
testq %rbx, %rbx
je 0x3971
movl 0x8(%rbp), %r15d
testq %r15, %r15
je 0x3971
movq 0x60(%rsp), %rax
movq (%rax), %rax
movl (%rax), %ecx
movq 0x48(%rsp), %rax
movq %rax, (%rsp)
leaq (%rax,%rcx,2), %rax
movq %rcx, 0x58(%rsp)
addq %rcx, %rax
addq $0x2, %rax
cmpq %rax, 0x28(%rsp)
jb 0x3971
addq %rbx, %r15
movq 0x58(%rsp), %rcx
leaq (%rcx,%rcx), %rax
movq (%rsp), %rdx
leaq (%rdx,%rcx,2), %rsi
addq $0x2, %rsi
leaq 0x2(%rdx,%rax), %rax
movq %rax, 0x50(%rsp)
leaq 0x49a9(%rip), %r14      # 0x8260
movl $0x3f, %r13d
movq %rsi, 0x8(%rsp)
movq %r15, %rax
subq %rbx, %rax
movq 0x58(%rsp), %rcx
leaq (%rbx,%rcx), %r12
cmpq %rcx, %rax
cmovleq %r15, %r12
cmpq %rbx, %r12
je 0x392b
callq 0x2250
movq 0x8(%rsp), %rsi
movq %rsi, %rbp
movq (%rsp), %rdi
movzbl (%rbx), %ecx
movl %ecx, %edx
shrl $0x4, %edx
movb (%rdx,%r14), %dl
movb %dl, (%rdi)
movl %ecx, %edx
andl $0xf, %edx
movb (%rdx,%r14), %dl
movb %dl, 0x1(%rdi)
addq $0x2, %rdi
movq (%rax), %rdx
movzwl (%rdx,%rcx,2), %edx
btl $0xe, %edx
cmovael %r13d, %ecx
movb %cl, (%rbp)
incq %rbp
incq %rbx
cmpq %r12, %rbx
jne 0x38ee
jmp 0x3932
movq (%rsp), %rdi
movq %rsi, %rbp
cmpq %rsi, %rdi
je 0x3949
movq 0x50(%rsp), %rdx
subq %rdi, %rdx
movl $0x20, %esi
callq 0x2110
movq %rbp, 0x30(%rsp)
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
leaq 0x10(%rsp), %rdi
callq *0x10(%rax)
cmpq %r15, %rbx
movq 0x8(%rsp), %rsi
jne 0x38c2
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
negl %eax
movl $0x1, %ecx
leaq 0xac(%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 0x3997
movb $0x2d, (%r14)
cmpq $-0x3, %rcx
jg 0x302c
jmp 0x3052
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 0x39e3
leaq (%r14,%rax), %r10
movb $0x2d, (%r14,%rax)
addq $0x3, %rax
cmpq $-0x3, %rax
jg 0x30a7
jmp 0x30c8
leaq 0x47ec(%rip), %rdi      # 0x821c
leaq 0x47fe(%rip), %rsi      # 0x8235
leaq 0x4808(%rip), %rcx      # 0x8246
movl $0x2b9, %edx            # imm = 0x2B9
callq 0x20f0