// File: /workspace/github_cpp_makefile_star2_O3/mhe[P]raytracerframework_cpp/lodepng.cpp
// Function: LodePNG_decode(LodePNG_Decoder*, unsigned char**, unsigned long*, unsigned char const*, unsigned long)
void LodePNG_decode(LodePNG_Decoder* decoder, unsigned char** out, size_t* outsize, const unsigned char* in, size_t insize)
{
  *out = 0;
  *outsize = 0;
  decodeGeneric(decoder, out, outsize, in, insize);
  if(decoder->error) return;
  if(!decoder->settings.color_convert || LodePNG_InfoColor_equal(&decoder->infoRaw.color, &decoder->infoPng.color))
  {
    /*same color type, no copying or converting of data needed*/
    /*store the infoPng color settings on the infoRaw so that the infoRaw still reflects what colorType
    the raw image has to the end user*/
    if(!decoder->settings.color_convert)
    {
      decoder->error = LodePNG_InfoColor_copy(&decoder->infoRaw.color, &decoder->infoPng.color);
      if(decoder->error) return;
    }
  }
  else
  {
    /*color conversion needed; sort of copy of the data*/
    unsigned char* data = *out;

    /*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(!(decoder->infoRaw.color.colorType == 2 || decoder->infoRaw.color.colorType == 6) && !(decoder->infoRaw.color.bitDepth == 8)) { decoder->error = 56; return; }

    *outsize = (decoder->infoPng.width * decoder->infoPng.height * LodePNG_InfoColor_getBpp(&decoder->infoRaw.color) + 7) / 8;
    *out = (unsigned char*)malloc(*outsize);
    if(!(*out))
    {
      decoder->error = 9947;
      *outsize = 0;
    }
    else decoder->error = LodePNG_convert(*out, data, &decoder->infoRaw.color, &decoder->infoPng.color, decoder->infoPng.width, decoder->infoPng.height);
    free(data);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, %rbx
movq %rdi, %r12
xorl %eax, %eax
movq %rax, (%rsi)
movq %rax, (%rdx)
testq %r8, %r8
setne %al
testq %rcx, %rcx
setne %dl
testb %al, %dl
jne 0x1da62
movl $0x30, 0x120(%r12)
jmp 0x1ea59
movq %r8, %r13
movq %rsi, %r14
movq %r12, %rdi
movq %rcx, %rsi
movq %r8, %rdx
movq %rcx, %r15
callq 0x1d7ac
cmpl $0x0, 0x120(%r12)
jne 0x1ea59
movq %r14, -0xa8(%rbp)
movq %rbx, -0xc0(%rbp)
leaq 0x21(%r15), %rdi
leaq 0x90(%r12), %rax
movq %rax, -0xb8(%rbp)
leaq 0xa8(%r12), %rax
movq %rax, -0xd0(%rbp)
leaq 0xf0(%r12), %rax
movq %rax, -0xe0(%rbp)
leaq 0x108(%r12), %rax
movq %rax, -0xd8(%rbp)
movl $0x1, %eax
movq %rax, -0x90(%rbp)
movq $0x0, -0xb0(%rbp)
movq $0x0, -0xc8(%rbp)
movq $0x0, -0x98(%rbp)
movq $0x0, -0x88(%rbp)
movq %r12, -0x38(%rbp)
movq %r15, %r8
movq %r13, -0x30(%rbp)
movq %r15, -0x40(%rbp)
movq %rdi, %rax
subq %r8, %rax
addq $0xc, %rax
cmpq %r13, %rax
ja 0x1e881
cmpq %r8, %rdi
jb 0x1e881
movzbl (%rdi), %ecx
shll $0x18, %ecx
js 0x1e892
movzbl 0x1(%rdi), %r15d
shll $0x10, %r15d
orl %ecx, %r15d
movzbl 0x2(%rdi), %r12d
shll $0x8, %r12d
movzbl 0x3(%rdi), %r14d
leal (%r15,%r14), %ecx
orl %r12d, %ecx
movl %ecx, %ebx
addq %rbx, %rax
cmpq %r13, %rax
ja 0x1e8a3
leaq (%rdi,%rbx), %rax
addq $0xc, %rax
cmpq %r8, %rax
jb 0x1e8a3
movq %rcx, -0x48(%rbp)
leaq 0x8(%rdi), %rax
movq %rax, -0x58(%rbp)
leaq 0x13027(%rip), %rsi     # 0x30bbf
movq %rdi, %r13
callq 0x1c165
testb %al, %al
movq %r13, -0x50(%rbp)
je 0x1dbf9
movq -0x98(%rbp), %r15
leaq (%r15,%rbx), %r14
leaq (,%r14,4), %rax
cmpq -0xc8(%rbp), %rax
jbe 0x1dc2a
leaq (,%r14,8), %rsi
movq -0x88(%rbp), %rdi
movq %rsi, -0xc8(%rbp)
callq 0x44f0
testq %rax, %rax
movq -0x38(%rbp), %r12
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
jne 0x1dc41
jmp 0x1e9bd
movq %r13, %rdi
leaq 0x12fc1(%rip), %rsi     # 0x30bc4
callq 0x1c165
testb %al, %al
je 0x1dcd2
movb $0x1, %r15b
xorl %r10d, %r10d
movq -0x38(%rbp), %r12
movq -0x30(%rbp), %rax
movq -0x40(%rbp), %r8
movq %r13, %rdi
movq %rax, %r13
jmp 0x1dc7f
movq -0x88(%rbp), %rax
movq -0x38(%rbp), %r12
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rdi
movq -0x58(%rbp), %rsi
movb $0x1, %r10b
movl $0x3, %ecx
movq %rcx, -0x90(%rbp)
cmpl $0x0, -0x48(%rbp)
je 0x1dc6a
addq %rax, %r15
xorl %ecx, %ecx
movb (%rsi,%rcx), %dl
movb %dl, (%r15,%rcx)
incq %rcx
cmpq %rcx, %rbx
jne 0x1dc5b
xorl %r15d, %r15d
movq %rax, -0x88(%rbp)
movq %r14, -0x98(%rbp)
movq -0x30(%rbp), %r13
movl 0x4(%r12), %eax
orl -0xb0(%rbp), %eax
jne 0x1dcb2
movl %r10d, %ebx
callq 0x1c1fa
movl %ebx, %r10d
movq -0x50(%rbp), %rdi
movq -0x40(%rbp), %r8
movq $0x0, -0xb0(%rbp)
testl %eax, %eax
jne 0x1e9af
testb %r10b, %r10b
je 0x1dcc4
movl (%rdi), %eax
bswapl %eax
addl $0xc, %eax
addq %rax, %rdi
xorl %r15d, %r15d
testb %r15b, %r15b
je 0x1db1d
jmp 0x1e8b8
movq %r13, %rdi
leaq 0x12eed(%rip), %rsi     # 0x30bc9
callq 0x1c165
testb %al, %al
je 0x1ddb0
movq -0x38(%rbp), %r12
movq 0x60(%r12), %rdi
testq %rdi, %rdi
je 0x1dcfc
callq 0x4380
movl $0xaaaaaaab, %eax       # imm = 0xAAAAAAAB
imulq %rax, %rbx
shrq $0x21, %rbx
movq %rbx, 0x68(%r12)
shlq $0x2, %rbx
movq %rbx, %rdi
callq 0x4410
movq %rax, 0x60(%r12)
testq %rax, %rax
je 0x1de2d
movq -0x48(%rbp), %rax
cmpl $0x302, %eax            # imm = 0x302
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rdi
ja 0x1e9d9
movb $0x1, %r10b
cmpl $0x3, %eax
jb 0x1de4b
movl $0x2, %eax
movq %rax, -0x90(%rbp)
movl $0x2, %eax
xorl %ecx, %ecx
movq -0x58(%rbp), %r11
leal -0x2(%rax), %edx
leal -0x1(%rax), %esi
movb (%r11,%rdx), %dl
movq 0x60(%r12), %r9
movb %dl, (%r9,%rcx,4)
movb (%r11,%rsi), %dl
movq 0x60(%r12), %rsi
movb %dl, 0x1(%rsi,%rcx,4)
movl %eax, %edx
movb (%r11,%rdx), %dl
movq 0x60(%r12), %rsi
movb %dl, 0x2(%rsi,%rcx,4)
movq 0x60(%r12), %rdx
movb $-0x1, 0x3(%rdx,%rcx,4)
incq %rcx
addl $0x3, %eax
xorl %r15d, %r15d
cmpq 0x68(%r12), %rcx
jb 0x1dd62
jmp 0x1dc7b
movq %r13, %rdi
leaq 0x12e14(%rip), %rsi     # 0x30bce
callq 0x1c165
testb %al, %al
je 0x1de5c
movq -0x38(%rbp), %r12
movl 0x58(%r12), %eax
testl %eax, %eax
movq %r13, %rdi
je 0x1df18
cmpl $0x2, %eax
movq -0x40(%rbp), %r8
movq -0x48(%rbp), %rcx
je 0x1ded4
cmpl $0x3, %eax
jne 0x1eb9d
cmpq %rbx, 0x68(%r12)
jb 0x1ebbf
movb $0x1, %r10b
testl %ecx, %ecx
je 0x1e05d
xorl %eax, %eax
movq -0x58(%rbp), %rsi
movb (%rsi,%rax), %cl
movq 0x60(%r12), %rdx
movb %cl, 0x3(%rdx,%rax,4)
incq %rax
xorl %r15d, %r15d
cmpq %rax, %rbx
jne 0x1de11
jmp 0x1dc7b
cmpl $0x3, -0x48(%rbp)
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rdi
jae 0x1eb7d
movq $0x0, 0x68(%r12)
movb $0x1, %r10b
movl $0x2, %eax
movq %rax, -0x90(%rbp)
jmp 0x1e05d
movq %r13, %rdi
leaq 0x12d6d(%rip), %rsi     # 0x30bd3
callq 0x1c165
testb %al, %al
je 0x1df51
movq -0x38(%rbp), %r12
movl 0x58(%r12), %eax
movb $0x1, %r10b
xorl %r15d, %r15d
cmpq $0x6, %rax
movq %r13, %rdi
movq -0x48(%rbp), %rdx
ja 0x1e304
leaq 0x1299a(%rip), %rcx     # 0x30834
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movq -0x40(%rbp), %r8
jmpq *%rax
cmpl $0x2, %edx
jne 0x1ebe1
movl $0x1, 0x80(%r12)
movzwl 0x8(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x8c(%r12)
jmp 0x1e04d
cmpl $0x6, %ecx
jne 0x1ebae
movl $0x1, 0x70(%r12)
movzwl 0x8(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x74(%r12)
movzwl 0xa(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x78(%r12)
movzwl 0xc(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x7c(%r12)
jmp 0x1df49
cmpl $0x2, -0x48(%rbp)
movq -0x40(%rbp), %r8
jne 0x1ebd0
movl $0x1, 0x70(%r12)
movzwl 0x8(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x7c(%r12)
movl %eax, 0x78(%r12)
movl %eax, 0x74(%r12)
movb $0x1, %r10b
jmp 0x1e05d
movq %r13, %rdi
leaq 0x12c7d(%rip), %rsi     # 0x30bd8
callq 0x1c165
testb %al, %al
je 0x1dfe3
movb $0x1, %r10b
movq -0x38(%rbp), %rax
cmpl $0x0, 0xc(%rax)
movq -0x58(%rbp), %rcx
je 0x1e0eb
cmpl $0x0, 0x120(%rax)
je 0x1e065
xorl %edi, %edi
xorl %ebx, %ebx
movq -0x38(%rbp), %r12
jmp 0x1e389
cmpl $0x6, %edx
jne 0x1ebf2
movl $0x1, 0x80(%r12)
movzwl 0x8(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x84(%r12)
movzwl 0xa(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x88(%r12)
movzwl 0xc(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x8c(%r12)
jmp 0x1e05d
movq %r13, %rdi
leaq 0x12bf0(%rip), %rsi     # 0x30bdd
callq 0x1c165
testb %al, %al
je 0x1e094
movb $0x1, %r10b
movq -0x38(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x1e0eb
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
movq $0x0, -0x70(%rbp)
cmpl $0x0, 0x120(%rax)
je 0x1e102
xorl %r12d, %r12d
xorl %ebx, %ebx
jmp 0x1e3d3
cmpl $0x1, %edx
jne 0x1ec03
movl $0x1, 0x80(%r12)
movq -0x58(%rbp), %rax
movzbl (%rax), %eax
movl %eax, 0x88(%r12)
movl %eax, 0x84(%r12)
xorl %r15d, %r15d
jmp 0x1dc7b
movq -0x48(%rbp), %rdx
testl %edx, %edx
je 0x1e132
orl %r12d, %r15d
orl %r14d, %r15d
xorl %eax, %eax
movq -0x38(%rbp), %r12
cmpb $0x0, (%rcx,%rax)
je 0x1e1c9
incq %rax
cmpq %rax, %rbx
jne 0x1e07d
jmp 0x1e1cc
movq %r13, %rdi
leaq 0x12b44(%rip), %rsi     # 0x30be2
callq 0x1c165
testb %al, %al
je 0x1e13e
movb $0x1, %r10b
movq -0x38(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x1e0eb
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
movq $0x0, -0x70(%rbp)
cmpl $0x0, 0x120(%rax)
je 0x1e273
xorl %ebx, %ebx
xorl %edi, %edi
xorl %r15d, %r15d
xorl %r13d, %r13d
movq -0x38(%rbp), %r12
movq -0x30(%rbp), %r14
jmp 0x1e70a
xorl %r15d, %r15d
movq %rax, %r12
movq -0x30(%rbp), %r13
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rdi
jmp 0x1dc7f
movq -0x48(%rbp), %r13
testl %r13d, %r13d
je 0x1e29e
orl %r12d, %r15d
orl %r14d, %r15d
xorl %eax, %eax
movq -0x58(%rbp), %rcx
cmpb $0x0, (%rcx,%rax)
je 0x1e311
incq %rax
cmpq %rax, %rbx
jne 0x1e11b
jmp 0x1e314
xorl %r15d, %r15d
movq -0x38(%rbp), %r12
jmp 0x1e1cc
movq %r13, %rdi
leaq 0x12a9f(%rip), %rsi     # 0x30be7
callq 0x1c165
testb %al, %al
je 0x1e2a3
cmpl $0x7, -0x48(%rbp)
movq -0x38(%rbp), %r12
movq -0x30(%rbp), %r13
jne 0x1ec14
movb $0x1, 0xd0(%r12)
movq -0x50(%rbp), %rdi
movzwl 0x8(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0xd4(%r12)
movb 0xa(%rdi), %al
movb %al, 0xd8(%r12)
movb 0xb(%rdi), %al
movb %al, 0xd9(%r12)
movb 0xc(%rdi), %al
movb %al, 0xda(%r12)
movb 0xd(%rdi), %al
movb %al, 0xdb(%r12)
movb 0xe(%rdi), %al
movb %al, 0xdc(%r12)
movb $0x1, %r10b
xorl %r15d, %r15d
jmp 0x1e308
movl %eax, %r15d
movl %r15d, %ebx
leaq 0x1(%rbx), %r13
subl %r13d, %edx
jbe 0x1e25e
movq %rdx, %r14
movq %r13, %rdi
callq 0x4410
testq %rax, %rax
je 0x1e265
movb $0x0, (%rax,%rbx)
testl %r15d, %r15d
movq -0x58(%rbp), %rdx
je 0x1e209
xorl %esi, %esi
movb (%rdx,%rsi), %cl
movb %cl, (%rax,%rsi)
incq %rsi
cmpq %rsi, %rbx
jne 0x1e1fb
movq %rax, %r15
leal 0x1(%r14), %edi
callq 0x4410
testq %rax, %rax
je 0x1e377
movq %rax, %rbx
movl %r14d, %eax
movb $0x0, (%rbx,%rax)
movq -0x58(%rbp), %rsi
addq %r13, %rsi
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %ecx, %ecx
movb (%rsi,%rcx), %dl
movb %dl, (%rbx,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x1e239
movq -0xb8(%rbp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1c7c1
jmp 0x1e37e
movl $0x4b, %eax
jmp 0x1e26a
movl $0x26d2, %eax           # imm = 0x26D2
xorl %edi, %edi
xorl %ebx, %ebx
jmp 0x1e381
cmpl $0x5, -0x48(%rbp)
jae 0x1e39c
movl $0x4c, %eax
xorl %ebx, %ebx
xorl %edi, %edi
xorl %r15d, %r15d
movq $0x0, -0x60(%rbp)
movq -0x38(%rbp), %r12
movq -0x30(%rbp), %r14
jmp 0x1e6fe
xorl %r15d, %r15d
jmp 0x1e314
movq -0x50(%rbp), %rdi
leaq 0x1293e(%rip), %rsi     # 0x30bec
callq 0x1c165
testb %al, %al
je 0x1e40d
cmpl $0x9, -0x48(%rbp)
jne 0x1ec25
movq -0x38(%rbp), %r12
movl $0x1, 0xe0(%r12)
movq -0x50(%rbp), %rdi
movl 0x8(%rdi), %eax
bswapl %eax
movl %eax, 0xe4(%r12)
movl 0xc(%rdi), %eax
bswapl %eax
movl %eax, 0xe8(%r12)
movb 0x10(%rdi), %al
movb %al, 0xec(%r12)
movb $0x1, %r10b
xorl %r15d, %r15d
movq -0x30(%rbp), %r13
movq -0x40(%rbp), %r8
jmp 0x1dc7f
movl %eax, %r15d
leal 0x2(%r15), %r14d
subl %r14d, %r13d
jbe 0x1e370
movq %r13, -0x48(%rbp)
movl %r15d, %r12d
leaq 0x1(%r12), %rdi
movq %rdi, %r13
callq 0x4410
testq %rax, %rax
je 0x1e3bf
movq %rax, %rbx
movb $0x0, (%rax,%r12)
testl %r15d, %r15d
movq -0x58(%rbp), %rdx
je 0x1e35b
xorl %eax, %eax
movb (%rdx,%rax), %cl
movb %cl, (%rbx,%rax)
incq %rax
cmpq %rax, %r12
jne 0x1e34d
cmpb $0x0, (%rdx,%r13)
je 0x1e482
movl $0x48, %eax
xorl %r12d, %r12d
jmp 0x1e3c9
movl $0x4b, %eax
jmp 0x1e3c4
movl $0x26d3, %eax           # imm = 0x26D3
xorl %ebx, %ebx
movq %r15, %rdi
movl %eax, 0x120(%r12)
movq -0x30(%rbp), %r13
callq 0x4380
movq %rbx, %rdi
callq 0x4380
jmp 0x1e3fa
orl %r12d, %r15d
orl %r14d, %r15d
xorl %eax, %eax
movq -0x58(%rbp), %rcx
cmpb $0x0, (%rcx,%rax)
je 0x1e508
incq %rax
cmpq %rax, %rbx
jne 0x1e3a8
jmp 0x1e50b
movl $0x26d4, %eax           # imm = 0x26D4
xorl %r12d, %r12d
xorl %ebx, %ebx
movq -0x38(%rbp), %rcx
movl %eax, 0x120(%rcx)
movq -0x30(%rbp), %r13
movq %rbx, %rdi
callq 0x4380
movq %r12, %rdi
callq 0x4380
movq -0x38(%rbp), %r12
cmpl $0x0, 0x120(%r12)
jne 0x1ea3b
xorl %r15d, %r15d
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rdi
movb $0x1, %r10b
jmp 0x1dc7f
movq -0x50(%rbp), %rax
testb $0x20, 0x4(%rax)
je 0x1ec3a
movl $0x1, %eax
movq %rax, -0xb0(%rbp)
movq -0x38(%rbp), %r12
cmpl $0x0, 0x10(%r12)
je 0x1e596
movq -0x90(%rbp), %rax
decl %eax
movq -0xe0(%rbp), %rcx
leaq (%rcx,%rax,8), %rdi
movq -0xd8(%rbp), %rcx
leaq (%rcx,%rax,8), %rsi
movq -0x50(%rbp), %rbx
movq %rbx, %rdx
callq 0x1c2fb
movq %rbx, %rdi
movl %eax, 0x120(%r12)
testl %eax, %eax
movq -0x30(%rbp), %r13
movq -0x40(%rbp), %r8
je 0x1dcb7
jmp 0x1ea3b
movl %r14d, %eax
addq %rax, %rdx
leaq -0x80(%rbp), %rdi
leaq -0x78(%rbp), %rsi
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %r14
movq %r14, %r8
callq 0x1bd0b
movl %eax, 0x120(%r14)
movq -0x80(%rbp), %r12
testl %eax, %eax
jne 0x1e3d3
movq -0x78(%rbp), %r14
leaq 0x4(,%r14,4), %rax
incq %r14
cmpq -0x70(%rbp), %rax
jbe 0x1e4eb
leaq (,%r14,8), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x44f0
testq %rax, %rax
je 0x1e4f1
movq %r13, -0x70(%rbp)
movq %rax, -0x80(%rbp)
movq %rax, %r12
movb $0x0, -0x1(%r12,%r14)
movq -0xb8(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x1c7c1
jmp 0x1e3c9
movl %eax, %r15d
movl %r15d, %r14d
leaq 0x2(%r14), %r12
cmpl -0x48(%rbp), %r12d
jae 0x1e575
leaq 0x1(%r14), %r13
movq %r13, %rdi
callq 0x4410
movq %rax, -0x68(%rbp)
testq %rax, %rax
je 0x1e5a7
movq -0x68(%rbp), %rsi
movb $0x0, (%rsi,%r14)
testl %r15d, %r15d
movq -0x58(%rbp), %rdx
je 0x1e54f
xorl %eax, %eax
movb (%rdx,%rax), %cl
movb %cl, (%rsi,%rax)
incq %rax
cmpq %rax, %r14
jne 0x1e541
cmpb $0x0, (%rdx,%r12)
je 0x1e5b1
movl $0x48, %eax
xorl %ebx, %ebx
xorl %r15d, %r15d
movq $0x0, -0x60(%rbp)
movq -0x38(%rbp), %r12
movq -0x30(%rbp), %r14
jmp 0x1e6fa
xorl %ebx, %ebx
xorl %edi, %edi
xorl %r15d, %r15d
movq $0x0, -0x60(%rbp)
movq -0x38(%rbp), %r12
movq -0x30(%rbp), %r14
movl $0x4b, %eax
jmp 0x1e6fe
movq -0x30(%rbp), %r13
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rdi
jmp 0x1dcb7
movl $0x26d5, %eax           # imm = 0x26D5
jmp 0x1e282
addq $0x3, %r14
xorl %r12d, %r12d
cmpl -0x48(%rbp), %r14d
jae 0x1e5e1
movq %rbx, %rax
subq %r14, %rax
movq -0x50(%rbp), %rcx
addq %r14, %rcx
addq $0x8, %rcx
xorl %r12d, %r12d
cmpb $0x0, (%rcx,%r12)
je 0x1e5e1
incq %r12
cmpq %r12, %rax
jne 0x1e5d2
leal (%r15,%r12), %eax
addl $0x4, %eax
cmpl -0x48(%rbp), %eax
jae 0x1e6d2
movq -0x58(%rbp), %rax
movb (%rax,%r13), %al
movb %al, -0xa0(%rbp)
leal 0x1(%r12), %edi
movq %rdi, %r13
callq 0x4410
testq %rax, %rax
je 0x1e6d9
movq %rax, %r15
movl %r12d, %eax
movb $0x0, (%r15,%rax)
testl %r12d, %r12d
je 0x1e63e
movq -0x58(%rbp), %rcx
addq %r14, %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
movb %sil, (%r15,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0x1e62e
addl %r14d, %r13d
xorl %r14d, %r14d
movq %r13, %r12
cmpl -0x48(%rbp), %r13d
jae 0x1e66d
subq %r12, %rbx
movq -0x50(%rbp), %rax
addq %r12, %rax
addq $0x8, %rax
xorl %r14d, %r14d
cmpb $0x0, (%rax,%r14)
je 0x1e66d
incq %r14
cmpq %r14, %rbx
jne 0x1e65e
leal (%r12,%r14), %eax
incl %eax
cmpl -0x48(%rbp), %eax
jae 0x1e6e3
leal 0x1(%r14), %r13d
movq %r13, %rdi
callq 0x4410
movq %rax, -0x60(%rbp)
testq %rax, %rax
je 0x1e74c
movl %r14d, %eax
movq -0x60(%rbp), %rcx
movb $0x0, (%rcx,%rax)
testl %r14d, %r14d
je 0x1e6be
movq -0x58(%rbp), %rcx
addq %r12, %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
movq -0x60(%rbp), %rdi
movb %sil, (%rdi,%rdx)
incq %rdx
cmpq %rdx, %rax
jne 0x1e6aa
addl %r12d, %r13d
movq -0x48(%rbp), %r14
subl %r13d, %r14d
jae 0x1e758
xorl %ebx, %ebx
jmp 0x1e6ed
xorl %ebx, %ebx
xorl %r15d, %r15d
jmp 0x1e6e5
movl $0x26d6, %eax           # imm = 0x26D6
jmp 0x1e55b
xorl %ebx, %ebx
movq $0x0, -0x60(%rbp)
movq -0x38(%rbp), %r12
movq -0x30(%rbp), %r14
movl $0x4b, %eax
movq -0x68(%rbp), %rdi
movl %eax, 0x120(%r12)
movq -0x60(%rbp), %r13
callq 0x4380
movq %r15, %rdi
callq 0x4380
movq %r13, %rdi
callq 0x4380
movq %rbx, %rdi
callq 0x4380
cmpl $0x0, 0x120(%r12)
jne 0x1ea3b
xorl %r15d, %r15d
movq -0x40(%rbp), %r8
movq -0x50(%rbp), %rdi
movb $0x1, %r10b
movq %r14, %r13
jmp 0x1dc7f
movl $0x26d7, %eax           # imm = 0x26D7
xorl %ebx, %ebx
jmp 0x1e560
cmpb $0x0, -0xa0(%rbp)
je 0x1e7a5
movl %r13d, %eax
movq -0x58(%rbp), %rdx
addq %rax, %rdx
movl %r14d, %ecx
leaq -0x80(%rbp), %rdi
leaq -0x78(%rbp), %rsi
movq -0x38(%rbp), %rbx
movq %rbx, %r8
callq 0x1bd0b
movl %eax, 0x120(%rbx)
movq -0x80(%rbp), %rbx
testl %eax, %eax
je 0x1e80e
movq -0x38(%rbp), %r12
movq -0x30(%rbp), %r14
movq -0x60(%rbp), %r13
movq -0x68(%rbp), %rdi
jmp 0x1e70a
leal 0x1(%r14), %r12d
leaq (,%r12,8), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x4410
testq %rax, %rax
je 0x1e875
movq %rax, %rbx
movq -0xa0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq %rbx, -0x80(%rbp)
movq %r12, -0x78(%rbp)
movl %r14d, %eax
movb $0x0, (%rbx,%rax)
cmpl %r13d, -0x48(%rbp)
je 0x1e850
movl %r13d, %ecx
addq %rcx, -0x58(%rbp)
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %ecx, %ecx
movq -0x58(%rbp), %rdx
movb (%rdx,%rcx), %dl
movb %dl, (%rbx,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x1e7fa
jmp 0x1e850
movq -0x78(%rbp), %r14
leaq 0x4(,%r14,4), %rax
incq %r14
cmpq -0x70(%rbp), %rax
jbe 0x1e846
leaq (,%r14,8), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x44f0
testq %rax, %rax
je 0x1e850
movq %r12, -0x70(%rbp)
movq %rax, -0x80(%rbp)
movq %rax, %rbx
movq %r14, -0x78(%rbp)
movb $0x0, -0x1(%rbx,%r14)
movq -0xd0(%rbp), %rdi
movq -0x68(%rbp), %r14
movq %r14, %rsi
movq %r15, %rdx
movq -0x60(%rbp), %rcx
movq %rbx, %r8
callq 0x1ca44
movq %r14, %rdi
jmp 0x1e291
movl $0x26d8, %eax           # imm = 0x26D8
xorl %ebx, %ebx
jmp 0x1e568
movl $0x1e, 0x120(%r12)
jmp 0x1ea3b
movl $0x3f, 0x120(%r12)
jmp 0x1ea3b
movq -0x38(%rbp), %r12
movl $0x23, 0x120(%r12)
jmp 0x1ea3b
cmpl $0x0, 0x120(%r12)
jne 0x1ea3b
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
movq $0x0, -0x70(%rbp)
movl 0x40(%r12), %ecx
movl 0x44(%r12), %eax
movl 0x58(%r12), %esi
xorl %edx, %edx
movl 0x5c(%r12), %r14d
cmpq $0x6, %rsi
ja 0x1e8fc
leaq 0x12293(%rip), %rdx     # 0x30b8c
movl (%rdx,%rsi,4), %edx
imull %eax, %r14d
imull %edx, %r14d
addl $0x7, %r14d
imull %ecx, %r14d
shrl $0x3, %r14d
addl %eax, %r14d
movq -0xc0(%rbp), %r15
je 0x1e93d
leaq (,%r14,8), %rbx
movq %rbx, %rdi
callq 0x4410
testq %rax, %rax
je 0x1e9cb
movq %rbx, -0x70(%rbp)
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rsi
movq %r14, (%rsi)
leaq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rdx
movq -0x98(%rbp), %rcx
movq %r12, %r8
callq 0x1bd0b
movl %eax, 0x120(%r12)
testl %eax, %eax
jne 0x1ea32
movl 0x40(%r12), %eax
movl 0x44(%r12), %ecx
movl 0x58(%r12), %edi
xorl %esi, %esi
movl 0x5c(%r12), %edx
cmpq $0x6, %rdi
ja 0x1e994
leaq 0x121fb(%rip), %rsi     # 0x30b8c
movl (%rsi,%rdi,4), %esi
imull %esi, %edx
imull %ecx, %eax
imull %edx, %eax
addl $0x7, %eax
movl %eax, %ebx
shrl $0x3, %ebx
cmpl $0x8, %eax
jae 0x1e9e7
xorl %r14d, %r14d
jmp 0x1ea0c
movl $0x39, 0x120(%r12)
jmp 0x1ea3b
movl $0x26d0, 0x120(%r12) # imm = 0x26D0
jmp 0x1ea3b
movl $0x26d9, 0x120(%r12) # imm = 0x26D9
jmp 0x1ea32
movl $0x26, 0x120(%r12)
jmp 0x1ea3b
leal (,%rbx,8), %edi
callq 0x4410
testq %rax, %rax
je 0x1eb8e
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x4170
leaq 0x40(%r12), %rdx
movq -0x80(%rbp), %rsi
movq %r14, %rdi
callq 0x23418
movl %eax, 0x120(%r12)
movq -0xa8(%rbp), %rax
movq %r14, (%rax)
movq %rbx, (%r15)
movq -0x80(%rbp), %rdi
callq 0x4380
movq -0x88(%rbp), %rdi
callq 0x4380
cmpl $0x0, 0x120(%r12)
movq -0xa8(%rbp), %rdx
je 0x1ea6b
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x18(%r12), %rbx
cmpl $0x0, 0x8(%r12)
je 0x1eb15
movl 0x18(%r12), %eax
cmpl 0x58(%r12), %eax
jne 0x1ea94
movl 0x1c(%r12), %ecx
cmpl 0x5c(%r12), %ecx
je 0x1ea59
movq (%rdx), %r14
movl %eax, %ecx
orl $0x4, %ecx
cmpl $0x6, %ecx
jne 0x1eb2f
movl 0x1c(%r12), %ecx
movl 0x40(%r12), %r15d
movl 0x44(%r12), %r12d
xorl %edx, %edx
cmpl $0x6, %eax
ja 0x1eac5
leaq 0x120ca(%rip), %rdx     # 0x30b8c
movl (%rdx,%rax,4), %edx
imull %edx, %ecx
movl %r12d, %edi
imull %r15d, %edi
imull %ecx, %edi
addl $0x7, %edi
shrl $0x3, %edi
movq -0xc0(%rbp), %r13
movq %rdi, (%r13)
callq 0x4410
movq -0xa8(%rbp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x1eb4c
movq -0x38(%rbp), %r13
leaq 0x58(%r13), %rcx
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %r15d, %r8d
movl %r12d, %r9d
callq 0x1cf0b
jmp 0x1eb5d
leaq 0x58(%r12), %rsi
movq %rbx, %rdi
callq 0x1cd80
movl %eax, 0x120(%r12)
jmp 0x1ea59
cmpl $0x8, 0x1c(%r12)
je 0x1eaa5
movl $0x38, 0x120(%r12)
jmp 0x1ea59
movq $0x0, (%r13)
movl $0x26db, %eax           # imm = 0x26DB
movq -0x38(%rbp), %r13
movl %eax, 0x120(%r13)
movq %r14, %rdi
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4380
movl $0x26d1, 0x120(%r12) # imm = 0x26D1
jmp 0x1ea3b
movl $0x26da, %eax           # imm = 0x26DA
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x1ea1d
movl $0x2a, 0x120(%r12)
jmp 0x1ea3b
movl $0x29, 0x120(%r12)
jmp 0x1ea3b
movl $0x27, 0x120(%r12)
jmp 0x1ea3b
movl $0x28, 0x120(%r12)
jmp 0x1ea3b
movl $0x2c, 0x120(%r12)
jmp 0x1ea3b
movl $0x2d, 0x120(%r12)
jmp 0x1ea3b
movl $0x2b, 0x120(%r12)
jmp 0x1ea3b
movl $0x49, 0x120(%r12)
jmp 0x1ea3b
movq -0x38(%rbp), %r12
movl $0x4a, 0x120(%r12)
jmp 0x1ea3b
movq -0x38(%rbp), %r12
movl $0x45, 0x120(%r12)
jmp 0x1ea3b