// File: mikeakohn[P]cloudtari/build/../src/GifCompressor.cxx
// Function: GifCompressor::compress(unsigned char*, unsigned int*)
int GifCompressor::compress(uint8_t *image, uint32_t *color_table)
{
  int ptr = 6, i;

  // Remap the colors from the 128 color palette to a smaller palette
  // so the GIF compresses more.
  uint8_t color_map[256];
  uint8_t color_used[256];
  uint32_t gif_palette[256];

  memset(color_map, 0, sizeof(color_map));
  memset(color_used, 0, sizeof(color_used));

  int length = gif_header.width * gif_header.height;
  int max_colors = 0;

  // Remap colors to GIF palette.
  for (i = 0; i < length; i++)
  {
    int color = image[i];

    if (color_used[color]) { continue; }

    color_map[color] = max_colors;
    color_used[color] = 1;
    gif_palette[max_colors] = color_table[color];

    max_colors++;
  }

  // FIXME: Why is this happening?
  if (max_colors < 2) { max_colors = 4; }

  // Compute bits per pixel and max colors for that.
  int bits_per_pixel = compute_bits_per_pixel(max_colors);
  const int color_resolution = bits_per_pixel;
  max_colors = 1 << bits_per_pixel;
//printf("max_colors=%d bits_per_pixel=%d\n", max_colors, bits_per_pixel);

  // Copy GifHeader (Logical Screen Descriptor) to memory.
  set_uint16(data, ptr + 0, gif_header.width);
  set_uint16(data, ptr + 2, gif_header.height);
  data[ptr + 4] = 0x80 | ((color_resolution - 1) << 4) | (bits_per_pixel - 1);
  data[ptr + 5] = 0;
  data[ptr + 6] = 0;
  ptr += 7;

  // Global Color Map (palettes).
  for (i = 0; i < max_colors; i++)
  {
    data[ptr++] = (gif_palette[i] >> 16) & 0xff;
    data[ptr++] = (gif_palette[i] >> 8) & 0xff;
    data[ptr++] =  gif_palette[i] & 0xff;
  }

  // Image Descriptor Block.
  data[ptr + 0] = ',';
  set_uint16(data, ptr + 1, 0);
  set_uint16(data, ptr + 3, 0);
  set_uint16(data, ptr + 5, gif_header.width);
  set_uint16(data, ptr + 7, gif_header.height);
  data[ptr + 9] = bits_per_pixel - 1;
  ptr += 10;

  int code_size = bits_per_pixel;
  int clear_code = max_colors;
  int eof_code = max_colors + 1;

  data[ptr++] = code_size;

  // Setup LZW tree.
  CompressNode node[4097];

  for (i = 0; i < max_colors; i++)
  {
    node[i].color = i;
    node[i].right = i + 1;
    node[i].down = -1;
  }

  // Compressed data blocks follow.
  int table_start_size = max_colors + 2;
  int next_code = table_start_size;
  int curr_code_size = code_size + 1;
  int curr_code = -1;
  int data_size = 0;

  // LZW Compression.
  BitStream bit_stream;

  bit_stream.append(clear_code, curr_code_size);

  int image_ptr = 0;
  uint8_t color = color_map[image[image_ptr++]];
  int block_ptr;

  block_ptr = ptr;
  data[ptr++] = 0;

  curr_code = color;
  int last_code = curr_code;

  while (image_ptr < length)
  {
    color = color_map[image[image_ptr++]];

    if (node[curr_code].down == -1)
    {
      last_code = curr_code;
      node[curr_code].down = next_code;
    }
      else
    {
      last_code = curr_code;
      curr_code = node[curr_code].down;

      while (node[curr_code].color != color && node[curr_code].right != -1)
      {
        curr_code=node[curr_code].right;
      }

      if (node[curr_code].color != color && node[curr_code].right == -1)
      {
        node[curr_code].right=next_code;
      }
        else
      {
        continue;
      }
    }

    bit_stream.append(last_code, curr_code_size);

    node[next_code].right = -1;
    node[next_code].down = -1;
    node[next_code].color = color;
    curr_code = color;

    if ((next_code >> curr_code_size) != 0)
    {
      if (curr_code_size >= 12)
      {
        bit_stream.append(clear_code, curr_code_size);

        for (i = 0; i < max_colors; i++)
        {
          node[i].down = -1;
        }

        next_code = table_start_size - 1;
        curr_code_size = code_size;
      }

      curr_code_size++;
    }

    next_code++;

    while (bit_stream.size() >= 8)
    {
      data[ptr++] = bit_stream.get_byte();
      data_size++;

      if (data_size >= 255)
      {
        data[block_ptr] = data_size;
        data_size = 0;
        block_ptr = ptr;
        data[ptr++] = 0;
      }
    }
  }

  bit_stream.append(curr_code, curr_code_size);
  bit_stream.append(eof_code, curr_code_size);

  while (bit_stream.size() > 0)
  {
    data[ptr++] = bit_stream.get_byte();
    data_size++;

    if (data_size >= 255)
    {
      data[block_ptr] = data_size;
      data_size = 0;
      block_ptr = ptr;
      data[ptr++] = 0;
    }
  }

  if (data_size > 0)
  {
    data[block_ptr] = data_size;
  }

  // End Marker.
  data[ptr++] = 0;
  data[ptr++] = ';';

  gif_length = ptr;

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc690, %rsp           # imm = 0xC690
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc688(%rbp)
movl $0x6, -0x1c(%rbp)
leaq -0x120(%rbp), %rdi
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x4170
leaq -0x220(%rbp), %rdi
xorl %esi, %esi
movl $0x100, %edx            # imm = 0x100
callq 0x4170
movq -0xc688(%rbp), %rcx
movzwl 0x6(%rcx), %eax
movzwl 0x8(%rcx), %ecx
imull %ecx, %eax
movl %eax, -0x624(%rbp)
movl $0x0, -0x628(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x624(%rbp), %eax
jge 0x5a8a
movq -0x10(%rbp), %rax
movslq -0x20(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x62c(%rbp)
movslq -0x62c(%rbp), %rax
cmpb $0x0, -0x220(%rbp,%rax)
je 0x5a2c
jmp 0x5a7c
movl -0x628(%rbp), %eax
movb %al, %cl
movslq -0x62c(%rbp), %rax
movb %cl, -0x120(%rbp,%rax)
movslq -0x62c(%rbp), %rax
movb $0x1, -0x220(%rbp,%rax)
movq -0x18(%rbp), %rax
movslq -0x62c(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movslq -0x628(%rbp), %rax
movl %ecx, -0x620(%rbp,%rax,4)
movl -0x628(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x628(%rbp)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x59f8
cmpl $0x2, -0x628(%rbp)
jge 0x5a9d
movl $0x4, -0x628(%rbp)
movq -0xc688(%rbp), %rdi
movl -0x628(%rbp), %esi
callq 0x62f0
movl %eax, %ecx
movq -0xc688(%rbp), %rax
movl %ecx, -0x630(%rbp)
movl -0x630(%rbp), %ecx
movl %ecx, -0x634(%rbp)
movl -0x630(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
movl %ecx, -0x628(%rbp)
movq 0x10(%rax), %rsi
movl -0x1c(%rbp), %edx
addl $0x0, %edx
movq %rax, %rdi
movzwl 0x6(%rax), %ecx
callq 0x6370
movq -0xc688(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x1c(%rbp), %edx
addl $0x2, %edx
movq %rax, %rdi
movzwl 0x8(%rax), %ecx
callq 0x6370
movq -0xc688(%rbp), %rax
movl -0x634(%rbp), %ecx
subl $0x1, %ecx
shll $0x4, %ecx
orl $0x80, %ecx
movl -0x630(%rbp), %edx
subl $0x1, %edx
orl %edx, %ecx
movb %cl, %sil
movq 0x10(%rax), %rcx
movl -0x1c(%rbp), %edx
addl $0x4, %edx
movslq %edx, %rdx
movb %sil, (%rcx,%rdx)
movq 0x10(%rax), %rcx
movl -0x1c(%rbp), %edx
addl $0x5, %edx
movslq %edx, %rdx
movb $0x0, (%rcx,%rdx)
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
addl $0x6, %ecx
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movl -0x1c(%rbp), %eax
addl $0x7, %eax
movl %eax, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x628(%rbp), %eax
jge 0x5c22
movq -0xc688(%rbp), %rax
movslq -0x20(%rbp), %rcx
movl -0x620(%rbp,%rcx,4), %ecx
shrl $0x10, %ecx
andl $0xff, %ecx
movb %cl, %sil
movq 0x10(%rax), %rcx
movl -0x1c(%rbp), %edx
movl %edx, %edi
addl $0x1, %edi
movl %edi, -0x1c(%rbp)
movslq %edx, %rdx
movb %sil, (%rcx,%rdx)
movslq -0x20(%rbp), %rcx
movl -0x620(%rbp,%rcx,4), %ecx
shrl $0x8, %ecx
andl $0xff, %ecx
movb %cl, %sil
movq 0x10(%rax), %rcx
movl -0x1c(%rbp), %edx
movl %edx, %edi
addl $0x1, %edi
movl %edi, -0x1c(%rbp)
movslq %edx, %rdx
movb %sil, (%rcx,%rdx)
movslq -0x20(%rbp), %rcx
movl -0x620(%rbp,%rcx,4), %ecx
andl $0xff, %ecx
movb %cl, %dl
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x1c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x5b7c
movq -0xc688(%rbp), %rdi
movq 0x10(%rdi), %rax
movl -0x1c(%rbp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movb $0x2c, (%rax,%rcx)
movq 0x10(%rdi), %rsi
movl -0x1c(%rbp), %edx
addl $0x1, %edx
xorl %ecx, %ecx
callq 0x6370
movq -0xc688(%rbp), %rdi
movq 0x10(%rdi), %rsi
movl -0x1c(%rbp), %edx
addl $0x3, %edx
xorl %ecx, %ecx
callq 0x6370
movq -0xc688(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x1c(%rbp), %edx
addl $0x5, %edx
movq %rax, %rdi
movzwl 0x6(%rax), %ecx
callq 0x6370
movq -0xc688(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x1c(%rbp), %edx
addl $0x7, %edx
movq %rax, %rdi
movzwl 0x8(%rax), %ecx
callq 0x6370
movq -0xc688(%rbp), %rax
movl -0x630(%rbp), %ecx
subl $0x1, %ecx
movb %cl, %sil
movq 0x10(%rax), %rcx
movl -0x1c(%rbp), %edx
addl $0x9, %edx
movslq %edx, %rdx
movb %sil, (%rcx,%rdx)
movl -0x1c(%rbp), %ecx
addl $0xa, %ecx
movl %ecx, -0x1c(%rbp)
movl -0x630(%rbp), %ecx
movl %ecx, -0x638(%rbp)
movl -0x628(%rbp), %ecx
movl %ecx, -0x63c(%rbp)
movl -0x628(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x640(%rbp)
movl -0x638(%rbp), %ecx
movb %cl, %dl
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x1c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x628(%rbp), %eax
jge 0x5d78
movl -0x20(%rbp), %eax
movb %al, %cl
movslq -0x20(%rbp), %rdx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movb %cl, 0x8(%rax)
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
movslq -0x20(%rbp), %rdx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movslq -0x20(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x5d15
movl -0x628(%rbp), %eax
addl $0x2, %eax
movl %eax, -0xc654(%rbp)
movl -0xc654(%rbp), %eax
movl %eax, -0xc658(%rbp)
movl -0x638(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc65c(%rbp)
movl $0xffffffff, -0xc660(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0xc664(%rbp)
leaq -0xc66c(%rbp), %rdi
callq 0x63c0
movl -0x63c(%rbp), %esi
movl -0xc65c(%rbp), %edx
leaq -0xc66c(%rbp), %rdi
callq 0x63e0
movq -0xc688(%rbp), %rax
movl $0x0, -0xc670(%rbp)
movq -0x10(%rbp), %rcx
movl -0xc670(%rbp), %edx
movl %edx, %esi
addl $0x1, %esi
movl %esi, -0xc670(%rbp)
movslq %edx, %rdx
movzbl (%rcx,%rdx), %ecx
movb -0x120(%rbp,%rcx), %cl
movb %cl, -0xc671(%rbp)
movl -0x1c(%rbp), %ecx
movl %ecx, -0xc678(%rbp)
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
movzbl -0xc671(%rbp), %eax
movl %eax, -0xc660(%rbp)
movl -0xc660(%rbp), %eax
movl %eax, -0xc67c(%rbp)
movl -0xc670(%rbp), %eax
cmpl -0x624(%rbp), %eax
jge 0x61a4
movq -0x10(%rbp), %rax
movl -0xc670(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0xc670(%rbp)
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
movb -0x120(%rbp,%rax), %al
movb %al, -0xc671(%rbp)
movslq -0xc660(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, (%rax)
jne 0x5ecf
movl -0xc660(%rbp), %eax
movl %eax, -0xc67c(%rbp)
movl -0xc658(%rbp), %ecx
movslq -0xc660(%rbp), %rdx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
jmp 0x5fd8
movl -0xc660(%rbp), %eax
movl %eax, -0xc67c(%rbp)
movslq -0xc660(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0xc660(%rbp)
movslq -0xc660(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movzbl 0x8(%rax), %ecx
movzbl -0xc671(%rbp), %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0xc689(%rbp)
je 0x5f46
movslq -0xc660(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, 0x4(%rax)
setne %al
movb %al, -0xc689(%rbp)
movb -0xc689(%rbp), %al
testb $0x1, %al
jne 0x5f52
jmp 0x5f72
movslq -0xc660(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, -0xc660(%rbp)
jmp 0x5ef8
movslq -0xc660(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movzbl 0x8(%rax), %eax
movzbl -0xc671(%rbp), %ecx
cmpl %ecx, %eax
je 0x5fd1
movslq -0xc660(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, 0x4(%rax)
jne 0x5fd1
movl -0xc658(%rbp), %ecx
movslq -0xc660(%rbp), %rdx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
jmp 0x5fd6
jmp 0x5e4c
jmp 0x5fd8
movl -0xc67c(%rbp), %esi
movl -0xc65c(%rbp), %edx
leaq -0xc66c(%rbp), %rdi
callq 0x63e0
movslq -0xc658(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, 0x4(%rax)  # imm = 0xFFFFFFFF
movslq -0xc658(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movb -0xc671(%rbp), %cl
movslq -0xc658(%rbp), %rdx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movb %cl, 0x8(%rax)
movzbl -0xc671(%rbp), %eax
movl %eax, -0xc660(%rbp)
movl -0xc658(%rbp), %eax
movl -0xc65c(%rbp), %ecx
sarl %cl, %eax
cmpl $0x0, %eax
je 0x60e9
cmpl $0xc, -0xc65c(%rbp)
jl 0x60da
movl -0x63c(%rbp), %esi
movl -0xc65c(%rbp), %edx
leaq -0xc66c(%rbp), %rdi
callq 0x63e0
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x628(%rbp), %eax
jge 0x60bf
movslq -0x20(%rbp), %rcx
leaq -0xc650(%rbp), %rax
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x6091
movl -0xc654(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xc658(%rbp)
movl -0x638(%rbp), %eax
movl %eax, -0xc65c(%rbp)
movl -0xc65c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc65c(%rbp)
movl -0xc658(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc658(%rbp)
leaq -0xc66c(%rbp), %rdi
callq 0x6410
cmpl $0x8, %eax
jl 0x619f
leaq -0xc66c(%rbp), %rdi
callq 0x6430
movb %al, %dl
movq -0xc688(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x1c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0xc664(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc664(%rbp)
cmpl $0xff, -0xc664(%rbp)
jl 0x619a
movq -0xc688(%rbp), %rax
movl -0xc664(%rbp), %ecx
movb %cl, %sil
movq 0x10(%rax), %rcx
movslq -0xc678(%rbp), %rdx
movb %sil, (%rcx,%rdx)
movl $0x0, -0xc664(%rbp)
movl -0x1c(%rbp), %ecx
movl %ecx, -0xc678(%rbp)
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
jmp 0x60f8
jmp 0x5e4c
movl -0xc660(%rbp), %esi
movl -0xc65c(%rbp), %edx
leaq -0xc66c(%rbp), %rdi
callq 0x63e0
movl -0x640(%rbp), %esi
movl -0xc65c(%rbp), %edx
leaq -0xc66c(%rbp), %rdi
callq 0x63e0
leaq -0xc66c(%rbp), %rdi
callq 0x6410
cmpl $0x0, %eax
jle 0x627b
leaq -0xc66c(%rbp), %rdi
callq 0x6430
movb %al, %dl
movq -0xc688(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x1c(%rbp)
movslq %ecx, %rcx
movb %dl, (%rax,%rcx)
movl -0xc664(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc664(%rbp)
cmpl $0xff, -0xc664(%rbp)
jl 0x6276
movq -0xc688(%rbp), %rax
movl -0xc664(%rbp), %ecx
movb %cl, %sil
movq 0x10(%rax), %rcx
movslq -0xc678(%rbp), %rdx
movb %sil, (%rcx,%rdx)
movl $0x0, -0xc664(%rbp)
movl -0x1c(%rbp), %ecx
movl %ecx, -0xc678(%rbp)
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x1c(%rbp)
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
jmp 0x61d4
cmpl $0x0, -0xc664(%rbp)
jle 0x62a1
movq -0xc688(%rbp), %rax
movl -0xc664(%rbp), %ecx
movb %cl, %dl
movq 0x10(%rax), %rax
movslq -0xc678(%rbp), %rcx
movb %dl, (%rax,%rcx)
movq -0xc688(%rbp), %rax
movq 0x10(%rax), %rcx
movl -0x1c(%rbp), %edx
movl %edx, %esi
addl $0x1, %esi
movl %esi, -0x1c(%rbp)
movslq %edx, %rdx
movb $0x0, (%rcx,%rdx)
movq 0x10(%rax), %rcx
movl -0x1c(%rbp), %edx
movl %edx, %esi
addl $0x1, %esi
movl %esi, -0x1c(%rbp)
movslq %edx, %rdx
movb $0x3b, (%rcx,%rdx)
movl -0x1c(%rbp), %ecx
movl %ecx, 0x1c(%rax)
xorl %eax, %eax
addq $0xc690, %rsp           # imm = 0xC690
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop