// File: /workspace/github_cpp_makefile_star2_O1/cloudinary[P]fuif/./import/read_jpeg.h
// Function: read_JPEG_file(char const*)
Image read_JPEG_file(const char *input_image) {

  FILE *fp = fopen(input_image,"rb");
  if (!fp) return Image();

  struct jpeg_decompress_struct cinfo;

  jpegErrorManager jerr;
  cinfo.err = jpeg_std_error(&jerr.pub);
  jerr.pub.error_exit = jpegErrorExit;
  /* Establish the setjmp return context for my_error_exit to use. */
  if (setjmp(jerr.setjmp_buffer)) {
    /* If we get here, the JPEG code has signaled an error. */
    v_printf(10, "libjpeg: %s\n",jpegLastErrorMsg);
    jpeg_destroy_decompress(&cinfo);
    fclose(fp);
    return Image();
  }

  jpeg_create_decompress(&cinfo);
  jpeg_stdio_src(&cinfo, fp);
  (void) jpeg_read_header(&cinfo, TRUE);


  jvirt_barray_ptr *coeffs_array = jpeg_read_coefficients(&cinfo);

  int nbcomp = cinfo.num_components;
  int w = cinfo.image_width;
  int h = cinfo.image_height;
  int bitdepth = cinfo.data_precision;

  Image image;
  image.w = w;
  image.h = h;
  image.nb_channels = nbcomp;
  image.real_nb_channels = nbcomp;
  image.minval = 0;
  image.maxval = (1<<bitdepth)-1;

  if (nbcomp == 4) image.colormodel = 16; // CMYK

  Transform subsampling(TRANSFORM_ChromaSubsample);
  int max_factor_h = 1;
  int max_factor_v = 1;
  for (int ci=0; ci < nbcomp; ci++) {
      jpeg_component_info* compptr = cinfo.comp_info + ci;
      int srh = compptr->h_samp_factor;
      int srv = compptr->v_samp_factor;
      if (srh > max_factor_h) max_factor_h = srh;
      if (srv > max_factor_v) max_factor_v = srv;
  }
  std::vector<int> & p = subsampling.parameters;
  for (int ci=0; ci < nbcomp; ci++) {
      jpeg_component_info* compptr = cinfo.comp_info + ci;
      int srh = compptr->h_samp_factor;
      int srv = compptr->v_samp_factor;
      if (srh < max_factor_h || srv < max_factor_v) {
         p.push_back(ci);
         p.push_back(ci);
         p.push_back(max_factor_h/srh);
         p.push_back(max_factor_v/srv);
      }
  }
  if (p.size() >= 8) {
    if (p[2] == p[6] && p[3] == p[7] && p[4] == p[1]+1) {
        p[1] = p[4];
        p.erase(p.begin()+4, p.end());
    }
    if (p.size() == 4 && p[0] == 1 && p[1] == 2) {
        if (p[2] == 2 && p[3] == 2) { p[0] = 0; p.erase(p.begin()+1, p.end()); } // 4:2:0
    }
  }

  if (cinfo.jpeg_color_space == JCS_YCbCr ||
      cinfo.jpeg_color_space == JCS_YCCK) image.transform.push_back(Transform(TRANSFORM_YCbCr));

  if (p.size()) image.transform.push_back(subsampling);

  image.transform.push_back(Transform(TRANSFORM_DCT));

  image.transform.push_back(Transform(TRANSFORM_QUANTIZE));

  std::vector<std::vector<int>> ordering;
  std::vector<int> comp;
  std::vector<int> coeff;
  default_DCT_scanscript(nbcomp,ordering,comp,coeff);

  for (int i=0; i < 64*nbcomp; i++) {
    int bi=0;
    for (; bi<64 ; bi++) if (coeff[i]==jpeg_zigzag[bi]) break;
    int ci = comp[i];
    jpeg_component_info* compptr = cinfo.comp_info + ci;
    int hib = compptr->height_in_blocks;
    int wib = compptr->width_in_blocks;
    int q = compptr->quant_table->quantval[bi];
    v_printf(5,"Quantization for component %i, coefficient %i: %i\n",comp[i],coeff[i],q);

    Channel c(wib,hib,LARGEST_VAL,SMALLEST_VAL);
    c.q = q;
    c.component = ci;
    c.hshift = 3 + (compptr->h_samp_factor < max_factor_h ? 1 : 0);
    c.vshift = 3 + (compptr->v_samp_factor < max_factor_v ? 1 : 0);
    c.hcshift = dct_cshifts[coeff[i]];
    c.vcshift = dct_cshifts[coeff[i]];
    int zeroes=0;
    int nonzeroes=0;
    for (int by=0; by < hib; by++) {
      JBLOCKARRAY buffer = (cinfo.mem->access_virt_barray)((j_common_ptr)&cinfo, coeffs_array[ci], by, (JDIMENSION) 1, FALSE);
      for (int bx=0; bx < wib; bx++) {
        JCOEFPTR blockptr = buffer[0][bx];
        c.value(by,bx) = blockptr[bi];
        if (c.value(by,bx) > c.maxval) c.maxval = c.value(by,bx);
        if (c.value(by,bx) < c.minval) c.minval = c.value(by,bx);
        if (c.value(by,bx)) nonzeroes++; else zeroes++;
      }
    }
    v_printf(10,"Comp %i, coeff %i (natural %i) : %f %% zeroes (%i zeroes, %i nonzeroes)\n",ci,coeff[i],bi,100.0*zeroes/(zeroes+nonzeroes),zeroes,nonzeroes);
    image.channel.push_back(c);
  }

  jpeg_finish_decompress( &cinfo );
  jpeg_destroy_decompress( &cinfo );
  fclose(fp);

  image.error = false;


  return image;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x538, %rsp            # imm = 0x538
movq %rsi, %rax
movq %rdi, %r15
leaq 0x81f6(%rip), %rsi      # 0x26a71
movq %rax, %rdi
callq 0x3370
testq %rax, %rax
je 0x1e922
movq %rax, %r12
leaq 0x3c8(%rsp), %r14
movq %r14, %rdi
callq 0x3080
movq %rax, 0x138(%rsp)
leaq -0x73(%rip), %rax       # 0x1e83b
movq %rax, (%r14)
leaq 0x470(%rsp), %rdi
callq 0x3430
movabsq $0xa00000001, %rbx      # imm = 0xA00000001
testl %eax, %eax
je 0x1e98f
leaq 0x8890(%rip), %rsi      # 0x27167
leaq 0x13f52(%rip), %rdx     # 0x32830
xorl %ebp, %ebp
movl %ebp, %eax
movl $0xa, %edi
callq 0x1d0d6
leaq 0x138(%rsp), %rdi
callq 0x30d0
movq %r12, %rdi
callq 0x32a0
pxor %xmm0, %xmm0
movdqu %xmm0, (%r15)
movdqu %xmm0, 0x10(%r15)
movdqu %xmm0, 0x20(%r15)
movl %ebp, %eax
movq %rax, 0x30(%r15)
movq %rbx, 0x38(%r15)
jmp 0x1e94b
pxor %xmm0, %xmm0
movdqu %xmm0, 0x20(%r15)
movdqu %xmm0, 0x10(%r15)
movdqu %xmm0, (%r15)
xorl %eax, %eax
movq %rax, 0x30(%r15)
movabsq $0xa00000001, %rcx      # imm = 0xA00000001
movq %rcx, 0x38(%r15)
movdqu %xmm0, 0x40(%r15)
movdqu %xmm0, 0x50(%r15)
movl $0xff, 0x60(%r15)
movdqu %xmm0, 0x78(%r15)
movq %rax, 0x88(%r15)
movdqu %xmm0, 0x64(%r15)
movb $0x1, 0xa8(%r15)
movq %r15, %rax
addq $0x538, %rsp            # imm = 0x538
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x138(%rsp), %r14
movl $0x290, %edx            # imm = 0x290
movq %r14, %rdi
movl $0x50, %esi
callq 0x3570
movq %r14, %rdi
movq %r12, 0x118(%rsp)
movq %r12, %rsi
callq 0x3470
movq %r14, %rdi
movl $0x1, %esi
callq 0x34d0
movq %r14, %rdi
callq 0x30b0
movq %rax, 0x110(%rsp)
movl 0x38(%r14), %eax
movl %eax, %r13d
movb 0x128(%r14), %cl
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
shll %cl, %eax
xorl %edx, %edx
movq %rdx, 0x30(%r15)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x20(%r15)
movdqu %xmm0, 0x10(%r15)
movdqu %xmm0, (%r15)
movq %rbx, 0x38(%r15)
movdqu %xmm0, 0x50(%r15)
movdqu %xmm0, 0x40(%r15)
movl $0xff, 0x60(%r15)
movq %rdx, 0x88(%r15)
movdqu %xmm0, 0x78(%r15)
movdqu %xmm0, 0x64(%r15)
movb $0x1, 0xa8(%r15)
movq 0x30(%r14), %rdx
movq %rdx, 0x30(%r15)
movl %r13d, 0x64(%r15)
movl %r13d, 0x68(%r15)
movl $0x0, 0x5c(%r15)
notl %eax
movl %eax, 0x60(%r15)
cmpq $0x4, %r13
jne 0x1ea68
movl $0x10, 0x70(%r15)
movl $0x3, 0x10(%rsp)
movdqu %xmm0, 0x18(%rsp)
movq $0x0, 0x28(%rsp)
testl %r13d, %r13d
movq %r15, 0x80(%rsp)
jle 0x1ead8
movq 0x268(%rsp), %rax
movq %r13, %rcx
shlq $0x5, %rcx
leaq (%rcx,%rcx,2), %rcx
movdqa 0x6779(%rip), %xmm0     # 0x25220
xorl %edx, %edx
movq 0x8(%rax,%rdx), %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm0, %xmm1
pand %xmm1, %xmm2
pandn %xmm0, %xmm1
por %xmm2, %xmm1
movq %rdx, %rsi
addq $0x60, %rsi
movdqa %xmm1, %xmm0
movq %rsi, %rdx
cmpq %rsi, %rcx
jne 0x1eaa9
jmp 0x1eae0
movdqa 0x6740(%rip), %xmm1     # 0x25220
movdqa %xmm1, 0x120(%rsp)
movl $0x0, 0x38(%rsp)
testl %r13d, %r13d
jle 0x1ec13
leaq 0x18(%rsp), %r14
movdqa 0x120(%rsp), %xmm0
movd %xmm0, %ebp
pshufd $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movd %xmm0, %r12d
xorl %eax, %eax
movq 0x268(%rsp), %rcx
movslq %eax, %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x5, %rdx
movl 0x8(%rcx,%rdx), %r15d
movl 0xc(%rcx,%rdx), %ebx
cmpl %ebp, %r15d
jl 0x1eb42
cmpl %r12d, %ebx
jge 0x1ebfe
movq 0x20(%rsp), %rsi
cmpq 0x28(%rsp), %rsi
je 0x1eb5b
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rsp)
jmp 0x1eb68
movq %r14, %rdi
leaq 0x38(%rsp), %rdx
callq 0xfa3c
movq 0x20(%rsp), %rsi
cmpq 0x28(%rsp), %rsi
je 0x1eb85
movl 0x38(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rsp)
jmp 0x1eb92
movq %r14, %rdi
leaq 0x38(%rsp), %rdx
callq 0xfa3c
movl %ebp, %eax
cltd
idivl %r15d
movl %eax, 0xb0(%rsp)
movq 0x20(%rsp), %rsi
cmpq 0x28(%rsp), %rsi
je 0x1ebb8
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rsp)
jmp 0x1ebc8
movq %r14, %rdi
leaq 0xb0(%rsp), %rdx
callq 0xf6da
movl %r12d, %eax
cltd
idivl %ebx
movl %eax, 0xb0(%rsp)
movq 0x20(%rsp), %rsi
cmpq 0x28(%rsp), %rsi
je 0x1ebee
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rsp)
jmp 0x1ebfe
movq %r14, %rdi
leaq 0xb0(%rsp), %rdx
callq 0xf6da
movl 0x38(%rsp), %edx
incl %edx
movl %edx, 0x38(%rsp)
movl %edx, %eax
cmpl %r13d, %edx
jl 0x1eb18
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
cmpq $0x1c, %rdx
movq 0x80(%rsp), %r15
jbe 0x1ecc4
movl 0x8(%rax), %edx
cmpl 0x18(%rax), %edx
jne 0x1ec75
movl 0xc(%rax), %edx
cmpl 0x1c(%rax), %edx
jne 0x1ec75
movl 0x4(%rax), %edx
movl 0x10(%rax), %esi
incl %edx
cmpl %edx, %esi
jne 0x1ec75
leaq 0x10(%rax), %rdx
movl %esi, 0x4(%rax)
cmpq %rcx, %rdx
je 0x1ec75
movq 0x20(%rsp), %rsi
movq %rsi, %rdi
subq %rcx, %rdi
addq %rdi, %rdx
cmpq %rdx, %rsi
je 0x1ec75
movq %rdx, 0x20(%rsp)
movq 0x20(%rsp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
cmpq $0x10, %rdx
jne 0x1ecc4
cmpl $0x1, (%rax)
jne 0x1ecc4
cmpl $0x2, 0x4(%rax)
jne 0x1ecc4
cmpl $0x2, 0x8(%rax)
jne 0x1ecc4
cmpl $0x2, 0xc(%rax)
jne 0x1ecc4
movl $0x0, (%rax)
addq $0x4, %rax
cmpq %rcx, %rax
je 0x1ecc4
movq 0x20(%rsp), %rdx
movq %rdx, %rsi
subq %rcx, %rsi
addq %rsi, %rax
cmpq %rax, %rdx
je 0x1ecc4
movq %rax, 0x20(%rsp)
movl 0x174(%rsp), %eax
cmpl $0x5, %eax
je 0x1ecd5
cmpl $0x3, %eax
jne 0x1ed11
leaq 0x18(%r15), %rdi
leaq 0x38(%rsp), %rsi
movl $0x0, (%rsi)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rsi)
movq $0x0, 0x18(%rsi)
callq 0x241d4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1ed11
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
je 0x1ed2b
leaq 0x18(%r15), %rdi
leaq 0x10(%rsp), %rsi
callq 0x63e4
leaq 0x18(%r15), %r14
leaq 0x38(%rsp), %rsi
movl $0x4, (%rsi)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rsi)
movq $0x0, 0x18(%rsi)
movq %r14, %rdi
callq 0x241d4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1ed6a
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0x38(%rsp), %rsi
movl $0x5, (%rsi)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rsi)
movq $0x0, 0x18(%rsi)
movq %r14, %rdi
callq 0x241d4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1eda5
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movl %r13d, %edi
xorl %eax, %eax
leaq 0xb0(%rsp), %rsi
movq %rax, 0x10(%rsi)
pxor %xmm0, %xmm0
movdqa %xmm0, (%rsi)
leaq 0xd0(%rsp), %rdx
movq %rax, 0x10(%rdx)
movdqa %xmm0, (%rdx)
leaq 0x90(%rsp), %rcx
movq %rax, 0x10(%rcx)
movdqa %xmm0, (%rcx)
callq 0x78bc
testl %r13d, %r13d
jle 0x1f16d
movq 0x110(%rsp), %rax
movq %rax, 0x108(%rsp)
movl %r13d, %eax
shll $0x6, %eax
leaq 0x5c(%rsp), %r12
cmpl $0x2, %eax
movl $0x1, %ecx
cmovll %ecx, %eax
movq %rax, 0x100(%rsp)
xorl %ecx, %ecx
movl %ecx, %eax
leaq 0x670b(%rip), %rbx      # 0x25530
movb %cl, 0xb(%rsp)
movq %rax, %rcx
movq 0x90(%rsp), %rax
movq %rcx, 0x78(%rsp)
movl (%rax,%rcx,4), %eax
xorl %ecx, %ecx
cmpl (%rbx,%rcx,4), %eax
je 0x1ee59
movq %rcx, %rdx
incq %rdx
movq %rdx, %rcx
cmpq $0x40, %rdx
jne 0x1ee3e
movl $0x40, %eax
jmp 0x1ee5b
movl %ecx, %eax
movq 0xd0(%rsp), %rcx
movq 0x78(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
movq 0x268(%rsp), %rbx
movl %ecx, 0x34(%rsp)
movslq %ecx, %rsi
leaq (%rsi,%rsi,2), %rbp
shlq $0x5, %rbp
movl 0x1c(%rbx,%rbp), %r14d
movl 0x20(%rbx,%rbp), %r15d
movq 0x50(%rbx,%rbp), %rcx
movl %eax, %eax
movq %rax, 0xa8(%rsp)
movzwl (%rcx,%rax,2), %r13d
movq 0x90(%rsp), %rax
movl (%rax,%rdx,4), %ecx
movq %rsi, 0xf8(%rsp)
movl %esi, %edx
movl $0x5, %edi
leaq 0x82b3(%rip), %rsi      # 0x27174
movl %r13d, %r8d
movb 0xb(%rsp), %al
callq 0x1d0d6
movl %r14d, %eax
imull %r15d, %eax
movslq %eax, %rsi
movw $0x0, 0xc(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0xc(%rsp), %rdx
leaq 0xf(%rsp), %rcx
callq 0xe312
addq %rbp, %rbx
movl %r14d, 0x50(%rsp)
movl %r15d, 0x54(%rsp)
movl $0x80017fff, 0x58(%rsp) # imm = 0x80017FFF
movl $0x1, 0x60(%rsp)
leaq 0x64(%rsp), %rax
pxor %xmm0, %xmm0
movdqu %xmm0, (%rax)
movw $0x7fff, 0x5c(%rsp)     # imm = 0x7FFF
movl %r13d, 0x60(%rsp)
movl 0x34(%rsp), %eax
movl %eax, 0x74(%rsp)
movq 0x8(%rbx), %xmm0
movdqa 0x120(%rsp), %xmm1
pcmpgtd %xmm0, %xmm1
movdqa 0x7fb6(%rip), %xmm0     # 0x26f00
psubd %xmm1, %xmm0
movq %xmm0, 0x64(%rsp)
movq 0x90(%rsp), %rax
movq 0x78(%rsp), %rsi
movslq (%rax,%rsi,4), %rcx
leaq 0x66c4(%rip), %rdx      # 0x25630
movl (%rdx,%rcx,4), %ecx
movl %ecx, 0x6c(%rsp)
movslq (%rax,%rsi,4), %rax
movl (%rdx,%rax,4), %eax
movl %eax, 0x70(%rsp)
testl %r15d, %r15d
jle 0x1f0c2
movl %r15d, 0x8c(%rsp)
movl %r14d, %r15d
movl %r14d, %ebx
shlq $0x6, %rbx
xorl %r13d, %r13d
movq 0xa8(%rsp), %rax
addq %rax, %rax
movq %rax, 0xf0(%rsp)
movl %r13d, %r14d
movl %r13d, %ebp
movq 0x140(%rsp), %rax
movq 0x108(%rsp), %rcx
movq 0xf8(%rsp), %rdx
movq (%rcx,%rdx,8), %rsi
leaq 0x138(%rsp), %rdi
movl %r13d, %edx
movl $0x1, %ecx
xorl %r8d, %r8d
callq *0x40(%rax)
testl %r15d, %r15d
jle 0x1f0a5
movq (%rax), %rax
addq 0xf0(%rsp), %rax
movslq 0x50(%rsp), %rdx
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rcx
subq %rsi, %rcx
sarq %rcx
movslq %r13d, %rdi
imulq %rdx, %rdi
leaq (%rsi,%rdi,2), %rdx
xorl %esi, %esi
movl %esi, %r8d
movq %rdi, %rsi
movq %r8, %rdi
movl %r14d, %r8d
movl %ebp, %r9d
cmpq %rsi, %rcx
movq %r12, %r10
cmovaq %rdx, %r10
movzwl (%rax,%rdi,2), %r11d
movw %r11w, (%r10)
cmpw 0x5a(%rsp), %r11w
jle 0x1f04d
movw %r11w, 0x5a(%rsp)
movzwl (%r10), %r11d
cmpw 0x58(%rsp), %r11w
jge 0x1f05f
movw %r11w, 0x58(%rsp)
xorl %r11d, %r11d
xorl %ebp, %ebp
cmpw $0x0, (%r10)
setne %r10b
sete %r14b
movb %r14b, %bpl
movl %r9d, %r14d
addl %ebp, %r14d
movb %r10b, %r11b
movl %r8d, %r10d
addl %r11d, %r10d
movq %rdi, %r11
addq $0x40, %r11
incq %rsi
addq $0x2, %rdx
movl %r14d, %r9d
movl %r14d, %ebp
movl %r10d, %r8d
movl %r10d, %r14d
movq %r11, %rdi
cmpq %r11, %rbx
jne 0x1f02c
movl %r14d, %eax
movl %ebp, %r9d
movl %r13d, %ecx
incl %ecx
movl %ecx, %r13d
cmpl 0x8c(%rsp), %ecx
jne 0x1efb5
jmp 0x1f0c8
xorl %r9d, %r9d
movl %r9d, %eax
movq 0xa8(%rsp), %rcx
movl %ecx, %r8d
movq 0x90(%rsp), %rcx
movq 0x78(%rsp), %rdx
movl (%rcx,%rdx,4), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %r9d, %xmm0
mulsd 0x7355(%rip), %xmm0     # 0x26448
movl %r9d, %edx
movl %eax, %esi
addl %esi, %edx
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
divsd %xmm1, %xmm0
movq %rsp, %rdx
movl %eax, (%rdx)
movl $0xa, %edi
leaq 0x8091(%rip), %rsi      # 0x271a7
movl 0x34(%rsp), %edx
movb $0x1, %al
movq 0x80(%rsp), %r15
callq 0x1d0d6
leaq 0x38(%rsp), %rsi
movq %r15, %rdi
callq 0xde30
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
leaq 0x63eb(%rip), %rbx      # 0x25530
je 0x1f154
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x78(%rsp), %rcx
incq %rcx
movq %rcx, %rax
cmpq 0x100(%rsp), %rcx
jne 0x1ee29
leaq 0x138(%rsp), %rdi
callq 0x3340
leaq 0x138(%rsp), %rdi
callq 0x30d0
movq 0x118(%rsp), %rdi
callq 0x32a0
movb $0x0, 0xa8(%r15)
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x1f1b9
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x1f1d6
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0xb0(%rsp), %rdi
callq 0xde8a
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1e97a
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
jmp 0x1e97a
jmp 0x1f22f
jmp 0x1f209
jmp 0x1f209
movq %rax, %r14
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1f29e
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
jmp 0x1f29e
jmp 0x1f236
jmp 0x1f22f
jmp 0x1f22f
movq %rax, %r14
jmp 0x1f29e
jmp 0x1f236
movq %rax, %r14
jmp 0x1f257
jmp 0x1f23d
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1f257
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x1f274
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x1f291
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0xb0(%rsp), %rdi
callq 0xde8a
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1f2b5
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x80(%rsp), %rdi
callq 0xded8
movq %r14, %rdi
callq 0x35a0