// File: /workspace/github_c_makefile_star2_O0/Joy-Division[P]tools-zoe/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 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;

  if(lodepng_pixel_overflow(*w, *h, &state->info_png.color, &state->info_raw))
  {
    CERROR_RETURN(state->error, 92); /*overflow possible due to amount of pixels*/
  }

  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)
    {
      if(state->decoder.ignore_end) break; /*other errors may still happen though*/
      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)
    {
      if(state->decoder.ignore_end) break; /*other errors may still happen though*/
      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;
      size_t newsize;
      if(lodepng_addofl(oldsize, chunkLength, &newsize)) CERROR_BREAK(state->error, 95);
      if(!ucvector_resize(&idat, newsize)) 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(!state->decoder.ignore_critical && !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)
  {
    predict = lodepng_get_raw_size_idat(*w, *h, &state->info_png.color);
  }
  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);
    if(*w > 4) predict += lodepng_get_raw_size_idat((*w + 3) >> 3, (*h + 7) >> 3, color);
    predict += lodepng_get_raw_size_idat((*w + 3) >> 2, (*h + 3) >> 3, color);
    if(*w > 2) predict += lodepng_get_raw_size_idat((*w + 1) >> 2, (*h + 3) >> 2, color);
    predict += lodepng_get_raw_size_idat((*w + 1) >> 1, (*h + 1) >> 2, color);
    if(*w > 1) predict += lodepng_get_raw_size_idat((*w + 0) >> 1, (*h + 1) >> 1, color);
    predict += lodepng_get_raw_size_idat((*w + 0), (*h + 0) >> 1, color);
  }
  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, -0x88(%rbp)
movl $0x0, -0x8c(%rbp)
movl $0x1, -0x90(%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 0x6e70
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x74a8
jmp 0x7e07
movq -0x10(%rbp), %rax
movl (%rax), %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x20(%rbp), %rdx
addq $0xb8, %rdx
addq $0x10, %rdx
movq -0x20(%rbp), %rcx
addq $0x90, %rcx
callq 0xe2c0
cmpl $0x0, %eax
je 0x74eb
movq -0x20(%rbp), %rax
movl $0x5c, 0x1a0(%rax)
jmp 0x7e07
leaq -0x60(%rbp), %rdi
callq 0x8f10
movq -0x28(%rbp), %rax
addq $0x21, %rax
movq %rax, -0x40(%rbp)
xorl %eax, %eax
cmpb $0x0, -0x31(%rbp)
movb %al, -0xb9(%rbp)
jne 0x7524
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
setne %al
xorb $-0x1, %al
movb %al, -0xb9(%rbp)
movb -0xb9(%rbp), %al
testb $0x1, %al
jne 0x7533
jmp 0x7af1
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
addq $0xc, %rax
cmpq -0x30(%rbp), %rax
ja 0x7552
movq -0x40(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x7574
movq -0x20(%rbp), %rax
cmpl $0x0, 0x28(%rax)
je 0x7561
jmp 0x7af1
movq -0x20(%rbp), %rax
movl $0x1e, 0x1a0(%rax)
jmp 0x7af1
movq -0x40(%rbp), %rdi
callq 0x2890
movl %eax, -0x94(%rbp)
cmpl $0x7fffffff, -0x94(%rbp) # imm = 0x7FFFFFFF
jbe 0x75b1
movq -0x20(%rbp), %rax
cmpl $0x0, 0x28(%rax)
je 0x759e
jmp 0x7af1
movq -0x20(%rbp), %rax
movl $0x3f, 0x1a0(%rax)
jmp 0x7af1
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movl -0x94(%rbp), %ecx
addq %rcx, %rax
addq $0xc, %rax
cmpq -0x30(%rbp), %rax
ja 0x75e6
movq -0x40(%rbp), %rax
movl -0x94(%rbp), %ecx
addq %rcx, %rax
addq $0xc, %rax
cmpq -0x28(%rbp), %rax
jae 0x75f9
movq -0x20(%rbp), %rax
movl $0x40, 0x1a0(%rax)
jmp 0x7af1
movq -0x40(%rbp), %rdi
callq 0x2a20
movq %rax, -0xa0(%rbp)
movq -0x40(%rbp), %rdi
leaq 0xce47(%rip), %rsi      # 0x1445b
callq 0x2900
cmpb $0x0, %al
je 0x76db
movq -0x58(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
movl -0x94(%rbp), %eax
movl %eax, %esi
leaq -0xb0(%rbp), %rdx
callq 0xe410
cmpl $0x0, %eax
je 0x765f
movq -0x20(%rbp), %rax
movl $0x5f, 0x1a0(%rax)
jmp 0x7af1
movq -0xb0(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0xaa70
cmpl $0x0, %eax
jne 0x7687
movq -0x20(%rbp), %rax
movl $0x53, 0x1a0(%rax)
jmp 0x7af1
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl -0x94(%rbp), %ecx
cmpq %rcx, %rax
je 0x76cc
movq -0xa0(%rbp), %rax
movq -0x48(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x60(%rbp), %rax
movq -0xa8(%rbp), %rcx
addq -0x48(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x768f
movl $0x3, -0x90(%rbp)
jmp 0x7aa6
movq -0x40(%rbp), %rdi
leaq 0xcd7a(%rip), %rsi      # 0x14460
callq 0x2900
cmpb $0x0, %al
je 0x76f8
movb $0x1, -0x31(%rbp)
jmp 0x7aa4
movq -0x40(%rbp), %rdi
leaq 0xcd62(%rip), %rsi      # 0x14465
callq 0x2900
cmpb $0x0, %al
je 0x775c
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
addq $0x10, %rdi
movq -0xa0(%rbp), %rsi
movl -0x94(%rbp), %eax
movl %eax, %edx
callq 0xe450
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x774d
jmp 0x7af1
movl $0x2, -0x90(%rbp)
jmp 0x7aa2
movq -0x40(%rbp), %rdi
leaq 0xcd03(%rip), %rsi      # 0x1446a
callq 0x2900
cmpb $0x0, %al
je 0x77b6
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
addq $0x10, %rdi
movq -0xa0(%rbp), %rsi
movl -0x94(%rbp), %eax
movl %eax, %edx
callq 0xe5d0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x77b1
jmp 0x7af1
jmp 0x7aa0
movq -0x40(%rbp), %rdi
leaq 0xccae(%rip), %rsi      # 0x1446f
callq 0x2900
cmpb $0x0, %al
je 0x780c
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
movq -0xa0(%rbp), %rsi
movl -0x94(%rbp), %eax
movl %eax, %edx
callq 0xe730
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x7807
jmp 0x7af1
jmp 0x7a9e
movq -0x40(%rbp), %rdi
leaq 0xcc5d(%rip), %rsi      # 0x14474
callq 0x2900
cmpb $0x0, %al
je 0x786e
movq -0x20(%rbp), %rax
cmpl $0x0, 0x30(%rax)
je 0x7869
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
movq -0xa0(%rbp), %rsi
movl -0x94(%rbp), %eax
movl %eax, %edx
callq 0xe880
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x7867
jmp 0x7af1
jmp 0x7869
jmp 0x7a9c
movq -0x40(%rbp), %rdi
leaq 0xcc00(%rip), %rsi      # 0x14479
callq 0x2900
cmpb $0x0, %al
je 0x78d4
movq -0x20(%rbp), %rax
cmpl $0x0, 0x30(%rax)
je 0x78cf
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
movq -0x20(%rbp), %rsi
movq -0xa0(%rbp), %rdx
movl -0x94(%rbp), %eax
movl %eax, %ecx
callq 0xea40
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x78cd
jmp 0x7af1
jmp 0x78cf
jmp 0x7a9a
movq -0x40(%rbp), %rdi
leaq 0xcb9f(%rip), %rsi      # 0x1447e
callq 0x2900
cmpb $0x0, %al
je 0x793a
movq -0x20(%rbp), %rax
cmpl $0x0, 0x30(%rax)
je 0x7935
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
movq -0x20(%rbp), %rsi
movq -0xa0(%rbp), %rdx
movl -0x94(%rbp), %eax
movl %eax, %ecx
callq 0xec00
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x7933
jmp 0x7af1
jmp 0x7935
jmp 0x7a98
movq -0x40(%rbp), %rdi
leaq 0xcb3e(%rip), %rsi      # 0x14483
callq 0x2900
cmpb $0x0, %al
je 0x7990
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
movq -0xa0(%rbp), %rsi
movl -0x94(%rbp), %eax
movl %eax, %edx
callq 0xf020
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x798b
jmp 0x7af1
jmp 0x7a96
movq -0x40(%rbp), %rdi
leaq 0xcaed(%rip), %rsi      # 0x14488
callq 0x2900
cmpb $0x0, %al
je 0x79e6
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
movq -0xa0(%rbp), %rsi
movl -0x94(%rbp), %eax
movl %eax, %edx
callq 0xf0e0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x79e1
jmp 0x7af1
jmp 0x7a94
movq -0x20(%rbp), %rax
cmpl $0x0, 0x24(%rax)
jne 0x7a10
movq -0x40(%rbp), %rdi
callq 0x29a0
cmpb $0x0, %al
jne 0x7a10
movq -0x20(%rbp), %rax
movl $0x45, 0x1a0(%rax)
jmp 0x7af1
movl $0x1, -0x8c(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x34(%rax)
je 0x7a92
movq -0x20(%rbp), %rdi
addq $0xb8, %rdi
addq $0xb8, %rdi
movl -0x90(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
addq $0xb8, %rsi
addq $0xd0, %rsi
movl -0x90(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rsi
movq -0x40(%rbp), %rdx
callq 0x2bc0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
je 0x7a90
jmp 0x7af1
jmp 0x7a92
jmp 0x7a94
jmp 0x7a96
jmp 0x7a98
jmp 0x7a9a
jmp 0x7a9c
jmp 0x7a9e
jmp 0x7aa0
jmp 0x7aa2
jmp 0x7aa4
jmp 0x7aa6
movq -0x20(%rbp), %rax
cmpl $0x0, 0x20(%rax)
jne 0x7ad9
cmpl $0x0, -0x8c(%rbp)
jne 0x7ad9
movq -0x40(%rbp), %rdi
callq 0x2a40
cmpl $0x0, %eax
je 0x7ad7
movq -0x20(%rbp), %rax
movl $0x39, 0x1a0(%rax)
jmp 0x7af1
jmp 0x7ad9
cmpb $0x0, -0x31(%rbp)
jne 0x7aec
movq -0x40(%rbp), %rdi
callq 0x2b90
movq %rax, -0x40(%rbp)
jmp 0x7500
leaq -0x78(%rbp), %rdi
callq 0x8f10
movq -0x20(%rbp), %rax
cmpl $0x0, 0xc0(%rax)
jne 0x7b30
movq -0x10(%rbp), %rax
movl (%rax), %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x20(%rbp), %rdx
addq $0xb8, %rdx
addq $0x10, %rdx
callq 0xf1a0
movq %rax, -0x80(%rbp)
jmp 0x7c95
movq -0x20(%rbp), %rax
addq $0xb8, %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 0xf1a0
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x4, (%rax)
jbe 0x7bae
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 0xf1a0
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 0xf1a0
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jbe 0x7c0f
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 0xf1a0
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 0xf1a0
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
jbe 0x7c6d
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 0xf1a0
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 0xf1a0
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
jne 0x7cc2
movq -0x80(%rbp), %rsi
leaq -0x78(%rbp), %rdi
callq 0xaac0
cmpl $0x0, %eax
jne 0x7cc2
movq -0x20(%rbp), %rax
movl $0x53, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
jne 0x7d1f
leaq -0x78(%rbp), %rdi
leaq -0x78(%rbp), %rsi
addq $0x8, %rsi
movq -0x60(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq -0x20(%rbp), %r8
callq 0xf200
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
jne 0x7d1d
movq -0x70(%rbp), %rax
cmpq -0x80(%rbp), %rax
je 0x7d1d
movq -0x20(%rbp), %rax
movl $0x5b, 0x1a0(%rax)
jmp 0x7d1f
leaq -0x60(%rbp), %rdi
callq 0xf270
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
jne 0x7d8c
movq -0x10(%rbp), %rax
movl (%rax), %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x20(%rbp), %rdx
addq $0xb8, %rdx
addq $0x10, %rdx
callq 0x3330
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0x13a0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x7d8a
movq -0x20(%rbp), %rax
movl $0x53, 0x1a0(%rax)
jmp 0x7d8c
movq -0x20(%rbp), %rax
cmpl $0x0, 0x1a0(%rax)
jne 0x7dfe
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x88(%rbp), %rax
jae 0x7dcb
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 0x7da1
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 $0xb8, %r8
callq 0xf2c0
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1a0(%rax)
leaq -0x78(%rbp), %rdi
callq 0xf270
addq $0xc0, %rsp
popq %rbp
retq