// File: phillip-h[P]fractal-gen/lodepng.cpp
// Function: getPixelColorsRGBA8(unsigned char*, unsigned long, unsigned int, unsigned char const*, LodePNGColorMode const*)
static void getPixelColorsRGBA8(unsigned char* buffer, size_t numpixels,
                                unsigned has_alpha, const unsigned char* in,
                                const LodePNGColorMode* mode)
{
  unsigned num_channels = has_alpha ? 4 : 3;
  size_t i;
  if(mode->colortype == LCT_GREY)
  {
    if(mode->bitdepth == 8)
    {
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        buffer[0] = buffer[1] = buffer[2] = in[i];
        if(has_alpha) buffer[3] = mode->key_defined && in[i] == mode->key_r ? 0 : 255;
      }
    }
    else if(mode->bitdepth == 16)
    {
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        buffer[0] = buffer[1] = buffer[2] = in[i * 2];
        if(has_alpha) buffer[3] = mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r ? 0 : 255;
      }
    }
    else
    {
      unsigned highest = ((1U << mode->bitdepth) - 1U); /*highest possible value for this bit depth*/
      size_t j = 0;
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        unsigned value = readBitsFromReversedStream(&j, in, mode->bitdepth);
        buffer[0] = buffer[1] = buffer[2] = (value * 255) / highest;
        if(has_alpha) buffer[3] = mode->key_defined && value == mode->key_r ? 0 : 255;
      }
    }
  }
  else if(mode->colortype == LCT_RGB)
  {
    if(mode->bitdepth == 8)
    {
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        buffer[0] = in[i * 3 + 0];
        buffer[1] = in[i * 3 + 1];
        buffer[2] = in[i * 3 + 2];
        if(has_alpha) buffer[3] = mode->key_defined && buffer[0] == mode->key_r
           && buffer[1]== mode->key_g && buffer[2] == mode->key_b ? 0 : 255;
      }
    }
    else
    {
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        buffer[0] = in[i * 6 + 0];
        buffer[1] = in[i * 6 + 2];
        buffer[2] = in[i * 6 + 4];
        if(has_alpha) buffer[3] = mode->key_defined
           && 256U * in[i * 6 + 0] + in[i * 6 + 1] == mode->key_r
           && 256U * in[i * 6 + 2] + in[i * 6 + 3] == mode->key_g
           && 256U * in[i * 6 + 4] + in[i * 6 + 5] == mode->key_b ? 0 : 255;
      }
    }
  }
  else if(mode->colortype == LCT_PALETTE)
  {
    unsigned index;
    size_t j = 0;
    for(i = 0; i != numpixels; ++i, buffer += num_channels)
    {
      if(mode->bitdepth == 8) index = in[i];
      else index = readBitsFromReversedStream(&j, in, mode->bitdepth);

      if(index >= mode->palettesize)
      {
        /*This is an error according to the PNG spec, but most PNG decoders make it black instead.
        Done here too, slightly faster due to no error handling needed.*/
        buffer[0] = buffer[1] = buffer[2] = 0;
        if(has_alpha) buffer[3] = 255;
      }
      else
      {
        buffer[0] = mode->palette[index * 4 + 0];
        buffer[1] = mode->palette[index * 4 + 1];
        buffer[2] = mode->palette[index * 4 + 2];
        if(has_alpha) buffer[3] = mode->palette[index * 4 + 3];
      }
    }
  }
  else if(mode->colortype == LCT_GREY_ALPHA)
  {
    if(mode->bitdepth == 8)
    {
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        buffer[0] = buffer[1] = buffer[2] = in[i * 2 + 0];
        if(has_alpha) buffer[3] = in[i * 2 + 1];
      }
    }
    else
    {
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        buffer[0] = buffer[1] = buffer[2] = in[i * 4 + 0];
        if(has_alpha) buffer[3] = in[i * 4 + 2];
      }
    }
  }
  else if(mode->colortype == LCT_RGBA)
  {
    if(mode->bitdepth == 8)
    {
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        buffer[0] = in[i * 4 + 0];
        buffer[1] = in[i * 4 + 1];
        buffer[2] = in[i * 4 + 2];
        if(has_alpha) buffer[3] = in[i * 4 + 3];
      }
    }
    else
    {
      for(i = 0; i != numpixels; ++i, buffer += num_channels)
      {
        buffer[0] = in[i * 8 + 0];
        buffer[1] = in[i * 8 + 2];
        buffer[2] = in[i * 8 + 4];
        if(has_alpha) buffer[3] = in[i * 8 + 6];
      }
    }
  }
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movl 0x54(%rsp), %edx
movl $0x3, %eax
movl $0x4, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, 0x3c(%rsp)
movq 0x40(%rsp), %rax
cmpl $0x0, (%rax)
jne 0xad34
movq 0x40(%rsp), %rax
cmpl $0x8, 0x4(%rax)
jne 0xab5b
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xab56
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x60(%rsp), %rax
movb %cl, (%rax)
cmpl $0x0, 0x54(%rsp)
je 0xab2e
movq 0x40(%rsp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x18(%rcx)
movb %al, 0xf(%rsp)
je 0xab13
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movq 0x40(%rsp), %rcx
cmpl 0x1c(%rcx), %eax
sete %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %dl
movl $0xff, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movb %al, %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xab30
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xaaaa
jmp 0xad2f
movq 0x40(%rsp), %rax
cmpl $0x10, 0x4(%rax)
jne 0xac41
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xac3c
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq %rcx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x60(%rsp), %rax
movb %cl, (%rax)
cmpl $0x0, 0x54(%rsp)
je 0xac14
movq 0x40(%rsp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x18(%rcx)
movb %al, 0xe(%rsp)
je 0xabf9
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq %rcx
movzbl (%rax,%rcx), %eax
shll $0x8, %eax
movq 0x48(%rsp), %rcx
movq 0x30(%rsp), %rdx
shlq %rdx
movzbl 0x1(%rcx,%rdx), %ecx
addl %ecx, %eax
movq 0x40(%rsp), %rcx
cmpl 0x1c(%rcx), %eax
sete %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %dl
movl $0xff, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movb %al, %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xac16
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xab73
jmp 0xad2d
movq 0x40(%rsp), %rax
movl 0x4(%rax), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, 0x2c(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xad2b
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, %edx
leaq 0x20(%rsp), %rdi
callq 0x15f70
movl %eax, 0x1c(%rsp)
imull $0xff, 0x1c(%rsp), %eax
xorl %edx, %edx
divl 0x2c(%rsp)
movb %al, %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x60(%rsp), %rax
movb %cl, (%rax)
cmpl $0x0, 0x54(%rsp)
je 0xad03
movq 0x40(%rsp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x18(%rcx)
movb %al, 0xd(%rsp)
je 0xace8
movl 0x1c(%rsp), %eax
movq 0x40(%rsp), %rcx
cmpl 0x1c(%rcx), %eax
sete %al
movb %al, 0xd(%rsp)
movb 0xd(%rsp), %dl
movl $0xff, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movb %al, %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xad05
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xac69
jmp 0xad2d
jmp 0xad2f
jmp 0xb3cf
movq 0x40(%rsp), %rax
cmpl $0x2, (%rax)
jne 0xafb9
movq 0x40(%rsp), %rax
cmpl $0x8, 0x4(%rax)
jne 0xae56
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xae51
movq 0x48(%rsp), %rax
imulq $0x3, 0x30(%rsp), %rcx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, (%rax)
movq 0x48(%rsp), %rax
imulq $0x3, 0x30(%rsp), %rcx
movb 0x1(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x48(%rsp), %rax
imulq $0x3, 0x30(%rsp), %rcx
movb 0x2(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
cmpl $0x0, 0x54(%rsp)
je 0xae29
movq 0x40(%rsp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x18(%rcx)
movb %al, 0xc(%rsp)
je 0xae0e
movq 0x60(%rsp), %rax
movzbl (%rax), %ecx
movq 0x40(%rsp), %rdx
xorl %eax, %eax
cmpl 0x1c(%rdx), %ecx
movb %al, 0xc(%rsp)
jne 0xae0e
movq 0x60(%rsp), %rax
movzbl 0x1(%rax), %ecx
movq 0x40(%rsp), %rdx
xorl %eax, %eax
cmpl 0x20(%rdx), %ecx
movb %al, 0xc(%rsp)
jne 0xae0e
movq 0x60(%rsp), %rax
movzbl 0x2(%rax), %eax
movq 0x40(%rsp), %rcx
cmpl 0x24(%rcx), %eax
sete %al
movb %al, 0xc(%rsp)
movb 0xc(%rsp), %dl
movl $0xff, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movb %al, %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xae2b
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xad5a
jmp 0xafb4
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xafb2
movq 0x48(%rsp), %rax
imulq $0x6, 0x30(%rsp), %rcx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, (%rax)
movq 0x48(%rsp), %rax
imulq $0x6, 0x30(%rsp), %rcx
movb 0x2(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x48(%rsp), %rax
imulq $0x6, 0x30(%rsp), %rcx
movb 0x4(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
cmpl $0x0, 0x54(%rsp)
je 0xaf8a
movq 0x40(%rsp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x18(%rcx)
movb %al, 0xb(%rsp)
je 0xaf6f
movq 0x48(%rsp), %rax
imulq $0x6, 0x30(%rsp), %rcx
movzbl (%rax,%rcx), %ecx
shll $0x8, %ecx
movq 0x48(%rsp), %rax
imulq $0x6, 0x30(%rsp), %rdx
movzbl 0x1(%rax,%rdx), %eax
addl %eax, %ecx
movq 0x40(%rsp), %rdx
xorl %eax, %eax
cmpl 0x1c(%rdx), %ecx
movb %al, 0xb(%rsp)
jne 0xaf6f
movq 0x48(%rsp), %rax
imulq $0x6, 0x30(%rsp), %rcx
movzbl 0x2(%rax,%rcx), %ecx
shll $0x8, %ecx
movq 0x48(%rsp), %rax
imulq $0x6, 0x30(%rsp), %rdx
movzbl 0x3(%rax,%rdx), %eax
addl %eax, %ecx
movq 0x40(%rsp), %rdx
xorl %eax, %eax
cmpl 0x20(%rdx), %ecx
movb %al, 0xb(%rsp)
jne 0xaf6f
movq 0x48(%rsp), %rax
imulq $0x6, 0x30(%rsp), %rcx
movzbl 0x4(%rax,%rcx), %eax
shll $0x8, %eax
movq 0x48(%rsp), %rcx
imulq $0x6, 0x30(%rsp), %rdx
movzbl 0x5(%rcx,%rdx), %ecx
addl %ecx, %eax
movq 0x40(%rsp), %rcx
cmpl 0x24(%rcx), %eax
sete %al
movb %al, 0xb(%rsp)
movb 0xb(%rsp), %dl
movl $0xff, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movb %al, %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xaf8c
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xae5f
jmp 0xafb4
jmp 0xb3cd
movq 0x40(%rsp), %rax
cmpl $0x3, (%rax)
jne 0xb118
movq $0x0, 0x10(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xb113
movq 0x40(%rsp), %rax
cmpl $0x8, 0x4(%rax)
jne 0xb008
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, 0x18(%rsp)
jmp 0xb025
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, %edx
leaq 0x10(%rsp), %rdi
callq 0x15f70
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %eax
movq 0x40(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jb 0xb063
movq 0x60(%rsp), %rax
movb $0x0, 0x2(%rax)
movq 0x60(%rsp), %rax
movb $0x0, 0x1(%rax)
movq 0x60(%rsp), %rax
movb $0x0, (%rax)
cmpl $0x0, 0x54(%rsp)
je 0xb05e
movq 0x60(%rsp), %rax
movb $-0x1, 0x3(%rax)
jmp 0xb0eb
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x18(%rsp), %ecx
shll $0x2, %ecx
addl $0x0, %ecx
movl %ecx, %ecx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, (%rax)
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x18(%rsp), %ecx
shll $0x2, %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x18(%rsp), %ecx
shll $0x2, %ecx
addl $0x2, %ecx
movl %ecx, %ecx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
cmpl $0x0, 0x54(%rsp)
je 0xb0e9
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x18(%rsp), %ecx
shll $0x2, %ecx
addl $0x3, %ecx
movl %ecx, %ecx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xb0eb
jmp 0xb0ed
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xafd9
jmp 0xb3cb
movq 0x40(%rsp), %rax
cmpl $0x4, (%rax)
jne 0xb245
movq 0x40(%rsp), %rax
cmpl $0x8, 0x4(%rax)
jne 0xb1bb
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xb1b6
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq %rcx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x60(%rsp), %rax
movb %cl, (%rax)
cmpl $0x0, 0x54(%rsp)
je 0xb191
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq %rcx
movb 0x1(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xb193
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xb13e
jmp 0xb240
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xb23e
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x2, %rcx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x60(%rsp), %rax
movb %cl, (%rax)
cmpl $0x0, 0x54(%rsp)
je 0xb219
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x2, %rcx
movb 0x2(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xb21b
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xb1c4
jmp 0xb240
jmp 0xb3c9
movq 0x40(%rsp), %rax
cmpl $0x6, (%rax)
jne 0xb3c7
movq 0x40(%rsp), %rax
cmpl $0x8, 0x4(%rax)
jne 0xb315
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xb310
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x2, %rcx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, (%rax)
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x2, %rcx
movb 0x1(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x2, %rcx
movb 0x2(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
cmpl $0x0, 0x54(%rsp)
je 0xb2e8
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x2, %rcx
movb 0x3(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xb2ea
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xb26b
jmp 0xb3c5
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0xb3c3
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x3, %rcx
movb (%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, (%rax)
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x3, %rcx
movb 0x2(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x1(%rax)
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x3, %rcx
movb 0x4(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x2(%rax)
cmpl $0x0, 0x54(%rsp)
je 0xb39b
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
shlq $0x3, %rcx
movb 0x6(%rax,%rcx), %cl
movq 0x60(%rsp), %rax
movb %cl, 0x3(%rax)
jmp 0xb39d
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x60(%rsp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x60(%rsp)
jmp 0xb31e
jmp 0xb3c5
jmp 0xb3c7
jmp 0xb3c9
jmp 0xb3cb
jmp 0xb3cd
jmp 0xb3cf
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)