// File: /workspace/github_c_makefile_star2_O1/tditlu[P]shadetabler/src/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*/
    unsigned char* data = *out;
    size_t outsize;

    /*TODO: check if this works according to the statement in the documentation: "The converter can convert
    from grayscale input color type, to 8-bit grayscale or grayscale 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 $0x278, %rsp            # imm = 0x278
movq %r9, %rbp
movq %r8, %r13
movq %rcx, %rbx
xorl %eax, %eax
movq %rax, (%rdi)
movq %rax, 0x60(%rsp)
movq %rax, 0x68(%rsp)
movq %rdi, 0x50(%rsp)
movq %rax, (%rdi)
movl %eax, (%rdx)
movl %eax, (%rsi)
movq %rsi, 0x48(%rsp)
movq %rsi, %rdi
movq %rdx, 0x38(%rsp)
movq %rdx, %rsi
movq %rcx, %rdx
movq %r8, %rcx
movq %r9, %r8
callq 0x7fa0
movq %rbx, %r8
movl %eax, 0x1f0(%rbx)
testl %eax, %eax
jne 0x9017
movq 0x48(%rsp), %rax
movl (%rax), %r15d
movq 0x38(%rsp), %rax
movl (%rax), %ebx
movq %rbx, %rax
imulq %r15, %rax
shrq $0x3d, %rax
jne 0x900c
movl 0xc8(%r8), %edi
movq %r8, (%rsp)
callq 0x58b3
movl %eax, %r14d
movq (%rsp), %rax
imull 0xcc(%rax), %r14d
movq (%rsp), %rax
movl 0x90(%rax), %edi
callq 0x58b3
movq (%rsp), %r8
imull 0x94(%r8), %eax
cmpl %eax, %r14d
cmoval %r14d, %eax
movl %r15d, %ecx
andl $0x7, %ecx
imulq %rax, %rcx
addq $0x7, %rcx
shrq $0x3, %rcx
shrl $0x3, %r15d
imulq %rax, %r15
leaq (%r15,%rcx), %rax
addq $0x5, %rax
mulq %rbx
jno 0x9089
movl $0x5c, 0x1f0(%r8)
movl 0x1f0(%r8), %eax
testl %eax, %eax
jne 0x9781
movl 0x2c(%r8), %ebx
testl %ebx, %ebx
je 0x905d
leaq 0x90(%r8), %r15
movq %r8, %r14
leaq 0xc8(%r8), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x672f
testl %eax, %eax
je 0x966e
testl %ebx, %ebx
movq %r14, %r8
jne 0x977a
leaq 0x90(%r8), %rdi
leaq 0xc8(%r8), %rsi
movq %r8, %rbx
callq 0x572f
movq %rbx, %r8
movl %eax, 0x1f0(%rbx)
testl %eax, %eax
jne 0x9781
jmp 0x977a
movq %rbp, %rdi
callq 0x1140
testq %rax, %rax
je 0x9736
movq %rax, 0x30(%rsp)
movq (%rsp), %rsi
leaq 0xb8(%rsi), %rax
movq %rax, 0x18(%rsp)
leaq 0xc8(%rsi), %rax
movq %rax, 0x10(%rsp)
leaq 0x21(%r13), %r14
leaq 0x1c0(%rsi), %rax
movq %rax, 0x58(%rsp)
leaq 0x1d8(%rsi), %rax
movq %rax, 0x40(%rsp)
leaq (%r13,%rbp), %rax
movq %rax, 0x20(%rsp)
movl $0x1, %eax
movq %rax, 0x28(%rsp)
xorl %ebx, %ebx
xorl %r15d, %r15d
testb %r15b, %r15b
jne 0x9700
cmpl $0x0, 0x1f0(%rsi)
jne 0x9700
movq %r14, %rax
subq %r13, %rax
leaq 0xc(%rax), %rax
setb %cl
cmpq %rbp, %rax
seta %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x913f
movl $0x3, %r12d
cmpl $0x0, 0x28(%rsi)
jne 0x91c8
movl $0x1e, 0x1f0(%rsi)
jmp 0x91c8
movzbl (%r14), %ecx
shll $0x18, %ecx
js 0x91a0
movzbl 0x1(%r14), %edx
shll $0x10, %edx
movzbl 0x2(%r14), %edi
shll $0x8, %edi
movzbl 0x3(%r14), %r15d
orl %edx, %r15d
orl %edi, %r15d
orl %ecx, %r15d
addq %r15, %rax
cmpq %rbp, %rax
ja 0x91b8
leaq (%r14,%r15), %rax
addq $0xc, %rax
cmpq %r13, %rax
jb 0x91b8
leaq 0x8(%r14), %r12
movq %r14, %rdi
leaq 0xac1b(%rip), %rsi      # 0x13da4
callq 0x52e9
testb %al, %al
je 0x91d9
movq %rbx, %rdi
addq %r15, %rbx
jae 0x91fd
movq (%rsp), %rsi
jmp 0x9206
movl $0x3, %r12d
cmpl $0x0, 0x28(%rsi)
jne 0x91c8
movl $0x3f, 0x1f0(%rsi)
jmp 0x91c8
movl $0x40, 0x1f0(%rsi)
movl $0x3, %r12d
xorl %r15d, %r15d
testl %r12d, %r12d
je 0x90f0
jmp 0x9700
movq %r14, %rdi
leaq 0xabc6(%rip), %rsi      # 0x13da9
callq 0x52e9
testb %al, %al
je 0x92b1
movb $0x1, %r15b
xorl %eax, %eax
xorl %ecx, %ecx
movq (%rsp), %rsi
jmp 0x9226
cmpq %rbp, %rbx
movq (%rsp), %rsi
jbe 0x927f
movl $0x5f, 0x1f0(%rsi)
movl $0x3, %r12d
xorl %edx, %edx
movq %rdi, %rbx
xorl %r15d, %r15d
testb %dl, %dl
je 0x91cb
movb $0x1, %cl
xorl %eax, %eax
testb %al, %al
jne 0x925b
cmpl $0x0, 0x20(%rsi)
jne 0x925b
movq %r14, %rdi
movl %ecx, %r12d
callq 0x5354
movl %r12d, %ecx
movq (%rsp), %rsi
testl %eax, %eax
je 0x925b
movl $0x39, 0x1f0(%rsi)
movl $0x3, %r12d
jmp 0x91cb
xorl %r12d, %r12d
testb %cl, %cl
je 0x91cb
movq %r14, %rdi
movq 0x20(%rsp), %rsi
callq 0x547e
movq (%rsp), %rsi
movq %rax, %r14
jmp 0x91cb
movq %r12, %rcx
xorl %r12d, %r12d
movb $0x1, %dl
movl $0x3, %eax
movq %rax, 0x28(%rsp)
testq %r15, %r15
je 0x921b
addq 0x30(%rsp), %rdi
movq %rcx, %rsi
movq %r15, %rdx
callq 0x1130
movb $0x1, %dl
movq (%rsp), %rsi
jmp 0x921b
movq %r14, %rdi
leaq 0x98d2(%rip), %rsi      # 0x12b8d
callq 0x52e9
testb %al, %al
je 0x9300
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x85a5
movq (%rsp), %rsi
movl %eax, 0x1f0(%rsi)
movl $0x3, %r12d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x91cb
movb $0x1, %cl
movl $0x2, %eax
movq %rax, 0x28(%rsp)
jmp 0x9224
movq %r14, %rdi
leaq 0x9888(%rip), %rsi      # 0x12b92
callq 0x52e9
testb %al, %al
je 0x9325
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x8679
jmp 0x9348
movq %r14, %rdi
leaq 0x9868(%rip), %rsi      # 0x12b97
callq 0x52e9
testb %al, %al
je 0x9368
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x873a
movq (%rsp), %rsi
movl %eax, 0x1f0(%rsi)
movl $0x3, %r12d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x91cb
jmp 0x9222
movq %r14, %rdi
leaq 0x982a(%rip), %rsi      # 0x12b9c
callq 0x52e9
testb %al, %al
je 0x9399
movb $0x1, %cl
movq (%rsp), %rsi
cmpl $0x0, 0x30(%rsi)
je 0x93ea
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x87e6
jmp 0x93c8
movq %r14, %rdi
leaq 0x97fe(%rip), %rsi      # 0x12ba1
callq 0x52e9
testb %al, %al
je 0x93f4
movb $0x1, %cl
movq (%rsp), %rsi
cmpl $0x0, 0x30(%rsi)
je 0x93ea
movq 0x18(%rsp), %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x88fa
movq (%rsp), %rsi
movl %eax, 0x1f0(%rsi)
movl $0x3, %r12d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x91cb
xorl %eax, %eax
jmp 0x9473
xorl %eax, %eax
xorl %r15d, %r15d
jmp 0x9226
movq %rbx, 0x8(%rsp)
movq %r14, %rdi
leaq 0x97a3(%rip), %rsi      # 0x12ba6
callq 0x52e9
testb %al, %al
je 0x9444
movq (%rsp), %rsi
cmpl $0x0, 0x30(%rsi)
je 0x9469
movq 0x18(%rsp), %rdi
movq %r12, %rdx
movq %r15, %rcx
movq %rsi, %rbx
callq 0x8a26
movl %eax, 0x1f0(%rbx)
movl $0x3, %r12d
xorl %r15d, %r15d
testl %eax, %eax
jne 0x94b4
xorl %eax, %eax
movq (%rsp), %rsi
jmp 0x946e
movq %r14, %rdi
leaq 0x975d(%rip), %rsi      # 0x12bab
callq 0x52e9
testb %al, %al
je 0x947a
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x8ca9
jmp 0x949d
xorl %eax, %eax
xorl %r15d, %r15d
movq 0x8(%rsp), %rbx
movb $0x1, %cl
jmp 0x9226
movq %r14, %rdi
leaq 0x972c(%rip), %rsi      # 0x12bb0
callq 0x52e9
testb %al, %al
je 0x94d4
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x8d03
movq (%rsp), %rcx
movl %eax, 0x1f0(%rcx)
movl $0x3, %r12d
xorl %r15d, %r15d
testl %eax, %eax
je 0x94c2
movq (%rsp), %rsi
movq 0x8(%rsp), %rbx
jmp 0x91cb
movb $0x1, %cl
xorl %eax, %eax
movq (%rsp), %rsi
movq 0x8(%rsp), %rbx
jmp 0x9226
movq %r14, %rdi
leaq 0x96d7(%rip), %rsi      # 0x12bb5
callq 0x52e9
testb %al, %al
je 0x951e
cmpl $0x4, %r15d
jne 0x9546
movq (%rsp), %rcx
movl $0x1, 0x16c(%rcx)
movl 0x8(%r14), %eax
bswapl %eax
movl %eax, 0x170(%rcx)
movq (%rsp), %rsi
movl $0x0, 0x1f0(%rsi)
movb $0x1, %cl
xorl %eax, %eax
xorl %r15d, %r15d
jmp 0x94ca
movq %r14, %rdi
leaq 0x9692(%rip), %rsi      # 0x12bba
callq 0x52e9
testb %al, %al
je 0x9562
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x8d3a
jmp 0x949d
movq (%rsp), %rsi
movl $0x60, 0x1f0(%rsi)
movl $0x3, %r12d
xorl %r15d, %r15d
jmp 0x94b8
movq %r14, %rdi
leaq 0x9653(%rip), %rsi      # 0x12bbf
callq 0x52e9
testb %al, %al
je 0x9599
cmpl $0x1, %r15d
jne 0x95ce
movq (%rsp), %rcx
movl $0x1, 0x198(%rcx)
movzbl (%r12), %eax
movl %eax, 0x19c(%rcx)
jmp 0x9507
movq %r14, %rdi
leaq 0x9621(%rip), %rsi      # 0x12bc4
callq 0x52e9
testb %al, %al
je 0x95e1
movq 0x18(%rsp), %rdi
movq (%rsp), %rbx
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x8da9
movl %eax, 0x1f0(%rbx)
jmp 0x94a7
movq (%rsp), %rsi
movl $0x62, 0x1f0(%rsi)
jmp 0x9554
movq (%rsp), %rax
cmpl $0x0, 0x24(%rax)
jne 0x9605
testb $0x20, 0x4(%r14)
jne 0x9605
movq (%rsp), %rsi
movl $0x45, 0x1f0(%rsi)
jmp 0x9554
movq (%rsp), %rax
cmpl $0x0, 0x34(%rax)
je 0x9659
movq 0x28(%rsp), %rax
decl %eax
movq 0x58(%rsp), %rcx
leaq (%rcx,%rax,8), %rdi
movq 0x40(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movq %r14, %rdx
callq 0x55cf
movq (%rsp), %rsi
movl %eax, 0x1f0(%rsi)
movl $0x3, %r12d
xorl %r15d, %r15d
movb $0x1, %cl
testl %eax, %eax
movq 0x8(%rsp), %rbx
movb $0x1, %al
jne 0x91cb
jmp 0x9226
xorl %r15d, %r15d
movb $0x1, %cl
movq (%rsp), %rsi
movq 0x8(%rsp), %rbx
movb $0x1, %al
jmp 0x9226
movq 0x50(%rsp), %rax
movq (%rax), %rdx
movl (%r15), %edi
movl %edi, %eax
orl $0x4, %eax
cmpl $0x6, %eax
movq %r14, %rcx
jne 0x974a
movq %rdx, 0x10(%rsp)
movq 0x48(%rsp), %rax
movl (%rax), %r13d
movq 0x38(%rsp), %rax
movl (%rax), %ebp
movl 0x94(%rcx), %ebx
callq 0x58b3
imull %eax, %ebx
movq %rbp, %rdi
imulq %r13, %rdi
movq %rdi, %rax
shrq $0x3, %rax
imulq %rbx, %rax
andl $0x7, %edi
imulq %rbx, %rdi
addq $0x7, %rdi
shrq $0x3, %rdi
addq %rax, %rdi
callq 0x1140
movq 0x50(%rsp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x975e
movq %rax, %rdi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
movl %r13d, %r8d
movl %ebp, %r9d
callq 0x616e
jmp 0x9768
movq 0x10(%rsp), %rax
movl (%rax), %edi
cmpl $0x3, %edi
jne 0x9720
cmpq $0x0, 0xd0(%rsi)
jne 0x9720
movl $0x6a, 0x1f0(%rsi)
cmpl $0x0, 0x1f0(%rsi)
movq 0x30(%rsp), %r15
je 0x9793
xorl %r14d, %r14d
jmp 0x997c
movq (%rsp), %r8
movl $0x53, 0x1f0(%r8)
jmp 0x9017
movl $0x38, %eax
cmpl $0x8, 0x94(%rcx)
je 0x968a
jmp 0x9781
movl $0x53, %eax
movq 0x10(%rsp), %rbx
movl %eax, 0x1f0(%r14)
movq %rbx, %rdi
callq 0x1030
movq %r14, %r8
movl 0x1f0(%r8), %eax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %r12
movl 0xc0(%rsi), %ebx
movl 0xcc(%rsi), %ebp
callq 0x58b3
imull %ebp, %eax
movq 0x48(%rsp), %rcx
movl (%rcx), %ecx
movl %eax, %edx
testl %ebx, %ebx
je 0x992d
leal 0x7(%rcx), %r8d
movl %r8d, %r9d
shrl $0x3, %r9d
movq 0x38(%rsp), %rsi
movl (%rsi), %esi
leal 0x7(%rsi), %edi
shrl $0x3, %edi
shrl $0x6, %r8d
imulq %rdx, %r8
andl $0x7, %r9d
imull %eax, %r9d
addl $0x7, %r9d
shrl $0x3, %r9d
leaq (%r8,%r9), %rbx
incq %rbx
cmpl $0x5, %ecx
movq %r12, %r8
jb 0x9826
leal 0x3(%rcx), %r9d
movl %r9d, %r10d
shrl $0x3, %r10d
shrl $0x6, %r9d
imulq %rdx, %r9
andl $0x7, %r10d
imull %eax, %r10d
addl $0x7, %r10d
shrl $0x3, %r10d
addq %r9, %r10
addq %r10, %rbx
incq %rbx
imulq %rdi, %rbx
leal 0x3(%rcx), %r10d
movl %r10d, %r11d
shrl $0x2, %r11d
leal 0x3(%rsi), %r9d
movl %r9d, %edi
shrl $0x3, %edi
shrl $0x5, %r10d
imulq %rdx, %r10
andl $0x7, %r11d
imull %eax, %r11d
addl $0x7, %r11d
shrl $0x3, %r11d
addq %r11, %r10
incq %r10
imulq %r10, %rdi
addq %rbx, %rdi
cmpl $0x3, %ecx
jb 0x989d
leal 0x1(%rcx), %r11d
movl %r11d, %r10d
shrl $0x2, %r10d
shrl $0x2, %r9d
shrl $0x5, %r11d
imulq %rdx, %r11
andl $0x7, %r10d
imull %eax, %r10d
addl $0x7, %r10d
shrl $0x3, %r10d
addq %r11, %r10
incq %r10
imulq %r10, %r9
addq %r9, %rdi
leal 0x1(%rcx), %r10d
movl %r10d, %r11d
shrl %r11d
leal 0x1(%rsi), %r9d
movl %r9d, %ebx
shrl $0x2, %ebx
shrl $0x4, %r10d
imulq %rdx, %r10
andl $0x7, %r11d
imull %eax, %r11d
addl $0x7, %r11d
shrl $0x3, %r11d
addq %r11, %r10
incq %r10
imulq %r10, %rbx
addq %rdi, %rbx
cmpl $0x2, %ecx
jb 0x9906
movl %ecx, %edi
shrl %edi
shrl %r9d
movl %ecx, %r10d
shrl $0x4, %r10d
imulq %rdx, %r10
andl $0x7, %edi
imull %eax, %edi
addl $0x7, %edi
shrl $0x3, %edi
addq %r10, %rdi
incq %rdi
imulq %rdi, %r9
addq %r9, %rbx
shrl %esi
movl %ecx, %edi
shrl $0x3, %edi
imulq %rdx, %rdi
andl $0x7, %ecx
imull %eax, %ecx
addl $0x7, %ecx
shrl $0x3, %ecx
leaq (%rdi,%rcx), %r14
incq %r14
imulq %rsi, %r14
addq %rbx, %r14
jmp 0x9957
movq 0x38(%rsp), %rsi
movl (%rsi), %esi
movl %ecx, %edi
shrl $0x3, %edi
imulq %rdi, %rdx
andl $0x7, %ecx
imull %eax, %ecx
addl $0x7, %ecx
shrl $0x3, %ecx
leaq (%rdx,%rcx), %r14
incq %r14
imulq %rsi, %r14
movq %r12, %r8
leaq 0x60(%rsp), %rdi
leaq 0x68(%rsp), %rsi
movq %r14, %rdx
movq %r15, %rcx
movq (%rsp), %rbx
movq %rbx, %r9
callq 0xd574
movq %rbx, %rsi
movl %eax, 0x1f0(%rbx)
cmpl $0x0, 0x1f0(%rsi)
jne 0x9996
cmpq %r14, 0x68(%rsp)
je 0x9996
movl $0x5b, 0x1f0(%rsi)
movq %r15, %rdi
callq 0x1030
movq (%rsp), %rcx
cmpl $0x0, 0x1f0(%rcx)
je 0x99b0
xorl %r14d, %r14d
jmp 0x9a1b
movq 0x48(%rsp), %rax
movl (%rax), %eax
movq 0x38(%rsp), %rdx
movl (%rdx), %r14d
imulq %rax, %r14
movl 0xc8(%rcx), %edi
movl 0xcc(%rcx), %ebx
movq %rcx, %r15
callq 0x58b3
imull %ebx, %eax
movq %r14, %rcx
shrq $0x3, %rcx
imulq %rax, %rcx
andl $0x7, %r14d
imulq %rax, %r14
addq $0x7, %r14
shrq $0x3, %r14
addq %rcx, %r14
movq %r14, %rdi
callq 0x1140
movq 0x50(%rsp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
jne 0x9a18
movl $0x53, 0x1f0(%r15)
movq %r15, %rcx
cmpl $0x0, 0x1f0(%rcx)
jne 0x9e8f
testq %r14, %r14
movq 0x50(%rsp), %rbx
je 0x9a43
movq (%rbx), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x10e0
movq (%rsp), %rcx
movq (%rbx), %r13
movq 0x60(%rsp), %r14
movq 0x48(%rsp), %rax
movl (%rax), %r12d
movq 0x38(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x20(%rsp)
movl 0xc8(%rcx), %edi
movl 0xcc(%rcx), %ebx
movq %rcx, %r15
callq 0x58b3
movl %eax, %ebp
imull %ebx, %ebp
testl %ebp, %ebp
je 0x9b06
cmpl $0x0, 0xc0(%r15)
je 0x9b10
leaq 0xd0(%rsp), %rbx
leaq 0x70(%rsp), %rsi
leaq 0x1b0(%rsp), %r15
movq %r12, %r9
leaq 0x170(%rsp), %r12
leaq 0x130(%rsp), %r8
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
movq %r9, 0x18(%rsp)
pushq %rbp
pushq 0x28(%rsp)
callq 0xdfee
addq $0x10, %rsp
movq (%r12), %r12
addq %r14, %r12
movq (%r15), %rsi
addq %r14, %rsi
movl (%rbx), %r15d
leaq 0x70(%rsp), %rax
movl (%rax), %ebx
movq %r12, %rdi
movl %r15d, %edx
movl %ebx, %ecx
movl %ebp, %r8d
callq 0xd643
movl %eax, %ecx
testl %eax, %eax
je 0x9b51
movl %ecx, %ebx
jmp 0x9e84
movl $0x1f, %ebx
jmp 0x9e88
cmpl $0x7, %ebp
ja 0x9b2c
movl %ebp, %ebx
imull %r12d, %ebx
leal 0x7(%rbx), %r15d
andl $-0x8, %r15d
cmpl %r15d, %ebx
jne 0x9cec
movq %r13, %rdi
movq %r14, %rsi
movl %r12d, %edx
movq 0x20(%rsp), %rcx
movl %ebp, %r8d
callq 0xd643
testl %eax, %eax
je 0x9e82
movl %eax, %ebx
jmp 0x9e84
movl %ebx, 0x30(%rsp)
movq %r15, 0x10(%rsp)
xorl %r15d, %r15d
movl %ecx, %ebx
cmpl $0x7, %ebp
ja 0x9b8c
movq 0x130(%rsp,%r15,2), %rdi
addq %r14, %rdi
movq 0x10(%rsp), %rdx
imull %ebp, %edx
movl %edx, %ecx
addl $0x7, %ecx
andl $-0x8, %ecx
movq %r12, %rsi
movl 0x30(%rsp), %r8d
callq 0xdf58
cmpq $0x18, %r15
je 0x9bd9
movq 0x178(%rsp,%r15,2), %r12
addq %r14, %r12
movq 0x1b8(%rsp,%r15,2), %rsi
addq %r14, %rsi
movl 0xd4(%rsp,%r15), %edx
movl 0x74(%rsp,%r15), %ecx
movq %r12, %rdi
movq %rdx, 0x10(%rsp)
movl %ecx, 0x30(%rsp)
movl %ebp, %r8d
callq 0xd643
addq $0x4, %r15
testl %eax, %eax
cmovnel %eax, %ebx
je 0x9b5f
jmp 0x9e84
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x230(%rsp), %rdx
leaq 0x1f0(%rsp), %rcx
leaq 0xf0(%rsp), %r8
movq 0x18(%rsp), %rbx
movl %ebx, %r9d
pushq %rbp
pushq 0x28(%rsp)
callq 0xdfee
addq $0x10, %rsp
cmpl $0x7, %ebp
jbe 0x9d18
shrl $0x3, %ebp
xorl %eax, %eax
movl 0x90(%rsp,%rax,4), %ecx
movq %rcx, 0x10(%rsp)
testq %rcx, %rcx
je 0x9cda
movl 0xb0(%rsp,%rax,4), %r9d
xorl %r10d, %r10d
xorl %r11d, %r11d
testq %r9, %r9
je 0x9cc9
leaq 0x8d3c(%rip), %rcx      # 0x12990
movl (%rcx,%rax,4), %ecx
leaq 0x8d12(%rip), %rdx      # 0x12970
movl (%rdx,%rax,4), %ebx
leaq 0x8ce8(%rip), %rdx      # 0x12950
movl (%rdx,%rax,4), %edx
leaq 0x8cbe(%rip), %rsi      # 0x12930
movl (%rsi,%rax,4), %r15d
imulq %r11, %rbx
addq %rcx, %rbx
imulq 0x18(%rsp), %rbx
addq %rdx, %rbx
imulq %rbp, %rbx
addq %r13, %rbx
imulq %rbp, %r15
movq 0xf0(%rsp,%rax,8), %r12
addq %r14, %r12
movl %r10d, %ecx
xorl %edx, %edx
movl %ecx, %esi
imulq %rbp, %rsi
addq %r12, %rsi
xorl %edi, %edi
movb (%rsi,%rdi), %r8b
movb %r8b, (%rbx,%rdi)
incq %rdi
cmpq %rdi, %rbp
jne 0x9cac
incq %rdx
addq %r15, %rbx
incl %ecx
cmpq %r9, %rdx
jne 0x9ca1
incq %r11
addl %r9d, %r10d
cmpq 0x10(%rsp), %r11
jne 0x9c48
incq %rax
cmpq $0x7, %rax
jne 0x9c25
jmp 0x9e82
movq %r14, %rdi
movq %r14, %rsi
movl %r12d, %edx
movq 0x20(%rsp), %r12
movl %r12d, %ecx
movl %ebp, %r8d
callq 0xd643
testl %eax, %eax
je 0x9e6f
movq (%rsp), %r15
movl %eax, %ebx
jmp 0x9e88
imull %ebp, %ebx
movq %rbx, 0x18(%rsp)
movl %ebp, %eax
movq %rax, 0x20(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movl 0x90(%rsp,%rax,4), %eax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x9e5b
movq 0x40(%rsp), %rax
movl 0xb0(%rsp,%rax,4), %eax
movq %rax, 0x10(%rsp)
movq $0x0, 0x28(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x9e43
movq 0x40(%rsp), %rcx
movq 0xf0(%rsp,%rcx,8), %rax
shlq $0x3, %rax
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rsi
movl %esi, %r15d
imull 0x10(%rsp), %r15d
leaq 0x8bfc(%rip), %rax      # 0x12990
movl (%rax,%rcx,4), %eax
leaq 0x8bd2(%rip), %rdx      # 0x12970
movl (%rdx,%rcx,4), %edi
imulq %rsi, %rdi
addq %rax, %rdi
imulq 0x18(%rsp), %rdi
leaq 0x8b9b(%rip), %rax      # 0x12950
movl (%rax,%rcx,4), %r8d
leaq 0x8b70(%rip), %rax      # 0x12930
movl (%rax,%rcx,4), %r9d
xorl %ebx, %ebx
movq %rbx, %r10
imulq %r9, %r10
addq %r8, %r10
imulq 0x20(%rsp), %r10
addq %rdi, %r10
leal (%r15,%rbx), %r11d
imull %ebp, %r11d
addq 0x30(%rsp), %r11
movl %ebp, %esi
movl %r11d, %eax
notb %al
movl %r10d, %ecx
notb %cl
movq %r11, %rdx
shrq $0x3, %rdx
movzbl (%r14,%rdx), %edx
movzbl %al, %r12d
andl $0x7, %r12d
andb $0x7, %cl
movb $0x1, %al
shlb %cl, %al
btl %r12d, %edx
jae 0x9e21
movq %r10, %rcx
shrq $0x3, %rcx
orb %al, (%r13,%rcx)
jmp 0x9e2f
notb %al
movq %r10, %rcx
shrq $0x3, %rcx
andb %al, (%r13,%rcx)
incq %r10
incq %r11
decl %esi
jne 0x9de8
incq %rbx
cmpq 0x10(%rsp), %rbx
jne 0x9dc6
movq 0x28(%rsp), %rcx
incq %rcx
movq %rcx, 0x28(%rsp)
cmpq 0x58(%rsp), %rcx
jne 0x9d5d
movq 0x40(%rsp), %rax
incq %rax
cmpq $0x7, %rax
jne 0x9d29
jmp 0x9e82
movl %ebx, %edx
movl %r15d, %ecx
movq %r13, %rdi
movq %r14, %rsi
movl %r12d, %r8d
callq 0xdf58
xorl %ebx, %ebx
movq (%rsp), %r15
movl %ebx, 0x1f0(%r15)
movq 0x60(%rsp), %rdi
callq 0x1030
movq (%rsp), %r8
jmp 0x9017