// File: /workspace/github_cpp_makefile_star2_O3/lvandeve[P]lodepng/lodepng.cpp
// Function: lodepng_inflatev(ucvector*, unsigned char const*, unsigned long, LodePNGDecompressSettings const*)
static unsigned lodepng_inflatev(ucvector* out,
                                 const unsigned char* in, size_t insize,
                                 const LodePNGDecompressSettings* settings) {
  unsigned BFINAL = 0;
  LodePNGBitReader reader;
  unsigned error = LodePNGBitReader_init(&reader, in, insize);

  if(error) return error;

  while(!BFINAL) {
    unsigned BTYPE;
    if(reader.bitsize - reader.bp < 3) return 52; /*error, bit pointer will jump past memory*/
    ensureBits9(&reader, 3);
    BFINAL = readBits(&reader, 1);
    BTYPE = readBits(&reader, 2);

    if(BTYPE == 3) return 20; /*error: invalid BTYPE*/
    else if(BTYPE == 0) error = inflateNoCompression(out, &reader, settings); /*no compression*/
    else error = inflateHuffmanBlock(out, &reader, BTYPE, settings->max_output_size); /*compression, BTYPE 01 or 10*/
    if(!error && settings->max_output_size && out->size > settings->max_output_size) error = 109;
    if(error) break;
  }

  return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, %r14
movq %rsi, (%rsp)
movq %rdx, 0x8(%rsp)
leaq (,%rdx,8), %rax
movq %rax, 0x10(%rsp)
shrq $0x3d, %rdx
setne %cl
cmpq $-0x40, %rax
setae %dl
movl $0x69, %eax
orb %cl, %dl
jne 0x3bad
movq %rsp, %rax
movq $0x0, 0x18(%rax)
movl $0x0, 0x20(%rax)
movq %rdi, 0x30(%rsp)
movq %r14, 0x40(%rsp)
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r13
movq %rbx, %rcx
subq %r13, %rcx
movl $0x34, %eax
cmpq $0x3, %rcx
jb 0x3bad
movq %r13, %rsi
shrq $0x3, %rsi
movq 0x8(%rsp), %r8
leaq 0x1(%rsi), %rcx
cmpq %r8, %rcx
jae 0x2f4b
movq (%rsp), %rcx
movzwl (%rcx,%rsi), %edx
jmp 0x2f62
movl $0x0, 0x20(%rsp)
xorl %edx, %edx
cmpq %r8, %rsi
jae 0x2f62
movq (%rsp), %rcx
movzbl (%rcx,%rsi), %edx
movl %r13d, %ecx
andb $0x7, %cl
shrl %cl, %edx
movl %edx, %ebp
shrl %ebp
movl %edx, %ecx
shrl $0x3, %ecx
leaq 0x3(%r13), %r15
movl %ecx, 0x20(%rsp)
movq %r15, 0x18(%rsp)
andl $0x3, %ebp
movl %edx, 0x4c(%rsp)
je 0x301b
cmpl $0x3, %ebp
je 0x3b9a
movq %r14, %rax
movq %r8, %r14
movq 0x8(%rax), %r12
movq 0x8(%rdi), %rsi
movl $0x104, %eax            # imm = 0x104
addq %rax, %rsi
callq 0xdb6a
testl %eax, %eax
je 0x3b88
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
leaq 0xd8(%rsp), %rax
movups %xmm0, (%rax)
movaps %xmm0, 0x90(%rsp)
leaq 0xa8(%rsp), %rax
movups %xmm0, (%rax)
cmpl $0x1, %ebp
jne 0x30ad
leaq 0xc0(%rsp), %rdi
callq 0xdc51
movl %eax, %ebp
testl %eax, %eax
movq 0x40(%rsp), %r14
jne 0x32d4
leaq 0x90(%rsp), %rdi
callq 0xdcfa
movl %eax, %ebp
jmp 0x32d0
addq $0xa, %r13
shrq $0x3, %r13
leaq 0x4(%r13), %rbp
cmpq %r8, %rbp
jae 0x3bad
movq (%rsp), %rbx
movzwl (%rbx,%r13), %ecx
cmpl $0x0, 0x4(%r14)
jne 0x3053
movzwl 0x2(%rbx,%r13), %eax
addl %ecx, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x3ba8
movq %r8, %r14
movl %ecx, %r12d
movl %ecx, %r15d
movq 0x8(%rdi), %rsi
addq %r15, %rsi
movq %rsi, 0x8(%rdi)
callq 0xdb6a
testl %eax, %eax
je 0x3b88
leaq (%r15,%rbp), %r13
cmpq %r14, %r13
ja 0x3ba1
testl %r12d, %r12d
je 0x30e7
movq 0x30(%rsp), %r14
movq (%r14), %rdi
addq 0x8(%r14), %rdi
subq %r15, %rdi
addq %rbp, %rbx
movq %rbx, %rsi
movq %r15, %rdx
callq 0x21e0
movq %r14, %rdi
movq 0x40(%rsp), %r14
jmp 0x30f4
movq %rbx, %rax
subq %r15, %rax
movl $0x31, %ebp
cmpq $0xe, %rax
jb 0x32cb
movq %r14, %rdi
movq %r15, %rax
shrq $0x3, %rax
leaq 0x2(%rax), %rdx
cmpq %r14, %rdx
jae 0x3107
movq (%rsp), %rcx
movzwl (%rcx,%rax), %esi
addq %rcx, %rdx
movl $0x10, %ecx
jmp 0x3136
movq %rbp, %r13
movq 0x40(%rsp), %r14
movq 0x30(%rsp), %rdi
movl 0x4c(%rsp), %r12d
shlq $0x3, %r13
movq %r13, 0x18(%rsp)
jmp 0x3302
movl $0x0, 0x20(%rsp)
xorl %esi, %esi
cmpq %rdi, %rax
jae 0x3122
movq (%rsp), %rcx
movzbl (%rcx,%rax), %esi
movl %esi, 0x20(%rsp)
incq %rax
cmpq %rdi, %rax
jae 0x313d
addq (%rsp), %rax
movl $0x8, %ecx
movq %rax, %rdx
movzbl (%rdx), %eax
shll %cl, %eax
addl %eax, %esi
andb $0x7, %r15b
movl %r15d, %ecx
shrl %cl, %esi
movl %esi, %eax
shrl $0xe, %eax
movl %eax, 0x20(%rsp)
addq $0x11, %r13
movq %r13, 0x18(%rsp)
movl $0x4c, %edi
movq %rsi, %rbp
callq 0x22b0
testq %rax, %rax
je 0x328f
movq %rax, %r15
movl %ebp, %eax
shrl $0xa, %eax
andl $0xf, %eax
leal 0x4(%rax), %edx
xorps %xmm0, %xmm0
movaps %xmm0, 0xf0(%rsp)
leaq 0x108(%rsp), %rcx
movups %xmm0, (%rcx)
leal (%rdx,%rdx,2), %ecx
addq %r13, %rcx
cmpq %r13, %rcx
setb %sil
cmpq %rbx, %rcx
seta %cl
orb %sil, %cl
jne 0x3296
movq %rbp, %rsi
movl $0x32, %ebp
movl %esi, %ecx
andl $0x1f, %ecx
shrl $0x5, %esi
movq %rcx, 0x68(%rsp)
addl $0x101, %ecx            # imm = 0x101
movl %ecx, 0x50(%rsp)
andl $0x1f, %esi
incl %esi
movq %rsi, 0x58(%rsp)
movq (%rsp), %rsi
leaq 0x10(,%rax,4), %rdi
xorl %r8d, %r8d
leaq 0x713a3(%rip), %r10     # 0x74590
movq %r13, %rcx
shrq $0x3, %rcx
leaq 0x1(%rcx), %r9
cmpq %r14, %r9
jae 0x3204
movzwl (%rsi,%rcx), %r9d
jmp 0x3219
movl $0x0, 0x20(%rsp)
xorl %r9d, %r9d
cmpq %r14, %rcx
jae 0x3219
movzbl (%rsi,%rcx), %r9d
movl %r13d, %ecx
andb $0x7, %cl
shrl %cl, %r9d
movl %r9d, %ecx
andl $0x7, %ecx
shrl $0x3, %r9d
movl %r9d, 0x20(%rsp)
addq $0x3, %r13
movq %r13, 0x18(%rsp)
movl (%r8,%r10), %r9d
movl %ecx, (%r15,%r9,4)
addq $0x4, %r8
cmpq %r8, %rdi
jne 0x31ed
cmpl $0x13, %edx
je 0x3266
movl 0x10(%r10,%rax,4), %ecx
movl $0x0, (%r15,%rcx,4)
incq %rax
cmpq $0xf, %rax
jne 0x3250
movq %r12, %r13
movl $0x13, %edx
leaq 0xf0(%rsp), %rdi
movq %r15, %rsi
movl $0x7, %ecx
callq 0xdd57
testl %eax, %eax
je 0x3783
movl %eax, %ebp
jmp 0x329e
movl $0x53, %ebp
jmp 0x32cb
movl $0x32, %ebp
movq %r12, %r13
xorl %ebx, %ebx
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x22a0
movq %rbx, %rdi
callq 0x22a0
movq %r12, %rdi
callq 0x22a0
leaq 0xf0(%rsp), %rdi
callq 0xdc29
movq %r13, %r12
movq 0x40(%rsp), %r14
testl %ebp, %ebp
je 0x3324
leaq 0xc0(%rsp), %rdi
callq 0xdc29
leaq 0x90(%rsp), %rdi
callq 0xdc29
movl %ebp, %eax
testl %ebp, %ebp
movq 0x30(%rsp), %rdi
movl 0x4c(%rsp), %r12d
jne 0x3bad
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x3315
cmpq %rax, 0x8(%rdi)
ja 0x3b93
testb $0x1, %r12b
je 0x2f0d
jmp 0x3b8f
movq 0xd8(%rsp), %rbp
movq 0xe0(%rsp), %r13
movq 0xa8(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x18(%rsp), %rcx
movq %r13, 0x28(%rsp)
movq %rbp, 0x50(%rsp)
movq %rcx, %rax
shrq $0x3, %rax
movq 0x8(%rsp), %rsi
leaq 0x4(%rax), %rdx
cmpq %rsi, %rdx
jae 0x3399
movq (%rsp), %rdx
movl (%rdx,%rax), %esi
andb $0x7, %cl
shrl %cl, %esi
movl %esi, 0x20(%rsp)
movzbl 0x4(%rdx,%rax), %edx
shll $0x18, %edx
movb $0x8, %al
subb %cl, %al
movl %eax, %ecx
shll %cl, %edx
orl %esi, %edx
movq %rsp, %r15
jmp 0x3408
movl $0x0, 0x20(%rsp)
xorl %edx, %edx
cmpq %rsi, %rax
movq %rsp, %r15
jae 0x33b7
movq (%rsp), %rdx
movzbl (%rdx,%rax), %edx
movl %edx, 0x20(%rsp)
leaq 0x1(%rax), %rdi
cmpq %rsi, %rdi
jae 0x33d2
movq (%rsp), %r8
movzbl (%r8,%rdi), %edi
shll $0x8, %edi
orl %edi, %edx
movl %edx, 0x20(%rsp)
leaq 0x2(%rax), %rdi
cmpq %rsi, %rdi
jae 0x33ed
movq (%rsp), %r8
movzbl (%r8,%rdi), %edi
shll $0x10, %edi
orl %edi, %edx
movl %edx, 0x20(%rsp)
addq $0x3, %rax
cmpq %rsi, %rax
jae 0x3403
movq (%rsp), %rsi
movzbl (%rsi,%rax), %eax
shll $0x18, %eax
orl %eax, %edx
andb $0x7, %cl
shrl %cl, %edx
movl %edx, 0x20(%rsp)
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0xdba9
cmpl $0xff, %eax
ja 0x346a
movq 0x30(%rsp), %rbx
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %al, (%rcx,%rdx)
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0xdba9
cmpl $0xff, %eax
ja 0x346a
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %al, (%rcx,%rdx)
movb $0x1, %r13b
movq %rbx, %rdi
jmp 0x36f2
cmpl $0x100, %eax            # imm = 0x100
sete %cl
cmpl $0x11e, %eax            # imm = 0x11E
setae %dl
orb %cl, %dl
jne 0x34be
addl $0xfffffeff, %eax       # imm = 0xFFFFFEFF
leaq 0x70f06(%rip), %rcx     # 0x74390
movl (%rcx,%rax,4), %ebp
leaq -0x1c(%rax), %rcx
movq 0x8(%rsp), %rsi
movq 0x18(%rsp), %rdx
cmpq $-0x14, %rcx
jb 0x3558
movq %rdx, %rcx
shrq $0x3, %rcx
leaq 0x3(%rcx), %rdi
cmpq %rsi, %rdi
jae 0x34d6
movq (%rsp), %rdi
movl (%rdi,%rcx), %edi
jmp 0x3525
cmpl $0x100, %eax            # imm = 0x100
movq 0x30(%rsp), %rdi
jne 0x3b40
xorl %r13d, %r13d
jmp 0x36f2
movl $0x0, 0x20(%rsp)
xorl %edi, %edi
cmpq %rsi, %rcx
jae 0x34f1
movq (%rsp), %rdi
movzbl (%rdi,%rcx), %edi
movl %edi, 0x20(%rsp)
leaq 0x1(%rcx), %r8
cmpq %rsi, %r8
jae 0x350e
movq (%rsp), %r9
movzbl (%r9,%r8), %r8d
shll $0x8, %r8d
orl %r8d, %edi
movl %edi, 0x20(%rsp)
addq $0x2, %rcx
cmpq %rsi, %rcx
jae 0x3525
movq (%rsp), %r8
movzbl (%r8,%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %edi
leaq 0x70ee4(%rip), %rcx     # 0x74410
movl (%rcx,%rax,4), %eax
movl %edx, %ecx
andb $0x7, %cl
shrl %cl, %edi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r8d
notl %r8d
andl %edi, %r8d
shrl %cl, %edi
movl %edi, 0x20(%rsp)
addq %rax, %rdx
movq %rdx, 0x18(%rsp)
addq %r8, %rbp
movq %rdx, %rdi
shrq $0x3, %rdi
leaq 0x4(%rdi), %rax
cmpq %rsi, %rax
jae 0x358c
movq (%rsp), %rax
movl (%rax,%rdi), %esi
andb $0x7, %dl
movl %edx, %ecx
shrl %cl, %esi
movl %esi, 0x20(%rsp)
movzbl 0x4(%rax,%rdi), %eax
shll $0x18, %eax
movb $0x8, %cl
subb %dl, %cl
shll %cl, %eax
orl %esi, %eax
jmp 0x35fa
movl $0x0, 0x20(%rsp)
xorl %eax, %eax
cmpq %rsi, %rdi
jae 0x35a7
movq (%rsp), %rax
movzbl (%rax,%rdi), %eax
movl %eax, 0x20(%rsp)
leaq 0x1(%rdi), %rcx
cmpq %rsi, %rcx
jae 0x35c2
movq (%rsp), %r8
movzbl (%r8,%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movl %eax, 0x20(%rsp)
leaq 0x2(%rdi), %rcx
cmpq %rsi, %rcx
jae 0x35dd
movq (%rsp), %r8
movzbl (%r8,%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, 0x20(%rsp)
addq $0x3, %rdi
cmpq %rsi, %rdi
jae 0x35f3
movq (%rsp), %rcx
movzbl (%rcx,%rdi), %ecx
shll $0x18, %ecx
orl %ecx, %eax
andb $0x7, %dl
movl %edx, %ecx
shrl %cl, %eax
movl %eax, 0x20(%rsp)
movq %r15, %rdi
movq 0x58(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0xdba9
cmpl $0x1e, %eax
jae 0x3b2c
movl %eax, %ecx
leaq 0x70e6e(%rip), %rdx     # 0x74490
movl (%rdx,%rcx,4), %edx
cmpl $0x4, %eax
jb 0x3650
leaq 0x70edf(%rip), %rax     # 0x74510
movl (%rax,%rcx,4), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
shll %cl, %eax
movl 0x20(%rsp), %esi
notl %eax
andl %esi, %eax
shrl %cl, %esi
movl %esi, 0x20(%rsp)
addq %rcx, 0x18(%rsp)
addl %eax, %edx
movq 0x30(%rsp), %rdi
movq 0x8(%rdi), %rbx
movl %edx, %r13d
movq %rbx, %r15
subq %r13, %r15
jb 0x3b4a
movq %r12, %r14
leaq (%rbx,%rbp), %rax
movq %rax, 0x8(%rdi)
movq %rbp, %r12
subq %r13, %r12
jbe 0x36c1
testq %r13, %r13
je 0x3697
movq (%rdi), %rdi
leaq (%rdi,%r15), %rsi
addq %rbx, %rdi
movq %r13, %rdx
callq 0x21e0
movq 0x30(%rsp), %rdi
addq %r13, %rbx
movq 0x50(%rsp), %rbp
movq (%rdi), %rax
movb (%rax,%r15), %cl
incq %r15
movb %cl, (%rax,%rbx)
incq %rbx
decq %r12
jne 0x369f
movb $0x1, %r13b
movq %r14, %r12
movq 0x40(%rsp), %r14
jmp 0x36f2
movb $0x1, %r13b
testq %rbp, %rbp
je 0x36e5
movq (%rdi), %rax
addq %rax, %r15
addq %rax, %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x21e0
movq 0x30(%rsp), %rdi
movq %r14, %r12
movq 0x40(%rsp), %r14
movq 0x50(%rsp), %rbp
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rax
subq %rsi, %rax
cmpq $0x103, %rax            # imm = 0x103
ja 0x371a
addq $0x104, %rsi            # imm = 0x104
callq 0xdb6a
movq 0x30(%rsp), %rdi
testl %eax, %eax
je 0x3779
movq 0x18(%rsp), %rcx
cmpq 0x10(%rsp), %rcx
ja 0x375a
testq %r12, %r12
je 0x3745
movq 0x8(%rdi), %rax
cmpq %r12, %rax
setbe %dl
testb %dl, %r13b
movq 0x28(%rsp), %r13
jne 0x335d
jmp 0x3764
testb %r13b, %r13b
movq 0x28(%rsp), %r13
jne 0x335d
xorl %ebp, %ebp
jmp 0x32d4
movl $0x33, %ebp
jmp 0x32d4
cmpq %r12, %rax
movl $0x6d, %ebp
movl $0x0, %eax
cmovbel %eax, %ebp
jmp 0x32d4
movl $0x53, %ebp
jmp 0x32d4
movl $0x480, %edi            # imm = 0x480
callq 0x22b0
movq %rax, %rbx
movl $0x80, %edi
callq 0x22b0
movq %rax, %r12
testq %rbx, %rbx
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x3b59
movq %r15, 0x60(%rsp)
xorl %r15d, %r15d
movl $0x480, %edx            # imm = 0x480
movq %rbx, 0x28(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2140
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movups %xmm0, 0x10(%r12)
movups %xmm0, 0x20(%r12)
movups %xmm0, 0x30(%r12)
movups %xmm0, 0x40(%r12)
movups %xmm0, 0x50(%r12)
movups %xmm0, 0x60(%r12)
movups %xmm0, 0x70(%r12)
movq 0x58(%rsp), %rbx
movl 0x50(%rsp), %ecx
addl %ecx, %ebx
movq 0x108(%rsp), %rdx
movq %rdx, 0x58(%rsp)
movq 0x110(%rsp), %rdx
movq %rdx, 0x70(%rsp)
movq 0x68(%rsp), %rsi
leal 0x102(%rsi), %edx
movl %edx, 0x7c(%rsp)
movl %ecx, %ecx
movq %rcx, 0x88(%rsp)
movq 0x18(%rsp), %rcx
negl %esi
movq %rsi, 0x68(%rsp)
movslq %esi, %rdx
addq $-0x101, %rdx           # imm = 0xFEFF
movq %rdx, 0x80(%rsp)
movl $0x0, 0x3c(%rsp)
movq %rcx, %rdx
shrq $0x3, %rdx
movq 0x8(%rsp), %rsi
leaq 0x3(%rdx), %rax
cmpq %rsi, %rax
jae 0x3881
movq (%rsp), %rax
movl (%rax,%rdx), %eax
jmp 0x38cd
movl $0x0, 0x20(%rsp)
xorl %eax, %eax
cmpq %rsi, %rdx
jae 0x389c
movq (%rsp), %rax
movzbl (%rax,%rdx), %eax
movl %eax, 0x20(%rsp)
leaq 0x1(%rdx), %rdi
cmpq %rsi, %rdi
jae 0x38b7
movq (%rsp), %r8
movzbl (%r8,%rdi), %edi
shll $0x8, %edi
orl %edi, %eax
movl %eax, 0x20(%rsp)
addq $0x2, %rdx
cmpq %rsi, %rdx
jae 0x38cd
movq (%rsp), %rsi
movzbl (%rsi,%rdx), %edx
shll $0x10, %edx
orl %edx, %eax
andb $0x7, %cl
shrl %cl, %eax
movl %eax, 0x20(%rsp)
movq %rsp, %rdi
movq 0x58(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0xdba9
cmpl $0xf, %eax
ja 0x391d
movl 0x50(%rsp), %ecx
cmpl %ecx, %r15d
movl $0x0, %edx
cmovbl %edx, %ecx
movq %r12, %rdx
cmovbq 0x28(%rsp), %rdx
movl %r15d, %esi
subl %ecx, %esi
movl %eax, (%rdx,%rsi,4)
incl %r15d
movq 0x18(%rsp), %rcx
movq %rbx, %r9
jmp 0x3ab6
cmpl $0x12, %eax
movq %rbx, %r9
movq 0x88(%rsp), %r10
movq 0x80(%rsp), %r11
je 0x3a34
cmpl $0x11, %eax
je 0x39d6
cmpl $0x10, %eax
jne 0x3b63
testl %r15d, %r15d
je 0x3b6a
movl 0x20(%rsp), %ecx
movl %ecx, %eax
andl $0x3, %eax
shrl $0x2, %ecx
movl %ecx, 0x20(%rsp)
movq 0x18(%rsp), %rcx
addq $0x2, %rcx
movq %rcx, 0x18(%rsp)
leal -0x1(%r15), %edx
cmpl 0x7c(%rsp), %r15d
movq 0x28(%rsp), %rdi
leaq (%rdi,%rdx,4), %rdx
movq 0x68(%rsp), %rsi
leal -0x102(%r15,%rsi), %esi
leaq (%r12,%rsi,4), %rsi
cmovbq %rdx, %rsi
movl (%rsi), %edx
movl %r15d, %esi
negl %r15d
leaq (%rdi,%rsi,4), %rdi
addl $0x3, %eax
cmpq %r9, %rsi
jae 0x3aab
leal (%r11,%rsi), %r8d
cmpq %r10, %rsi
leaq (%r12,%r8,4), %r8
cmovbq %rdi, %r8
movl %edx, (%r8)
incq %rsi
decl %r15d
addq $0x4, %rdi
decl %eax
jne 0x39a8
jmp 0x3a8c
movl 0x20(%rsp), %ecx
movl %ecx, %eax
andl $0x7, %eax
shrl $0x3, %ecx
movl %ecx, 0x20(%rsp)
movq 0x18(%rsp), %rcx
addq $0x3, %rcx
movq %rcx, 0x18(%rsp)
movl %r15d, %edx
negl %r15d
movq 0x28(%rsp), %rsi
leaq (%rsi,%rdx,4), %rsi
addl $0x3, %eax
cmpq %r9, %rdx
jae 0x3a91
leal (%r11,%rdx), %edi
cmpq %r10, %rdx
leaq (%r12,%rdi,4), %rdi
cmovbq %rsi, %rdi
movl $0x0, (%rdi)
incq %rdx
decl %r15d
addq $0x4, %rsi
decl %eax
jne 0x3a06
jmp 0x3a8c
movl 0x20(%rsp), %ecx
movl %ecx, %eax
andl $0x7f, %eax
shrl $0x7, %ecx
movl %ecx, 0x20(%rsp)
movq 0x18(%rsp), %rcx
addq $0x7, %rcx
movq %rcx, 0x18(%rsp)
movl %r15d, %edx
negl %r15d
movq 0x28(%rsp), %rsi
leaq (%rsi,%rdx,4), %rsi
addl $0xb, %eax
cmpq %r9, %rdx
jae 0x3a9e
leal (%r11,%rdx), %edi
cmpq %r10, %rdx
leaq (%r12,%rdi,4), %rdi
cmovbq %rsi, %rdi
movl $0x0, (%rdi)
incq %rdx
decl %r15d
addq $0x4, %rsi
decl %eax
jne 0x3a64
negl %r15d
jmp 0x3ab6
negl %r15d
movl $0xe, 0x3c(%rsp)
jmp 0x3ab6
negl %r15d
movl $0xf, 0x3c(%rsp)
jmp 0x3ab6
negl %r15d
movl $0xd, 0x3c(%rsp)
cmpq 0x10(%rsp), %rcx
ja 0x3b6f
cmpl %r9d, %r15d
jb 0x3863
movl 0x3c(%rsp), %ebp
testl %ebp, %ebp
movq 0x60(%rsp), %r15
jne 0x3b74
movq 0x28(%rsp), %rbx
cmpl $0x0, 0x400(%rbx)
je 0x3b7e
movl $0x120, %edx            # imm = 0x120
leaq 0xc0(%rsp), %rdi
movq %rbx, %rsi
movl $0xf, %ecx
callq 0xdd57
testl %eax, %eax
jne 0x3b25
movl $0x20, %edx
leaq 0x90(%rsp), %rdi
movq %r12, %rsi
movl $0xf, %ecx
callq 0xdd57
movl %eax, %ebp
jmp 0x32a3
xorl %ecx, %ecx
cmpl $0x20, %eax
setb %cl
leal 0x10(,%rcx,2), %ebp
jmp 0x32d4
movl $0x10, %ebp
jmp 0x32d4
movl $0x34, %ebp
movq 0x40(%rsp), %r14
jmp 0x32d4
movl $0x53, %ebp
jmp 0x32a3
movl $0x10, %ebp
jmp 0x3b6f
movl $0x36, %ebp
movq 0x60(%rsp), %r15
movq 0x28(%rsp), %rbx
jmp 0x32a3
movl $0x40, %ebp
jmp 0x32a3
movl $0x53, %eax
jmp 0x3bad
xorl %eax, %eax
jmp 0x3bad
movl $0x6d, %eax
jmp 0x3bad
movl $0x14, %eax
jmp 0x3bad
movl $0x17, %eax
jmp 0x3bad
movl $0x15, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq