// File: /workspace/github_cpp_makefile_star2_O1/Lut99[P]RayTracer/src/lib/LodePNG.cpp
// Function: lodepng_decode(unsigned char**, unsigned int*, unsigned int*, LodePNGState*, unsigned char const*, unsigned long)
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 $0x288, %rsp            # imm = 0x288
movq %r9, %r12
movq %r8, %r15
movq %rcx, %rbp
movq %rdx, %r14
xorl %ebx, %ebx
movq %rbx, (%rdi)
movq %rbx, 0x40(%rsp)
movq %rbx, 0x58(%rsp)
movq %rdi, 0x50(%rsp)
movq %rbx, (%rdi)
movl %ebx, (%rdx)
movl %ebx, (%rsi)
movq %rsi, 0x38(%rsp)
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movq %r8, %rcx
movq %r9, %r8
callq 0x6a9f0
movl %eax, 0x1f0(%rbp)
testl %eax, %eax
movq %r14, 0x48(%rsp)
jne 0x6c7ff
movq %r15, (%rsp)
movq 0x38(%rsp), %rax
movl (%rax), %eax
movl (%r14), %ecx
movl 0xc8(%rbp), %esi
movl 0xcc(%rbp), %edx
cmpq $0x6, %rsi
ja 0x6bafb
leaq 0x1e384(%rip), %rdi     # 0x89e7c
movl (%rdi,%rsi,4), %ebx
imull %edx, %ebx
movl 0x90(%rbp), %r9d
movl 0x94(%rbp), %r8d
xorl %edi, %edi
cmpq $0x6, %r9
ja 0x6bb1f
leaq 0x1e361(%rip), %rdi     # 0x89e7c
movl (%rdi,%r9,4), %edi
imull %r8d, %edi
cmpl %edi, %ebx
jbe 0x6bb41
xorl %edi, %edi
cmpl $0x6, %esi
movq (%rsp), %r9
ja 0x6bb3c
leaq 0x1e343(%rip), %rdi     # 0x89e7c
movl (%rdi,%rsi,4), %edi
imull %edx, %edi
jmp 0x6bb5c
xorl %edi, %edi
cmpl $0x6, %r9d
ja 0x6bb54
leaq 0x1e32c(%rip), %rdx     # 0x89e7c
movl (%rdx,%r9,4), %edi
imull %r8d, %edi
movq (%rsp), %r9
movq %rcx, %rdx
imulq %rax, %rdx
shrq $0x3d, %rdx
jne 0x6bb8f
movl %edi, %edx
movl %eax, %esi
andl $0x7, %esi
imulq %rdx, %rsi
addq $0x7, %rsi
shrq $0x3, %rsi
shrl $0x3, %eax
imulq %rdx, %rax
addq %rsi, %rax
addq $0x5, %rax
mulq %rcx
jno 0x6bb9e
movl $0x5c, 0x1f0(%rbp)
jmp 0x6c7ff
leaq 0xb8(%rbp), %rax
movq %rax, 0x28(%rsp)
leaq 0xc8(%rbp), %rdx
leaq 0x21(%r9), %r15
leaq 0x1c0(%rbp), %rax
movq %rax, 0x70(%rsp)
leaq 0x1d8(%rbp), %rax
movq %rax, 0x68(%rsp)
leaq (%r9,%r12), %rax
movq %rax, 0x78(%rsp)
movl $0x1, %eax
movq %rax, 0x60(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x30(%rsp)
xorl %ebx, %ebx
xorl %r14d, %r14d
movq %rbp, 0x20(%rsp)
movq %rdx, 0x8(%rsp)
movq %r12, 0x10(%rsp)
testb %r14b, %r14b
jne 0x6c1af
cmpl $0x0, 0x1f0(%rbp)
jne 0x6c1af
movq %r15, %rax
subq %r9, %rax
leaq 0xc(%rax), %rax
setb %cl
cmpq %r12, %rax
seta %sil
orb %cl, %sil
cmpb $0x1, %sil
jne 0x6bc58
movl $0x3, %r13d
cmpl $0x0, 0x28(%rbp)
jne 0x6bce4
movl $0x1e, 0x1f0(%rbp)
jmp 0x6bce4
movzbl (%r15), %ecx
shll $0x18, %ecx
js 0x6bcce
movzbl 0x1(%r15), %edi
shll $0x10, %edi
movzbl 0x2(%r15), %esi
shll $0x8, %esi
movq %r12, %r8
movzbl 0x3(%r15), %r12d
orl %edi, %r12d
orl %esi, %r12d
orl %ecx, %r12d
addq %r12, %rax
cmpq %r8, %rax
ja 0x6bcec
leaq (%r15,%r12), %rax
addq $0xc, %rax
cmpq %r9, %rax
jb 0x6bcec
leaq 0x8(%r15), %r14
movq %r15, %rdi
leaq 0x1f427(%rip), %rsi     # 0x8b0cc
callq 0x67e10
testb %al, %al
je 0x6bd04
movq 0x18(%rsp), %rsi
movq %rsi, %rbp
movl $0x5f, %eax
addq %r12, %rbp
jae 0x6bd2d
movq 0x8(%rsp), %rdx
movq (%rsp), %r9
jmp 0x6bdf1
movl $0x3, %r13d
cmpl $0x0, 0x28(%rbp)
jne 0x6bce4
movl $0x3f, 0x1f0(%rbp)
xorl %r14d, %r14d
jmp 0x6be85
movl $0x40, 0x1f0(%rbp)
movl $0x3, %r13d
xorl %r14d, %r14d
jmp 0x6be80
movq %r15, %rdi
leaq 0x1f3c3(%rip), %rsi     # 0x8b0d1
callq 0x67e10
testb %al, %al
je 0x6bd80
movb $0x1, %r14b
xorl %r12d, %r12d
xorl %ecx, %ecx
movq 0x8(%rsp), %rdx
movq (%rsp), %r9
jmp 0x6be4a
movq 0x30(%rsp), %rax
cmpq %rbp, %rax
jae 0x6bd73
movq %r14, %r13
addq %rax, %rax
leaq (,%rbp,2), %r14
addq %rbp, %r14
shrq %r14
cmpq %rbp, %rax
cmovbq %rbp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3a720
testq %rax, %rax
je 0x6bdcf
xorl %ecx, %ecx
movq %r14, 0x30(%rsp)
movq %rax, %rbx
movq 0x18(%rsp), %rsi
jmp 0x6bdd9
xorl %ecx, %ecx
movq 0x8(%rsp), %rdx
movq (%rsp), %r9
jmp 0x6bde5
movq %r15, %rdi
leaq 0x1e11f(%rip), %rsi     # 0x89ea9
callq 0x67e10
testb %al, %al
je 0x6beba
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x6aff5
movl %eax, 0x1f0(%rbp)
movl $0x3, %r13d
xorl %r14d, %r14d
testl %eax, %eax
jne 0x6bf15
movb $0x1, %cl
movl $0x2, %eax
movq %rax, 0x60(%rsp)
jmp 0x6bf2a
movb $0x1, %cl
movq 0x18(%rsp), %rsi
movq %rsi, %rbp
movq 0x8(%rsp), %rdx
movq (%rsp), %r9
movq %r13, %r14
movl $0x53, %eax
testb %cl, %cl
je 0x6be0b
movq %rbp, %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rbp
movl %eax, 0x1f0(%rbp)
movl $0x3, %r13d
xorl %eax, %eax
jmp 0x6be3e
xorl %r13d, %r13d
movb $0x1, %al
movl $0x3, %ecx
movq %rcx, 0x60(%rsp)
testq %r12, %r12
je 0x6be34
addq %rbx, %rsi
xorl %ecx, %ecx
movb (%r14,%rcx), %dil
movb %dil, (%rsi,%rcx)
incq %rcx
cmpq %rcx, %r12
jne 0x6be24
movq %rbp, 0x18(%rsp)
movq 0x20(%rsp), %rbp
xorl %r14d, %r14d
testb %al, %al
je 0x6be80
movb $0x1, %cl
xorl %r12d, %r12d
testb %r12b, %r12b
jne 0x6be93
cmpl $0x0, 0x20(%rbp)
jne 0x6be93
movq %r15, %rdi
movl %ecx, %r12d
callq 0x67e7b
movl %r12d, %ecx
movq (%rsp), %r9
movq 0x8(%rsp), %rdx
testl %eax, %eax
je 0x6be93
movl $0x39, 0x1f0(%rbp)
movl $0x3, %r13d
movq 0x10(%rsp), %r12
testl %r13d, %r13d
je 0x6bc06
jmp 0x6c1af
xorl %r13d, %r13d
testb %cl, %cl
movq 0x10(%rsp), %r12
je 0x6be85
movq %r15, %rdi
movq 0x78(%rsp), %rsi
callq 0x67fa5
movq (%rsp), %r9
movq 0x8(%rsp), %rdx
movq %rax, %r15
jmp 0x6be85
movq %r15, %rdi
leaq 0x1dfea(%rip), %rsi     # 0x89eae
callq 0x67e10
testb %al, %al
je 0x6bedf
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x6b0c9
jmp 0x6bf02
movq %r15, %rdi
leaq 0x1dfca(%rip), %rsi     # 0x89eb3
callq 0x67e10
testb %al, %al
je 0x6bf32
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x6b18a
movl %eax, 0x1f0(%rbp)
movl $0x3, %r13d
xorl %r14d, %r14d
testl %eax, %eax
je 0x6bf28
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %r12
movq (%rsp), %r9
jmp 0x6be85
movb $0x1, %cl
xorl %r12d, %r12d
jmp 0x6bd1f
movq %r15, %rdi
leaq 0x1df7c(%rip), %rsi     # 0x89eb8
callq 0x67e10
testb %al, %al
je 0x6bf63
movb $0x1, %cl
cmpl $0x0, 0x30(%rbp)
je 0x6c083
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x6b236
jmp 0x6bfc3
movq %r15, %rdi
leaq 0x1df50(%rip), %rsi     # 0x89ebd
callq 0x67e10
testb %al, %al
je 0x6bf97
movb $0x1, %cl
cmpl $0x0, 0x30(%rbp)
je 0x6c083
movq 0x28(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x6b326
jmp 0x6bfc3
movq %r15, %rdi
leaq 0x1df21(%rip), %rsi     # 0x89ec2
callq 0x67e10
testb %al, %al
je 0x6bfed
cmpl $0x0, 0x30(%rbp)
je 0x6c018
movq 0x28(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x6b491
movl %eax, 0x1f0(%rbp)
movl $0x3, %r13d
xorl %r14d, %r14d
testl %eax, %eax
jne 0x6bf15
xorl %r12d, %r12d
movq 0x8(%rsp), %rdx
movq (%rsp), %r9
movb $0x1, %cl
jmp 0x6be4a
movq %r14, %r13
movq %r15, %rdi
leaq 0x1decd(%rip), %rsi     # 0x89ec7
callq 0x67e10
testb %al, %al
je 0x6c020
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x6b7a3
jmp 0x6bf02
xorl %r12d, %r12d
xorl %r14d, %r14d
jmp 0x6bfdd
movq %r15, %rdi
leaq 0x1dea2(%rip), %rsi     # 0x89ecc
callq 0x67e10
testb %al, %al
je 0x6c048
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x6b7fd
jmp 0x6bf02
movq %r15, %rdi
leaq 0x1de7f(%rip), %rsi     # 0x89ed1
callq 0x67e10
testb %al, %al
je 0x6c08e
cmpl $0x4, %r12d
jne 0x6c0b6
movl $0x1, 0x16c(%rbp)
movl 0x8(%r15), %eax
bswapl %eax
movl %eax, 0x170(%rbp)
movl $0x0, 0x1f0(%rbp)
movb $0x1, %cl
xorl %r12d, %r12d
xorl %r14d, %r14d
jmp 0x6bd1f
movq %r15, %rdi
leaq 0x1de3e(%rip), %rsi     # 0x89ed6
callq 0x67e10
testb %al, %al
je 0x6c0ce
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x6b834
jmp 0x6bf02
movl $0x60, 0x1f0(%rbp)
movl $0x3, %r13d
xorl %r14d, %r14d
jmp 0x6bf15
movq %r15, %rdi
leaq 0x1de03(%rip), %rsi     # 0x89edb
callq 0x67e10
testb %al, %al
je 0x6c101
cmpl $0x1, %r12d
jne 0x6c12c
movl $0x1, 0x198(%rbp)
movzbl (%r13), %eax
movl %eax, 0x19c(%rbp)
jmp 0x6c077
movq %r15, %rdi
leaq 0x1ddd5(%rip), %rsi     # 0x89ee0
callq 0x67e10
testb %al, %al
je 0x6c138
movq 0x28(%rsp), %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x6b8a3
jmp 0x6bf02
movl $0x62, 0x1f0(%rbp)
jmp 0x6c0c0
cmpl $0x0, 0x24(%rbp)
jne 0x6c154
testb $0x20, 0x4(%r15)
jne 0x6c154
movl $0x45, 0x1f0(%rbp)
jmp 0x6c0c0
movb $0x1, %r12b
cmpl $0x0, 0x34(%rbp)
je 0x6c1a5
movq 0x60(%rsp), %rax
decl %eax
movq 0x70(%rsp), %rcx
leaq (%rcx,%rax,8), %rdi
movq 0x68(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movq %r15, %rdx
callq 0x680f6
movl %eax, 0x1f0(%rbp)
movl $0x3, %r13d
xorl %r14d, %r14d
movb $0x1, %cl
testl %eax, %eax
movq 0x8(%rsp), %rdx
movq (%rsp), %r9
jne 0x6be80
jmp 0x6be4a
xorl %r14d, %r14d
movb $0x1, %cl
jmp 0x6bd1f
cmpl $0x3, (%rdx)
movq 0x48(%rsp), %r15
jne 0x6c1cd
cmpq $0x0, 0xd0(%rbp)
jne 0x6c1cd
movl $0x6a, 0x1f0(%rbp)
cmpl $0x0, 0xc0(%rbp)
movq 0x38(%rsp), %rax
movl (%rax), %r14d
je 0x6c2b7
movq %rbx, (%rsp)
leal 0x7(%r14), %edi
shrl $0x3, %edi
movl (%r15), %r15d
leal 0x7(%r15), %ebp
shrl $0x3, %ebp
movl %ebp, %esi
movq %rdx, %rbx
callq 0x71287
movq %rax, %r13
cmpl $0x5, %r14d
jb 0x6c21e
leal 0x3(%r14), %edi
shrl $0x3, %edi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x71287
addq %rax, %r13
leal 0x3(%r14), %edi
shrl $0x2, %edi
leal 0x3(%r15), %ebp
movl %ebp, %esi
shrl $0x3, %esi
movq %rbx, %rdx
callq 0x71287
movq %rax, %r12
addq %r13, %r12
cmpl $0x3, %r14d
jb 0x6c259
leal 0x1(%r14), %edi
shrl $0x2, %edi
shrl $0x2, %ebp
movl %ebp, %esi
movq %rbx, %rdx
callq 0x71287
addq %rax, %r12
leal 0x1(%r14), %edi
shrl %edi
leal 0x1(%r15), %ebp
movl %ebp, %esi
shrl $0x2, %esi
movq %rbx, %rdx
callq 0x71287
movq %rax, %r13
addq %r12, %r13
cmpl $0x2, %r14d
jb 0x6c290
movl %r14d, %edi
shrl %edi
shrl %ebp
movl %ebp, %esi
movq %rbx, %rdx
callq 0x71287
addq %rax, %r13
movq 0x20(%rsp), %rbp
shrl %r15d
movl %r14d, %edi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x71287
movq %rax, %r14
addq %r13, %r14
movq 0x48(%rsp), %r15
movq (%rsp), %rbx
jmp 0x6c2c5
movl (%r15), %esi
movl %r14d, %edi
callq 0x71287
movq %rax, %r14
cmpl $0x0, 0x1f0(%rbp)
jne 0x6c2f3
movq %r14, %rdi
callq 0x3a5a0
movq %rax, 0x40(%rsp)
testq %rax, %rax
jne 0x6c2ea
movl $0x53, 0x1f0(%rbp)
movq $0x0, 0x58(%rsp)
cmpl $0x0, 0x1f0(%rbp)
jne 0x6c349
movq 0x8(%rbp), %rax
leaq 0x40(%rsp), %rdi
leaq 0x58(%rsp), %rsi
movq %rbx, %rdx
testq %rax, %rax
je 0x6c31e
movq 0x18(%rsp), %rcx
movq %rbp, %r8
callq *%rax
jmp 0x6c32b
movq 0x18(%rsp), %rcx
movq %rbp, %r8
callq 0x67ad3
movl %eax, 0x1f0(%rbp)
cmpq %r14, 0x58(%rsp)
movl $0x5b, %ecx
cmovel %eax, %ecx
testl %eax, %eax
cmovnel %eax, %ecx
movl %ecx, 0x1f0(%rbp)
movq %rbx, %rdi
callq 0x3a530
cmpl $0x0, 0x1f0(%rbp)
je 0x6c364
xorl %r14d, %r14d
movq 0x50(%rsp), %rsi
jmp 0x6c3a1
movq 0x38(%rsp), %rax
movl (%rax), %edi
movl (%r15), %esi
movl 0xc8(%rbp), %edx
movl 0xcc(%rbp), %ecx
callq 0x684b0
movq %rax, %r14
movq %rax, %rdi
callq 0x3a5a0
movq 0x50(%rsp), %rsi
movq %rax, (%rsi)
testq %rax, %rax
jne 0x6c3a1
movl $0x53, 0x1f0(%rbp)
cmpl $0x0, 0x1f0(%rbp)
jne 0x6c7f5
testq %r14, %r14
je 0x6c3c4
xorl %eax, %eax
movq (%rsi), %rcx
movb $0x0, (%rcx,%rax)
incq %rax
cmpq %rax, %r14
jne 0x6c3b5
movl 0xc8(%rbp), %ecx
movl 0xcc(%rbp), %eax
xorl %r15d, %r15d
cmpq $0x6, %rcx
ja 0x6c3e4
leaq 0x1da9c(%rip), %rdx     # 0x89e7c
movl (%rdx,%rcx,4), %r15d
imull %eax, %r15d
testl %r15d, %r15d
je 0x6c529
movq %rbp, %rax
movq (%rsi), %rbp
movq 0x40(%rsp), %r13
movq 0x38(%rsp), %rcx
movl (%rcx), %r9d
movq 0x48(%rsp), %rcx
movl (%rcx), %r10d
cmpl $0x0, 0xc0(%rax)
je 0x6c533
leaq 0xe0(%rsp), %rbx
leaq 0x80(%rsp), %rsi
leaq 0x1c0(%rsp), %r14
leaq 0x180(%rsp), %r12
leaq 0x140(%rsp), %r8
movq %rbx, %rdi
movq %r14, %rdx
movq %r12, %rcx
movl %r9d, 0x18(%rsp)
pushq %r15
pushq %r10
movq %r10, 0x18(%rsp)
callq 0x71c66
addq $0x10, %rsp
movq (%r12), %r12
addq %r13, %r12
movq (%r14), %rsi
addq %r13, %rsi
movl (%rbx), %r14d
leaq 0x80(%rsp), %rax
movl (%rax), %ebx
movq %r12, %rdi
movl %r14d, %edx
movl %ebx, %ecx
movl %r15d, %r8d
callq 0x712c8
movl %eax, (%rsp)
testl %eax, %eax
jne 0x6c51c
movl %ebx, 0x10(%rsp)
xorl %ebx, %ebx
cmpl $0x7, %r15d
ja 0x6c4ca
movq 0x140(%rsp,%rbx,2), %rdi
addq %r13, %rdi
imull %r15d, %r14d
movl %r14d, %ecx
addl $0x7, %ecx
andl $-0x8, %ecx
movq %r12, %rsi
movq %r14, %rdx
movl 0x10(%rsp), %r8d
callq 0x71bd0
cmpq $0x18, %rbx
je 0x6c572
movq 0x188(%rsp,%rbx,2), %r12
addq %r13, %r12
movq 0x1c8(%rsp,%rbx,2), %rsi
addq %r13, %rsi
movl 0xe4(%rsp,%rbx), %r14d
movl 0x84(%rsp,%rbx), %ecx
movq %r12, %rdi
movl %r14d, %edx
movl %ecx, 0x10(%rsp)
movl %r15d, %r8d
callq 0x712c8
addq $0x4, %rbx
testl %eax, %eax
movl (%rsp), %ecx
cmovnel %eax, %ecx
movl %ecx, (%rsp)
je 0x6c49c
movq 0x20(%rsp), %rbp
movl (%rsp), %eax
jmp 0x6c7ef
movl $0x1f, %eax
jmp 0x6c7ef
cmpl $0x7, %r15d
ja 0x6c551
movl %r15d, %ebx
imull %r9d, %ebx
leal 0x7(%rbx), %r14d
andl $-0x8, %r14d
cmpl %r14d, %ebx
jne 0x6c68d
movq %rbp, %rdi
movq %r13, %rsi
movl %r9d, %edx
movl %r10d, %ecx
movl %r15d, %r8d
callq 0x712c8
testl %eax, %eax
jne 0x6c7ea
jmp 0x6c7e8
leaq 0xc0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x240(%rsp), %rdx
leaq 0x200(%rsp), %rcx
leaq 0x100(%rsp), %r8
movl 0x18(%rsp), %r9d
pushq %r15
pushq 0x10(%rsp)
callq 0x71c66
addq $0x10, %rsp
cmpl $0x7, %r15d
jbe 0x6c6c4
shrl $0x3, %r15d
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl 0xa0(%rsp,%rax,4), %eax
movl %eax, (%rsp)
testl %eax, %eax
je 0x6c676
movq 0x10(%rsp), %rax
movl 0xc0(%rsp,%rax,4), %r9d
xorl %r10d, %r10d
xorl %r11d, %r11d
testq %r9, %r9
je 0x6c666
movq 0x10(%rsp), %rax
leaq 0x1d677(%rip), %rcx     # 0x89c70
movl (%rcx,%rax,4), %ebx
imull %r11d, %ebx
leaq 0x1d689(%rip), %rcx     # 0x89c90
addl (%rcx,%rax,4), %ebx
leaq 0x1d61f(%rip), %rcx     # 0x89c30
movl (%rcx,%rax,4), %r14d
imull 0x18(%rsp), %ebx
leaq 0x1d62f(%rip), %rcx     # 0x89c50
addl (%rcx,%rax,4), %ebx
movq 0x100(%rsp,%rax,8), %r12
addq %r13, %r12
movl %r10d, %ecx
xorl %edx, %edx
movl %ebx, %esi
imulq %r15, %rsi
addq %rbp, %rsi
movl %ecx, %edi
imulq %r15, %rdi
addq %r12, %rdi
xorl %r8d, %r8d
movb (%rdi,%r8), %al
movb %al, (%rsi,%r8)
incq %r8
cmpq %r8, %r15
jne 0x6c649
incq %rdx
addl %r14d, %ebx
incl %ecx
cmpq %r9, %rdx
jne 0x6c634
incl %r11d
addl %r9d, %r10d
cmpl (%rsp), %r11d
jne 0x6c5e8
movq 0x10(%rsp), %rax
incq %rax
cmpq $0x7, %rax
jne 0x6c5be
jmp 0x6c7e8
movq %r13, %rdi
movq %r13, %rsi
movl %r9d, %edx
movl %r10d, %ecx
movl %r15d, %r8d
movq %r10, %r15
callq 0x712c8
testl %eax, %eax
jne 0x6c7ea
movl %ebx, %edx
movl %r14d, %ecx
movq %rbp, %rdi
movq %r13, %rsi
movl %r15d, %r8d
callq 0x71bd0
jmp 0x6c7e8
xorl %eax, %eax
movq %rax, 0x30(%rsp)
movl 0xa0(%rsp,%rax,4), %eax
movl %eax, 0x8(%rsp)
testl %eax, %eax
je 0x6c7d6
movq 0x30(%rsp), %rax
movl 0xc0(%rsp,%rax,4), %eax
movq %rax, (%rsp)
movl $0x0, 0x10(%rsp)
cmpq $0x0, (%rsp)
je 0x6c7c2
movq 0x30(%rsp), %rax
movq 0x100(%rsp,%rax,8), %r14
shlq $0x3, %r14
movl 0x10(%rsp), %esi
movl %esi, %r12d
imull (%rsp), %r12d
leaq 0x1d54b(%rip), %rcx     # 0x89c70
movl (%rcx,%rax,4), %edx
imull %esi, %edx
leaq 0x1d55e(%rip), %rcx     # 0x89c90
addl (%rcx,%rax,4), %edx
imull 0x18(%rsp), %edx
leaq 0x1d4ef(%rip), %rcx     # 0x89c30
movl (%rcx,%rax,4), %esi
leaq 0x1d505(%rip), %rcx     # 0x89c50
addl (%rcx,%rax,4), %edx
xorl %edi, %edi
movl %esi, %ebx
imull %edi, %ebx
addl %edx, %ebx
imull %r15d, %ebx
leal (%r12,%rdi), %r11d
imull %r15d, %r11d
addq %r14, %r11
movl %r15d, %r9d
movl %r11d, %eax
notb %al
movl %ebx, %ecx
notb %cl
movq %r11, %r8
shrq $0x3, %r8
movzbl (%r13,%r8), %r8d
movzbl %al, %r10d
andl $0x7, %r10d
andb $0x7, %cl
movb $0x1, %al
shlb %cl, %al
btl %r10d, %r8d
jae 0x6c7a1
movq %rbx, %rcx
shrq $0x3, %rcx
orb %al, (%rbp,%rcx)
jmp 0x6c7ae
notb %al
movq %rbx, %rcx
shrq $0x3, %rcx
andb %al, (%rbp,%rcx)
incq %rbx
incq %r11
decl %r9d
jne 0x6c769
incq %rdi
cmpq (%rsp), %rdi
jne 0x6c750
movl 0x10(%rsp), %eax
incl %eax
movl %eax, 0x10(%rsp)
cmpl 0x8(%rsp), %eax
jne 0x6c6f6
movq 0x30(%rsp), %rax
incq %rax
cmpq $0x7, %rax
jne 0x6c6c6
xorl %eax, %eax
movq 0x20(%rsp), %rbp
movl %eax, 0x1f0(%rbp)
movq 0x40(%rsp), %rdi
callq 0x3a530
movl 0x1f0(%rbp), %eax
testl %eax, %eax
jne 0x6c8f3
movl 0x2c(%rbp), %ebx
testl %ebx, %ebx
je 0x6c839
leaq 0x90(%rbp), %r15
leaq 0xc8(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x698da
testl %eax, %eax
je 0x6c85f
testl %ebx, %ebx
jne 0x6c8ed
leaq 0x90(%rbp), %rdi
leaq 0xc8(%rbp), %rsi
callq 0x682cc
movl %eax, 0x1f0(%rbp)
testl %eax, %eax
jne 0x6c8f3
jmp 0x6c8ed
movq 0x50(%rsp), %rax
movq (%rax), %r14
movl (%r15), %edx
movl %edx, %eax
orl $0x4, %eax
cmpl $0x6, %eax
jne 0x6c8c7
movq %rbp, %rax
movq 0x38(%rsp), %rcx
movl (%rcx), %ebp
movq 0x48(%rsp), %rcx
movl (%rcx), %r13d
movq %rax, %rbx
movl 0x94(%rax), %ecx
movl %ebp, %edi
movl %r13d, %esi
callq 0x684b0
movq %rax, %rdi
callq 0x3a5a0
movq 0x50(%rsp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x6c8d7
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movl %ebp, %r8d
movl %r13d, %r9d
callq 0x68c8b
jmp 0x6c8dc
movl $0x38, %eax
cmpl $0x8, 0x94(%rbp)
je 0x6c874
jmp 0x6c8f3
movl $0x53, %eax
movq %rbx, %rbp
movl %eax, 0x1f0(%rbx)
movq %r14, %rdi
callq 0x3a530
movl 0x1f0(%rbp), %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq