// File: /workspace/github_c_makefile_star2_O1/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 $0x298, %rsp            # imm = 0x298
movq %r9, %r13
movq %r8, %r15
movq %rcx, %rbp
movq %rdi, %r12
xorl %eax, %eax
movq %rax, (%rdi)
movq %rax, (%rdi)
movq %rsi, 0x40(%rsp)
movq %rsi, %rdi
movq %rdx, 0x30(%rsp)
movq %rdx, %rsi
movq %rcx, %rdx
movq %r8, %rcx
movq %r9, %r8
callq 0x67be
movl %eax, 0x198(%rbp)
testl %eax, %eax
jne 0x76b6
movq 0x30(%rsp), %rax
movl (%rax), %ecx
movl %ecx, %eax
movq 0x40(%rsp), %rdx
mull (%rdx)
seto %dl
testl %ecx, %ecx
je 0x6adb
testb %dl, %dl
jne 0x6ae2
cmpl $0x10000000, %eax       # imm = 0x10000000
jb 0x6af1
movl $0x5c, 0x198(%rbp)
jmp 0x76b6
movq %r12, 0x38(%rsp)
leaq 0x21(%r15), %r12
leaq 0xc0(%rbp), %rax
movq %rax, 0x48(%rsp)
leaq 0xb0(%rbp), %rax
movq %rax, 0x20(%rsp)
leaq 0x168(%rbp), %rax
movq %rax, 0x88(%rsp)
leaq 0x180(%rbp), %rax
movq %rax, 0x80(%rsp)
movl $0x1, %eax
movq %rax, 0x70(%rsp)
movq $0x0, 0x10(%rsp)
xorl %edi, %edi
movq $0x0, 0x18(%rsp)
movl $0x0, 0x28(%rsp)
xorl %ebx, %ebx
movq %rbp, 0x8(%rsp)
testb %bl, %bl
jne 0x7024
cmpl $0x0, 0x198(%rbp)
jne 0x7024
movq %r12, %rax
subq %r15, %rax
leaq 0xc(%rax), %rax
setb %cl
cmpq %r13, %rax
seta %dl
orb %cl, %dl
cmpb $0x1, %dl
jne 0x6b9b
movl $0x1e, 0x198(%rbp)
jmp 0x6c77
movzbl (%r12), %ecx
shll $0x18, %ecx
js 0x6c5c
movzbl 0x1(%r12), %edx
shll $0x10, %edx
movzbl 0x2(%r12), %esi
shll $0x8, %esi
movzbl 0x3(%r12), %ebp
orl %edx, %ebp
orl %esi, %ebp
orl %ecx, %ebp
addq %rbp, %rax
cmpq %r13, %rax
ja 0x6c68
leaq (%r12,%rbp), %rax
addq $0xc, %rax
cmpq %r15, %rax
jb 0x6c68
movq %rdi, (%rsp)
leaq 0x8(%r12), %r14
movq %r12, %rdi
leaq 0x8d68(%rip), %rsi      # 0xf95f
callq 0x414e
testb %al, %al
je 0x6c8b
movq (%rsp), %rdi
leaq (%rdi,%rbp), %r8
movq 0x18(%rsp), %rbx
cmpq %r8, %rbx
jae 0x6cb0
leaq (%rbx,%rbx), %rax
movq %rbx, 0x18(%rsp)
leaq (%r8,%r8,2), %rbx
shrq %rbx
cmpq %r8, %rax
movq %r8, 0x78(%rsp)
cmovbq %r8, %rbx
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x1120
testq %rax, %rax
je 0x6d07
xorl %edx, %edx
movq %rax, 0x10(%rsp)
movq (%rsp), %rdi
jmp 0x6d12
movl $0x3f, 0x198(%rbp)
jmp 0x6c77
movq 0x8(%rsp), %rbp
movl $0x40, 0x198(%rbp)
movl $0x3, %ecx
xorl %ebx, %ebx
testl %ecx, %ecx
je 0x6b5d
jmp 0x7024
movq %r12, %rdi
leaq 0x8ccf(%rip), %rsi      # 0xf964
callq 0x414e
testb %al, %al
je 0x6cb4
movb $0x1, %bl
xorl %esi, %esi
movq (%rsp), %r8
movq 0x8(%rsp), %rbp
jmp 0x6d70
xorl %edx, %edx
jmp 0x6d17
movq %r12, %rdi
leaq 0x8cab(%rip), %rsi      # 0xf969
callq 0x414e
testb %al, %al
je 0x6dd3
movq 0x48(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xb10c
movq 0x8(%rsp), %rbp
movl %eax, 0x198(%rbp)
movl $0x3, %ecx
xorl %ebx, %ebx
testl %eax, %eax
jne 0x6e31
movb $0x1, %sil
movl $0x2, %eax
movq %rax, 0x70(%rsp)
jmp 0x6e3d
movb $0x1, %dl
movq (%rsp), %rdi
movq 0x18(%rsp), %rbx
movq 0x78(%rsp), %r8
testb %dl, %dl
cmovneq %rdi, %r8
movq %rbx, 0x18(%rsp)
je 0x6d3a
movq 0x8(%rsp), %rbp
movl $0x53, 0x198(%rbp)
movl $0x3, %ecx
jmp 0x6d67
xorl %ecx, %ecx
movl $0x3, %eax
movq %rax, 0x70(%rsp)
testq %rbp, %rbp
je 0x6d62
addq 0x10(%rsp), %rdi
xorl %eax, %eax
movb (%r14,%rax), %sil
movb %sil, (%rdi,%rax)
incq %rax
cmpq %rax, %rbp
jne 0x6d52
movq 0x8(%rsp), %rbp
movb $0x1, %sil
xorl %ebx, %ebx
testb %dl, %dl
jne 0x6dcb
movl 0x20(%rbp), %eax
orl 0x28(%rsp), %eax
jne 0x6db8
movq %r12, %rdi
movq %r8, %r14
movq %r15, (%rsp)
movq %r13, %r15
movl %esi, %r13d
callq 0x41cb
movl %r13d, %esi
movq %r15, %r13
movq (%rsp), %r15
movq %r14, %r8
testl %eax, %eax
je 0x6db8
movl $0x39, 0x198(%rbp)
movl $0x3, %ecx
movl $0x0, 0x28(%rsp)
jmp 0x6dcb
xorl %ecx, %ecx
testb %sil, %sil
je 0x6dcb
movl (%r12), %eax
bswapl %eax
addl $0xc, %eax
addq %rax, %r12
movq %r8, %rdi
jmp 0x6c7e
movq %r12, %rdi
leaq 0x8b91(%rip), %rsi      # 0xf96e
callq 0x414e
testb %al, %al
je 0x6df8
movq 0x48(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xb1f1
jmp 0x6e1b
movq %r12, %rdi
leaq 0x8b71(%rip), %rsi      # 0xf973
callq 0x414e
testb %al, %al
je 0x6e46
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xb2b2
movq 0x8(%rsp), %rbp
movl %eax, 0x198(%rbp)
movl $0x3, %ecx
xorl %ebx, %ebx
testl %eax, %eax
je 0x6e3a
movq (%rsp), %rdi
jmp 0x6c7e
movb $0x1, %sil
movq (%rsp), %r8
jmp 0x6d70
movq %r12, %rdi
leaq 0x8b28(%rip), %rsi      # 0xf978
callq 0x414e
testb %al, %al
je 0x6e7f
movq 0x8(%rsp), %rax
cmpl $0x0, 0x28(%rax)
je 0x6eda
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %rax, %rbp
callq 0xb354
movl %eax, 0x198(%rbp)
jmp 0x6ebc
movq %r12, %rdi
leaq 0x8af4(%rip), %rsi      # 0xf97d
callq 0x414e
testb %al, %al
je 0x6eeb
movq 0x8(%rsp), %rax
cmpl $0x0, 0x28(%rax)
je 0x6eda
movq 0x20(%rsp), %rdi
movq %rax, %rbx
movq %rax, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0xb444
movl %eax, 0x198(%rbx)
movq %rbx, %rbp
movl $0x3, %ecx
xorl %ebx, %ebx
movq (%rsp), %rdi
movq %rdi, %r8
testl %eax, %eax
movb $0x1, %sil
jne 0x6c7e
jmp 0x6d70
xorl %ebx, %ebx
movq (%rsp), %r8
movq %rax, %rbp
movb $0x1, %sil
jmp 0x6d70
movq %r12, %rdi
leaq 0x8a8d(%rip), %rsi      # 0xf982
callq 0x414e
testb %al, %al
je 0x6f2a
movq 0x8(%rsp), %rax
cmpl $0x0, 0x28(%rax)
je 0x7014
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
movq %rbp, %rcx
movq %rsi, %rbp
callq 0xb5b2
jmp 0x6e77
movq %r12, %rdi
leaq 0x8a53(%rip), %rsi      # 0xf987
callq 0x414e
testb %al, %al
je 0x6f4f
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xb8ce
jmp 0x6f72
movq %r12, %rdi
leaq 0x8a33(%rip), %rsi      # 0xf98c
callq 0x414e
testb %al, %al
je 0x6f9a
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xb928
movq 0x8(%rsp), %rcx
movl %eax, 0x198(%rcx)
movl $0x3, %ecx
xorl %ebx, %ebx
testl %eax, %eax
je 0x6f92
movq 0x8(%rsp), %rbp
jmp 0x6e31
movb $0x1, %sil
jmp 0x6ca2
testb $0x20, 0x4(%r12)
jne 0x6fbd
movq 0x8(%rsp), %rbp
movl $0x45, 0x198(%rbp)
movl $0x3, %ecx
xorl %ebx, %ebx
jmp 0x6e31
movq 0x8(%rsp), %rax
cmpl $0x0, 0x2c(%rax)
je 0x700c
movq 0x70(%rsp), %rax
decl %eax
movq 0x88(%rsp), %rcx
leaq (%rcx,%rax,8), %rdi
movq 0x80(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movq %r12, %rdx
callq 0x4292
movq 0x8(%rsp), %rbp
movl %eax, 0x198(%rbp)
movl $0x3, %ecx
movl $0x1, 0x28(%rsp)
jmp 0x6ec1
movl $0x1, 0x28(%rsp)
xorl %ebx, %ebx
movq (%rsp), %r8
movq 0x8(%rsp), %rbp
jmp 0x6ee3
movq %rdi, (%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
cmpl $0x0, 0xb8(%rbp)
movq 0x40(%rsp), %rax
movl (%rax), %r14d
je 0x7153
leal 0x7(%r14), %edi
shrl $0x3, %edi
movq 0x30(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x18(%rsp)
leal 0x7(%rax), %ebx
shrl $0x3, %ebx
movl %ebx, %esi
movq 0x48(%rsp), %r15
movq %r15, %rdx
callq 0xb95f
movq %rax, %r12
addq %rbx, %r12
cmpl $0x5, %r14d
jb 0x7099
leal 0x3(%r14), %edi
shrl $0x3, %edi
movl %ebx, %esi
movq %r15, %rdx
callq 0xb95f
addq %rbx, %r12
addq %rax, %r12
leal 0x3(%r14), %edi
shrl $0x2, %edi
movq 0x18(%rsp), %rax
leal 0x3(%rax), %r13d
movl %r13d, %ebx
shrl $0x3, %ebx
movl %ebx, %esi
movq %r15, %rdx
callq 0xb95f
addq %rax, %rbx
addq %r12, %rbx
cmpl $0x3, %r14d
jb 0x70e1
leal 0x1(%r14), %edi
shrl $0x2, %edi
shrl $0x2, %r13d
movl %r13d, %esi
movq %r15, %rdx
callq 0xb95f
addq %rax, %r13
addq %r13, %rbx
leal 0x1(%r14), %edi
shrl %edi
movq 0x18(%rsp), %rax
leal 0x1(%rax), %r13d
movl %r13d, %r12d
shrl $0x2, %r12d
movl %r12d, %esi
movq %r15, %rdx
callq 0xb95f
addq %rax, %r12
addq %rbx, %r12
cmpl $0x2, %r14d
jb 0x7127
movl %r14d, %edi
shrl %edi
shrl %r13d
movl %r13d, %esi
movq %r15, %rdx
callq 0xb95f
addq %rax, %r13
addq %r13, %r12
movq 0x10(%rsp), %r13
movq %r15, %rbx
movq 0x18(%rsp), %r15
shrl %r15d
movl %r14d, %edi
movl %r15d, %esi
movq %rbx, %rdx
callq 0xb95f
movq %rax, %r14
addq %r15, %r14
addq %r12, %r14
movq %rbx, %r15
jmp 0x7177
movq 0x30(%rsp), %rax
movl (%rax), %ebx
movl %r14d, %edi
movl %ebx, %esi
movq 0x48(%rsp), %r15
movq %r15, %rdx
callq 0xb95f
movq %rax, %r14
addq %rbx, %r14
movq 0x10(%rsp), %r13
cmpl $0x0, 0x198(%rbp)
movq 0x38(%rsp), %r12
jne 0x71c8
movq 0x60(%rsp), %rax
cmpq %r14, %rax
jae 0x71c8
addq %rax, %rax
leaq (%r14,%r14,2), %rbx
shrq %rbx
cmpq %r14, %rax
cmovbq %r14, %rbx
movq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x1120
testq %rax, %rax
je 0x71be
movq %rbx, 0x60(%rsp)
movq %rax, 0x50(%rsp)
jmp 0x71c8
movl $0x53, 0x198(%rbp)
cmpl $0x0, 0x198(%rbp)
jne 0x721c
leaq 0x58(%rsp), %rsi
movq 0x8(%rbp), %rax
leaq 0x50(%rsp), %rdi
movq %r13, %rdx
testq %rax, %rax
je 0x71f2
movq (%rsp), %rcx
movq %rbp, %r8
callq *%rax
jmp 0x71fe
movq (%rsp), %rcx
movq %rbp, %r8
callq 0x3cc3
movl %eax, 0x198(%rbp)
cmpq %r14, 0x58(%rsp)
movl $0x5b, %ecx
cmovel %eax, %ecx
testl %eax, %eax
cmovnel %eax, %ecx
movl %ecx, 0x198(%rbp)
movq %r13, %rdi
callq 0x1030
cmpl $0x0, 0x198(%rbp)
je 0x7231
xorl %ebx, %ebx
jmp 0x7265
movq 0x40(%rsp), %rax
movl (%rax), %edi
movq 0x30(%rsp), %rax
movl (%rax), %esi
movq %r15, %rdx
callq 0x4648
movq %rax, %rbx
movq %rax, %rdi
callq 0x10f0
movq %rax, (%r12)
testq %rax, %rax
jne 0x7265
movl $0x53, 0x198(%rbp)
cmpl $0x0, 0x198(%rbp)
jne 0x769b
testq %rbx, %rbx
je 0x7289
xorl %eax, %eax
movq (%r12), %rcx
movb $0x0, (%rcx,%rax)
incq %rax
cmpq %rax, %rbx
jne 0x7279
movl 0xc0(%rbp), %ecx
movl 0xc4(%rbp), %eax
xorl %r15d, %r15d
cmpq $0x6, %rcx
ja 0x72a9
leaq 0x777f(%rip), %rdx      # 0xea24
movl (%rdx,%rcx,4), %r15d
imull %eax, %r15d
testl %r15d, %r15d
je 0x73f8
movq (%r12), %r13
movq 0x50(%rsp), %r12
movq 0x40(%rsp), %rax
movl (%rax), %r9d
movq 0x30(%rsp), %rax
movl (%rax), %eax
cmpl $0x0, 0xb8(%rbp)
je 0x7402
leaq 0xf0(%rsp), %r14
leaq 0x90(%rsp), %rsi
leaq 0x1d0(%rsp), %rbx
leaq 0x190(%rsp), %rbp
leaq 0x150(%rsp), %r8
movq %r14, %rdi
movq %rbx, %rdx
movq %rbp, %rcx
movl %r9d, (%rsp)
pushq %r15
pushq %rax
movq %rax, 0x38(%rsp)
callq 0xbded
addq $0x10, %rsp
movq (%rbp), %rbp
addq %r12, %rbp
movq (%rbx), %rsi
addq %r12, %rsi
movl (%r14), %ebx
leaq 0x90(%rsp), %rax
movl (%rax), %r14d
movq %rbp, %rdi
movl %ebx, %edx
movl %r14d, %ecx
movl %r15d, %r8d
callq 0xb9ac
movl %eax, 0x18(%rsp)
testl %eax, %eax
jne 0x73e5
movl %r14d, 0x10(%rsp)
xorl %r14d, %r14d
cmpl $0x7, %r15d
ja 0x738d
movq 0x150(%rsp,%r14,2), %rdi
addq %r12, %rdi
imull %r15d, %ebx
movl %ebx, %ecx
addl $0x7, %ecx
andl $-0x8, %ecx
movq %rbp, %rsi
movq %rbx, %rdx
movl 0x10(%rsp), %r8d
callq 0xbd57
cmpq $0x18, %r14
je 0x743d
movq 0x198(%rsp,%r14,2), %rbp
addq %r12, %rbp
movq 0x1d8(%rsp,%r14,2), %rsi
addq %r12, %rsi
movl 0xf4(%rsp,%r14), %ebx
movl 0x94(%rsp,%r14), %ecx
movq %rbp, %rdi
movl %ebx, %edx
movl %ecx, 0x10(%rsp)
movl %r15d, %r8d
callq 0xb9ac
addq $0x4, %r14
testl %eax, %eax
movl 0x18(%rsp), %ecx
cmovnel %eax, %ecx
movl %ecx, 0x18(%rsp)
je 0x7360
movq 0x8(%rsp), %rbp
movq 0x38(%rsp), %r12
movl 0x18(%rsp), %eax
jmp 0x7695
movl $0x1f, %eax
jmp 0x7695
cmpl $0x7, %r15d
ja 0x741d
movl %r15d, %ebx
imull %r9d, %ebx
leal 0x7(%rbx), %ebp
andl $-0x8, %ebp
cmpl %ebp, %ebx
jne 0x7556
movq %r13, %rdi
movq %r12, %rsi
movl %r9d, %edx
movl %eax, %ecx
movl %r15d, %r8d
callq 0xb9ac
testl %eax, %eax
jne 0x768b
jmp 0x7689
leaq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x250(%rsp), %rdx
leaq 0x210(%rsp), %rcx
leaq 0x110(%rsp), %r8
movl (%rsp), %r9d
pushq %r15
pushq 0x30(%rsp)
callq 0xbded
addq $0x10, %rsp
cmpl $0x7, %r15d
jbe 0x758b
shrl $0x3, %r15d
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl 0xb0(%rsp,%rax,4), %eax
movl %eax, 0x18(%rsp)
testl %eax, %eax
je 0x753f
movq 0x10(%rsp), %rax
movl 0xd0(%rsp,%rax,4), %r9d
xorl %r10d, %r10d
xorl %r11d, %r11d
testq %r9, %r9
je 0x752e
movq 0x10(%rsp), %rax
leaq 0x738c(%rip), %rcx      # 0xe850
movl (%rcx,%rax,4), %ebx
imull %r11d, %ebx
leaq 0x739e(%rip), %rcx      # 0xe870
addl (%rcx,%rax,4), %ebx
leaq 0x7334(%rip), %rcx      # 0xe810
movl (%rcx,%rax,4), %ebp
imull (%rsp), %ebx
leaq 0x7346(%rip), %rcx      # 0xe830
addl (%rcx,%rax,4), %ebx
movq 0x110(%rsp,%rax,8), %r14
addq %r12, %r14
movl %r10d, %ecx
xorl %edx, %edx
movl %ebx, %esi
imulq %r15, %rsi
addq %r13, %rsi
movl %ecx, %edi
imulq %r15, %rdi
addq %r14, %rdi
xorl %r8d, %r8d
movb (%rdi,%r8), %al
movb %al, (%rsi,%r8)
incq %r8
cmpq %r8, %r15
jne 0x7512
incq %rdx
addl %ebp, %ebx
incl %ecx
cmpq %r9, %rdx
jne 0x74fd
incl %r11d
addl %r9d, %r10d
cmpl 0x18(%rsp), %r11d
jne 0x74b3
movq 0x10(%rsp), %rax
incq %rax
cmpq $0x7, %rax
jne 0x7488
jmp 0x7689
movq %r12, %rdi
movq %r12, %rsi
movl %r9d, %edx
movl %eax, %ecx
movl %r15d, %r8d
movq %rax, %r14
callq 0xb9ac
testl %eax, %eax
jne 0x768b
movl %ebx, %edx
movl %ebp, %ecx
movq %r13, %rdi
movq %r12, %rsi
movl %r14d, %r8d
callq 0xbd57
jmp 0x7689
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl 0xb0(%rsp,%rax,4), %eax
movl %eax, 0x18(%rsp)
testl %eax, %eax
je 0x7677
movq 0x10(%rsp), %rax
movl 0xd0(%rsp,%rax,4), %r10d
xorl %r11d, %r11d
testq %r10, %r10
je 0x7669
movq 0x10(%rsp), %rax
movq 0x110(%rsp,%rax,8), %rbx
shlq $0x3, %rbx
movl %r11d, %r14d
imull %r10d, %r14d
leaq 0x7273(%rip), %rcx      # 0xe850
movl (%rcx,%rax,4), %ebp
imull %r11d, %ebp
leaq 0x7285(%rip), %rcx      # 0xe870
addl (%rcx,%rax,4), %ebp
imull (%rsp), %ebp
leaq 0x7217(%rip), %rcx      # 0xe810
movl (%rcx,%rax,4), %edx
leaq 0x722d(%rip), %rcx      # 0xe830
addl (%rcx,%rax,4), %ebp
xorl %esi, %esi
movl %edx, %edi
imull %esi, %edi
addl %ebp, %edi
imull %r15d, %edi
leal (%r14,%rsi), %eax
imull %r15d, %eax
addq %rbx, %rax
movl %r15d, %r9d
movl %eax, %ecx
notb %cl
movq %rax, %r8
shrq $0x3, %r8
movzbl (%r12,%r8), %r8d
movzbl %cl, %ecx
andl $0x7, %ecx
btl %ecx, %r8d
jae 0x7656
movl %edi, %ecx
notb %cl
andb $0x7, %cl
movb $0x1, %r8b
shlb %cl, %r8b
movq %rdi, %rcx
shrq $0x3, %rcx
orb %r8b, (%r13,%rcx)
incq %rdi
incq %rax
decl %r9d
jne 0x7621
incq %rsi
cmpq %r10, %rsi
jne 0x7608
incl %r11d
cmpl 0x18(%rsp), %r11d
jne 0x75b5
movq 0x10(%rsp), %rax
incq %rax
cmpq $0x7, %rax
jne 0x758d
xorl %eax, %eax
movq 0x8(%rsp), %rbp
movq 0x38(%rsp), %r12
movl %eax, 0x198(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rsp)
movq 0x50(%rsp), %rdi
callq 0x1030
movq $0x0, 0x50(%rsp)
movl 0x198(%rbp), %eax
testl %eax, %eax
jne 0x77a1
movl 0x24(%rbp), %ebx
testl %ebx, %ebx
je 0x76f0
leaq 0x88(%rbp), %r14
leaq 0xc0(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x52c9
testl %eax, %eax
je 0x7716
testl %ebx, %ebx
jne 0x779b
leaq 0x88(%rbp), %rdi
leaq 0xc0(%rbp), %rsi
callq 0x448b
movl %eax, 0x198(%rbp)
testl %eax, %eax
jne 0x77a1
jmp 0x779b
movq (%r12), %rbx
movl (%r14), %eax
orl $0x4, %eax
cmpl $0x6, %eax
jne 0x7773
movq %rbp, 0x8(%rsp)
movq 0x40(%rsp), %rax
movl (%rax), %ebp
movq %r12, %r13
movq 0x30(%rsp), %rax
movl (%rax), %r12d
movl %ebp, %edi
movl %r12d, %esi
movq %r14, %rdx
callq 0x4648
movq %rax, %rdi
callq 0x10f0
movq %rax, (%r13)
testq %rax, %rax
je 0x7783
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
movl %ebp, %r8d
movl %r12d, %r9d
callq 0x4de5
jmp 0x7788
movl $0x38, %eax
cmpl $0x8, 0x8c(%rbp)
je 0x7725
jmp 0x77a1
movl $0x53, %eax
movq 0x8(%rsp), %rbp
movl %eax, 0x198(%rbp)
movq %rbx, %rdi
callq 0x1030
movl 0x198(%rbp), %eax
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq