// File: /workspace/github_c_makefile_star2_O2/Joy-Division[P]tools-mgs/lodepng/lodepng.c
// Function: lodepng_decode
unsigned lodepng_decode(unsigned char** out, unsigned* w, unsigned* h,
                        LodePNGState* state,
                        const unsigned char* in, size_t insize)
{
  *out = 0;
  decodeGeneric(out, w, h, state, in, insize);
  if(state->error) return state->error;
  if(!state->decoder.color_convert || lodepng_color_mode_equal(&state->info_raw, &state->info_png.color))
  {
    /*same color type, no copying or converting of data needed*/
    /*store the info_png color settings on the info_raw so that the info_raw still reflects what colortype
    the raw image has to the end user*/
    if(!state->decoder.color_convert)
    {
      state->error = lodepng_color_mode_copy(&state->info_raw, &state->info_png.color);
      if(state->error) return state->error;
    }
  }
  else
  {
    /*color conversion needed; sort of copy of the data*/
    unsigned char* data = *out;
    size_t outsize;

    /*TODO: check if this works according to the statement in the documentation: "The converter can convert
    from greyscale input color type, to 8-bit greyscale or greyscale with alpha"*/
    if(!(state->info_raw.colortype == LCT_RGB || state->info_raw.colortype == LCT_RGBA)
       && !(state->info_raw.bitdepth == 8))
    {
      return 56; /*unsupported color mode conversion*/
    }

    outsize = lodepng_get_raw_size(*w, *h, &state->info_raw);
    *out = (unsigned char*)lodepng_malloc(outsize);
    if(!(*out))
    {
      state->error = 83; /*alloc fail*/
    }
    else state->error = lodepng_convert(*out, data, &state->info_raw,
                                        &state->info_png.color, *w, *h);
    lodepng_free(data);
  }
  return state->error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %r9, %rbp
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
andq $0x0, (%rdi)
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movq %r8, %rcx
movq %r9, %r8
callq 0x53d8
movl %eax, 0x198(%r13)
testl %eax, %eax
jne 0x67fb
movq %rbx, 0x88(%rsp)
movl (%r14), %ecx
movl %ecx, %eax
mull (%r15)
seto %dl
testl %ecx, %ecx
je 0x5656
cmpl $0x10000000, %eax       # imm = 0x10000000
setae %al
orb %al, %dl
je 0x565d
movl $0x5c, 0x198(%r13)
pushq $0x5c
popq %rax
jmp 0x67fb
cmpl $0xfffffff, %eax        # imm = 0xFFFFFFF
ja 0x5643
movq %r15, 0x58(%rsp)
movq %r14, 0x48(%rsp)
xorps %xmm0, %xmm0
leaq 0xf0(%rsp), %rax
andq $0x0, 0x10(%rax)
movaps %xmm0, (%rax)
leaq 0x21(%r12), %r15
leaq 0xc0(%r13), %rax
movq %rax, 0x20(%rsp)
leaq 0xb0(%r13), %rax
movq %rax, 0x50(%rsp)
leaq 0x168(%r13), %rax
movq %rax, 0x110(%rsp)
leaq 0x180(%r13), %rax
movq %rax, 0x108(%rsp)
pushq $0x1
popq %rax
movl $0x0, 0x30(%rsp)
movq %rax, 0x68(%rsp)
movq %r12, %rcx
xorl %r12d, %r12d
movq %rcx, 0x118(%rsp)
movq %r15, %rax
subq %rcx, %rax
leaq 0xc(%rax), %rcx
setb %al
movq %rcx, 0x70(%rsp)
cmpq %rbp, %rcx
seta %cl
orb %al, %cl
movb %cl, 0x28(%rsp)
leaq 0x8(%r15), %rbx
testb %r12b, %r12b
jne 0x622d
cmpl $0x0, 0x198(%r13)
jne 0x622d
cmpb $0x0, 0x28(%rsp)
jne 0x6207
movq %r15, %rdi
callq 0x125c
testl %eax, %eax
js 0x620b
movl %eax, %r12d
movq 0x70(%rsp), %rax
addq %r12, %rax
cmpq %rbp, %rax
ja 0x620f
movq %r15, %rdi
leaq 0x721a(%rip), %rsi      # 0xc95f
callq 0x3296
testb %al, %al
je 0x579d
movq 0xf8(%rsp), %r14
leaq (%r14,%r12), %rsi
leaq 0xf0(%rsp), %rdi
callq 0x8080
testl %eax, %eax
je 0x6223
addq 0xf0(%rsp), %r14
xorl %eax, %eax
cmpq %rax, %r12
je 0x578a
movb (%rbx,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
jmp 0x5779
movb $0x1, %r14b
xorl %r12d, %r12d
pushq $0x3
popq %rax
movq %rax, 0x68(%rsp)
jmp 0x5b0c
movq %r15, %rdi
leaq 0x71bd(%rip), %rsi      # 0xc964
callq 0x3296
testb %al, %al
je 0x57bb
movb $0x1, %r12b
xorl %r14d, %r14d
jmp 0x5b0c
movq %r15, %rdi
leaq 0x71a4(%rip), %rsi      # 0xc969
callq 0x3296
testb %al, %al
je 0x589f
movq 0xc8(%r13), %rdi
callq 0x1030
movl %r12d, %eax
xorl %edx, %edx
pushq $0x3
popq %rcx
divl %ecx
movl %eax, %r14d
movq %r14, 0xd0(%r13)
leaq (,%r14,4), %rdi
callq 0x10f0
movq %rax, 0xc8(%r13)
cmpl $0x3, %r12d
jb 0x5815
testq %rax, %rax
je 0x621b
cmpl $0x302, %r12d           # imm = 0x302
ja 0x6217
xorl %eax, %eax
pushq $0x3
popq %rcx
pushq $0x2
popq %rdx
movl %eax, %esi
cmpq %rsi, %r14
je 0x5892
leal -0x2(%rdx), %esi
leal -0x1(%rdx), %edi
movl %esi, %esi
movb (%rbx,%rsi), %sil
movq 0xc8(%r13), %r8
leal -0x3(%rcx), %r9d
movb %sil, (%r8,%r9)
movb (%rbx,%rdi), %sil
movq 0xc8(%r13), %rdi
leal -0x2(%rcx), %r8d
movb %sil, (%rdi,%r8)
movl %edx, %esi
movb (%rbx,%rsi), %sil
movq 0xc8(%r13), %rdi
leal -0x1(%rcx), %r8d
movb %sil, (%rdi,%r8)
movq 0xc8(%r13), %rsi
movl %ecx, %edi
movb $-0x1, (%rsi,%rdi)
incl %eax
movq 0xd0(%r13), %r14
addl $0x3, %edx
addl $0x4, %ecx
jmp 0x582a
pushq $0x2
popq %rax
movq %rax, 0x68(%rsp)
jmp 0x5afe
movq %r15, %rdi
leaq 0x70c5(%rip), %rsi      # 0xc96e
callq 0x3296
testb %al, %al
je 0x590d
movq 0x20(%rsp), %rax
movl (%rax), %eax
testl %eax, %eax
je 0x59b6
cmpl $0x2, %eax
je 0x596b
cmpl $0x3, %eax
jne 0x68d2
cmpq %r12, 0xd0(%r13)
jb 0x6217
shlq $0x2, %r12
movq %rbx, %rax
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0x5afe
movb (%rax), %dl
movq 0xc8(%r13), %rsi
movl %ecx, %edi
andl $-0x4, %edi
movb %dl, 0x3(%rsi,%rdi)
addq $0x4, %rcx
incq %rax
jmp 0x58e9
movq %r15, %rdi
leaq 0x705c(%rip), %rsi      # 0xc973
callq 0x3296
testb %al, %al
je 0x59f2
movq 0x20(%rsp), %rax
movl (%rax), %eax
cmpq $0x6, %rax
ja 0x5afe
leaq 0x57bc(%rip), %rcx      # 0xb0f8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x2, %r12d
jne 0x68e0
movl $0x1, 0xe8(%r13)
movzwl 0x8(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
jmp 0x5ae5
cmpl $0x6, %r12d
jne 0x68d9
movl $0x1, 0xd8(%r13)
movzwl 0x8(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0xdc(%r13)
movzwl 0xa(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0xe0(%r13)
movzwl 0xc(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
pushq $0x24
jmp 0x59e7
cmpl $0x2, %r12d
jne 0x6207
movl $0x1, 0xd8(%r13)
movzwl 0x8(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0xe4(%r13)
movl %eax, 0xe0(%r13)
pushq $0x1c
popq %rcx
movq 0x20(%rsp), %rdx
jmp 0x5afb
movq %r15, %rdi
leaq 0x6f7c(%rip), %rsi      # 0xc978
callq 0x3296
testb %al, %al
je 0x5a7e
movb $0x1, %r14b
cmpl $0x0, 0x28(%r13)
je 0x5b09
movq %r13, (%rsp)
xorl %r13d, %r13d
cmpl %r13d, %r12d
je 0x5b34
cmpb $0x0, (%rbx,%r13)
je 0x5b39
incq %r13
jmp 0x5a1a
cmpl $0x6, %r12d
jne 0x68e7
movl $0x1, 0xe8(%r13)
movzwl 0x8(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0xec(%r13)
movzwl 0xa(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0xf0(%r13)
movzwl 0xc(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
pushq $0x44
jmp 0x5af5
movq %r15, %rdi
leaq 0x6ef5(%rip), %rsi      # 0xc97d
callq 0x3296
testb %al, %al
je 0x5b8a
movb $0x1, %r14b
cmpl $0x0, 0x28(%r13)
je 0x5b09
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
andq $0x0, 0xa0(%rsp)
xorl %edx, %edx
cmpl %edx, %r12d
je 0x5c53
cmpb $0x0, (%rbx,%rdx)
je 0x5c7f
incq %rdx
jmp 0x5ab5
cmpl $0x1, %r12d
jne 0x68ee
movl $0x1, 0xe8(%r13)
movzbl (%rbx), %eax
movl %eax, 0xf4(%r13)
movl %eax, 0xf0(%r13)
pushq $0x3c
popq %rcx
movq 0x50(%rsp), %rdx
movl %eax, (%rdx,%rcx)
andl $0x0, 0x198(%r13)
movb $0x1, %r14b
xorl %r12d, %r12d
movl 0x20(%r13), %eax
orl 0x30(%rsp), %eax
jne 0x5b26
movq %r15, %rdi
callq 0x3313
testl %eax, %eax
jne 0x6213
testb %r14b, %r14b
je 0x56f5
jmp 0x61ef
movl %r12d, %ecx
jmp 0x5b3c
movl %r13d, %ecx
leal -0x50(%rcx), %eax
cmpl $-0x4f, %eax
jae 0x5b56
xorl %edi, %edi
movq $0x0, 0x8(%rsp)
pushq $0x59
jmp 0x5c65
incl %ecx
movq %rcx, 0x8(%rsp)
movq %rcx, %rdi
callq 0x10f0
testq %rax, %rax
je 0x5c58
movb $0x0, (%rax,%r13)
xorl %edx, %edx
movq 0x8(%rsp), %rsi
cmpq %rdx, %r13
je 0x5bea
movb (%rbx,%rdx), %cl
movb %cl, (%rax,%rdx)
incq %rdx
jmp 0x5b7a
movq %r15, %rdi
leaq 0x6dee(%rip), %rsi      # 0xc982
callq 0x3296
testb %al, %al
je 0x5ca4
movb $0x1, %r14b
cmpl $0x0, 0x28(%r13)
je 0x5b09
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
andq $0x0, 0xa0(%rsp)
cmpl $0x5, %r12d
jae 0x5d7f
pushq $0x1e
popq %r12
xorl %edi, %edi
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
jmp 0x5e50
movq %rax, 0x10(%rsp)
subq %rsi, %r12
movl $0x0, %eax
cmovbq %rax, %r12
leaq 0x1(%r12), %rdi
callq 0x10f0
testq %rax, %rax
je 0x5d24
movb $0x0, (%rax,%r12)
xorl %esi, %esi
movq (%rsp), %r13
movq 0x8(%rsp), %rdx
cmpq %rsi, %r12
je 0x5c31
leal (%rdx,%rsi), %ecx
movb (%rbx,%rcx), %cl
movb %cl, (%rax,%rsi)
incq %rsi
jmp 0x5c1e
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %r12
movq %r12, %rsi
movq %rax, %rdx
movq %rax, 0x8(%rsp)
callq 0x3737
movq %r12, %rdi
movl %eax, %r12d
jmp 0x5c6b
movl %r12d, %eax
jmp 0x5c81
xorl %edi, %edi
movq $0x0, 0x8(%rsp)
pushq $0x53
popq %r12
movq (%rsp), %r13
callq 0x1030
movq 0x8(%rsp), %rdi
callq 0x1030
jmp 0x5e76
movl %edx, %eax
leal 0x2(%rax), %esi
cmpl %r12d, %esi
jae 0x5c99
leal -0x50(%rax), %ecx
cmpl $-0x4f, %ecx
jae 0x5d3f
pushq $0x59
jmp 0x5c9b
pushq $0x4b
popq %r12
xorl %edi, %edi
jmp 0x5e64
movq %r15, %rdi
leaq 0x6cd9(%rip), %rsi      # 0xc987
callq 0x3296
testb %al, %al
je 0x5db1
cmpl $0x7, %r12d
jne 0x68f5
movl $0x1, 0x138(%r13)
movzwl 0x8(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x13c(%r13)
movzbl 0xa(%r15), %eax
movl %eax, 0x140(%r13)
movzbl 0xb(%r15), %eax
movl %eax, 0x144(%r13)
movzbl 0xc(%r15), %eax
movl %eax, 0x148(%r13)
movzbl 0xd(%r15), %eax
movl %eax, 0x14c(%r13)
movzbl 0xe(%r15), %eax
movl %eax, 0x150(%r13)
jmp 0x5afe
movq $0x0, 0x8(%rsp)
pushq $0x53
popq %r12
movq (%rsp), %r13
movq 0x10(%rsp), %rdi
jmp 0x5c6b
movq %rsi, 0x40(%rsp)
movq %rdx, 0x8(%rsp)
movl %eax, %edi
incq %rdi
movq %rdi, 0x10(%rsp)
callq 0x10f0
testq %rax, %rax
je 0x5e0d
movq %rax, %rdi
movq 0x8(%rsp), %rdx
movb $0x0, (%rax,%rdx)
xorl %eax, %eax
cmpq %rax, %rdx
je 0x5d99
movb (%rbx,%rax), %cl
movb %cl, (%rdi,%rax)
incq %rax
jmp 0x5d6f
xorl %eax, %eax
movq %r13, (%rsp)
cmpl %eax, %r12d
je 0x5e08
cmpb $0x0, (%rbx,%rax)
je 0x5e14
incq %rax
jmp 0x5d85
movq 0x10(%rsp), %rax
cmpb $0x0, (%rbx,%rax)
je 0x5e8b
pushq $0x48
popq %r12
jmp 0x5e64
movq %r15, %rdi
leaq 0x6bd1(%rip), %rsi      # 0xc98c
callq 0x3296
testb %al, %al
je 0x5ed0
cmpl $0x9, %r12d
jne 0x68fc
movl $0x1, 0x154(%r13)
movl 0x8(%r15), %eax
bswapl %eax
movl %eax, 0x158(%r13)
movl 0xc(%r15), %eax
bswapl %eax
movl %eax, 0x15c(%r13)
movzbl 0x10(%r15), %eax
movl %eax, 0x160(%r13)
jmp 0x5afe
movl %r12d, %ecx
jmp 0x5e16
pushq $0x53
jmp 0x5c9b
movl %eax, %ecx
leal 0x3(%rcx), %r13d
cmpl %r12d, %r13d
jae 0x5e34
movq %rax, 0x8(%rsp)
leal -0x50(%rcx), %eax
cmpl $-0x4f, %eax
jae 0x5f2a
pushq $0x59
jmp 0x5e36
pushq $0x4b
popq %r12
xorl %edi, %edi
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq (%rsp), %r13
callq 0x1030
movq 0x8(%rsp), %rdi
callq 0x1030
movq 0x10(%rsp), %rdi
callq 0x1030
leaq 0x90(%rsp), %rdi
callq 0x8f7c
movl %r12d, 0x198(%r13)
testl %r12d, %r12d
je 0x5b09
jmp 0x622d
movq %rdi, 0x8(%rsp)
movq 0x40(%rsp), %rdx
subl %edx, %r12d
addq %rbx, %rdx
leaq 0x90(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movq %r12, %rcx
movq %r13, (%rsp)
movq %r13, %r8
callq 0x8f6d
testl %eax, %eax
je 0x5f9a
movl %eax, %r12d
movq (%rsp), %r13
movq 0x8(%rsp), %rdi
jmp 0x5e64
testb $0x20, 0x4(%r15)
je 0x6903
movb $0x1, %r14b
cmpl $0x0, 0x2c(%r13)
je 0x5f1b
movq 0x68(%rsp), %rax
decl %eax
movq 0x110(%rsp), %rcx
leaq (%rcx,%rax,8), %rdi
movq 0x108(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movq %r15, %rdx
callq 0x33a0
movl %eax, 0x198(%r13)
testl %eax, %eax
jne 0x622d
xorl %r12d, %r12d
pushq $0x1
popq %rax
movl %eax, 0x30(%rsp)
jmp 0x5b0c
movq %rcx, 0x80(%rsp)
movl %ecx, %edi
incq %rdi
movq %rdi, 0x10(%rsp)
callq 0x10f0
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x5fd2
movq 0x38(%rsp), %rdx
movq 0x8(%rsp), %rsi
movb $0x0, (%rdx,%rsi)
xorl %eax, %eax
cmpq %rax, %rsi
je 0x5f6f
movb (%rbx,%rax), %cl
movb %cl, (%rdx,%rax)
incq %rax
jmp 0x5f5f
cmpb $0x0, 0x2(%rbx,%rsi)
je 0x5fd9
pushq $0x48
popq %r12
movq $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq (%rsp), %r13
movq 0x38(%rsp), %rdi
jmp 0x5e50
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
callq 0x31c1
movq 0x90(%rsp), %rdx
movq 0x50(%rsp), %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x3737
movq %r12, %rdi
movl %eax, %r12d
movq (%rsp), %r13
jmp 0x5e64
pushq $0x53
jmp 0x5e36
movq 0x10(%rsp), %rax
movb (%rbx,%rax), %al
movb %al, 0x1f(%rsp)
movl %r13d, %edi
movq 0x80(%rsp), %rax
leal 0x4(%rax), %esi
leal 0x5(%rax), %ecx
xorl %edx, %edx
movl %esi, 0x78(%rsp)
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
xorl %r13d, %r13d
cmpq %r12, %rax
jae 0x6021
cmpb $0x0, (%rbx,%rax)
je 0x6021
incl %r13d
incq %rax
incl %esi
incq %rdx
incl %ecx
jmp 0x6007
movl %esi, 0x7c(%rsp)
movq %rdx, 0x60(%rsp)
movl %ecx, 0x40(%rsp)
leal 0x1(%r13), %edi
callq 0x10f0
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x6129
movl %r13d, %eax
movq 0x8(%rsp), %rsi
movb $0x0, (%rsi,%rax)
movq 0x60(%rsp), %rax
xorl %ecx, %ecx
movq 0x10(%rsp), %rdi
subq $0x1, %rax
jb 0x6071
leal (%rdi,%rcx), %edx
movb (%rbx,%rdx), %dl
movb %dl, (%rsi,%rcx)
incq %rcx
jmp 0x605d
movl 0x7c(%rsp), %eax
leaq (%rbx,%rax), %rcx
xorl %r13d, %r13d
leaq (%rax,%r13), %rdx
cmpq %r12, %rdx
jae 0x6095
cmpb $0x0, (%rcx,%r13)
je 0x6095
incq %r13
incl 0x40(%rsp)
jmp 0x607c
leal 0x1(%r13), %edi
callq 0x10f0
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x6130
movq 0x10(%rsp), %rsi
movb $0x0, (%rsi,%r13)
movl 0x78(%rsp), %eax
addq 0x60(%rsp), %rax
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x60d4
leal (%rax,%rcx), %edx
movb (%rbx,%rdx), %dl
movb %dl, (%rsi,%rcx)
incq %rcx
jmp 0x60c1
movq 0x80(%rsp), %rax
addl 0x60(%rsp), %eax
leal (%rax,%r13), %edx
addl $0x5, %edx
movq %r12, %rax
subq %rdx, %rax
movl $0x0, %r13d
cmovaeq %rax, %r13
cmpb $0x0, 0x1f(%rsp)
je 0x6139
addq %rbx, %rdx
leaq 0x90(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movq %r13, %rcx
movq (%rsp), %r8
callq 0x8f6d
testl %eax, %eax
je 0x618e
movl %eax, %r12d
jmp 0x5f8c
pushq $0x53
jmp 0x5f78
pushq $0x53
popq %r12
jmp 0x5f83
leaq 0x1(%r13), %rsi
leaq 0x90(%rsp), %rdi
callq 0x8080
testl %eax, %eax
je 0x61e6
movq 0x90(%rsp), %r8
movb $0x0, (%r8,%r13)
movl 0x40(%rsp), %eax
subq %rax, %r12
movl $0x0, %eax
cmovbq %rax, %r12
xorl %eax, %eax
cmpq %rax, %r12
je 0x61bf
movl 0x40(%rsp), %edx
movl %edx, %ecx
movb (%rbx,%rcx), %cl
movb %cl, (%r8,%rax)
incq %rax
incl %edx
movl %edx, 0x40(%rsp)
jmp 0x6171
movq 0x98(%rsp), %rax
cmpq %rax, 0xa0(%rsp)
jae 0x61a8
movq %rax, 0xa0(%rsp)
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
callq 0x31c1
movq 0x90(%rsp), %r8
movq 0x50(%rsp), %rdi
movq 0x38(%rsp), %r13
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
callq 0x38d1
movq %r13, %rdi
movl %eax, %r12d
jmp 0x5e4c
pushq $0x53
popq %r12
jmp 0x5f8c
movq %r15, %rdi
callq 0x338f
movq %rax, %r15
movq 0x118(%rsp), %rcx
jmp 0x56d3
pushq $0x1e
jmp 0x6225
pushq $0x3f
jmp 0x6225
pushq $0x40
jmp 0x6225
pushq $0x39
jmp 0x6225
pushq $0x26
jmp 0x6225
andq $0x0, 0xd0(%r13)
pushq $0x53
popq %rax
movl %eax, 0x198(%r13)
xorps %xmm0, %xmm0
andq $0x0, 0xe0(%rsp)
movaps %xmm0, 0xd0(%rsp)
cmpl $0x0, 0xb8(%r13)
movq 0x58(%rsp), %rax
movl (%rax), %r15d
je 0x635e
leal 0x7(%r15), %edi
shrl $0x3, %edi
movq 0x48(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x28(%rsp)
leal 0x7(%rax), %r14d
shrl $0x3, %r14d
movl %r14d, %esi
movq 0x20(%rsp), %r12
movq %r12, %rdx
callq 0x8f2f
movq %rax, %rbp
addq %r14, %rbp
leal 0x3(%r15), %ebx
cmpl $0x5, %r15d
movq %r13, (%rsp)
jb 0x62ac
movl %ebx, %edi
shrl $0x3, %edi
movl %r14d, %esi
movq %r12, %rdx
callq 0x8f2f
addq %r14, %rbp
addq %rax, %rbp
shrl $0x2, %ebx
movq 0x28(%rsp), %rax
leal 0x3(%rax), %r14d
movl %r14d, %r13d
shrl $0x3, %r13d
movl %ebx, %edi
movl %r13d, %esi
movq %r12, %rdx
callq 0x8f2f
addq %rax, %r13
addq %rbp, %r13
leal 0x1(%r15), %ebx
cmpl $0x3, %r15d
jb 0x62f6
movl %ebx, %edi
shrl $0x2, %edi
shrl $0x2, %r14d
movl %r14d, %esi
movq %r12, %rdx
callq 0x8f2f
addq %rax, %r14
addq %r14, %r13
shrl %ebx
movq 0x28(%rsp), %rax
leal 0x1(%rax), %r14d
movl %r14d, %ebp
shrl $0x2, %ebp
movl %ebx, %edi
movl %ebp, %esi
movq %r12, %rdx
callq 0x8f2f
addq %rax, %rbp
addq %r13, %rbp
cmpl $0x2, %r15d
jb 0x6338
movl %r15d, %edi
shrl %edi
shrl %r14d
movl %r14d, %esi
movq %r12, %rdx
callq 0x8f2f
addq %rax, %r14
addq %r14, %rbp
movq (%rsp), %r13
movq 0x28(%rsp), %rbx
shrl %ebx
movl %r15d, %edi
movl %ebx, %esi
movq %r12, %rdx
callq 0x8f2f
movq %rax, %r14
addq %rbx, %r14
addq %rbp, %r14
movq %r12, %rbp
jmp 0x637d
movq 0x48(%rsp), %rax
movl (%rax), %ebx
movl %r15d, %edi
movl %ebx, %esi
movq 0x20(%rsp), %rbp
movq %rbp, %rdx
callq 0x8f2f
movq %rax, %r14
addq %rbx, %r14
cmpl $0x0, 0x198(%r13)
movq 0x48(%rsp), %r15
jne 0x63f0
leaq 0xd0(%rsp), %rdi
movq %r14, %rsi
callq 0x80a6
testl %eax, %eax
je 0x63e6
cmpl $0x0, 0x198(%r13)
jne 0x63f0
leaq 0xd8(%rsp), %rsi
movq 0xf0(%rsp), %rdx
movq 0xf8(%rsp), %rcx
leaq 0xd0(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %r8
callq 0x8f6d
cmpq %r14, 0x8(%rbx)
pushq $0x5b
popq %rcx
cmovel %eax, %ecx
testl %eax, %eax
cmovnel %eax, %ecx
jmp 0x63e9
pushq $0x53
popq %rcx
movl %ecx, 0x198(%r13)
leaq 0xf0(%rsp), %rdi
callq 0x8f7c
cmpl $0x0, 0x198(%r13)
jne 0x67e3
movq 0x58(%rsp), %rax
movl (%rax), %edi
movl (%r15), %esi
movq %rbp, %rdx
callq 0x3673
movq %rax, %rbx
movq %rax, %rdi
callq 0x10f0
movq 0x88(%rsp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x6558
movq %rax, %r15
xorl %eax, %eax
cmpq %rax, %rbx
je 0x6453
movb $0x0, (%r15,%rax)
incq %rax
movq (%rcx), %r15
jmp 0x6441
movq %r13, (%rsp)
movq 0xd0(%rsp), %r12
movq 0x58(%rsp), %rax
movq %rbp, %rdi
movl (%rax), %ebp
movq 0x48(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x30(%rsp)
callq 0x35f5
testl %eax, %eax
je 0x6560
movl %eax, %r13d
movq (%rsp), %rax
cmpl $0x0, 0xb8(%rax)
je 0x6571
leaq 0x180(%rsp), %rdi
leaq 0x160(%rsp), %rsi
leaq 0x260(%rsp), %rdx
leaq 0x220(%rsp), %rcx
leaq 0x1e0(%rsp), %r8
movl %ebp, %r9d
pushq %r13
pushq 0x38(%rsp)
callq 0x929c
popq %rax
popq %rcx
xorl %eax, %eax
cmpq $0x1c, %rax
je 0x65b9
movq 0x220(%rsp,%rax,2), %r14
addq %r12, %r14
movq 0x260(%rsp,%rax,2), %rsi
addq %r12, %rsi
movl 0x180(%rsp,%rax), %ebx
movq %rax, 0x28(%rsp)
movl 0x160(%rsp,%rax), %ecx
movq %r14, %rdi
movl %ebx, %edx
movl %ecx, 0x70(%rsp)
movl %r13d, %r8d
callq 0x8f95
testl %eax, %eax
jne 0x6563
cmpl $0x7, %r13d
ja 0x654a
movq 0x28(%rsp), %rax
movq 0x1e0(%rsp,%rax,2), %rdi
addq %r12, %rdi
imull %r13d, %ebx
movl %ebx, %ecx
addl $0x7, %ecx
andl $-0x8, %ecx
movq %r14, %rsi
movq %rbx, %rdx
movl 0x70(%rsp), %r8d
callq 0x91fe
movq 0x28(%rsp), %rax
addq $0x4, %rax
jmp 0x64d0
pushq $0x53
popq %rax
jmp 0x67dc
pushq $0x1f
popq %rax
movq (%rsp), %r13
movq 0x20(%rsp), %rbp
jmp 0x67dc
cmpl $0x7, %r13d
ja 0x658e
movl %r13d, %ebx
imull %ebp, %ebx
leal 0x7(%rbx), %r14d
andl $-0x8, %r14d
cmpl %r14d, %ebx
jne 0x679f
movq %r15, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq 0x30(%rsp), %rcx
movl %r13d, %r8d
callq 0x8f95
testl %eax, %eax
movq (%rsp), %r13
movq 0x20(%rsp), %rbp
jne 0x67dc
jmp 0x67da
leaq 0x140(%rsp), %rdi
leaq 0x120(%rsp), %rsi
leaq 0x90(%rsp), %rdx
leaq 0x2a0(%rsp), %rcx
leaq 0x1a0(%rsp), %r8
movl %ebp, %r9d
pushq %r13
pushq 0x38(%rsp)
callq 0x929c
popq %rax
popq %rcx
cmpl $0x7, %r13d
jbe 0x66b3
shrl $0x3, %r13d
xorl %eax, %eax
leaq 0x5228(%rip), %rsi      # 0xb830
leaq 0x5201(%rip), %rdi      # 0xb810
cmpq $0x7, %rax
je 0x67d1
movl 0x120(%rsp,%rax,4), %ecx
movl %ecx, 0x28(%rsp)
xorl %r9d, %r9d
cmpl 0x28(%rsp), %r9d
je 0x66ab
movl 0x140(%rsp,%rax,4), %r10d
movl %r10d, %r11d
imull %r9d, %r11d
xorl %ebx, %ebx
cmpq %r10, %rbx
je 0x66a3
movl %r11d, %r14d
imulq %r13, %r14
movl (%rdi,%rax,4), %ecx
imull %ebx, %ecx
addl (%rsi,%rax,4), %ecx
leaq 0x51f5(%rip), %rdx      # 0xb850
movl (%rdx,%rax,4), %r8d
imull %r9d, %r8d
leaq 0x5206(%rip), %rdx      # 0xb870
addl (%rdx,%rax,4), %r8d
imull %ebp, %r8d
addl %ecx, %r8d
imulq %r13, %r8
addq %r15, %r8
addq 0x1a0(%rsp,%rax,8), %r14
addq %r12, %r14
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0x669b
movb (%r14,%rcx), %dl
movb %dl, (%r8,%rcx)
incq %rcx
jmp 0x6689
incq %rbx
incl %r11d
jmp 0x663f
incl %r9d
jmp 0x6627
incq %rax
jmp 0x660f
xorl %eax, %eax
leaq 0x5154(%rip), %r8       # 0xb810
cmpq $0x7, %rax
je 0x67d1
movl 0x140(%rsp,%rax,4), %r9d
movl 0x120(%rsp,%rax,4), %ecx
movl %ecx, 0x28(%rsp)
xorl %r11d, %r11d
cmpl 0x28(%rsp), %r11d
je 0x6797
movl %r11d, %ebx
imull %r9d, %ebx
xorl %r14d, %r14d
cmpq %r9, %r14
je 0x678f
movq 0x1a0(%rsp,%rax,8), %rcx
leal (%rbx,%r14), %edx
imull %r13d, %edx
leaq (%rdx,%rcx,8), %r10
leaq 0x513b(%rip), %rcx      # 0xb850
movl (%rcx,%rax,4), %ecx
imull %r11d, %ecx
leaq 0x514d(%rip), %rdx      # 0xb870
addl (%rdx,%rax,4), %ecx
movl (%r8,%rax,4), %edx
imull %r14d, %edx
leaq 0x50fb(%rip), %rsi      # 0xb830
addl (%rsi,%rax,4), %edx
imull %ebp, %ecx
addl %ecx, %edx
imull %r13d, %edx
movl %r13d, %esi
subl $0x1, %esi
jb 0x6787
movq %r10, %rcx
shrq $0x3, %rcx
movl %r10d, %edi
notb %dil
movzbl (%r12,%rcx), %ecx
movzbl %dil, %edi
andl $0x7, %edi
btl %edi, %ecx
jae 0x677f
movl %edx, %ecx
notb %cl
andb $0x7, %cl
movb $0x1, %dil
shlb %cl, %dil
movq %rdx, %rcx
shrq $0x3, %rcx
orb %dil, (%r15,%rcx)
incq %rdx
incq %r10
jmp 0x6744
incq %r14
jmp 0x66f1
incl %r11d
jmp 0x66dc
incq %rax
jmp 0x66bc
movq %r12, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq 0x30(%rsp), %rbp
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x8f95
testl %eax, %eax
jne 0x6563
movl %ebx, %edx
movl %r14d, %ecx
movq %r15, %rdi
movq %r12, %rsi
movl %ebp, %r8d
callq 0x91fe
movq (%rsp), %r13
movq 0x20(%rsp), %rbp
xorl %eax, %eax
movl %eax, 0x198(%r13)
leaq 0xd0(%rsp), %rdi
callq 0x8f7c
movl 0x198(%r13), %eax
testl %eax, %eax
je 0x680d
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x88(%r13), %r15
cmpl $0x0, 0x24(%r13)
je 0x688c
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4170
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x67fb
movq 0x88(%rsp), %rcx
movq (%rcx), %r12
movl (%r15), %eax
orl $0x4, %eax
cmpl $0x6, %eax
jne 0x68a3
movq 0x58(%rsp), %rax
movl (%rax), %ebx
movq 0x48(%rsp), %rax
movl (%rax), %ebp
movq %rcx, %r14
movl %ebx, %edi
movl %ebp, %esi
movq %r15, %rdx
callq 0x3673
movq %rax, %rdi
callq 0x10f0
movq %rax, (%r14)
testq %rax, %rax
je 0x68b4
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq 0x20(%rsp), %rcx
movl %ebx, %r8d
movl %ebp, %r9d
callq 0x3d31
jmp 0x68b7
movq %r15, %rdi
movq %rbp, %rsi
callq 0x3506
movl %eax, 0x198(%r13)
jmp 0x67fb
cmpl $0x8, 0x8c(%r13)
je 0x6844
pushq $0x38
jmp 0x5650
pushq $0x53
popq %rax
movl %eax, 0x198(%r13)
movq %r12, %rdi
callq 0x1030
movl 0x198(%r13), %eax
jmp 0x67fb
pushq $0x2a
jmp 0x6225
pushq $0x29
jmp 0x6225
pushq $0x2c
jmp 0x6225
pushq $0x2d
jmp 0x6225
pushq $0x2b
jmp 0x6225
pushq $0x49
jmp 0x6225
pushq $0x4a
jmp 0x6225
pushq $0x45
jmp 0x6225