LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/MicBrain[P]Git-Sample/beargit.c
// Function: beargit_log
int beargit_log() {
  char last_commit[COMMIT_ID_SIZE]; 
  int index = 0;
  int checker = 10; 
  read_string_from_file(".beargit/.prev", last_commit, COMMIT_ID_SIZE);
  while (strcmp(last_commit, "0000000000000000000000000000000000000000") != 0) {
    char content[100];
    fprintf(stdout, "\ncommit %s", last_commit);
    checker = 50;
    sprintf(content, "%s%s%s", ".beargit/", last_commit, "/.msg");
    read_string_from_file(content, content, 120);
    char lastSource[100];
    fprintf(stdout, "\n    %s\n", content);
    sprintf(lastSource, "%s%s%s", ".beargit/", last_commit,  "/.prev");
    read_string_from_file(lastSource, last_commit, COMMIT_ID_SIZE);
  }
  if (checker == 10) {
    fprintf(stderr, "ERROR: There are no commits!\n");
    return 1;
  }
  if (checker == 50)
    fprintf(stdout, "\n");
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
leaq 0x11bd(%rip), %rdi      # 0x418e
leaq -0x60(%rbp), %rbx
pushq $0x29
popq %rdx
movq %rbx, %rsi
callq 0x26fd
movb $0x1, %al
movl %eax, -0x2c(%rbp)
xorl %r14d, %r14d
leaq -0x140(%rbp), %r12
movq %rbx, %rdi
leaq 0x11a4(%rip), %rsi      # 0x419d
pushq $0x29
popq %rdx
callq 0x1100
testl %eax, %eax
je 0x30ac
movq 0x3fc8(%rip), %r14      # 0x6fd8
movq (%r14), %rdi
movl $0x0, -0x2c(%rbp)
leaq 0x1262(%rip), %rsi      # 0x4283
movq %rbx, %rdx
xorl %eax, %eax
callq 0x10d0
movq %r12, %rdi
leaq 0x1259(%rip), %r13      # 0x428e
movq %r13, %rsi
leaq 0x1219(%rip), %r15      # 0x4258
movq %r15, %rdx
movq %rbx, %rcx
leaq 0x1249(%rip), %r8       # 0x4295
xorl %eax, %eax
callq 0x1170
movq %r12, %rdi
movq %r12, %rsi
pushq $0x78
popq %rdx
callq 0x26fd
movq (%r14), %rdi
leaq 0x1230(%rip), %rsi      # 0x429b
movq %r12, %rdx
xorl %eax, %eax
callq 0x10d0
leaq -0xd0(%rbp), %r14
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %rbx, %rcx
leaq 0x1107(%rip), %r8       # 0x4196
xorl %eax, %eax
callq 0x1170
movq %r14, %rdi
movq %rbx, %rsi
pushq $0x29
popq %rdx
callq 0x26fd
movb $0x1, %r14b
jmp 0x2fef
testb $0x1, -0x2c(%rbp)
jne 0x30e0
xorl %ebx, %ebx
testb $0x1, %r14b
je 0x30cc
movq 0x3f17(%rip), %rax      # 0x6fd8
movq (%rax), %rsi
pushq $0xa
popq %rdi
callq 0x10a0
movl %ebx, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3f11(%rip), %rax      # 0x6ff8
movq (%rax), %rcx
leaq 0x11b3(%rip), %rdi      # 0x42a4
pushq $0x1d
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
pushq $0x1
popq %rbx
jmp 0x30cc
// File: /workspace/github_c_makefile_star2_O2/MicBrain[P]Git-Sample/beargit.c
// Function: beargit_commit
int beargit_commit(const char* msg) {
  char current_branch[BRANCHNAME_SIZE];
  read_string_from_file(".beargit/.current_branch", current_branch, BRANCHNAME_SIZE);
  if (strlen(current_branch) == 0) {
    fprintf(stderr, "ERROR: Need to be on HEAD of a branch to commit\n");
    return 1;
  }
  return beargit_commit_hw1(msg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
leaq 0x10ad(%rip), %rdi      # 0x41c6
leaq -0x90(%rbp), %r14
movq %r14, %rsi
movl $0x80, %edx
callq 0x26fd
cmpb $0x0, (%r14)
je 0x3146
movq %rbx, %rdi
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x253b
movq 0x3eab(%rip), %rax      # 0x6ff8
movq (%rax), %rcx
leaq 0x116b(%rip), %rdi      # 0x42c2
pushq $0x30
popq %rsi
pushq $0x1
popq %rdx
callq 0x1190
pushq $0x1
popq %rax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MicBrain[P]Git-Sample/beargit.c
// Function: get_branch_number
int get_branch_number(const char* branch_name) {
  FILE* fbranches = fopen(".beargit/.branches", "r");
  int branch_index = -1;
  int counter = 0;
  char line[FILENAME_SIZE];
  while(fgets(line, sizeof(line), fbranches)) {
    strtok(line, "\n");
    if (strcmp(line, branch_name) == 0) {
      branch_index = counter;
    }
    counter++;
  }
  fclose(fbranches);
  return branch_index;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
leaq 0xfe5(%rip), %rdi       # 0x4174
leaq 0xff6(%rip), %rsi       # 0x418c
callq 0x1120
movq %rax, %r14
xorl %r13d, %r13d
pushq $-0x1
popq %r15
leaq -0x230(%rbp), %r12
movq %r12, %rdi
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdx
callq 0x10b0
testq %rax, %rax
je 0x31e6
movq %r12, %rdi
leaq 0x11e3(%rip), %rsi      # 0x43ae
callq 0x1130
movq %r12, %rdi
movq %rbx, %rsi
callq 0x10c0
testl %eax, %eax
cmovel %r13d, %r15d
incl %r13d
jmp 0x31ac
movq %r14, %rdi
callq 0x1070
movl %r15d, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MicBrain[P]Git-Sample/beargit.c
// Function: beargit_branch
int beargit_branch() {
  char current_branch[BRANCHNAME_SIZE];
  read_string_from_file(".beargit/.current_branch", current_branch, BRANCHNAME_SIZE);
  FILE* findex = fopen(".beargit/.branches", "r");
  char line[BRANCHNAME_SIZE];
  while (fgets(line, sizeof(line), findex)) {
    strtok(line, "\n");
    if (strcmp(line, current_branch) != 0) {
      fprintf(stdout, "%s", "  ");
      fprintf(stdout, "%s\n", line);
    } else {
      fprintf(stdout, "%s", "* ");
      fprintf(stdout, "%s\n", line);
    }
  }
  fclose(findex);
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
leaq 0xfa8(%rip), %rdi       # 0x41c6
leaq -0xb0(%rbp), %rsi
movl $0x80, %edx
callq 0x26fd
leaq 0xf3e(%rip), %rdi       # 0x4174
leaq 0xf4f(%rip), %rsi       # 0x418c
callq 0x1120
movq %rax, %r14
leaq -0x130(%rbp), %r15
movq 0x3d85(%rip), %rbx      # 0x6fd8
leaq 0x1017(%rip), %r12      # 0x4271
leaq 0x103f(%rip), %r13      # 0x42a0
movq %r15, %rdi
movl $0x80, %esi
movq %r14, %rdx
callq 0x10b0
testq %rax, %rax
je 0x32be
movq %r15, %rdi
leaq 0x112e(%rip), %rsi      # 0x43ae
callq 0x1130
movq %r15, %rdi
leaq -0xb0(%rbp), %rsi
callq 0x10c0
testl %eax, %eax
movq (%rbx), %rsi
movq %r12, %rdi
leaq 0x1054(%rip), %rax      # 0x42f7
cmoveq %rax, %rdi
callq 0x1090
movq (%rbx), %rdi
movq %r13, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x10d0
jmp 0x3261
movq %r14, %rdi
callq 0x1070
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MicBrain[P]Git-Sample/beargit.c
// Function: checkout_commit
int checkout_commit(const char* commit_id) {
  if (strcmp(commit_id, "0000000000000000000000000000000000000000") == 0) {
    write_string_to_file(".beargit/.index", "");
  } else {
    FILE* findex = fopen(".beargit/.index", "r");
    char line[BRANCHNAME_SIZE];
    while(fgets(line, sizeof(line), findex)) {
      strtok(line, "\n");
      fs_rm(line);
    }
    fclose(findex);
    char init_loc[150];
    sprintf(init_loc, "%s%s%s", ".beargit/", commit_id, "/.index");
    FILE* last = fopen(init_loc, "r");
    char new_line[BRANCHNAME_SIZE];
    while(fgets(new_line, sizeof(new_line), last)) {
      strtok(new_line, "\n");
      char final_place[200];
      sprintf(final_place, ".beargit/%s/%s", commit_id, new_line);
      fs_cp(final_place, new_line);
    }
    fs_cp(init_loc, ".beargit/.index");
    fclose(last);
  }
  write_string_to_file(".beargit/.prev", commit_id);
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
leaq 0xea8(%rip), %rsi       # 0x419d
movq %rdi, -0x30(%rbp)
callq 0x10c0
leaq 0xe5d(%rip), %rdi       # 0x4162
testl %eax, %eax
je 0x3412
leaq 0xe78(%rip), %rsi       # 0x418c
callq 0x1120
movq %rax, %rbx
leaq -0x1d0(%rbp), %r14
leaq 0x1084(%rip), %r15      # 0x43ae
movq %r14, %rdi
movl $0x80, %esi
movq %rbx, %rdx
callq 0x10b0
testq %rax, %rax
je 0x3354
movq %r14, %rdi
movq %r15, %rsi
callq 0x1130
movq %r14, %rdi
callq 0x1cdd
jmp 0x332a
movq %rbx, %rdi
callq 0x1070
leaq 0xf2b(%rip), %rsi       # 0x428e
leaq 0xeee(%rip), %rdx       # 0x4258
leaq 0xdf9(%rip), %r8        # 0x416a
leaq -0xd0(%rbp), %rbx
movq %rbx, %rdi
movq -0x30(%rbp), %rcx
xorl %eax, %eax
callq 0x1170
leaq 0xdff(%rip), %rsi       # 0x418c
movq %rbx, %rdi
callq 0x1120
movq %rax, %r14
leaq -0x150(%rbp), %r15
leaq 0x1008(%rip), %r12      # 0x43ae
leaq 0xf4d(%rip), %r13       # 0x42fa
leaq -0x2a0(%rbp), %rbx
movq %r15, %rdi
movl $0x80, %esi
movq %r14, %rdx
callq 0x10b0
testq %rax, %rax
je 0x33f5
movq %r15, %rdi
movq %r12, %rsi
callq 0x1130
movq %rbx, %rdi
movq %r13, %rsi
movq -0x30(%rbp), %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x1170
movq %rbx, %rdi
movq %r15, %rsi
callq 0x28e9
jmp 0x33b4
leaq 0xd66(%rip), %rsi       # 0x4162
leaq -0xd0(%rbp), %rdi
callq 0x28e9
movq %r14, %rdi
callq 0x1070
jmp 0x341e
leaq 0xf96(%rip), %rsi       # 0x43af
callq 0x1a45
leaq 0xd69(%rip), %rdi       # 0x418e
movq -0x30(%rbp), %rsi
callq 0x1a45
xorl %eax, %eax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MicBrain[P]Git-Sample/beargit.c
// Function: is_it_a_commit_id
int is_it_a_commit_id(const char* commit_id) {
  if (strlen(commit_id) != 40) {
    return 0;
  } else {
    while (*commit_id !='\0') {
      if (*commit_id != '6' && *commit_id != '1' && *commit_id != 'c') {
        return 0;
      }
      commit_id++;
    }
    return 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1080
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x28, %rcx
jne 0x3482
movabsq $0x4000000000021, %rcx  # imm = 0x4000000000021
movzbl (%rbx), %edx
leal -0x31(%rdx), %esi
cmpl $0x32, %esi
ja 0x347b
btq %rsi, %rcx
jae 0x347b
incq %rbx
jmp 0x3465
testl %edx, %edx
jne 0x3482
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MicBrain[P]Git-Sample/util.c
// Function: fake_print
int fake_print(char* fmt, ...) {
    // append to file
    char data[2048]; // if your line is longer than this, you're doing something wrong
    va_list args;
    va_start(args, fmt);
    vsprintf(data, fmt, args);
    va_end(args);
    FILE *fp = fopen(file_stdout, "a");
    if (fp != NULL) {
        fputs(data, fp);
        fclose(fp);
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x8c8, %rsp            # imm = 0x8C8
movq %rdi, %r10
leaq -0xd0(%rbp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x36e0
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
leaq -0x20(%rbp), %rdx
movq %rdi, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rdx)
leaq -0x8d0(%rbp), %rdi
movq %r10, %rsi
callq 0x1110
movq 0x39dd(%rip), %rdi      # 0x70f0
leaq 0xc69(%rip), %rsi       # 0x4383
callq 0x1120
testq %rax, %rax
je 0x373e
movq %rax, %rbx
leaq -0x8d0(%rbp), %rdi
movq %rax, %rsi
callq 0x1090
movq %rbx, %rdi
callq 0x1070
xorl %eax, %eax
addq $0x8c8, %rsp            # imm = 0x8C8
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MicBrain[P]Git-Sample/util.c
// Function: fake_fprint
int fake_fprint(FILE* stream, char* fmt, ...) {
    // append to file
    char data[2048]; // if your line is longer than this, you're doing something wrong
    va_list args;
    const char * filename_to_open;
    if (stream == stdout) {
        filename_to_open = file_stdout;
    } else if (stream == stderr) {
        filename_to_open = file_stderr;
    } else {
        va_start(args, fmt);
        vfprintf(stream, fmt, args);
        va_end(args);
        return 0;
    }
    va_start(args, fmt);
    vsprintf(data, fmt, args);
    va_end(args);
    FILE *fp = fopen(filename_to_open, "a");
    if (fp != NULL) {
        fputs(data, fp);
        fclose(fp);
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x8c8, %rsp            # imm = 0x8C8
movq %rdx, -0xc0(%rbp)
movq %rcx, -0xb8(%rbp)
movq %r8, -0xb0(%rbp)
movq %r9, -0xa8(%rbp)
testb %al, %al
je 0x379c
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
movq 0x3835(%rip), %rax      # 0x6fd8
cmpq %rdi, (%rax)
je 0x37df
movq 0x3849(%rip), %rax      # 0x6ff8
cmpq %rdi, (%rax)
je 0x37e8
leaq -0xd0(%rbp), %rax
leaq -0x20(%rbp), %rdx
movq %rax, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
callq 0x1150
jmp 0x3850
leaq 0x390a(%rip), %rax      # 0x70f0
jmp 0x37ef
leaq 0x3909(%rip), %rax      # 0x70f8
movq (%rax), %rbx
leaq -0xd0(%rbp), %rax
leaq -0x20(%rbp), %rdx
movq %rax, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
leaq -0x8d0(%rbp), %rdi
callq 0x1110
leaq 0xb5a(%rip), %rsi       # 0x4383
movq %rbx, %rdi
callq 0x1120
testq %rax, %rax
je 0x3850
movq %rax, %rbx
leaq -0x8d0(%rbp), %rdi
movq %rax, %rsi
callq 0x1090
movq %rbx, %rdi
callq 0x1070
xorl %eax, %eax
addq $0x8c8, %rsp            # imm = 0x8C8
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jelaas[P]egetty/egetty.c
// Function: console_ucast
int console_ucast(int s, int ifindex, struct sk_buff *skb)
{
	struct sockaddr_ll dest;
	socklen_t destlen = sizeof(dest);

	memset(&dest, 0, sizeof(dest));

	dest.sll_family = AF_PACKET;
	dest.sll_halen = 6;
	dest.sll_protocol = htons(ETH_P_EGETTY);
	dest.sll_ifindex = ifindex;
	memcpy(dest.sll_addr, conf.client.sll_addr, 6);
	
	return sendto(s, skb->data, skb->len, 0, (const struct sockaddr *)&dest, destlen);
}

// Assembly:
subq $0x18, %rsp
leaq 0x4(%rsp), %r8
andq $0x0, 0x8(%r8)
andl $0x0, 0x10(%r8)
movl $0x11680011, (%r8)      # imm = 0x11680011
movb $0x6, 0xb(%r8)
movl %esi, 0x4(%r8)
movl 0xd3a4f(%rip), %eax     # 0x4d5330
movl %eax, 0xc(%r8)
movzwl 0xd3a48(%rip), %eax     # 0x4d5334
movw %ax, 0x10(%r8)
movq 0x38(%rdx), %rsi
movl (%rdx), %edx
pushq $0x14
popq %r9
xorl %ecx, %ecx
callq 0x453650
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/jelaas[P]egetty/egetty.c
// Function: console_bcast
int console_bcast(int s, int ifindex, struct sk_buff *skb)
{
	struct sockaddr_ll dest;
	socklen_t destlen = sizeof(dest);

	memset(&dest, 0, sizeof(dest));

	dest.sll_family = AF_PACKET;
	dest.sll_halen = 6;
	dest.sll_protocol = htons(ETH_P_EGETTY);
	dest.sll_ifindex = ifindex;
	memset(dest.sll_addr, 255, 6);
	
	return sendto(s, skb->data, skb->len, 0, (const struct sockaddr *)&dest, destlen);
}

// Assembly:
subq $0x18, %rsp
leaq 0x4(%rsp), %r8
andq $0x0, 0x8(%r8)
andl $0x0, 0x10(%r8)
movl $0x11680011, (%r8)      # imm = 0x11680011
movb $0x6, 0xb(%r8)
movl %esi, 0x4(%r8)
orl $-0x1, 0xc(%r8)
orw $-0x1, 0x10(%r8)
movq 0x38(%rdx), %rsi
movl (%rdx), %edx
pushq $0x14
popq %r9
xorl %ecx, %ecx
callq 0x453650
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/jelaas[P]egetty/egetty.c
// Function: console_put
int console_put(int s, int ifindex, struct sk_buff *skb)
{
	int rc;
	uint8_t *p;

	p = skb_push(skb, 4);
	*p++ = EGETTY_OUT;
	*p++ = conf.console;
	*p++ = skb->len >> 8;
	*p = skb->len & 0xff;

	rc = console_ucast(s, ifindex, skb);
	if(rc == -1) {
		printf("sendto failed: %s\n", strerror(errno));
		return -1;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movl %edi, %r14d
pushq $0x4
popq %rsi
movq %rdx, %rdi
callq 0x4022d6
movb $0x5, (%rax)
movb 0xd399d(%rip), %cl      # 0x4d5308
movb %cl, 0x1(%rax)
movb 0x1(%rbx), %cl
movb %cl, 0x2(%rax)
movb (%rbx), %cl
movb %cl, 0x3(%rax)
movl %r14d, %edi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x4018b8
movl %eax, %ecx
xorl %eax, %eax
cmpl $-0x1, %ecx
jne 0x4019af
callq 0x404e40
movl (%rax), %edi
callq 0x4232f0
leaq 0xa06e3(%rip), %rdi     # 0x4a2085
movq %rax, %rsi
xorl %eax, %eax
callq 0x40c8c0
pushq $-0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jelaas[P]egetty/egetty.c
// Function: console_hello
int console_hello(int s, int ifindex, struct sk_buff *skb)
{
	int rc;
	uint8_t *p;

	p = skb_push(skb, 4);
	*p++ = EGETTY_HELLO;
	*p++ = conf.console;
	*p++ = skb->len >> 8;
	*p = skb->len & 0xff;

	rc = console_bcast(s, ifindex, skb);
	if(rc == -1) {
		printf("sendto failed: %s\n", strerror(errno));
		return -1;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movl %edi, %r14d
pushq $0x4
popq %rsi
movq %rdx, %rdi
callq 0x4022d6
movb $0x3, (%rax)
movb 0xd3934(%rip), %cl      # 0x4d5308
movb %cl, 0x1(%rax)
movb 0x1(%rbx), %cl
movb %cl, 0x2(%rax)
movb (%rbx), %cl
movb %cl, 0x3(%rax)
movl %r14d, %edi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x401907
movl %eax, %ecx
xorl %eax, %eax
cmpl $-0x1, %ecx
jne 0x401a18
callq 0x404e40
movl (%rax), %edi
callq 0x4232f0
leaq 0xa067a(%rip), %rdi     # 0x4a2085
movq %rax, %rsi
xorl %eax, %eax
callq 0x40c8c0
pushq $-0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jelaas[P]egetty/skbuff.c
// Function: alloc_skb
struct sk_buff *alloc_skb(unsigned int size)
{
	struct sk_buff *skb;
	void *data;

	data = malloc(size);
	if(!data) return NULL;
	
	skb = malloc(sizeof(struct sk_buff));
	if(!skb) {
		free(data);
		return NULL;
	}
	memset(skb, 0, sizeof(struct sk_buff));
	skb->head = data;
	skb->data = skb->tail = skb->head;
	skb->end = skb->head + size;
	return skb;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movq %rbx, %rdi
callq 0x420c40
testq %rax, %rax
je 0x40211f
movq %rax, %r14
pushq $0x1
popq %rdi
pushq $0x40
popq %rsi
callq 0x422090
testq %rax, %rax
je 0x402117
movq %r14, 0x30(%rax)
movq %r14, 0x20(%rax)
movq %r14, 0x38(%rax)
addq %rbx, %r14
movq %r14, 0x28(%rax)
jmp 0x402121
movq %r14, %rdi
callq 0x420f80
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/jelaas[P]egetty/skbuff.c
// Function: skb_copy_expand
struct sk_buff *skb_copy_expand(const struct sk_buff *skb,
				int newheadroom, int newtailroom)
{
	struct sk_buff *nskb;
	void *ndata;

	ndata = malloc(skb->len + newheadroom + newtailroom);
	if(!ndata) return NULL;
	
	nskb = malloc(sizeof(struct sk_buff));
	if(!nskb) {
		free(ndata);
		return NULL;
	}
	memcpy(nskb, skb, sizeof(struct sk_buff));
	memcpy(ndata + newheadroom, skb->data, skb->len);
	
	nskb->head = ndata;
	nskb->data = ndata + newheadroom;
	nskb->end = ndata + skb->len + newheadroom + newtailroom;
	nskb->tail = ndata + skb->len + newheadroom;
	
	return nskb;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %r13d
movq %rdi, %r12
movl (%rdi), %r14d
leal (%rbx,%r13), %eax
leal (%r14,%rax), %edi
callq 0x420c40
testq %rax, %rax
je 0x402209
movq %rax, %rbp
pushq $0x40
popq %rdi
callq 0x420c40
testq %rax, %rax
je 0x402201
movq %rax, %r15
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movslq %r13d, %rax
movq %rbp, %r13
addq %rax, %r13
movq 0x38(%r12), %rsi
movq %r13, %rdi
movq %r14, %rdx
callq 0x401040
movq %rbp, 0x30(%r15)
movq %r13, 0x38(%r15)
addq %r14, %r13
movslq %ebx, %rax
addq %r13, %rax
movq %rax, 0x28(%r15)
movq %r13, 0x20(%r15)
jmp 0x40220c
movq %rbp, %rdi
callq 0x420f80
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jelaas[P]egetty/skbuff.c
// Function: skb_copy
struct sk_buff *skb_copy(const struct sk_buff *skb)
{
	struct sk_buff *nskb;
	void *ndata;

	ndata = malloc(skb->end - skb->head);
	if(!ndata) return NULL;
	
	nskb = malloc(sizeof(struct sk_buff));
	if(!nskb) {
		free(ndata);
		return NULL;
	}
	memcpy(nskb, skb, sizeof(struct sk_buff));
	memcpy(ndata, skb->head, skb->end - skb->head);
	
	nskb->head = ndata;
	nskb->data = ndata + skb_headroom(skb);
	nskb->end = ndata + (skb->end - skb->head);
	nskb->tail = nskb->data + skb->len;
	
	return nskb;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %r14
movq 0x30(%rdi), %r13
subq %r13, %r14
movq %r14, %rdi
callq 0x420c40
testq %rax, %rax
je 0x40229c
movq %rax, %r12
pushq $0x40
popq %rdi
callq 0x420c40
testq %rax, %rax
je 0x402294
movq %rax, %r15
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x401040
movq %r12, 0x30(%r15)
movl 0x38(%rbx), %eax
subl %r13d, %eax
addq %r12, %rax
movq %rax, 0x38(%r15)
addq %r14, %r12
movq %r12, 0x28(%r15)
movl (%rbx), %ecx
addq %rax, %rcx
movq %rcx, 0x20(%r15)
jmp 0x40229f
movq %r12, %rdi
callq 0x420f80
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/antonblanchard[P]will-it-scale/tests/writeseek1.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	char buf[BUFLEN];
	char tmpfile[] = "/tmp/willitscale.XXXXXX";
	int fd = mkstemp(tmpfile);

	memset(buf, 0, sizeof(buf));
	assert(fd >= 0);
	unlink(tmpfile);

	while (1) {
		lseek(fd, 0, SEEK_SET);
		assert(write(fd, buf, BUFLEN) == BUFLEN);

		(*iterations)++;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1020, %rsp           # imm = 0x1020
movq %rdi, %rbx
movaps 0x7ab(%rip), %xmm0      # 0x32f0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movabsq $0x5858585858582e, %rax # imm = 0x5858585858582E
movq %rax, 0x10(%rdi)
callq 0x21d0
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
movl $0x1000, %edx           # imm = 0x1000
xorl %esi, %esi
callq 0x2140
testl %ebp, %ebp
js 0x2bc2
movq %rsp, %rdi
callq 0x2080
leaq 0x20(%rsp), %r14
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2120
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
movq %r14, %rsi
callq 0x20d0
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x2ba9
incq (%rbx)
jmp 0x2b82
leaq 0x71f(%rip), %rdi       # 0x32cf
leaq 0x6d2(%rip), %rsi       # 0x3289
leaq 0x6de(%rip), %rcx       # 0x329c
pushq $0x17
jmp 0x2bd9
leaq 0x6b8(%rip), %rdi       # 0x3281
leaq 0x6b9(%rip), %rsi       # 0x3289
leaq 0x6c5(%rip), %rcx       # 0x329c
pushq $0x12
popq %rdx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/gfa-base.c
// Function: gfa_init
gfa_t *gfa_init(void)
{
	gfa_t *g;
	g = (gfa_t*)calloc(1, sizeof(gfa_t));
	g->h_names = kh_init(seg);
	g->h_snames = kh_init(seg);
	return g;
}

// Assembly:
pushq %rbx
pushq $0x1
popq %rdi
pushq $0x60
popq %rsi
callq 0x1130
movq %rax, %rbx
callq 0x1bff
movq %rax, 0x18(%rbx)
callq 0x1bff
movq %rax, 0x30(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/gfa-base.c
// Function: gfa_destroy
void gfa_destroy(gfa_t *g)
{
	uint32_t i, j;
	uint64_t k;
	if (g == 0) return;
	kh_destroy(seg, (seghash_t*)g->h_names);
	for (i = 0; i < g->n_seg; ++i) {
		gfa_seg_t *s = &g->seg[i];
		free(s->name);
		free(s->seq);
		free(s->aux.aux);
		if (s->utg) {
			for (j = 0; j < s->utg->n; ++j)
				free(s->utg->name[j]);
			free(s->utg->name);
			free(s->utg->a);
			free(s->utg);
		}
	}
	for (i = 0; i < g->n_sseq; ++i) free(g->sseq[i].name);
	kh_destroy(seg, (seghash_t*)g->h_snames);
	if (g->link_aux)
		for (k = 0; k < g->n_arc; ++k)
			free(g->link_aux[k].aux);
	free(g->idx); free(g->seg); free(g->arc); free(g->link_aux); free(g->sseq);
	free(g);
}

// Assembly:
testq %rdi, %rdi
je 0x1d4a
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x1d4b
xorl %r14d, %r14d
movl 0x4(%rbx), %eax
cmpq %rax, %r14
jae 0x1cb3
movq 0x10(%rbx), %r15
movq %r14, %r12
shlq $0x6, %r12
movq 0x18(%r15,%r12), %rdi
callq 0x1040
movq 0x20(%r15,%r12), %rdi
callq 0x1040
movq 0x38(%r15,%r12), %rdi
callq 0x1040
movq 0x28(%r15,%r12), %rax
testq %rax, %rax
je 0x1cae
addq %r12, %r15
xorl %r12d, %r12d
movl 0x14(%rax), %ecx
movq 0x28(%rax), %rdi
cmpq %rcx, %r12
jae 0x1c93
movq (%rdi,%r12,8), %rdi
callq 0x1040
incq %r12
movq 0x28(%r15), %rax
jmp 0x1c75
callq 0x1040
movq 0x28(%r15), %rax
movq 0x18(%rax), %rdi
callq 0x1040
movq 0x28(%r15), %rdi
callq 0x1040
incq %r14
jmp 0x1c34
xorl %r14d, %r14d
xorl %r15d, %r15d
movl 0x24(%rbx), %eax
cmpq %rax, %r15
jae 0x1cd7
movq 0x28(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x1040
incq %r15
addq $0x18, %r14
jmp 0x1cb9
movq 0x30(%rbx), %rdi
callq 0x1d4b
cmpq $0x0, 0x50(%rbx)
je 0x1d0a
pushq $0x8
popq %r14
xorl %r15d, %r15d
cmpq 0x40(%rbx), %r15
jae 0x1d0a
movq 0x50(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x1040
incq %r15
addq $0x10, %r14
jmp 0x1cee
movq 0x58(%rbx), %rdi
callq 0x1040
movq 0x10(%rbx), %rdi
callq 0x1040
movq 0x48(%rbx), %rdi
callq 0x1040
movq 0x50(%rbx), %rdi
callq 0x1040
movq 0x28(%rbx), %rdi
callq 0x1040
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1040
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/gfa-base.c
// Function: gfa_add_seg
int32_t gfa_add_seg(gfa_t *g, const char *name)
{
	khint_t k;
	int absent;
	seghash_t *h = (seghash_t*)g->h_names;
	k = kh_put(seg, h, name, &absent);
	if (absent) {
		gfa_seg_t *s;
		if (g->n_seg == g->m_seg) {
			uint32_t old_m = g->m_seg;
			g->m_seg = g->m_seg? g->m_seg<<1 : 16;
			g->seg = (gfa_seg_t*)realloc(g->seg, g->m_seg * sizeof(gfa_seg_t));
			memset(&g->seg[old_m], 0, (g->m_seg - old_m) * sizeof(gfa_seg_t));
		}
		s = &g->seg[g->n_seg++];
		kh_key(h, k) = s->name = gfa_strdup(name);
		s->del = s->len = 0;
		s->snid = s->soff = s->rank = -1;
		kh_val(h, k) = g->n_seg - 1;
	}
	return kh_val(h, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq 0x18(%rdi), %rbx
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1ee3
movl %eax, %ebp
cmpl $0x0, (%r12)
je 0x1e73
movl 0x4(%r14), %r13d
cmpl (%r14), %r13d
jne 0x1e7e
leal (,%r13,2), %eax
testl %r13d, %r13d
pushq $0x10
popq %rsi
cmovnel %eax, %esi
movl %esi, (%r14)
movq 0x10(%r14), %rdi
shlq $0x6, %rsi
callq 0x11a0
movq %rax, %r12
movq %rax, 0x10(%r14)
movq %r13, %rdi
shlq $0x6, %rdi
addq %rax, %rdi
movl (%r14), %edx
subl %r13d, %edx
shlq $0x6, %rdx
xorl %esi, %esi
callq 0x1100
movl 0x4(%r14), %r13d
jmp 0x1e82
movq 0x20(%rbx), %rax
movl %ebp, %ecx
movl (%rax,%rcx,4), %eax
jmp 0x1ed4
movq 0x10(%r14), %r12
leal 0x1(%r13), %eax
movl %eax, 0x4(%r14)
movl %r13d, %r13d
shlq $0x6, %r13
movq %r15, %rdi
callq 0x1d92
movq %rax, 0x18(%r12,%r13)
movq 0x18(%rbx), %rcx
movl %ebp, %edx
movq %rax, (%rcx,%rdx,8)
andl $0x0, (%r12,%r13)
movzwl 0x6(%r12,%r13), %eax
shll $0x10, %eax
movl %eax, 0x4(%r12,%r13)
orl $-0x1, 0x10(%r12,%r13)
orq $-0x1, 0x8(%r12,%r13)
movl 0x4(%r14), %eax
decl %eax
movq 0x20(%rbx), %rcx
movl %eax, (%rcx,%rdx,4)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/gfa-base.c
// Function: gfa_sseq_add
int32_t gfa_sseq_add(gfa_t *g, const char *sname)
{
	khash_t(seg) *h = (khash_t(seg)*)g->h_snames;
	khint_t k;
	int absent;
	k = kh_put(seg, h, sname, &absent);
	if (absent) {
		gfa_sseq_t *ss;
		if (g->n_sseq == g->m_sseq) GFA_EXPAND(g->sseq, g->m_sseq);
		ss = &g->sseq[g->n_sseq++];
		kh_val(h, k) = g->n_sseq - 1;
		kh_key(h, k) = ss->name = gfa_strdup(sname);
		ss->min = -1, ss->max = -1, ss->rank = -1;
	}
	return kh_val(h, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq 0x30(%rdi), %rbx
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1ee3
movl %eax, %ebp
cmpl $0x0, (%r12)
je 0x212d
movl 0x24(%r15), %eax
cmpl 0x20(%r15), %eax
jne 0x2132
movl %eax, %ecx
shrl %ecx
addl %eax, %ecx
testl %eax, %eax
pushq $0x10
popq %rax
cmovnel %ecx, %eax
movl %eax, 0x20(%r15)
movq 0x28(%r15), %rdi
imulq $0x18, %rax, %rsi
callq 0x11a0
movq %rax, %r12
movq %rax, 0x28(%r15)
movl 0x24(%r15), %eax
jmp 0x2136
movl %ebp, %r15d
jmp 0x216e
movq 0x28(%r15), %r12
leal 0x1(%rax), %ecx
movl %ecx, 0x24(%r15)
movl %eax, %ecx
imulq $0x18, %rcx, %r13
movq 0x20(%rbx), %rcx
movl %ebp, %r15d
movl %eax, (%rcx,%r15,4)
movq %r14, %rdi
callq 0x1d92
movq %rax, (%r12,%r13)
movq 0x18(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
orq $-0x1, 0x8(%r12,%r13)
orl $-0x1, 0x10(%r12,%r13)
movq 0x20(%rbx), %rax
movl (%rax,%r15,4), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/gfa-base.c
// Function: gfa_sseq_get
int32_t gfa_sseq_get(const gfa_t *g, const char *sname)
{
	khash_t(seg) *h = (khash_t(seg)*)g->h_snames;
	khint_t k;
	k = kh_get(seg, h, sname);
	return k == kh_end(h)? -1 : kh_val(h, k);
}

// Assembly:
pushq %rbx
movq 0x30(%rdi), %rbx
movq %rbx, %rdi
callq 0x21a6
cmpl (%rbx), %eax
jne 0x219b
pushq $-0x1
popq %rax
jmp 0x21a4
movq 0x20(%rbx), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/gfa-base.c
// Function: gfa_name2id
int32_t gfa_name2id(const gfa_t *g, const char *name)
{
	seghash_t *h = (seghash_t*)g->h_names;
	khint_t k;
	k = kh_get(seg, h, name);
	return k == kh_end(h)? -1 : kh_val(h, k);
}

// Assembly:
pushq %rbx
movq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x21a6
cmpl (%rbx), %eax
jne 0x230f
pushq $-0x1
popq %rax
jmp 0x2318
movq 0x20(%rbx), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/pdist.c
// Function: rs_sort_mz
void pt_pdopt_init(pt_pdopt_t *opt)
{
	memset(opt, 0, sizeof(pt_pdopt_t));
	opt->k = 51, opt->w = 51, opt->is_hpc = 1;
	opt->max_occ = 20;
	opt->min_cnt = 5;
	opt->min_sim = 0.95;
	opt->diff_thres = 0.5;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1018, %rsp           # imm = 0x1018
movl %ecx, %ebx
movl %edx, %ecx
pushq $0x1
popq %rdx
shll %cl, %edx
movl %ecx, 0xc(%rsp)
cmpl $0x8, %ecx
jg 0x5ece
movslq %edx, %r14
decl %edx
movq %r14, %rcx
shlq $0x4, %rcx
leaq (%rsp,%rcx), %rax
addq $0x10, %rax
leaq 0x10(%rsp), %r8
testq %rcx, %rcx
je 0x5d5f
movq %rdi, 0x8(%r8)
movq %rdi, (%r8)
addq $0x10, %r8
addq $-0x10, %rcx
jmp 0x5d49
movl %ebx, %ecx
movslq %edx, %rdx
movq %rdi, %r8
cmpq %rsi, %r8
je 0x5d85
movq (%r8), %r9
shrq %cl, %r9
andq %rdx, %r9
shlq $0x4, %r9
addq $0x10, 0x18(%rsp,%r9)
addq $0x10, %r8
jmp 0x5d67
leaq 0x20(%rsp), %rsi
shlq $0x4, %r14
leaq -0x10(%r14), %r8
movq %rsi, %r9
testq %r8, %r8
je 0x5db5
movq -0x8(%r9), %r10
movq %r10, %r11
subq %rdi, %r11
addq %r11, 0x8(%r9)
movq %r10, (%r9)
addq $0x10, %r9
addq $-0x10, %r8
jmp 0x5d95
leaq 0x10(%rsp), %r8
cmpq %rax, %r8
je 0x5e4d
movq (%r8), %r10
cmpq 0x8(%r8), %r10
je 0x5e44
movq (%r10), %r9
movq %r9, %r11
shrq %cl, %r11
andq %rdx, %r11
shlq $0x4, %r11
addq %rsp, %r11
addq $0x10, %r11
cmpq %r8, %r11
je 0x5e38
movq 0x8(%r10), %r10
movq %r9, %r15
movq %r10, %r12
movq (%r11), %r13
movq (%r13), %r9
movq 0x8(%r13), %r10
leaq 0x10(%r13), %rbp
movq %rbp, (%r11)
movq %r15, (%r13)
movq %r12, 0x8(%r13)
movq %r9, %r11
shrq %cl, %r11
andq %rdx, %r11
shlq $0x4, %r11
addq %rsp, %r11
addq $0x10, %r11
cmpq %r8, %r11
jne 0x5dec
movq (%r8), %r11
leaq 0x10(%r11), %r15
movq %r15, (%r8)
movq %r9, (%r11)
movq %r10, 0x8(%r11)
jmp 0x5dba
addq $0x10, %r10
movq %r10, (%r8)
jmp 0x5dba
addq $0x10, %r8
jmp 0x5dba
movq %rdi, 0x10(%rsp)
leaq -0x10(%r14), %rax
testq %rax, %rax
je 0x5e6c
movq -0x8(%rsi), %rcx
movq %rcx, (%rsi)
addq $0x10, %rsi
addq $-0x10, %rax
jmp 0x5e56
testl %ebx, %ebx
je 0x5ebc
xorl %eax, %eax
subl 0xc(%rsp), %ebx
cmovlel %eax, %ebx
leaq 0x10(%rsp), %r15
testq %r14, %r14
je 0x5ebc
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %rsi, %rax
subq %rdi, %rax
sarq $0x4, %rax
cmpq $0x41, %rax
jl 0x5ea7
movl 0xc(%rsp), %edx
movl %ebx, %ecx
callq 0x5d09
jmp 0x5eb2
cmpq $0x2, %rax
jl 0x5eb2
callq 0x5cc4
addq $0x10, %r15
addq $-0x10, %r14
jmp 0x5e7e
addq $0x1018, %rsp           # imm = 0x1018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x222b(%rip), %rdi      # 0x8100
leaq 0x27cc(%rip), %rsi      # 0x86a8
leaq 0x27cd(%rip), %rcx      # 0x86b0
pushq $0x7
popq %rdx
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/pdist.c
// Function: pt_lis_64
int32_t pt_lis_64(int32_t n, const uint64_t *a, int32_t *b)
{
	int32_t i, k, L = 0, *M, *P = b;
	PT_MALLOC(M, n+1);
	for (i = 0; i < n; ++i) {
		int32_t lo = 1, hi = L, newL;
		while (lo <= hi) {
			int32_t mid = (lo + hi + 1) >> 1;
			if (a[M[mid]] < a[i]) lo = mid + 1;
			else hi = mid - 1;
		}
		newL = lo, P[i] = M[newL - 1], M[newL] = i;
		if (newL > L) L = newL;
	}
	k = M[L];
	memcpy(M, P, n * sizeof(int32_t));
	for (i = L - 1; i >= 0; --i) b[i] = k, k = M[k];
	free(M);
	return L;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r12
movslq %edi, %r15
leaq 0x4(,%r15,4), %rdi
callq 0x1190
movq %rax, %r14
xorl %eax, %eax
testl %r15d, %r15d
movl $0x0, %ecx
cmovgl %r15d, %ecx
pushq $0x1
popq %rdx
xorl %ebp, %ebp
cmpq %rcx, %rax
je 0x5fb1
movl %edx, %esi
movl %ebp, %edi
cmpl %edi, %esi
jg 0x5f97
leal (%rsi,%rdi), %r8d
incl %r8d
sarl %r8d
movslq %r8d, %r9
movslq (%r14,%r9,4), %r9
movq (%r12,%r9,8), %r9
cmpq (%r12,%rax,8), %r9
jb 0x5f8f
decl %r8d
movl %r8d, %edi
jmp 0x5f68
incl %r8d
movl %r8d, %esi
jmp 0x5f68
movslq %esi, %rdi
movl -0x4(%r14,%rdi,4), %r8d
movl %r8d, (%rbx,%rax,4)
movl %eax, (%r14,%rdi,4)
cmpl %ebp, %esi
cmovgl %esi, %ebp
incq %rax
jmp 0x5f5f
movslq %ebp, %rax
movl (%r14,%rax,4), %r12d
shlq $0x2, %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1180
movl %ebp, %eax
testl %eax, %eax
jle 0x5fe1
movl %r12d, -0x4(%rbx,%rax,4)
decq %rax
movslq %r12d, %rcx
movl (%r14,%rcx,4), %r12d
jmp 0x5fcc
movq %r14, %rdi
callq 0x1040
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/pdist.c
// Function: pt_pdist_symm
uint32_t pt_pdist_symm(pt_match_t *ma)
{
	uint8_t *del;
	uint32_t i, k, n = 0;
	PT_CALLOC(del, ma->n_ma);
	for (i = 0; i < ma->n_ma; ++i) {
		pt_match1_t *m = &ma->ma[i];
		if (m->sid[0] == m->sid[1]) del[i] = 1, ++n;
		else if (!pt_pdist_has_rev(ma, m->sid[1], m->sid[0], m->rev))
			del[i] = 1, ++n;
	}
	if (n > 0) {
		for (i = k = 0; i < ma->n_ma; ++i)
			if (!del[i]) ma->ma[k++] = ma->ma[i];
		ma->n_ma = k;
		pt_pdist_idx(ma);
	}
	free(del);
	if (pt_verbose >= 3)
		fprintf(stderr, "[%s::%.3f] dropped %d one directional edges; %d remain\n", __func__, pt_realtime(), n, ma->n_ma);
	return n;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl 0x4(%rdi), %r12d
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x1130
movq %rax, %r15
xorl %eax, %eax
xorl %ebx, %ebx
cmpq %r12, %rax
je 0x6076
movq 0x18(%r14), %r8
imulq $0x18, %rax, %rdx
movl (%r8,%rdx), %ecx
movl 0x4(%r8,%rdx), %esi
cmpl %esi, %ecx
jne 0x603b
movb $0x1, (%r15,%rax)
incl %ebx
incq %rax
jmp 0x6015
addq %r8, %rdx
movl 0xc(%rdx), %edx
movq 0x8(%r14), %rdi
movq (%rdi,%rsi,8), %rsi
movq %rsi, %rdi
shrq $0x20, %rdi
addl %edi, %esi
imulq $0x18, %rdi, %r9
addq %r9, %r8
addq $0xc, %r8
cmpq %rsi, %rdi
jae 0x602f
cmpl %ecx, -0x8(%r8)
jne 0x606d
cmpl %edx, (%r8)
je 0x6036
incq %rdi
addq $0x18, %r8
jmp 0x605d
testl %ebx, %ebx
je 0x60c6
xorl %eax, %eax
xorl %edx, %edx
xorl %ecx, %ecx
movl %r12d, %esi
cmpq %rsi, %rdx
jae 0x60ba
cmpb $0x0, (%r15,%rdx)
jne 0x60b1
movq 0x18(%r14), %rsi
movl %ecx, %edi
incl %ecx
imulq $0x18, %rdi, %rdi
movq 0x10(%rsi,%rax), %r8
movq %r8, 0x10(%rsi,%rdi)
movups (%rsi,%rax), %xmm0
movups %xmm0, (%rsi,%rdi)
movl 0x4(%r14), %r12d
incq %rdx
addq $0x18, %rax
jmp 0x6080
movl %ecx, 0x4(%r14)
movq %r14, %rdi
callq 0x6117
movq %r15, %rdi
callq 0x1040
leaq 0x6163(%rip), %rax      # 0xc238
cmpl $0x3, (%rax)
jae 0x60e8
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x5f09(%rip), %rax      # 0xbff8
movq (%rax), %r15
callq 0x52aa
movl 0x4(%r14), %r8d
leaq 0x25e0(%rip), %rsi      # 0x86e2
leaq 0x2611(%rip), %rdx      # 0x871a
movq %r15, %rdi
movl %ebx, %ecx
movb $0x1, %al
callq 0x1160
jmp 0x60da
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/pdist.c
// Function: pt_pdist_idx
static void pt_pdist_idx(pt_match_t *ma)
{
	uint32_t st, i;
	free(ma->idx);
	PT_CALLOC(ma->idx, ma->n_seg);
	for (st = 0, i = 1; i <= ma->n_ma; ++i)
		if (i == ma->n_ma || ma->ma[i].sid[0] != ma->ma[st].sid[0])
			ma->idx[ma->ma[st].sid[0]] = (uint64_t)st << 32 | (i - st), st = i;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x1040
movl (%rbx), %edi
pushq $0x8
popq %rsi
callq 0x1130
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %ecx
imulq $0x18, %rcx, %rdx
xorl %r8d, %r8d
pushq $0x1
popq %rsi
pushq $0x18
popq %rdi
cmpq %rcx, %rsi
ja 0x6187
movq 0x18(%rbx), %r11
movl %r8d, %r9d
imulq $0x18, %r9, %r10
cmpq %rdi, %rdx
jne 0x615d
movl (%r11,%r10), %r10d
jmp 0x6167
movl (%r11,%r10), %r10d
cmpl %r10d, (%r11,%rdi)
je 0x617e
shlq $0x20, %r9
movl %esi, %r11d
subl %r8d, %r11d
orq %r9, %r11
movl %r10d, %r8d
movq %r11, (%rax,%r8,8)
movl %esi, %r8d
incq %rsi
addq $0x18, %rdi
jmp 0x6142
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]partig/pdist.c
// Function: pt_match_print
void pt_match_print(FILE *fp, const gfa_t *g, const pt_match_t *ma)
{
	uint32_t i;
	for (i = 0; i < g->n_seg; ++i) {
		const gfa_seg_t *s = &g->seg[i];
		const pt_uinfo_t *u = &ma->info[i];
		fprintf(fp, "C\t%s\t%d\t%d\t%d\n", s->name, s->len, u->cnt2, u->cnt1);
	}
	for (i = 0; i < ma->n_ma; ++i) {
		const pt_match1_t *m = &ma->ma[i];
		fprintf(fp, "S\t%s\t%s\t%c\t%d\t%d\t%d\t%.6f\n", g->seg[m->sid[0]].name, g->seg[m->sid[1]].name,
				"+-"[!!m->rev], ma->info[m->sid[0]].cnt2, ma->info[m->sid[1]].cnt2, m->m, m->sim);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x1adc(%rip), %r12      # 0x8728
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x4(%r14), %eax
cmpq %rax, %rbp
jae 0x6c8a
movq 0x10(%r14), %rax
movq 0x10(%rbx), %rsi
movq 0x18(%rax,%r13), %rdx
movl (%rax,%r13), %ecx
movl (%rsi,%rbp,8), %r8d
movl 0x4(%rsi,%rbp,8), %r9d
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1160
incq %rbp
addq $0x40, %r13
jmp 0x6c51
pushq $0x10
popq %r13
xorl %ebp, %ebp
leaq 0x1aa0(%rip), %r12      # 0x8737
movl 0x4(%rbx), %eax
cmpq %rax, %rbp
jae 0x6d0b
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rsi
movq 0x10(%r14), %rcx
movl -0x10(%rsi,%r13), %edx
movl -0xc(%rsi,%r13), %edi
movl (%rax,%rdx,8), %r9d
shlq $0x6, %rdx
movl (%rax,%rdi,8), %r10d
shlq $0x6, %rdi
cmpl $0x1, -0x4(%rsi,%r13)
movq 0x18(%rcx,%rdx), %rdx
leaq 0x15be(%rip), %rax      # 0x8295
sbbq $-0x1, %rax
movq 0x18(%rcx,%rdi), %rcx
movsbl (%rax), %r8d
movl -0x8(%rsi,%r13), %r11d
movsd (%rsi,%r13), %xmm0
movq %r15, %rdi
movq %r12, %rsi
movb $0x1, %al
pushq %r11
pushq %r10
callq 0x1160
popq %rcx
popq %rdx
incq %rbp
addq $0x18, %r13
jmp 0x6c97
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Joy-Division[P]tools-mgs/face-extract.c
// Function: getNameFromDetails
char *getNameFromDetails(uint16_t hash) {
	char *retstring = malloc(32);
	unsigned int result;
	result = matchhash(hash, StrCode16("p"), commondic, numcommondic);
	if(result != 0xFFFFFFFF) sprintf(retstring, "%s", commondic[result].name);
	else {
		sprintf( retstring, "%04x.png", hash );
	}
	return retstring;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebp
pushq $0x20
popq %rdi
callq 0x1160
movq %rax, %rbx
leaq 0x1bcd(%rip), %rdi      # 0xbdcb
callq 0x12dc
movq 0x6f06(%rip), %r14      # 0x11110
movl 0x6f10(%rip), %ecx      # 0x11120
movl %ebp, %edi
movl %eax, %esi
movq %r14, %rdx
callq 0xa1b8
cmpl $-0x1, %eax
je 0xa23e
movl %eax, %eax
imulq $0x108, %rax, %rax      # imm = 0x108
leaq (%r14,%rax), %rsi
addq $0x8, %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1060
leaq 0x282c(%rip), %rsi      # 0xca71
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x11c0
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Joy-Division[P]tools-mgs/face-extract.c
// Function: generatePalette
uint32_t *generatePalette(uint16_t *source) {
	unsigned int i;
	uint8_t red, green, blue;
	uint32_t *retpal = NULL;
	retpal = malloc(sizeof(uint32_t)*256);
	for(i = 0; i < 256; i++) {
		red = source[i] & 0x1F;
		green = (source[i] >> 5) & 0x1F;
		blue = (source[i] >> 10) & 0x1F;
		retpal[i] = 0xFF000000 | color5to8(red) | color5to8(green) << 8 | color5to8(blue) << 16;
	}
	return retpal;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x400, %edi            # imm = 0x400
callq 0x1160
xorl %ecx, %ecx
cmpq $0x100, %rcx            # imm = 0x100
je 0xa2c4
movzwl (%rbx,%rcx,2), %edx
movl %edx, %esi
andl $0x1f, %esi
movl %esi, %edi
shrl $0x2, %edi
leal (%rdi,%rsi,8), %esi
movl %edx, %edi
shll $0x6, %edi
andl $0xf800, %edi           # imm = 0xF800
movl %edx, %r8d
andl $0x380, %r8d            # imm = 0x380
leal (%rdi,%r8,2), %edi
orl %esi, %edi
movl %edx, %esi
shll $0x9, %esi
andl $0x1f80000, %esi        # imm = 0x1F80000
shll $0x4, %edx
andl $0x70000, %edx          # imm = 0x70000
orl %esi, %edx
orl %edi, %edx
orl $0xff000000, %edx       # imm = 0xFF000000
movl %edx, (%rax,%rcx,4)
incq %rcx
jmp 0xa269
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/Joy-Division[P]tools-mgs/face-extract.c
// Function: pixelsToRGBA
unsigned char *pixelsToRGBA(unsigned char *source, uint16_t *paletteData, unsigned int pixelsWidth, unsigned int pixelsHeight) {
	unsigned int i, numPixels = pixelsWidth*pixelsHeight;
	uint8_t *idximage;
	uint32_t *palette = generatePalette(paletteData);
	idximage = source;
	uint32_t *retimage = malloc(sizeof(uint32_t)*numPixels);
	for( i = 0; i < numPixels; i++ ) retimage[i] = palette[idximage[i]];
	free(palette);
	return (unsigned char*)retimage;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
imull %ecx, %ebx
movq %rsi, %rdi
callq 0xa259
movq %rax, %r15
leaq (,%rbx,4), %rdi
callq 0x1160
movq %rax, %r12
xorl %eax, %eax
cmpq %rax, %rbx
je 0xa30a
movzbl (%r14,%rax), %ecx
movl (%r15,%rcx,4), %ecx
movl %ecx, (%r12,%rax,4)
incq %rax
jmp 0xa2f3
movq %r15, %rdi
callq 0x1030
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/vanhauser-thc[P]vulntest/confuse.cpp
// Function: main
int main(int argc, char *argv[]) {
  Base *b1 = new Greeter();
  Base *b2 = new Exec();
  Greeter *g;
  if (argc != 3) {
    printf("Syntax: %s 1|2 greeting\n", argv[0]);
    exit(-1);
  }
  if (argv[1][0] == '1')
    g = static_cast<Greeter *>(b1);
  else if (argv[1][0] == '2')
    g = static_cast<Greeter *>(b2);
  else {
    printf("wrong mode\n");
    exit(-1);
  }
  g->sayHi(argv[2]);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
pushq $0x8
popq %r15
movq %r15, %rdi
callq 0x1080
movq %rax, %r14
leaq 0x2b49(%rip), %r12      # 0x3d58
movq %r12, (%rax)
movq %r15, %rdi
callq 0x1080
leaq 0x2b77(%rip), %rcx      # 0x3d98
movq %rcx, (%rax)
cmpl $0x3, %ebp
jne 0x1256
movq 0x8(%rbx), %rdx
movzbl (%rdx), %edx
cmpl $0x31, %edx
je 0x1240
cmpl $0x32, %edx
jne 0x1269
movq %rcx, %r12
movq %rax, %r14
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq *(%r12)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rsi
leaq 0xda4(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1030
jmp 0x1275
leaq 0xdad(%rip), %rdi       # 0x201d
callq 0x10b0
pushq $-0x1
popq %rdi
callq 0x1090
nop
// File: /workspace/github_c_makefile_star2_O2/deepika9294[P]Threading-Library/one-one/test/mutex2.c
// Function: func
void* func(void* arg)
{
    dthread_mutex_lock(&lock);
    //a method to get which thread is running
    counter += 1;

    printf("Start: Thread %d \n", counter);
    //critical section
    sleep(2);
    printf("Finish: Thread %d \n", counter);
  
    dthread_mutex_unlock(&lock);
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x2917(%rip), %rbx      # 0x40c0
movq %rbx, %rdi
callq 0x1596
movl 0x290d(%rip), %esi      # 0x40c4
incl %esi
movl %esi, 0x2905(%rip)      # 0x40c4
leaq 0x87b(%rip), %rdi       # 0x2041
xorl %eax, %eax
callq 0x1090
pushq $0x2
popq %rdi
callq 0x1100
movl 0x28e9(%rip), %esi      # 0x40c4
leaq 0x872(%rip), %rdi       # 0x2054
xorl %eax, %eax
callq 0x1090
movq %rbx, %rdi
callq 0x15fe
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/deepika9294[P]Threading-Library/one-one/test/mutex2.c
// Function: main
int main(void)
{
    int i = 0;
    int error;
    dthread_init();
    dthread_mutex_init(&lock);
    printf("\n***** MUTEX TEST : 2 *****\n");
    printf("TEST : Thread Synchronization using a shared resource \"counter \" avoiding race condition\n");

    while (i < 3) {
        error = dthread_create(&(tid[i]),&func, NULL);
        if (error != 0)
            printf("\nError in creation");
        i++;
    }
    dthread_join(tid[0], NULL);
    dthread_join(tid[1], NULL);
    dthread_join(tid[2], NULL);
    printf("\n--------------------------------EXITING MUTEX TEST---------------------------------\n\n");

  
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
callq 0x120c
leaq 0x28af(%rip), %rdi      # 0x40c0
callq 0x158b
leaq 0x85e(%rip), %rdi       # 0x207b
callq 0x1050
leaq 0x86e(%rip), %rdi       # 0x2097
callq 0x1050
leaq 0x289b(%rip), %r15      # 0x40d0
leaq -0xa0(%rip), %rbx       # 0x179c
leaq 0x825(%rip), %r14       # 0x2068
xorl %r12d, %r12d
cmpq $0x18, %r12
je 0x186e
leaq (%r15,%r12), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x12f2
testl %eax, %eax
je 0x1868
movq %r14, %rdi
xorl %eax, %eax
callq 0x1090
addq $0x8, %r12
jmp 0x1846
movq 0x285b(%rip), %rdi      # 0x40d0
xorl %esi, %esi
callq 0x1467
movq 0x2855(%rip), %rdi      # 0x40d8
xorl %esi, %esi
callq 0x1467
movq 0x284f(%rip), %rdi      # 0x40e0
xorl %esi, %esi
callq 0x1467
leaq 0x851(%rip), %rdi       # 0x20f0
callq 0x1050
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/dxwc[P]sfeed/sfeed_gph.c
// Function: gphlink
void
gphlink(FILE *fp, const char *s, size_t len)
{
	size_t i;

	for (i = 0; *s && i < len; s++, i++) {
		switch (*s) {
		case '\r': /* ignore CR */
		case '\n': /* ignore LF */
			break;
		case '\t':
			fputs("        ", fp);
			break;
		case '|': /* escape separators */
			fputs("\\|", fp);
			break;
		default:
			fputc(*s, fp);
			break;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
leaq 0xd30(%rip), %r12       # 0x2029
leaq 0xd20(%rip), %r13       # 0x2020
movsbl (%r14,%rbp), %edi
testl %edi, %edi
je 0x1346
cmpq %rbx, %rbp
jae 0x1346
cmpb $0x7c, %dil
je 0x132c
movzbl %dil, %eax
cmpl $0xa, %eax
je 0x1341
cmpl $0xd, %eax
je 0x1341
cmpl $0x9, %eax
jne 0x1339
movq %r13, %rdi
jmp 0x132f
movq %r12, %rdi
movq %r15, %rsi
callq 0x10c0
jmp 0x1341
movq %r15, %rsi
callq 0x10e0
incq %rbp
jmp 0x1300
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/giometti[P]mastering_UNIX_programming/chapter_02/dsync.c
// Function: main
int main(int argc, char *argv[])
{
	int fd, n;
	char buf[MAX_SIZE];
	int ret;

	ret = open("data.bin", O_WRONLY | O_CREAT | O_DSYNC,
			S_IWUSR);
	if (ret < 0) {
		perror("open");
		return -1;
	}
	fd = ret;

	for (n = 0; n < 128; n++) {
		ret = write(fd, buf, n);
		if (ret < 0) {
			perror("write");
			return -1;
		}
	}

	close(fd);

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
leaq 0xe65(%rip), %rdi       # 0x2004
movl $0x1041, %esi           # imm = 0x1041
movl $0x80, %edx
xorl %eax, %eax
callq 0x1070
testl %eax, %eax
js 0x11f8
movl %eax, %ebx
xorl %r14d, %r14d
movq %rsp, %r15
cmpq $0x80, %r14
je 0x11e2
movl %ebx, %edi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1040
incq %r14
testl %eax, %eax
jns 0x11bc
leaq 0xe32(%rip), %rdi       # 0x2012
jmp 0x11ff
movl %ebx, %edi
callq 0x1050
xorl %eax, %eax
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %r15
retq
leaq 0xe0e(%rip), %rdi       # 0x200d
callq 0x1080
pushq $-0x1
popq %rax
jmp 0x11eb
nopl (%rax)