// File: /workspace/github_c_makefile_star2_O0/Joy-Division[P]tools-mgs/lodepng/lodepng.c
// Function: decodeGeneric
static void decodeGeneric(unsigned char** out, unsigned* w, unsigned* h,
                          LodePNGState* state,
                          const unsigned char* in, size_t insize)
{
  unsigned char IEND = 0;
  const unsigned char* chunk;
  size_t i;
  ucvector idat; /*the data from idat chunks*/
  ucvector scanlines;
  size_t predict;
  size_t numpixels;
  size_t outsize = 0;

  /*for unknown chunk order*/
  unsigned unknown = 0;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
  unsigned critical_pos = 1; /*1 = after IHDR, 2 = after PLTE, 3 = after IDAT*/
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/

  /*provide some proper output values if error will happen*/
  *out = 0;

  state->error = lodepng_inspect(w, h, state, in, insize); /*reads header and resets other parameters in state->info_png*/
  if(state->error) return;

  numpixels = *w * *h;

  /*multiplication overflow*/
  if(*h != 0 && numpixels / *h != *w) CERROR_RETURN(state->error, 92);
  /*multiplication overflow possible further below. Allows up to 2^31-1 pixel
  bytes with 16-bit RGBA, the rest is room for filter bytes.*/
  if(numpixels > 268435455) CERROR_RETURN(state->error, 92);

  ucvector_init(&idat);
  chunk = &in[33]; /*first byte of the first chunk after the header*/

  /*loop through the chunks, ignoring unknown chunks and stopping at IEND chunk.
  IDAT data is put at the start of the in buffer*/
  while(!IEND && !state->error)
  {
    unsigned chunkLength;
    const unsigned char* data; /*the data in the chunk*/

    /*error: size of the in buffer too small to contain next chunk*/
    if((size_t)((chunk - in) + 12) > insize || chunk < in) CERROR_BREAK(state->error, 30);

    /*length of the data of the chunk, excluding the length bytes, chunk type and CRC bytes*/
    chunkLength = lodepng_chunk_length(chunk);
    /*error: chunk length larger than the max PNG chunk size*/
    if(chunkLength > 2147483647) CERROR_BREAK(state->error, 63);

    if((size_t)((chunk - in) + chunkLength + 12) > insize || (chunk + chunkLength + 12) < in)
    {
      CERROR_BREAK(state->error, 64); /*error: size of the in buffer too small to contain next chunk*/
    }

    data = lodepng_chunk_data_const(chunk);

    /*IDAT chunk, containing compressed image data*/
    if(lodepng_chunk_type_equals(chunk, "IDAT"))
    {
      size_t oldsize = idat.size;
      if(!ucvector_resize(&idat, oldsize + chunkLength)) CERROR_BREAK(state->error, 83 /*alloc fail*/);
      for(i = 0; i != chunkLength; ++i) idat.data[oldsize + i] = data[i];
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
      critical_pos = 3;
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    }
    /*IEND chunk*/
    else if(lodepng_chunk_type_equals(chunk, "IEND"))
    {
      IEND = 1;
    }
    /*palette chunk (PLTE)*/
    else if(lodepng_chunk_type_equals(chunk, "PLTE"))
    {
      state->error = readChunk_PLTE(&state->info_png.color, data, chunkLength);
      if(state->error) break;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
      critical_pos = 2;
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    }
    /*palette transparency chunk (tRNS)*/
    else if(lodepng_chunk_type_equals(chunk, "tRNS"))
    {
      state->error = readChunk_tRNS(&state->info_png.color, data, chunkLength);
      if(state->error) break;
    }
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
    /*background color chunk (bKGD)*/
    else if(lodepng_chunk_type_equals(chunk, "bKGD"))
    {
      state->error = readChunk_bKGD(&state->info_png, data, chunkLength);
      if(state->error) break;
    }
    /*text chunk (tEXt)*/
    else if(lodepng_chunk_type_equals(chunk, "tEXt"))
    {
      if(state->decoder.read_text_chunks)
      {
        state->error = readChunk_tEXt(&state->info_png, data, chunkLength);
        if(state->error) break;
      }
    }
    /*compressed text chunk (zTXt)*/
    else if(lodepng_chunk_type_equals(chunk, "zTXt"))
    {
      if(state->decoder.read_text_chunks)
      {
        state->error = readChunk_zTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength);
        if(state->error) break;
      }
    }
    /*international text chunk (iTXt)*/
    else if(lodepng_chunk_type_equals(chunk, "iTXt"))
    {
      if(state->decoder.read_text_chunks)
      {
        state->error = readChunk_iTXt(&state->info_png, &state->decoder.zlibsettings, data, chunkLength);
        if(state->error) break;
      }
    }
    else if(lodepng_chunk_type_equals(chunk, "tIME"))
    {
      state->error = readChunk_tIME(&state->info_png, data, chunkLength);
      if(state->error) break;
    }
    else if(lodepng_chunk_type_equals(chunk, "pHYs"))
    {
      state->error = readChunk_pHYs(&state->info_png, data, chunkLength);
      if(state->error) break;
    }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    else /*it's not an implemented chunk type, so ignore it: skip over the data*/
    {
      /*error: unknown critical chunk (5th bit of first byte of chunk type is 0)*/
      if(!lodepng_chunk_ancillary(chunk)) CERROR_BREAK(state->error, 69);

      unknown = 1;
#ifdef LODEPNG_COMPILE_ANCILLARY_CHUNKS
      if(state->decoder.remember_unknown_chunks)
      {
        state->error = lodepng_chunk_append(&state->info_png.unknown_chunks_data[critical_pos - 1],
                                            &state->info_png.unknown_chunks_size[critical_pos - 1], chunk);
        if(state->error) break;
      }
#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
    }

    if(!state->decoder.ignore_crc && !unknown) /*check CRC if wanted, only on known chunk types*/
    {
      if(lodepng_chunk_check_crc(chunk)) CERROR_BREAK(state->error, 57); /*invalid CRC*/
    }

    if(!IEND) chunk = lodepng_chunk_next_const(chunk);
  }

  ucvector_init(&scanlines);
  /*predict output size, to allocate exact size for output buffer to avoid more dynamic allocation.
  If the decompressed size does not match the prediction, the image must be corrupt.*/
  if(state->info_png.interlace_method == 0)
  {
    /*The extra *h is added because this are the filter bytes every scanline starts with*/
    predict = lodepng_get_raw_size_idat(*w, *h, &state->info_png.color) + *h;
  }
  else
  {
    /*Adam-7 interlaced: predicted size is the sum of the 7 sub-images sizes*/
    const LodePNGColorMode* color = &state->info_png.color;
    predict = 0;
    predict += lodepng_get_raw_size_idat((*w + 7) >> 3, (*h + 7) >> 3, color) + ((*h + 7) >> 3);
    if(*w > 4) predict += lodepng_get_raw_size_idat((*w + 3) >> 3, (*h + 7) >> 3, color) + ((*h + 7) >> 3);
    predict += lodepng_get_raw_size_idat((*w + 3) >> 2, (*h + 3) >> 3, color) + ((*h + 3) >> 3);
    if(*w > 2) predict += lodepng_get_raw_size_idat((*w + 1) >> 2, (*h + 3) >> 2, color) + ((*h + 3) >> 2);
    predict += lodepng_get_raw_size_idat((*w + 1) >> 1, (*h + 1) >> 2, color) + ((*h + 1) >> 2);
    if(*w > 1) predict += lodepng_get_raw_size_idat((*w + 0) >> 1, (*h + 1) >> 1, color) + ((*h + 1) >> 1);
    predict += lodepng_get_raw_size_idat((*w + 0), (*h + 0) >> 1, color) + ((*h + 0) >> 1);
  }
  if(!state->error && !ucvector_reserve(&scanlines, predict)) state->error = 83; /*alloc fail*/
  if(!state->error)
  {
    state->error = zlib_decompress(&scanlines.data, &scanlines.size, idat.data,
                                   idat.size, &state->decoder.zlibsettings);
    if(!state->error && scanlines.size != predict) state->error = 91; /*decompressed size doesn't match prediction*/
  }
  ucvector_cleanup(&idat);

  if(!state->error)
  {
    outsize = lodepng_get_raw_size(*w, *h, &state->info_png.color);
    *out = (unsigned char*)lodepng_malloc(outsize);
    if(!*out) state->error = 83; /*alloc fail*/
  }
  if(!state->error)
  {
    for(i = 0; i < outsize; i++) (*out)[i] = 0;
    state->error = postProcessScanlines(*out, scanlines.data, *w, *h, &state->info_png);
  }
  ucvector_cleanup(&scanlines);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movb $0x0, -0x31(%rbp)
movq $0x0, -0x90(%rbp)
movl $0x0, -0x94(%rbp)
movl $0x1, -0x98(%rbp)
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x6e20
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x7458
jmp 0x7e0f
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x18(%rbp), %rcx
imull (%rcx), %eax
movl %eax, %eax
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x74a7
movq -0x88(%rbp), %rax
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %rax
je 0x74a7
movq -0x20(%rbp), %rax
movl $0x5c, 0x198(%rax)
jmp 0x7e0f
cmpq $0xfffffff, -0x88(%rbp) # imm = 0xFFFFFFF
jbe 0x74c7
movq -0x20(%rbp), %rax
movl $0x5c, 0x198(%rax)
jmp 0x7e0f
leaq -0x60(%rbp), %rdi
callq 0x8f00
movq -0x28(%rbp), %rax
addq $0x21, %rax
movq %rax, -0x40(%rbp)
xorl %eax, %eax
cmpb $0x0, -0x31(%rbp)
movb %al, -0xb9(%rbp)
jne 0x7500
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
setne %al
xorb $-0x1, %al
movb %al, -0xb9(%rbp)
movb -0xb9(%rbp), %al
testb $0x1, %al
jne 0x750f
jmp 0x7a7b
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
addq $0xc, %rax
cmpq -0x30(%rbp), %rax
ja 0x752e
movq -0x40(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x7541
movq -0x20(%rbp), %rax
movl $0x1e, 0x198(%rax)
jmp 0x7a7b
movq -0x40(%rbp), %rdi
callq 0x28a0
movl %eax, -0x9c(%rbp)
cmpl $0x7fffffff, -0x9c(%rbp) # imm = 0x7FFFFFFF
jbe 0x756f
movq -0x20(%rbp), %rax
movl $0x3f, 0x198(%rax)
jmp 0x7a7b
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movl -0x9c(%rbp), %ecx
addq %rcx, %rax
addq $0xc, %rax
cmpq -0x30(%rbp), %rax
ja 0x75a4
movq -0x40(%rbp), %rax
movl -0x9c(%rbp), %ecx
addq %rcx, %rax
addq $0xc, %rax
cmpq -0x28(%rbp), %rax
jae 0x75b7
movq -0x20(%rbp), %rax
movl $0x40, 0x198(%rax)
jmp 0x7a7b
movq -0x40(%rbp), %rdi
callq 0x2a30
movq %rax, -0xa8(%rbp)
movq -0x40(%rbp), %rdi
leaq 0xde51(%rip), %rsi      # 0x15423
callq 0x2910
cmpb $0x0, %al
je 0x766f
movq -0x58(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rsi
movl -0x9c(%rbp), %eax
addq %rax, %rsi
leaq -0x60(%rbp), %rdi
callq 0xaa50
cmpl $0x0, %eax
jne 0x761b
movq -0x20(%rbp), %rax
movl $0x53, 0x198(%rax)
jmp 0x7a7b
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl -0x9c(%rbp), %ecx
cmpq %rcx, %rax
je 0x7660
movq -0xa8(%rbp), %rax
movq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x60(%rbp), %rax
movq -0xb0(%rbp), %rcx
addq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x7623
movl $0x3, -0x98(%rbp)
jmp 0x7a30
movq -0x40(%rbp), %rdi
leaq 0xddae(%rip), %rsi      # 0x15428
callq 0x2910
cmpb $0x0, %al
je 0x768c
movb $0x1, -0x31(%rbp)
jmp 0x7a2e
movq -0x40(%rbp), %rdi
leaq 0xdd96(%rip), %rsi      # 0x1542d
callq 0x2910
cmpb $0x0, %al
je 0x76f0
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
addq $0x10, %rdi
movq -0xa8(%rbp), %rsi
movl -0x9c(%rbp), %eax
movl %eax, %edx
callq 0xe2a0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x76e1
jmp 0x7a7b
movl $0x2, -0x98(%rbp)
jmp 0x7a2c
movq -0x40(%rbp), %rdi
leaq 0xdd37(%rip), %rsi      # 0x15432
callq 0x2910
cmpb $0x0, %al
je 0x774a
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
addq $0x10, %rdi
movq -0xa8(%rbp), %rsi
movl -0x9c(%rbp), %eax
movl %eax, %edx
callq 0xe420
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x7745
jmp 0x7a7b
jmp 0x7a2a
movq -0x40(%rbp), %rdi
leaq 0xdce2(%rip), %rsi      # 0x15437
callq 0x2910
cmpb $0x0, %al
je 0x77a0
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
movq -0xa8(%rbp), %rsi
movl -0x9c(%rbp), %eax
movl %eax, %edx
callq 0xe580
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x779b
jmp 0x7a7b
jmp 0x7a28
movq -0x40(%rbp), %rdi
leaq 0xdc91(%rip), %rsi      # 0x1543c
callq 0x2910
cmpb $0x0, %al
je 0x7802
movq -0x20(%rbp), %rax
cmpl $0x0, 0x28(%rax)
je 0x77fd
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
movq -0xa8(%rbp), %rsi
movl -0x9c(%rbp), %eax
movl %eax, %edx
callq 0xe6d0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x77fb
jmp 0x7a7b
jmp 0x77fd
jmp 0x7a26
movq -0x40(%rbp), %rdi
leaq 0xdc34(%rip), %rsi      # 0x15441
callq 0x2910
cmpb $0x0, %al
je 0x7868
movq -0x20(%rbp), %rax
cmpl $0x0, 0x28(%rax)
je 0x7863
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
movq -0x20(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movl -0x9c(%rbp), %eax
movl %eax, %ecx
callq 0xe890
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x7861
jmp 0x7a7b
jmp 0x7863
jmp 0x7a24
movq -0x40(%rbp), %rdi
leaq 0xdbd3(%rip), %rsi      # 0x15446
callq 0x2910
cmpb $0x0, %al
je 0x78ce
movq -0x20(%rbp), %rax
cmpl $0x0, 0x28(%rax)
je 0x78c9
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
movq -0x20(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movl -0x9c(%rbp), %eax
movl %eax, %ecx
callq 0xea60
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x78c7
jmp 0x7a7b
jmp 0x78c9
jmp 0x7a22
movq -0x40(%rbp), %rdi
leaq 0xdb72(%rip), %rsi      # 0x1544b
callq 0x2910
cmpb $0x0, %al
je 0x7924
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
movq -0xa8(%rbp), %rsi
movl -0x9c(%rbp), %eax
movl %eax, %edx
callq 0xee80
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x791f
jmp 0x7a7b
jmp 0x7a20
movq -0x40(%rbp), %rdi
leaq 0xdb21(%rip), %rsi      # 0x15450
callq 0x2910
cmpb $0x0, %al
je 0x797a
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
movq -0xa8(%rbp), %rsi
movl -0x9c(%rbp), %eax
movl %eax, %edx
callq 0xef40
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x7975
jmp 0x7a7b
jmp 0x7a1e
movq -0x40(%rbp), %rdi
callq 0x29b0
cmpb $0x0, %al
jne 0x799a
movq -0x20(%rbp), %rax
movl $0x45, 0x198(%rax)
jmp 0x7a7b
movl $0x1, -0x94(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x2c(%rax)
je 0x7a1c
movq -0x20(%rbp), %rdi
addq $0xb0, %rdi
addq $0xb8, %rdi
movl -0x98(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
addq $0xb0, %rsi
addq $0xd0, %rsi
movl -0x98(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x40(%rbp), %rdx
callq 0x2bd0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
je 0x7a1a
jmp 0x7a7b
jmp 0x7a1c
jmp 0x7a1e
jmp 0x7a20
jmp 0x7a22
jmp 0x7a24
jmp 0x7a26
jmp 0x7a28
jmp 0x7a2a
jmp 0x7a2c
jmp 0x7a2e
jmp 0x7a30
movq -0x20(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jne 0x7a63
cmpl $0x0, -0x94(%rbp)
jne 0x7a63
movq -0x40(%rbp), %rdi
callq 0x2a50
cmpl $0x0, %eax
je 0x7a61
movq -0x20(%rbp), %rax
movl $0x39, 0x198(%rax)
jmp 0x7a7b
jmp 0x7a63
cmpb $0x0, -0x31(%rbp)
jne 0x7a76
movq -0x40(%rbp), %rdi
callq 0x2ba0
movq %rax, -0x40(%rbp)
jmp 0x74dc
leaq -0x78(%rbp), %rdi
callq 0x8f00
movq -0x20(%rbp), %rax
cmpl $0x0, 0xb8(%rax)
jne 0x7ac3
movq -0x10(%rbp), %rax
movl (%rax), %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x20(%rbp), %rdx
addq $0xb0, %rdx
addq $0x10, %rdx
callq 0xf000
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
jmp 0x7c9d
movq -0x20(%rbp), %rax
addq $0xb0, %rax
addq $0x10, %rax
movq %rax, -0xb8(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edi
addl $0x7, %edi
shrl $0x3, %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
addl $0x7, %esi
shrl $0x3, %esi
movq -0xb8(%rbp), %rdx
callq 0xf000
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
addl $0x7, %ecx
shrl $0x3, %ecx
movl %ecx, %ecx
addq %rcx, %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x4, (%rax)
jbe 0x7b63
movq -0x10(%rbp), %rax
movl (%rax), %edi
addl $0x3, %edi
shrl $0x3, %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
addl $0x7, %esi
shrl $0x3, %esi
movq -0xb8(%rbp), %rdx
callq 0xf000
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
addl $0x7, %ecx
shrl $0x3, %ecx
movl %ecx, %ecx
addq %rcx, %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edi
addl $0x3, %edi
shrl $0x2, %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
addl $0x3, %esi
shrl $0x3, %esi
movq -0xb8(%rbp), %rdx
callq 0xf000
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
addl $0x3, %ecx
shrl $0x3, %ecx
movl %ecx, %ecx
addq %rcx, %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jbe 0x7be6
movq -0x10(%rbp), %rax
movl (%rax), %edi
addl $0x1, %edi
shrl $0x2, %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
addl $0x3, %esi
shrl $0x2, %esi
movq -0xb8(%rbp), %rdx
callq 0xf000
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
addl $0x3, %ecx
shrl $0x2, %ecx
movl %ecx, %ecx
addq %rcx, %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edi
addl $0x1, %edi
shrl %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
addl $0x1, %esi
shrl $0x2, %esi
movq -0xb8(%rbp), %rdx
callq 0xf000
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
shrl $0x2, %ecx
movl %ecx, %ecx
addq %rcx, %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
jbe 0x7c65
movq -0x10(%rbp), %rax
movl (%rax), %edi
addl $0x0, %edi
shrl %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
addl $0x1, %esi
shrl %esi
movq -0xb8(%rbp), %rdx
callq 0xf000
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
addl $0x1, %ecx
shrl %ecx
movl %ecx, %ecx
addq %rcx, %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edi
addl $0x0, %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
addl $0x0, %esi
shrl %esi
movq -0xb8(%rbp), %rdx
callq 0xf000
movq -0x18(%rbp), %rcx
movl (%rcx), %ecx
addl $0x0, %ecx
shrl %ecx
movl %ecx, %ecx
addq %rcx, %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
jne 0x7cca
movq -0x80(%rbp), %rsi
leaq -0x78(%rbp), %rdi
callq 0xaaa0
cmpl $0x0, %eax
jne 0x7cca
movq -0x20(%rbp), %rax
movl $0x53, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
jne 0x7d27
leaq -0x78(%rbp), %rdi
leaq -0x78(%rbp), %rsi
addq $0x8, %rsi
movq -0x60(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq -0x20(%rbp), %r8
callq 0xf060
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
jne 0x7d25
movq -0x70(%rbp), %rax
cmpq -0x80(%rbp), %rax
je 0x7d25
movq -0x20(%rbp), %rax
movl $0x5b, 0x198(%rax)
jmp 0x7d27
leaq -0x60(%rbp), %rdi
callq 0xf0d0
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
jne 0x7d94
movq -0x10(%rbp), %rax
movl (%rax), %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x20(%rbp), %rdx
addq $0xb0, %rdx
addq $0x10, %rdx
callq 0x32e0
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rdi
callq 0x13b0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x7d92
movq -0x20(%rbp), %rax
movl $0x53, 0x198(%rax)
jmp 0x7d94
movq -0x20(%rbp), %rax
cmpl $0x0, 0x198(%rax)
jne 0x7e06
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x90(%rbp), %rax
jae 0x7dd3
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x7da9
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x78(%rbp), %rsi
movq -0x10(%rbp), %rax
movl (%rax), %edx
movq -0x18(%rbp), %rax
movl (%rax), %ecx
movq -0x20(%rbp), %r8
addq $0xb0, %r8
callq 0xf120
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x198(%rax)
leaq -0x78(%rbp), %rdi
callq 0xf0d0
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax,%rax)