LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/stb_image.h
// Function: stbi__hdr_test_core(stbi__context*, char const*)
static int stbi__hdr_test_core(stbi__context *s, const char *signature)
{
   int i;
   for (i=0; signature[i]; ++i)
      if (stbi__get8(s) != signature[i])
          return 0;
   stbi__rewind(s);
   return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, (%rsi)
je 0x37ee7
movq %rsi, %r14
leaq 0x38(%rbx), %r15
leaq 0x39(%rbx), %r12
movq 0xb8(%rbx), %rcx
movq 0xc0(%rbx), %rax
incq %r14
cmpq %rax, %rcx
jae 0x37e8b
leaq 0x1(%rcx), %rsi
movq %rsi, 0xb8(%rbx)
movb (%rcx), %dl
movq %rsi, %rcx
jmp 0x37ed1
cmpl $0x0, 0x30(%rbx)
je 0x37eac
movq 0x28(%rbx), %rdi
movl 0x34(%rbx), %edx
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
je 0x37eb0
cltq
addq %r15, %rax
movb (%r15), %dl
jmp 0x37ec0
xorl %edx, %edx
jmp 0x37ed1
movl $0x0, 0x30(%rbx)
movb $0x0, 0x38(%rbx)
xorl %edx, %edx
movq %r12, %rax
movq %rax, 0xc0(%rbx)
movq %r12, 0xb8(%rbx)
movq %r12, %rcx
movzbl %dl, %edx
movsbl -0x1(%r14), %esi
cmpl %esi, %edx
jne 0x37efc
cmpb $0x0, (%r14)
leaq 0x1(%r14), %r14
jne 0x37e74
movups 0xc8(%rbx), %xmm0
movups %xmm0, 0xb8(%rbx)
movl $0x1, %eax
jmp 0x37efe
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/stb_image.h
// Function: stbi__psd_info(stbi__context*, int*, int*, int*)
static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)
{
   int channelCount, dummy, depth;
   if (!x) x = &dummy;
   if (!y) y = &dummy;
   if (!comp) comp = &dummy;
   if (stbi__get32be(s) != 0x38425053) {
       stbi__rewind( s );
       return 0;
   }
   if (stbi__get16be(s) != 1) {
       stbi__rewind( s );
       return 0;
   }
   stbi__skip(s, 6);
   channelCount = stbi__get16be(s);
   if (channelCount < 0 || channelCount > 16) {
       stbi__rewind( s );
       return 0;
   }
   *y = stbi__get32be(s);
   *x = stbi__get32be(s);
   depth = stbi__get16be(s);
   if (depth != 8 && depth != 16) {
       stbi__rewind( s );
       return 0;
   }
   if (stbi__get16be(s) != 3) {
       stbi__rewind( s );
       return 0;
   }
   *comp = 4;
   return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
callq 0x31b23
movl %eax, %ebp
shll $0x10, %ebp
movq %rbx, %rdi
callq 0x31b23
orl %ebp, %eax
cmpl $0x38425053, %eax       # imm = 0x38425053
jne 0x38013
movq %rbx, %rdi
callq 0x31b23
cmpl $0x1, %eax
jne 0x38013
cmpq $0x0, 0x10(%rbx)
je 0x37f83
movq 0xb8(%rbx), %rax
movq 0xc0(%rbx), %rdx
movl %edx, %ecx
subl %eax, %ecx
cmpl $0x5, %ecx
jg 0x37f8a
movq %rdx, 0xb8(%rbx)
movq 0x28(%rbx), %rdi
movl $0x6, %esi
subl %ecx, %esi
callq *0x18(%rbx)
jmp 0x37f95
movq 0xb8(%rbx), %rax
addq $0x6, %rax
movq %rax, 0xb8(%rbx)
movq %rbx, %rdi
callq 0x31b23
cmpl $0x11, %eax
jae 0x38013
movq %rbx, %rdi
callq 0x31b23
movl %eax, %ebp
movq %rbx, %rdi
callq 0x31b23
testq %r12, %r12
je 0x37fc2
shll $0x10, %ebp
orl %eax, %ebp
movl %ebp, (%r12)
movq %rbx, %rdi
callq 0x31b23
movl %eax, %ebp
movq %rbx, %rdi
callq 0x31b23
testq %r15, %r15
je 0x37fe1
shll $0x10, %ebp
orl %eax, %ebp
movl %ebp, (%r15)
movq %rbx, %rdi
callq 0x31b23
cmpl $0x8, %eax
je 0x37ff3
cmpl $0x10, %eax
jne 0x38013
movq %rbx, %rdi
callq 0x31b23
cmpl $0x3, %eax
jne 0x38013
movl $0x1, %eax
testq %r14, %r14
je 0x38023
movl $0x4, (%r14)
jmp 0x38023
movups 0xc8(%rbx), %xmm0
movups %xmm0, 0xb8(%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/stb_image.h
// Function: stbi__hdr_info(stbi__context*, int*, int*, int*)
static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)
{
   char buffer[STBI__HDR_BUFLEN];
   char *token;
   int valid = 0;
   int dummy;

   if (!x) x = &dummy;
   if (!y) y = &dummy;
   if (!comp) comp = &dummy;

   if (stbi__hdr_test(s) == 0) {
       stbi__rewind( s );
       return 0;
   }

   for(;;) {
      token = stbi__hdr_gettoken(s,buffer);
      if (token[0] == 0) break;
      if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1;
   }

   if (!valid) {
       stbi__rewind( s );
       return 0;
   }
   token = stbi__hdr_gettoken(s,buffer);
   if (strncmp(token, "-Y ", 3)) {
       stbi__rewind( s );
       return 0;
   }
   token += 3;
   *y = (int) strtol(token, &token, 10);
   while (*token == ' ') ++token;
   if (strncmp(token, "+X ", 3)) {
       stbi__rewind( s );
       return 0;
   }
   token += 3;
   *x = (int) strtol(token, NULL, 10);
   *comp = 3;
   return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
callq 0x248ff
testl %eax, %eax
je 0x384ed
movq %r14, 0x8(%rsp)
movq %rbx, %r14
leaq 0x10(%rsp), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x37497
cmpb $0x0, (%r13)
je 0x384ed
xorl %ebp, %ebp
movl $0x1, %ebx
leaq 0x10(%rsp), %r13
movdqu 0x17(%rsp), %xmm0
pcmpeqb 0x50f3(%rip), %xmm0     # 0x3d510
movdqa 0x10(%rsp), %xmm1
pcmpeqb 0x50f5(%rip), %xmm1     # 0x3d520
pand %xmm0, %xmm1
pmovmskb %xmm1, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
cmovel %ebx, %ebp
movq %r15, %rdi
movq %r13, %rsi
callq 0x37497
cmpb $0x0, 0x10(%rsp)
jne 0x3840f
testl %ebp, %ebp
je 0x384ed
leaq 0x10(%rsp), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x37497
movl $0x592d, %eax           # imm = 0x592D
xorl (%r13), %eax
movzbl 0x2(%r13), %ecx
xorl $0x20, %ecx
orw %ax, %cx
jne 0x384ed
leaq 0x13(%rsp), %rdi
movq %rsp, %rsi
movq %rdi, (%rsi)
movl $0xa, %edx
callq 0x6520
testq %r12, %r12
je 0x38499
movl %eax, (%r12)
movq (%rsp), %rdi
addq $0x2, %rdi
movzbl -0x2(%rdi), %eax
incq %rdi
cmpl $0x20, %eax
je 0x384a1
cmpl $0x2b, %eax
jne 0x384ed
cmpb $0x58, -0x2(%rdi)
jne 0x384ed
cmpb $0x20, -0x1(%rdi)
jne 0x384ed
movq %rdi, (%rsp)
xorl %esi, %esi
movl $0xa, %edx
callq 0x6520
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
je 0x384da
movl %eax, (%rcx)
movl $0x1, %eax
testq %r14, %r14
je 0x38501
movl $0x3, (%r14)
jmp 0x38501
movdqu 0xc8(%r15), %xmm0
movdqu %xmm0, 0xb8(%r15)
xorl %eax, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/stb_image.h
// Function: stbi__png_info_raw(stbi__png*, int*, int*, int*)
static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)
{
   if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) {
      stbi__rewind( p->s );
      return 0;
   }
   if (x) *x = p->s->img_x;
   if (y) *y = p->s->img_y;
   if (comp) *comp = p->s->img_n;
   return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
xorl %ebp, %ebp
movl $0x2, %esi
xorl %edx, %edx
callq 0x32e8e
testl %eax, %eax
je 0x38a68
testq %r12, %r12
je 0x38a46
movq (%r14), %rax
movl (%rax), %eax
movl %eax, (%r12)
testq %r15, %r15
je 0x38a54
movq (%r14), %rax
movl 0x4(%rax), %eax
movl %eax, (%r15)
movl $0x1, %ebp
testq %rbx, %rbx
je 0x38a79
movq (%r14), %rax
movl 0x8(%rax), %eax
movl %eax, (%rbx)
jmp 0x38a79
movq (%r14), %rax
movups 0xc8(%rax), %xmm0
movups %xmm0, 0xb8(%rax)
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/stb_image_write.h
// Function: stbiw__write_pixel(stbi__write_context*, int, int, int, int, unsigned char*)
static void stbiw__write_pixel(stbi__write_context *s, int rgb_dir, int comp, int write_alpha, int expand_mono, unsigned char *d)
{
   unsigned char bg[3] = { 255, 0, 255}, px[3];
   int k;

   if (write_alpha < 0)
      s->func(s->context, &d[comp - 1], 1);

   switch (comp) {
      case 2: // 2 pixels = mono + alpha, alpha is written separately, so same as 1-channel case
      case 1:
         if (expand_mono)
            stbiw__write3(s, d[0], d[0], d[0]); // monochrome bmp
         else
            s->func(s->context, d, 1);  // monochrome TGA
         break;
      case 4:
         if (!write_alpha) {
            // composite against pink background
            for (k = 0; k < 3; ++k)
               px[k] = bg[k] + ((d[k] - bg[k]) * d[3]) / 255;
            stbiw__write3(s, px[1 - rgb_dir], px[1], px[1 + rgb_dir]);
            break;
         }
         /* FALLTHROUGH */
      case 3:
         stbiw__write3(s, d[1 - rgb_dir], d[1], d[1 + rgb_dir]);
         break;
   }
   if (write_alpha > 0)
      s->func(s->context, &d[comp - 1], 1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
leal -0x1(%r15), %eax
cmpl $0x2, %eax
jb 0x38db1
cmpl $0x3, %r15d
je 0x38d88
cmpl $0x4, %r15d
jne 0x38de3
testl %ebp, %ebp
je 0x38e07
movb 0x2(%r14), %al
movb (%r14), %cl
movb 0x1(%r14), %dl
movq (%rbx), %r8
movq 0x8(%rbx), %rdi
leaq 0x15(%rsp), %rsi
movb %al, (%rsi)
movb %dl, 0x1(%rsi)
movb %cl, 0x2(%rsi)
movl $0x3, %edx
callq *%r8
jmp 0x38de3
testl %ecx, %ecx
je 0x38dd5
movb (%r14), %al
movq (%rbx), %rcx
movq 0x8(%rbx), %rdi
leaq 0xf(%rsp), %rsi
movb %al, (%rsi)
movb %al, 0x1(%rsi)
movb %al, 0x2(%rsi)
movl $0x3, %edx
callq *%rcx
jmp 0x38de3
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq *(%rbx)
testl %ebp, %ebp
jle 0x38dfc
movq 0x8(%rbx), %rdi
movslq %r15d, %rax
leaq (%r14,%rax), %rsi
decq %rsi
movl $0x1, %edx
callq *(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movzbl 0x3(%r14), %eax
xorl %ecx, %ecx
leaq 0x500b(%rip), %rdx      # 0x3de20
movzbl (%rcx,%rdx), %esi
movzbl (%r14,%rcx), %edi
subl %esi, %edi
imull %eax, %edi
movslq %edi, %rdi
imulq $-0x7f7f7f7f, %rdi, %r8 # imm = 0x80808081
shrq $0x20, %r8
addl %r8d, %edi
movl %edi, %r8d
shrl $0x1f, %r8d
shrl $0x7, %edi
addl %r8d, %edi
addb %sil, %dil
movb %dil, 0xc(%rsp,%rcx)
incq %rcx
cmpq $0x3, %rcx
jne 0x38e15
movb 0xe(%rsp), %al
movb 0xc(%rsp), %cl
movb 0xd(%rsp), %dl
movq (%rbx), %r8
movq 0x8(%rbx), %rdi
leaq 0x12(%rsp), %rsi
jmp 0x38d9f
// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/stb_image_write.h
// Function: stbiw__jpg_writeBits(stbi__write_context*, int*, int*, unsigned short const*)
static void stbiw__jpg_writeBits(stbi__write_context *s, int *bitBufP, int *bitCntP, const unsigned short *bs) {
   int bitBuf = *bitBufP, bitCnt = *bitCntP;
   bitCnt += bs[1];
   bitBuf |= bs[0] << (24 - bitCnt);
   while(bitCnt >= 8) {
      unsigned char c = (bitBuf >> 16) & 255;
      stbiw__putc(s, c);
      if(c == 255) {
         stbiw__putc(s, 0);
      }
      bitBuf <<= 8;
      bitCnt -= 8;
   }
   *bitBufP = bitBuf;
   *bitCntP = bitCnt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r14d
movl %ecx, %ebp
movl $0xffff, %eax           # imm = 0xFFFF
andl %eax, %r14d
movq %rdx, 0x10(%rsp)
addl (%rdx), %r14d
movq %rsi, %r15
andl %eax, %ebp
movb $0x18, %cl
subb %r14b, %cl
shll %cl, %ebp
orl (%rsi), %ebp
cmpl $0x8, %r14d
jl 0x39317
movq %rdi, %r12
leaq 0xe(%rsp), %r13
leaq 0xf(%rsp), %rbx
movl %ebp, %eax
shrl $0x10, %eax
movq (%r12), %rcx
movq 0x8(%r12), %rdi
movb %al, 0xe(%rsp)
movq %r13, %rsi
movl $0x1, %edx
callq *%rcx
movl %ebp, %eax
notl %eax
testl $0xff0000, %eax         # imm = 0xFF0000
jne 0x39305
movq (%r12), %rax
movq 0x8(%r12), %rdi
movb $0x0, 0xf(%rsp)
movq %rbx, %rsi
movl $0x1, %edx
callq *%rax
shll $0x8, %ebp
leal -0x8(%r14), %eax
cmpl $0xf, %r14d
movl %eax, %r14d
jg 0x392c6
jmp 0x3931a
movl %r14d, %eax
movl %ebp, (%r15)
movq 0x10(%rsp), %rcx
movl %eax, (%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/stb_image_write.h
// Function: stbiw__jpg_DCT(float*, float*, float*, float*, float*, float*, float*, float*)
static void stbiw__jpg_DCT(float *d0p, float *d1p, float *d2p, float *d3p, float *d4p, float *d5p, float *d6p, float *d7p) {
   float d0 = *d0p, d1 = *d1p, d2 = *d2p, d3 = *d3p, d4 = *d4p, d5 = *d5p, d6 = *d6p, d7 = *d7p;
   float z1, z2, z3, z4, z5, z11, z13;

   float tmp0 = d0 + d7;
   float tmp7 = d0 - d7;
   float tmp1 = d1 + d6;
   float tmp6 = d1 - d6;
   float tmp2 = d2 + d5;
   float tmp5 = d2 - d5;
   float tmp3 = d3 + d4;
   float tmp4 = d3 - d4;

   // Even part
   float tmp10 = tmp0 + tmp3;   // phase 2
   float tmp13 = tmp0 - tmp3;
   float tmp11 = tmp1 + tmp2;
   float tmp12 = tmp1 - tmp2;

   d0 = tmp10 + tmp11;       // phase 3
   d4 = tmp10 - tmp11;

   z1 = (tmp12 + tmp13) * 0.707106781f; // c4
   d2 = tmp13 + z1;       // phase 5
   d6 = tmp13 - z1;

   // Odd part
   tmp10 = tmp4 + tmp5;       // phase 2
   tmp11 = tmp5 + tmp6;
   tmp12 = tmp6 + tmp7;

   // The rotator is modified from fig 4-8 to avoid extra negations.
   z5 = (tmp10 - tmp12) * 0.382683433f; // c6
   z2 = tmp10 * 0.541196100f + z5; // c2-c6
   z4 = tmp12 * 1.306562965f + z5; // c2+c6
   z3 = tmp11 * 0.707106781f; // c4

   z11 = tmp7 + z3;      // phase 5
   z13 = tmp7 - z3;

   *d5p = z13 + z2;         // phase 6
   *d3p = z13 - z2;
   *d1p = z11 + z4;
   *d7p = z11 - z4;

   *d0p = d0;  *d2p = d2;  *d4p = d4;  *d6p = d6;
}

// Assembly:
movq 0x10(%rsp), %r10
movq 0x8(%rsp), %rax
movss (%rdi), %xmm2
movss (%rsi), %xmm0
movss (%rdx), %xmm4
movss (%rcx), %xmm3
movss (%r8), %xmm5
movss (%r9), %xmm6
movss (%rax), %xmm7
movss (%r10), %xmm8
movaps %xmm2, %xmm1
addss %xmm8, %xmm1
subss %xmm8, %xmm2
movaps %xmm0, %xmm8
addss %xmm7, %xmm8
subss %xmm7, %xmm0
movaps %xmm4, %xmm7
addss %xmm6, %xmm7
subss %xmm6, %xmm4
movaps %xmm3, %xmm6
addss %xmm5, %xmm6
subss %xmm5, %xmm3
movaps %xmm6, %xmm5
addss %xmm1, %xmm5
subss %xmm6, %xmm1
movaps %xmm7, %xmm9
addss %xmm8, %xmm9
subss %xmm7, %xmm8
movaps %xmm9, %xmm6
addss %xmm5, %xmm6
subss %xmm9, %xmm5
addss %xmm1, %xmm8
movss 0x40a4(%rip), %xmm9     # 0x3d468
mulss %xmm9, %xmm8
movaps %xmm1, %xmm7
addss %xmm8, %xmm7
subss %xmm8, %xmm1
addss %xmm4, %xmm3
addss %xmm0, %xmm4
addss %xmm2, %xmm0
movaps %xmm3, %xmm8
subss %xmm0, %xmm8
mulss 0x4078(%rip), %xmm8     # 0x3d46c
mulss 0x4074(%rip), %xmm3     # 0x3d470
mulss 0x4070(%rip), %xmm0     # 0x3d474
addss %xmm8, %xmm3
addss %xmm8, %xmm0
mulss %xmm9, %xmm4
movaps %xmm2, %xmm8
addss %xmm4, %xmm8
subss %xmm4, %xmm2
movaps %xmm2, %xmm4
addss %xmm3, %xmm4
movss %xmm4, (%r9)
subss %xmm3, %xmm2
movss %xmm2, (%rcx)
movaps %xmm8, %xmm2
addss %xmm0, %xmm2
movss %xmm2, (%rsi)
subss %xmm0, %xmm8
movss %xmm8, (%r10)
movss %xmm6, (%rdi)
movss %xmm7, (%rdx)
movss %xmm5, (%r8)
movss %xmm1, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/ThreadPool.hpp
// Function: ThreadPool::~ThreadPool()
inline ThreadPool::~ThreadPool()
{
    {
        std::unique_lock<std::mutex> lock(queue_mutex);
        stop = true;
    }
    condition.notify_all();
    for(std::thread &worker: workers)
        worker.join();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x68(%rdi), %rax
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
movb $0x0, 0x8(%rdi)
callq 0x39ea8
movb $0x1, %al
leaq 0x8(%rsp), %rdi
movb %al, 0x8(%rdi)
movb %al, 0xc0(%rbx)
callq 0x39e92
leaq 0x90(%rbx), %r14
movq %r14, %rdi
callq 0x6690
movq (%rbx), %r15
movq 0x8(%rbx), %r12
cmpq %r12, %r15
je 0x398ff
movq %r15, %rdi
callq 0x66a0
addq $0x8, %r15
jmp 0x398ec
movq %r14, %rdi
callq 0x6700
leaq 0x18(%rbx), %rdi
callq 0x3a00a
movq %rbx, %rdi
callq 0x3996a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x39926
movq %rax, %rdi
callq 0x1b3c3
// File: /workspace/github_cpp_makefile_star2_O3/aayush-jaiswal[P]covid-in/src/download_data.cpp
// Function: get_api_data[abi:cxx11](char const*)
std::string get_api_data(const char *api_url) {
    CURL *curl_handle = curl_easy_init();
    CURLcode return_code;

    if (!curl_handle) {
        std::cerr << "CURL ERROR! EXITING!";
        exit(2);
    }

    // setup
    curl_easy_setopt(curl_handle, CURLOPT_URL, api_url);
    curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data);

    std::string data;
    
    curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, &data);
    return_code = curl_easy_perform(curl_handle);
    curl_easy_cleanup(curl_handle);

    if (return_code != CURLE_OK) {
        std::cerr << "An error occured! Make sure you have an active internet connection!\n";
        exit(2);
    }

    return data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
callq 0x6500
testq %rax, %rax
je 0x72c5
movq %rax, %r14
movq %rax, %rdi
movl $0x2712, %esi           # imm = 0x2712
movq %r15, %rdx
xorl %eax, %eax
callq 0x6450
leaq -0x51(%rip), %rdx       # 0x721c
movq %r14, %rdi
movl $0x4e2b, %esi           # imm = 0x4E2B
xorl %eax, %eax
callq 0x6450
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq %r14, %rdi
movl $0x2711, %esi           # imm = 0x2711
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6450
movq %r14, %rdi
callq 0x6350
movl %eax, %ebp
movq %r14, %rdi
callq 0x60c0
testl %ebp, %ebp
jne 0x72da
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x3bd04(%rip), %rdi     # 0x42fd0
leaq 0x26d31(%rip), %rsi     # 0x2e004
callq 0x62d0
jmp 0x72ed
movq 0x3bcef(%rip), %rdi     # 0x42fd0
leaq 0x26d31(%rip), %rsi     # 0x2e019
callq 0x62d0
movl $0x2, %edi
callq 0x6340
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x730d
movq (%r15), %rsi
incq %rsi
callq 0x60b0
movq %r14, %rdi
callq 0x6310
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/aayush-jaiswal[P]covid-in/include/cxxopts.hpp
// Function: void cxxopts::values::parse_value<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
void
    parse_value(const std::string& text, std::vector<T>& value)
    {
      std::stringstream in(text);
      std::string token;
      while(in.eof() == false && std::getline(in, token, CXXOPTS_VECTOR_DELIMITER)) {
        T v;
        parse_value(token, v);
        value.emplace_back(std::move(v));
      }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movl $0x18, %edx
callq 0x6600
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x60(%rsp,%rax)
jne 0x24527
leaq 0x10(%rsp), %rbp
leaq 0x40(%rsp), %r14
leaq 0x20(%rsp), %r15
movq %rsp, %r12
movq %r14, %rdi
movq %r15, %rsi
movl $0x2c, %edx
callq 0x6030
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x24510
movq %rbp, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x65c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x245b2
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x24500
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x60b0
movq 0x40(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x60(%rsp,%rax)
je 0x244a4
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x24527
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x60b0
movq 0x1ea82(%rip), %rsi     # 0x42fb0
leaq 0x40(%rsp), %rdi
callq 0x63c0
leaq 0xc0(%rsp), %rdi
callq 0x6390
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x24575
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x24575
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x60b0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x2458c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x60b0
movq 0x1ea1d(%rip), %rsi     # 0x42fb0
leaq 0x40(%rsp), %rdi
callq 0x63c0
leaq 0xc0(%rsp), %rdi
callq 0x6390
movq %rbx, %rdi
callq 0x6310
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::Magstripe::~Magstripe()
Magstripe::~Magstripe(void) {
		// Clean up the tracks
		delete this->Track1;
		delete this->Track2;
		delete this->Track3;
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x3533
movq %r14, %rdi
callq 0x32b0
movl $0x10, %esi
movq %r14, %rdi
callq 0x31e0
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x3551
movq %r14, %rdi
callq 0x32b0
movl $0x10, %esi
movq %r14, %rdi
callq 0x31e0
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
je 0x356f
movq %rbx, %rdi
callq 0x32b0
movl $0x10, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x31e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::CycleLED()
void MSR::CycleLED(void) noexcept {
		this->SetLED(MSR::MSR_LED::LED_RED);
		std::this_thread::sleep_for(std::chrono::milliseconds(1500));
		this->SetLED(MSR::MSR_LED::LED_YELLOW);
		std::this_thread::sleep_for(std::chrono::milliseconds(1500));
		this->SetLED(MSR::MSR_LED::LED_GREEN);
		std::this_thread::sleep_for(std::chrono::milliseconds(1500));
		this->SetLED(MSR::MSR_LED::LED_OFF);
	}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpb $0x1, 0x4(%rdi)
jne 0x3913
movl (%rbx), %edi
leaq 0x17cd(%rip), %rsi      # 0x50d6
movl $0x8, %edx
callq 0x30b0
leaq 0x8(%rsp), %r14
movq $0x1, (%r14)
movq $0x1dcd6500, 0x8(%r14)  # imm = 0x1DCD6500
movq %r14, %rdi
movq %r14, %rsi
callq 0x3090
cmpl $-0x1, %eax
jne 0x3941
callq 0x3050
cmpl $0x4, (%rax)
je 0x3927
cmpb $0x1, 0x4(%rbx)
jne 0x395a
movl (%rbx), %edi
leaq 0x1783(%rip), %rsi      # 0x50d3
movl $0x8, %edx
callq 0x30b0
leaq 0x8(%rsp), %r14
movq $0x1, (%r14)
movq $0x1dcd6500, 0x8(%r14)  # imm = 0x1DCD6500
movq %r14, %rdi
movq %r14, %rsi
callq 0x3090
cmpl $-0x1, %eax
jne 0x3988
callq 0x3050
cmpl $0x4, (%rax)
je 0x396e
cmpb $0x1, 0x4(%rbx)
jne 0x39a1
movl (%rbx), %edi
leaq 0x1739(%rip), %rsi      # 0x50d0
movl $0x8, %edx
callq 0x30b0
leaq 0x8(%rsp), %r14
movq $0x1, (%r14)
movq $0x1dcd6500, 0x8(%r14)  # imm = 0x1DCD6500
movq %r14, %rdi
movq %r14, %rsi
callq 0x3090
cmpl $-0x1, %eax
jne 0x39cf
callq 0x3050
cmpl $0x4, (%rax)
je 0x39b5
cmpb $0x1, 0x4(%rbx)
jne 0x39e8
movl (%rbx), %edi
leaq 0x16fe(%rip), %rsi      # 0x50dc
movl $0x8, %edx
callq 0x30b0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
jmp 0x39f6
jmp 0x39f6
jmp 0x39f6
movq %rax, %rdi
callq 0x434a
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::MSR()
MSR::MSR(void) noexcept {
		// Set the initial state
		this->MSRConected = false;
		// Give the default device
		this->Device = DEFAULT_DEV;
	}

// Assembly:
pushq %rax
leaq 0x8(%rdi), %rax
leaq 0x18(%rdi), %rcx
movq %rcx, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
xorl %ecx, %ecx
movb %cl, 0x18(%rdi)
movb %cl, 0x4(%rdi)
leaq 0x163f(%rip), %rcx      # 0x5089
movl $0xc, %r8d
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3290
popq %rax
retq
movq %rax, %rdi
callq 0x434a
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::Disconnect()
void MSR::Disconnect(void) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Unable to disconnect, not connect to device" << std::endl;
#endif
			return;
		}
#if defined(DEBUG)
		std::cout << "[*] Disconnecting from device" << std::end;
#endif
		this->SendReset();
		close(this->devhndl);
		this->MSRConected = false;
	}

// Assembly:
cmpb $0x1, 0x4(%rdi)
jne 0x3af5
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %edi
leaq 0x15ee(%rip), %rsi      # 0x50cd
movl $0x8, %edx
callq 0x30b0
movl (%rbx), %edi
callq 0x3310
movb $0x0, 0x4(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::Connect(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool MSR::Connect(std::string Device) {
#if defined(DEBUG)
		std::cout << "[*] Connecting to device '" << Device <<"'" << std::end;
#endif
		if(Device == "") {
			std::cout << "[*] Null device name, unable to connect" << std::endl;
			return false;
		}
		struct termios options;
		if((this->devhndl = open(Device.c_str(), O_RDWR | O_NOCTTY)) < 0) {
#if defined(DEBUG)
			std::cout << "[*] Error opening device for use" << std::endl;
#endif
			return false;
		}
		tcgetattr(this->devhndl, &options);

		options.c_cflag = CS8 | CREAD | CLOCAL;
		options.c_oflag = 0;
		options.c_iflag = 0;

		cfsetispeed(&options, B9600);
		cfsetospeed(&options, B9600);

		tcsetattr(this->devhndl, TCSANOW, &options);

		return (this->MSRConected = true);
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x14b7(%rip), %rsi      # 0x503e
movq %r14, %rdi
callq 0x3080
testl %eax, %eax
je 0x3bfa
movq (%r14), %rdi
movl $0x102, %esi            # imm = 0x102
xorl %eax, %eax
callq 0x3160
movl %eax, (%rbx)
testl %eax, %eax
setns %bpl
js 0x3c3e
leaq 0x4(%rsp), %r14
movl %eax, %edi
movq %r14, %rsi
callq 0x3200
movl $0x8b0, 0x8(%r14)       # imm = 0x8B0
movq $0x0, (%r14)
movq %r14, %rdi
movl $0xd, %esi
callq 0x3120
movq %r14, %rdi
movl $0xd, %esi
callq 0x31f0
movl (%rbx), %edi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3230
movb $0x1, 0x4(%rbx)
jmp 0x3c3e
movq 0x33d7(%rip), %rbx      # 0x6fd8
leaq 0x148e(%rip), %rsi      # 0x5096
movl $0x27, %edx
movq %rbx, %rdi
callq 0x3210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3130
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::Initialize()
bool MSR::Initialize(void) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Unable to initialize, not connect to device" << std::endl;
#endif
			return false;
		}
#if defined(DEBUG)
		std::cout << "[*] Initializing Device" << std::end;
#endif
		this->CycleLED();
#if defined(DEBUG)
		std::cout << "[*] Performing self test" << std::end;
#endif
		this->SetLED(MSR::MSR_LED::LED_YELLOW);
		if(this->TestCommunication() && (this->TestRAM() && this->TestSensor())) {
#if defined(DEBUG)
		std::cout << "[*] Self test succeeded" << std::end;
#endif
			this->SetLED(MSR::MSR_LED::LED_GREEN);
			this->SendReset();
			return true;
		} else {
#if defined(DEBUG)
		std::cout << "[*] Self test failed, RAM or Sensor Error" << std::end;
#endif
			this->SetLED(MSR::MSR_LED::LED_RED);
			return false;
		}
	}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
cmpb $0x1, 0x4(%rdi)
jne 0x3cc5
movq %rdi, %rbx
callq 0x31c0
cmpb $0x1, 0x4(%rbx)
jne 0x3c74
movl (%rbx), %edi
leaq 0x1469(%rip), %rsi      # 0x50d3
movl $0x8, %edx
callq 0x30b0
movq %rbx, %rdi
callq 0x3190
testb %al, %al
je 0x3cc9
movq %rbx, %rdi
callq 0x3260
testb %al, %al
je 0x3cc9
movq %rbx, %rdi
callq 0x3250
testb %al, %al
je 0x3cc9
movb 0x4(%rbx), %al
cmpb $0x1, %al
jne 0x3cb5
movl (%rbx), %edi
leaq 0x1428(%rip), %rsi      # 0x50d0
movl $0x8, %edx
callq 0x30b0
movb 0x4(%rbx), %al
movb $0x1, %bpl
testb $0x1, %al
je 0x3ce4
leaq 0x140a(%rip), %rsi      # 0x50cd
jmp 0x3cd8
xorl %ebp, %ebp
jmp 0x3ce4
xorl %ebp, %ebp
cmpb $0x1, 0x4(%rbx)
jne 0x3ce4
leaq 0x13fe(%rip), %rsi      # 0x50d6
movl (%rbx), %edi
movl $0x8, %edx
callq 0x30b0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::TestCommunication()
bool MSR::TestCommunication(void) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Unable to test, not connect to device" << std::endl;
#endif
			return false;
		}
#if defined(DEBUG)
		std::cout << "[*] Performing communication test" << std::end;
#endif
		char resp[2];
		this->WriteAutoSize(MSR_COM_TEST);
		if(this->ReadBytes((char*)&resp, 2) != 2) {
#if defined(DEBUG)
			std::cout << "[*] Communication self test failed, expected back 2 bytes" << std::endl;
#endif
			return false;
		}
		if(memcmp(resp, (MSR_ESC "\x79"), 2) != 0) {
#if defined(DEBUG)
			std::cout << "[*] Communication self test failed, expected <ESC>\\x79 got other" << std::endl;
#endif
			return false;
		}
		return true;
	}

// Assembly:
cmpb $0x1, 0x4(%rdi)
jne 0x3d32
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl (%rdi), %edi
leaq 0x13b9(%rip), %rsi      # 0x50be
movl $0x8, %edx
callq 0x30b0
leaq 0xe(%rsp), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x30a0
cmpl $0x2, %eax
jne 0x3d35
cmpw $0x791b, 0xe(%rsp)      # imm = 0x791B
sete %al
jmp 0x3d37
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::TestSensor()
bool MSR::TestSensor(void) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Unable to test, not connect to device" << std::endl;
#endif
			return false;
		}
#if defined(DEBUG)
		std::cout << "[*] Performing sensor test" << std::end;
#endif
		char resp[2];
		this->WriteAutoSize(MSR_SENS_TEST);
		// The device wont respond unless a reset is issued
		this->SendReset();
		if(this->ReadBytes((char*)&resp, 2) != 2) {
#if defined(DEBUG)
			std::cout << "[*] Sensor self test failed, expected back 2 bytes" << std::endl;
#endif
			return false;
		}
		if(memcmp(resp, MSR_OK, 2) != 0) {
#if defined(DEBUG)
			std::cout << "[*] Sensor self test failed, expected MSR_OK got something else" << std::endl;
#endif
			return false;
		}
		return true;
	}

// Assembly:
cmpb $0x1, 0x4(%rdi)
jne 0x3deb
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl (%rdi), %edi
leaq 0x131f(%rip), %rsi      # 0x50c4
movl $0x8, %edx
callq 0x30b0
cmpb $0x1, 0x4(%rbx)
jne 0x3dc8
movl (%rbx), %edi
leaq 0x130f(%rip), %rsi      # 0x50cd
movl $0x8, %edx
callq 0x30b0
leaq 0xe(%rsp), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x30a0
cmpl $0x2, %eax
jne 0x3dee
cmpw $0x301b, 0xe(%rsp)      # imm = 0x301B
sete %al
jmp 0x3df0
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::ReadBytes(char*, int)
int MSR::ReadBytes(char* buffer, int len) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Error: unable to read from non-connected device" << std::endl;
#endif
			return -1;
		}
		int temp = 0;
		int count;

		if(buffer == NULL) return -1;

		while(temp != len) {
			count = read(this->devhndl, (buffer + temp), (len - temp));
			if(count < 0) return -1;
			if(count > 0) temp += count;
		}
    	return count;
	}

// Assembly:
testq %rsi, %rsi
je 0x3e7a
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r15
cmpb $0x0, 0x4(%rdi)
je 0x3e6a
movl %edx, %ebx
movq %rsi, %r14
xorl %ebp, %ebp
movl (%r15), %edi
movl %ebp, %esi
addq %r14, %rsi
movl %ebx, %eax
subl %ebp, %eax
movslq %eax, %rdx
callq 0x3270
testl %eax, %eax
js 0x3e6a
addl %eax, %ebp
cmpl %ebx, %ebp
jne 0x3e4a
jmp 0x3e6f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::GetModel[abi:cxx11]()
std::string MSR::GetModel(void) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Error: unable to get model from non-connected device" << std::endl;
#endif
			return "ERROR";
		}
		char* model = new char[3];
		this->WriteAutoSize(MSR_REQ_MODEL);
		if(this->ReadBytes(model, 3) != 3) {
#if defined(DEBUG)
			std::cout << "[*] Error: unable to read model number, expected 3 bytes" << std::endl;
#endif
			return "ERROR";
		}
		if((memcmp((char*)model[0], MSR_ESC, 1) == 0) && model[2] == 'S') {
			model[0] = model[1];
			model[1] = '\0';
			std::string mdl(model);
			delete[] model;
			return mdl;
		}
		return "ERROR";
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x4(%rsi)
je 0x3f11
movq %rsi, %r15
movl $0x3, %edi
callq 0x3030
movq %rax, %r14
movl (%r15), %edi
leaq 0x1239(%rip), %rsi      # 0x50e5
movl $0x8, %edx
callq 0x30b0
movq %r15, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq 0x30a0
cmpl $0x3, %eax
jne 0x3f11
movsbq (%r14), %rax
cmpb $0x1b, (%rax)
jne 0x3f11
cmpb $0x53, 0x2(%r14)
jne 0x3f11
movb 0x1(%r14), %al
movb %al, (%r14)
movb $0x0, 0x1(%r14)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x3100
movq %r14, %rdx
addq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30c0
movq %r14, %rdi
callq 0x3240
jmp 0x3f2e
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x11c0(%rip), %rsi      # 0x50df
leaq 0x11be(%rip), %rdx      # 0x50e4
movq %rbx, %rdi
callq 0x30c0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::GetFirmwareVersion[abi:cxx11]()
std::string MSR::GetFirmwareVersion(void) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Error: unable to get firmware version from non-connected device" << std::endl;
#endif
			return "ERROR";
		}
		char* version = new char[9];
		this->WriteAutoSize(MSR_REQ_FIRM_VER);
		if(this->ReadBytes(version, 9) == 9) {
#if defined(DEBUG)
			std::cout << "[*] Error: unable to get firmware version" << std::endl;
#endif
			return "ERROR";
		}
		if(memcmp((char*)version[0], MSR_ESC, 1) == 0) {
			version[8] = '\0';
			memmove(version, version+1, strlen(version));
			std::string ver(version);
			delete[] version;
			return ver;
		}
		return "ERROR";
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x4(%rsi)
je 0x3fd5
movq %rsi, %r15
movl $0x9, %edi
callq 0x3030
movq %rax, %r14
movl (%r15), %edi
leaq 0x1184(%rip), %rsi      # 0x50e8
movl $0x8, %edx
callq 0x30b0
movq %r15, %rdi
movq %r14, %rsi
movl $0x9, %edx
callq 0x30a0
cmpl $0x9, %eax
je 0x3fd5
movsbq (%r14), %rax
cmpb $0x1b, (%rax)
jne 0x3fd5
movb $0x0, 0x8(%r14)
leaq 0x1(%r14), %r15
movq %r14, %rdi
callq 0x3100
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x32a0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x3100
movq %r14, %rdx
addq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30c0
movq %r14, %rdi
callq 0x3240
jmp 0x3ff2
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x10fc(%rip), %rsi      # 0x50df
leaq 0x10fa(%rip), %rdx      # 0x50e4
movq %rbx, %rdi
callq 0x30c0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::SetCoercivity(lib605::MSR::COERCIVITY)
bool MSR::SetCoercivity(COERCIVITY co) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Unable to set Coercivity, not connect to device" << std::endl;
#endif
			return false;
		}
		char resp[2];
		switch(co) {
			case HI_CO: {
				this->WriteAutoSize(MSR_SET_HI_CO);
				break;
			} case LO_CO: {
				this->WriteAutoSize(MSR_SET_LO_CO);
				break;
			} default: break;
		}
		if(this->ReadBytes(resp, 2) != 2) {
#if defined(DEBUG)
			std::cout << "[*] Error: Unable to set Coercivity, expected 2 bytes" << std::endl;
#endif
			return false;
		}
		if(memcmp(resp, MSR_OK, 2) == 0) {
			return true;
		}
		return false;
	}

// Assembly:
cmpb $0x1, 0x4(%rdi)
jne 0x415a
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testl %esi, %esi
je 0x415d
cmpl $0x1, %esi
jne 0x4170
leaq 0xf69(%rip), %rsi       # 0x50c1
jmp 0x4164
xorl %eax, %eax
retq
leaq 0xf9f(%rip), %rsi       # 0x5103
movl (%rbx), %edi
movl $0x8, %edx
callq 0x30b0
leaq 0xe(%rsp), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x30a0
cmpl $0x2, %eax
jne 0x4193
cmpw $0x301b, 0xe(%rsp)      # imm = 0x301B
sete %al
jmp 0x4195
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::GetCoercivity()
MSR::COERCIVITY MSR::GetCoercivity(void) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Unable to get Coercivity, not connect to device" << std::endl;
#endif
			return MSR::COERCIVITY::ERR;
		}
		char resp[2];
		this->WriteAutoSize(MSR_GET_CO_STAT);
		if(this->ReadBytes(resp, 2) != 2) {
#if defined(DEBUG)
			std::cout << "[*] Error: Unable to get Coercivity, expected 2 bytes" << std::endl;
#endif
			return MSR::COERCIVITY::ERR;
		}
		if(memcmp(resp, MSR_ESC "H", 2) == 0) {
			return MSR::COERCIVITY::HI_CO;
		} else if(memcmp(resp, MSR_ESC "L", 2) == 0) {
			return MSR::COERCIVITY::LO_CO;
		} else {
#if defined(DEBUG)
			std::cout << "[*] Error: Unable to get Coercivity, unexpected value" << std::endl;
#endif
			return MSR::COERCIVITY::ERR;
		}
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x2, %ebx
cmpb $0x1, 0x4(%rdi)
jne 0x41f8
movq %rdi, %r14
movl (%rdi), %edi
leaq 0xf4f(%rip), %rsi       # 0x5106
movl $0x8, %edx
callq 0x30b0
leaq 0x6(%rsp), %rsi
movl $0x2, %ebx
movq %r14, %rdi
movl $0x2, %edx
callq 0x30a0
cmpl $0x2, %eax
jne 0x41f8
cmpw $0x481b, 0x6(%rsp)      # imm = 0x481B
je 0x41f6
xorl %ebx, %ebx
cmpw $0x4c1b, 0x6(%rsp)      # imm = 0x4C1B
setne %bl
incl %ebx
jmp 0x41f8
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::SetLeadingZero(unsigned char, unsigned char)
bool MSR::SetLeadingZero(unsigned char Track1_3, unsigned char Track2) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Unable to Set leading zero, not connect to device" << std::endl;
#endif
			return false;
		}
		char resp[2];
		char zero_dat[4];

		memcpy(zero_dat, (void*)MSR_SET_LEAD_ZERO, 2);
		memcpy(&zero_dat[2], (void*)&Track1_3, 1);
		memcpy(&zero_dat[3], (void*)&Track2, 1);

		this->WriteBytes(zero_dat, 4);
		if(this->ReadBytes(resp, 2) != 2) {
#if defined(DEBUG)
			std::cout << "[*] Error: Unable to set leading zero, expected 2 bytes" << std::endl;
#endif
			return false;
		}
		if(memcmp(resp, MSR_OK, 2) == 0) {
			return true;
		}
		return false;
	}

// Assembly:
cmpb $0x1, 0x4(%rdi)
jne 0x4253
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rax
movw $0x7a1b, (%rax)         # imm = 0x7A1B
movb %sil, 0x2(%rax)
movb %dl, 0x3(%rax)
movl (%rdi), %edi
movl $0x4, %edx
movq %rax, %rsi
callq 0x30b0
leaq 0xa(%rsp), %rsi
movq %rbx, %rdi
movl $0x2, %edx
callq 0x30a0
cmpl $0x2, %eax
jne 0x4256
cmpw $0x301b, 0xa(%rsp)      # imm = 0x301B
sete %al
jmp 0x4258
xorl %eax, %eax
retq
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/geoherna[P]lib605/./src/lib605.cpp
// Function: lib605::MSR::GetLeadZero()
std::tuple<unsigned char, unsigned char> MSR::GetLeadZero(void) {
		if(!this->MSRConected) {
#if defined(DEBUG)
			std::cout << "[*] Unable to get leading zero, not connect to device" << std::endl;
#endif
			return std::make_tuple(0x00, 0x00);
		}
		char resp[3];
		this->WriteAutoSize(MSR_CHECK_LEAD_ZERO);
		if(this->ReadBytes(resp, 3) != 3) {
#if defined(DEBUG)
			std::cout << "[*] Unable to get leading zero, expected 3 bytes" << std::endl;
#endif
			return std::make_tuple(0x00, 0x00);
		}
		return std::make_tuple(resp[1], resp[2]);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x4(%rsi)
je 0x42b7
movq %rsi, %r14
movl (%rsi), %edi
leaq 0xe93(%rip), %rsi       # 0x510f
movl $0x8, %edx
callq 0x30b0
leaq 0xd(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq 0x30a0
xorl %ecx, %ecx
cmpl $0x3, %eax
movzbl 0x2(%r15), %eax
cmovnel %ecx, %eax
movzbl 0x1(%r15), %edx
cmovnel %ecx, %edx
movb %al, (%rbx)
movb %dl, 0x1(%rbx)
jmp 0x42bc
movw $0x0, (%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/AutomataLab[P]JSONSki/example/example3.cpp
// Function: main
int main() {
    char* file_path = "../dataset/twitter_sample_small_records.json";
    RecordSet* record_set = RecordLoader::loadRecords(file_path);
    if (record_set->size() == 0) {
        cout<<"record loading fails."<<endl;
        return -1;
    }

    QueryProcessor processor("$.entities.urls[*].url");
    int num_recs = record_set->size();
    for (int i = 0; i < num_recs; i++) {
        string output = processor.runQuery((*record_set)[i]);
        cout<<"matches are: "<<output<<endl;
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
andq $-0x20, %rsp
subq $0xef80, %rsp           # imm = 0xEF80
leaq 0x9f231(%rip), %rdi     # 0xc51c0
callq 0x25bc2
cmpq $0x0, 0x18(%rax)
je 0x26097
movq %rax, %rbx
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x9f251(%rip), %rsi     # 0xc5203
leaq 0x9f260(%rip), %rdx     # 0xc5219
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x26168
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x165e8
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x25fe2
callq 0x26200
movq 0x18(%rbx), %r15
testl %r15d, %r15d
jle 0x26089
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r14d, %r14d
leaq 0xd94a0(%rip), %r13     # 0xff4a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2612e
movq (%rax), %rdx
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x25782
movl $0xd, %edx
movq %r13, %rdi
leaq 0x9f1f0(%rip), %rsi     # 0xc521a
callq 0x8ecc0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rdi
callq 0x8ecc0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x6fe10
movsbl %al, %esi
movq %r12, %rdi
callq 0x8e7c0
movq %rax, %rdi
callq 0x8dd90
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2607d
callq 0x26200
incq %r14
cmpq %r14, %r15
jne 0x26000
leaq 0x40(%rsp), %rdi
callq 0x16982
xorl %eax, %eax
jmp 0x260de
leaq 0xd9402(%rip), %rbx     # 0xff4a0
leaq 0x9f148(%rip), %rsi     # 0xc51ed
movl $0x15, %edx
movq %rbx, %rdi
callq 0x8ecc0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6fe10
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8e7c0
movq %rax, %rdi
callq 0x8dd90
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x26126
callq 0x26200
jmp 0x26126
movq %rax, %rbx
jmp 0x2611c
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2611c
callq 0x26200
leaq 0x40(%rsp), %rdi
callq 0x16982
movq %rbx, %rdi
callq 0x13730
// File: /workspace/github_cpp_makefile_star2_O3/AutomataLab[P]JSONSki/example/../src/lib/Records.h
// Function: RecordSet::operator[](long)
Record*& operator[] (long idx) {
        if (idx >= 0 && idx < num_recs)
            return recs[idx];
        cout << "Array index in RecordSet out of bound."<<endl; 
        exit(0); 
    }

// Assembly:
testq %rsi, %rsi
js 0x26144
cmpq %rsi, 0x18(%rdi)
jle 0x26144
shlq $0x3, %rsi
addq (%rdi), %rsi
movq %rsi, %rax
retq
pushq %rax
leaq 0xd9354(%rip), %rdi     # 0xff4a0
leaq 0x9f0d5(%rip), %rsi     # 0xc5228
callq 0x8f1f0
movq %rax, %rdi
callq 0x8ead0
xorl %edi, %edi
callq 0x131b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/flastest[P]HeterogeneousParallelDijkstra/workloads.cc
// Function: testBGL(boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_weight_t, int, boost::no_property>, boost::no_property, boost::listS>, unsigned long, std::vector<unsigned long, std::allocator<unsigned long>>&)
std::vector<int> testBGL (graph_t g, vertex_descriptor s, std::vector<vertex_descriptor> &p)
{
	
	// Keeps track of the predecessor of each vertex
	//std::vector<vertex_descriptor> p(num_vertices(g));
	// Keeps track of the distance to each vertex
	std::vector<int> d(num_vertices(g));



	boost::dijkstra_shortest_paths(g, s,
		predecessor_map(
	     make_iterator_property_map(p.begin(), get(vertex_index, g))).
	   distance_map(
	     make_iterator_property_map(d.begin(), get(vertex_index, g)))
	   );
	
	return d;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq 0x20(%rsi), %rsi
subq 0x18(%r15), %rsi
sarq $0x5, %rsi
leaq 0xd(%rsp), %rdx
callq 0x8574
movq (%r14), %r13
movq (%rbx), %rbp
movl $0x4, %edi
callq 0x3240
movq %rax, %r14
xorl %eax, %eax
movl %eax, (%r14)
leaq 0x18(%rsp), %rdx
movq %r12, -0x8(%rdx)
leaq 0xe(%rsp), %r10
movb $0x0, (%r10)
subq $0x8, %rsp
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
movq %r13, %rcx
movq %rbp, %r8
xorl %r9d, %r9d
pushq %r10
pushq %rax
pushq $0x7fffffff             # imm = 0x7FFFFFFF
callq 0x8f3d
addq $0x20, %rsp
movl $0x4, %esi
movq %r14, %rdi
callq 0x3250
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movl $0x4, %esi
movq %r14, %rdi
callq 0x3250
jmp 0x3e06
movq %rax, %r15
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3e1a
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3250
movq %r15, %rdi
callq 0x3400
// File: /workspace/github_cpp_makefile_star2_O3/flastest[P]HeterogeneousParallelDijkstra/workloads.cc
// Function: test_DOTA(bool)
bool test_DOTA(bool TEST_DEBUG){
	//aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah
	if (TEST_DEBUG) std::cout<<"loading graph from BBO"<<std::endl;
	graph_t g = graph_from_file("DotaLeague/DotaLeague_Edge_Basic",true);


	//number of nodes in g
	int num_nodes = num_vertices(g);

	std::vector<vertex_descriptor> p(num_nodes);

	//get a source node...
	vertex_descriptor s = vertex(1, g);

	std::vector<int> BGL_results = testBGL ( g,  s, p);


	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xc0, %rsp
testl %edi, %edi
je 0x7f00
movq 0x1010b(%rip), %rbx     # 0x17fd0
leaq 0x931a(%rip), %rsi      # 0x111e6
movl $0x16, %edx
movq %rbx, %rdi
callq 0x32a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3230
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31a0
leaq 0x28(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x92ed(%rip), %rsi      # 0x111fd
leaq 0x9306(%rip), %rdx      # 0x1121d
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x8c78
leaq 0x50(%rsp), %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0xf580
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x7f4d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3250
movq 0x70(%rsp), %rax
subq 0x68(%rsp), %rax
shrq $0x5, %rax
movslq %eax, %rsi
movq %rsp, %rdi
leaq 0x38(%rsp), %rdx
callq 0x8644
leaq 0x88(%rsp), %rdi
leaq 0x50(%rsp), %rbx
movq %rbx, %rsi
callq 0x86d2
leaq 0x38(%rsp), %rdi
leaq 0x88(%rsp), %r14
movq %rsp, %rcx
movl $0x1, %edx
movq %r14, %rsi
callq 0x3d52
leaq 0xa0(%rsp), %r15
movq 0x18(%r15), %rdi
movl $0x1, %esi
callq 0x3250
movq %r15, %rdi
callq 0x88ea
movq -0x18(%r15), %rdi
cmpq %r14, %rdi
je 0x7fd9
movq (%rdi), %r15
movl $0x28, %esi
callq 0x3250
movq %r15, %rdi
cmpq %r14, %r15
jne 0x7fc4
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x7ff0
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x3250
leaq 0x68(%rsp), %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x800b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3250
movq 0x80(%rsp), %rdi
movl $0x1, %esi
callq 0x3250
movq %r14, %rdi
callq 0x88ea
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x8044
movq (%rdi), %r14
movl $0x28, %esi
callq 0x3250
movq %r14, %rdi
cmpq %rbx, %r14
jne 0x802f
movb $0x1, %al
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x876c
jmp 0x8068
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8083
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3250
jmp 0x8083
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x876c
movq %rbx, %rdi
callq 0x3400
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r14, %rdi
je 0x808d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x808d