LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x96f(%rip), %rdi       # 0x41cc
leaq -0x130(%rbp), %rsi
movl $0x80, %edx
callq 0x32e8
leaq 0x905(%rip), %rdi       # 0x417a
leaq 0x916(%rip), %rsi       # 0x4192
callq 0x1120
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
movl $0x80, %esi
movq %rax, %rdx
callq 0x10b0
testq %rax, %rax
je 0x3914
leaq -0xb0(%rbp), %r15
movq 0x372d(%rip), %r14      # 0x6fd8
leaq 0x9c5(%rip), %r12       # 0x4277
leaq 0x9ed(%rip), %r13       # 0x42a6
movq %r15, %rdi
leaq 0xaf1(%rip), %rsi       # 0x43b4
callq 0x1130
movq %r15, %rdi
leaq -0x130(%rbp), %rsi
callq 0x10c0
testl %eax, %eax
movq (%r14), %rsi
movq %r12, %rdi
leaq 0xa17(%rip), %rax       # 0x42fd
cmoveq %rax, %rdi
callq 0x1090
movq (%r14), %rdi
movq %r13, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x10d0
movq %r15, %rdi
movl $0x80, %esi
movq %rbx, %rdx
callq 0x10b0
testq %rax, %rax
jne 0x38b9
movq %rbx, %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_O1/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
movq %rdi, %r12
leaq 0x855(%rip), %rsi       # 0x41a3
callq 0x10c0
leaq 0x80e(%rip), %rdi       # 0x4168
testl %eax, %eax
je 0x3a96
leaq 0x829(%rip), %rsi       # 0x4192
callq 0x1120
movq %rax, %r14
leaq -0x130(%rbp), %rdi
movl $0x80, %esi
movq %rax, %rdx
callq 0x10b0
testq %rax, %rax
je 0x39c0
leaq 0xa23(%rip), %rbx       # 0x43b4
leaq -0x130(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1130
movq %r15, %rdi
callq 0x2ec1
movq %r15, %rdi
movl $0x80, %esi
movq %r14, %rdx
callq 0x10b0
testq %rax, %rax
jne 0x3998
movq %r14, %rdi
callq 0x1070
leaq 0x8c5(%rip), %rsi       # 0x4294
leaq 0x888(%rip), %rdx       # 0x425e
leaq 0x793(%rip), %r8        # 0x4170
leaq -0x1d0(%rbp), %rbx
movq %rbx, %rdi
movq %r12, %rcx
xorl %eax, %eax
callq 0x1170
leaq 0x79a(%rip), %rsi       # 0x4192
movq %rbx, %rdi
callq 0x1120
movq %rax, %r14
leaq -0xb0(%rbp), %rdi
movl $0x80, %esi
movq %rax, %rdx
callq 0x10b0
testq %rax, %rax
movq %r12, %r15
je 0x3a76
leaq -0xb0(%rbp), %r12
leaq 0x8d3(%rip), %r13       # 0x4300
leaq -0x2a0(%rbp), %rbx
movq %r12, %rdi
leaq 0x976(%rip), %rsi       # 0x43b4
callq 0x1130
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x1170
movq %rbx, %rdi
movq %r12, %rsi
callq 0x33bd
movq %r12, %rdi
movl $0x80, %esi
movq %r14, %rdx
callq 0x10b0
testq %rax, %rax
jne 0x3a34
leaq 0x6eb(%rip), %rsi       # 0x4168
leaq -0x1d0(%rbp), %rdi
callq 0x33bd
movq %r14, %rdi
callq 0x1070
movq %r15, %r12
jmp 0x3aa2
leaq 0x918(%rip), %rsi       # 0x43b5
callq 0x2d63
leaq 0x6eb(%rip), %rdi       # 0x4194
movq %r12, %rsi
callq 0x2d63
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_O1/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 0x3b07
movabsq $0x4000000000021, %rcx  # imm = 0x4000000000021
movzbl (%rbx), %edx
leal -0x31(%rdx), %esi
cmpl $0x32, %esi
ja 0x3afe
btq %rsi, %rcx
jae 0x3afe
incq %rbx
jmp 0x3ae8
testl %edx, %edx
jne 0x3b07
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3d68
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 0x3355(%rip), %rdi      # 0x70f0
leaq 0x5e7(%rip), %rsi       # 0x4389
callq 0x1120
testq %rax, %rax
je 0x3dc6
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_O1/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 0x3e24
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 0x31ad(%rip), %rax      # 0x6fd8
cmpq %rdi, (%rax)
je 0x3e67
movq 0x31c1(%rip), %rax      # 0x6ff8
cmpq %rdi, (%rax)
je 0x3e70
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 0x3ed8
leaq 0x3282(%rip), %rax      # 0x70f0
jmp 0x3e77
leaq 0x3281(%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 0x4d8(%rip), %rsi       # 0x4389
movq %rbx, %rdi
callq 0x1120
testq %rax, %rax
je 0x3ed8
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_O1/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
xorps %xmm0, %xmm0
movq %rsp, %r8
movaps %xmm0, (%r8)
movl $0x0, 0x10(%r8)
movl $0x11680011, (%r8)      # imm = 0x11680011
movb $0x6, 0xb(%r8)
movl %esi, 0x4(%r8)
movl 0xd3a2e(%rip), %eax     # 0x4d5330
movl %eax, 0xc(%r8)
movzwl 0xd3a27(%rip), %eax     # 0x4d5334
movw %ax, 0x10(%r8)
movq 0x38(%rdx), %rsi
movl (%rdx), %edx
xorl %ecx, %ecx
movl $0x14, %r9d
callq 0x4537d0
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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
xorps %xmm0, %xmm0
movq %rsp, %r8
movaps %xmm0, (%r8)
movl $0x0, 0x10(%r8)
movl $0x11680011, (%r8)      # imm = 0x11680011
movb $0x6, 0xb(%r8)
movl %esi, 0x4(%r8)
movl $0xffffffff, 0xc(%r8)   # imm = 0xFFFFFFFF
movw $0xffff, 0x10(%r8)      # imm = 0xFFFF
movq 0x38(%rdx), %rsi
movl (%rdx), %edx
xorl %ecx, %ecx
movl $0x14, %r9d
callq 0x4537d0
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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
subq $0x20, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movl %edi, %r14d
movq %rdx, %rdi
movl $0x4, %esi
callq 0x40242e
movb $0x5, (%rax)
movb 0xd396b(%rip), %cl      # 0x4d5308
movb %cl, 0x1(%rax)
movb 0x1(%rbx), %cl
movb %cl, 0x2(%rax)
movb (%rbx), %cl
movb %cl, 0x3(%rax)
xorps %xmm0, %xmm0
movq %rsp, %r8
movaps %xmm0, (%r8)
movl $0x0, 0x10(%r8)
movl $0x11680011, (%r8)      # imm = 0x11680011
movb $0x6, 0xb(%r8)
movl %ebp, 0x4(%r8)
movl 0xd395d(%rip), %eax     # 0x4d5330
movl %eax, 0xc(%r8)
movzwl 0xd3956(%rip), %eax     # 0x4d5334
movw %ax, 0x10(%r8)
movq 0x38(%rbx), %rsi
movl (%rbx), %edx
xorl %ebx, %ebx
movl %r14d, %edi
xorl %ecx, %ecx
movl $0x14, %r9d
callq 0x4537d0
cmpl $-0x1, %eax
jne 0x401a22
callq 0x404fa0
movl (%rax), %edi
callq 0x423450
leaq 0xa0672(%rip), %rdi     # 0x4a2085
movq %rax, %rsi
xorl %eax, %eax
callq 0x40ca20
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
subq $0x20, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movl %edi, %r14d
movq %rdx, %rdi
movl $0x4, %esi
callq 0x40242e
movb $0x3, (%rax)
movb 0xd38b5(%rip), %cl      # 0x4d5308
movb %cl, 0x1(%rax)
movb 0x1(%rbx), %cl
movb %cl, 0x2(%rax)
movb (%rbx), %cl
movb %cl, 0x3(%rax)
xorps %xmm0, %xmm0
movq %rsp, %r8
movaps %xmm0, (%r8)
movl $0x0, 0x10(%r8)
movl $0x11680011, (%r8)      # imm = 0x11680011
movb $0x6, 0xb(%r8)
movl %ebp, 0x4(%r8)
movl $0xffffffff, 0xc(%r8)   # imm = 0xFFFFFFFF
movw $0xffff, 0x10(%r8)      # imm = 0xFFFF
movq 0x38(%rbx), %rsi
movl (%rbx), %edx
xorl %ebx, %ebx
movl %r14d, %edi
xorl %ecx, %ecx
movl $0x14, %r9d
callq 0x4537d0
cmpl $-0x1, %eax
jne 0x401ad1
callq 0x404fa0
movl (%rax), %edi
callq 0x423450
leaq 0xa05c3(%rip), %rdi     # 0x4a2085
movq %rax, %rsi
xorl %eax, %eax
callq 0x40ca20
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x420da0
testq %rax, %rax
je 0x402234
movq %rax, %r14
movl $0x40, %edi
callq 0x420da0
testq %rax, %rax
je 0x40222c
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movq %r14, 0x30(%rax)
movq %r14, 0x20(%rax)
movq %r14, 0x38(%rax)
addq %rbx, %r14
movq %r14, 0x28(%rax)
jmp 0x402236
movq %r14, %rdi
callq 0x4210e0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x420da0
testq %rax, %rax
je 0x40234f
movq %rax, %rbp
movl $0x40, %edi
callq 0x420da0
testq %rax, %rax
je 0x402347
movq %rax, %r15
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups 0x30(%r12), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
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 0x402352
movq %rbp, %rdi
callq 0x4210e0
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_O1/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), %r15
movq 0x30(%rdi), %r13
subq %r13, %r15
movq %r15, %rdi
callq 0x420da0
testq %rax, %rax
je 0x4023f4
movq %rax, %r12
movl $0x40, %edi
callq 0x420da0
testq %rax, %rax
je 0x4023ec
movq %rax, %r14
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups 0x30(%rbx), %xmm3
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x401040
movq %r12, 0x30(%r14)
movl 0x38(%rbx), %eax
subl %r13d, %eax
addq %r12, %rax
movq %rax, 0x38(%r14)
addq %r15, %r12
movq %r12, 0x28(%r14)
movl (%rbx), %ecx
addq %rax, %rcx
movq %rcx, 0x20(%r14)
jmp 0x4023f7
movq %r12, %rdi
callq 0x4210e0
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jelaas[P]egetty/skbuff.c
// Function: skb_put
unsigned char *skb_put(struct sk_buff *skb, unsigned int len)
{
	unsigned char *tmp = skb->tail;
	skb->tail += len;
	skb->len  += len;
	return tmp;
}

// Assembly:
movq 0x20(%rdi), %rax
movl %esi, %ecx
addq %rax, %rcx
movq %rcx, 0x20(%rdi)
addl %esi, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6ff(%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 0x2c96
movq %rsp, %rdi
callq 0x2080
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2120
leaq 0x20(%rsp), %rsi
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
callq 0x20d0
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x2c77
leaq 0x20(%rsp), %r14
incq (%rbx)
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
je 0x2c52
leaq 0x651(%rip), %rdi       # 0x32cf
leaq 0x604(%rip), %rsi       # 0x3289
leaq 0x610(%rip), %rcx       # 0x329c
movl $0x17, %edx
callq 0x2130
leaq 0x5e4(%rip), %rdi       # 0x3281
leaq 0x5e5(%rip), %rsi       # 0x3289
leaq 0x5f1(%rip), %rcx       # 0x329c
movl $0x12, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movl $0x1, %edi
movl $0x60, %esi
callq 0x1130
movq %rax, %rbx
xorl %r14d, %r14d
movl $0x1, %esi
movl $0x30, %edx
xorl %edi, %edi
callq 0x1780
movq %r14, 0x28(%rax)
movq %rax, 0x18(%rbx)
movl $0x1, %esi
movl $0x30, %edx
xorl %edi, %edi
callq 0x1780
movq %r14, 0x28(%rax)
movq %rax, 0x30(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x22a3
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %r14
testq %r14, %r14
je 0x2136
movq 0x18(%r14), %rsi
movq 0x28(%r14), %r15
movq %r15, %rdi
callq 0x1822
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x1822
movq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x1822
movq %r15, %rdi
movq %r14, %rsi
callq 0x1822
cmpl $0x0, 0x4(%rbx)
je 0x21ce
xorl %r14d, %r14d
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
cmpq $0x0, 0x28(%r15,%r12)
je 0x21bf
addq %r12, %r15
movq 0x28(%r15), %rax
cmpl $0x0, 0x14(%rax)
je 0x21a0
xorl %r12d, %r12d
movq 0x28(%rax), %rax
movq (%rax,%r12,8), %rdi
callq 0x1040
incq %r12
movq 0x28(%r15), %rax
movl 0x14(%rax), %ecx
cmpq %rcx, %r12
jb 0x2184
movq 0x28(%rax), %rdi
callq 0x1040
movq 0x28(%r15), %rax
movq 0x18(%rax), %rdi
callq 0x1040
movq 0x28(%r15), %rdi
callq 0x1040
incq %r14
movl 0x4(%rbx), %eax
cmpq %rax, %r14
jb 0x2143
cmpl $0x0, 0x24(%rbx)
je 0x21f6
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x1040
incq %r15
movl 0x24(%rbx), %eax
addq $0x18, %r14
cmpq %rax, %r15
jb 0x21da
movq 0x30(%rbx), %r14
testq %r14, %r14
je 0x2232
movq 0x18(%r14), %rsi
movq 0x28(%r14), %r15
movq %r15, %rdi
callq 0x1822
movq 0x10(%r14), %rsi
movq %r15, %rdi
callq 0x1822
movq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x1822
movq %r15, %rdi
movq %r14, %rsi
callq 0x1822
cmpq $0x0, 0x50(%rbx)
je 0x2263
cmpq $0x0, 0x40(%rbx)
je 0x2263
movl $0x8, %r14d
xorl %r15d, %r15d
movq 0x50(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x1040
incq %r15
addq $0x10, %r14
cmpq 0x40(%rbx), %r15
jb 0x2249
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_O1/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
subq $0x18, %rsp
movq %rsi, %r13
movq %rdi, %r14
movq 0x18(%rdi), %rbx
leaq 0x14(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rdx
callq 0x241e
cmpl $0x0, (%r12)
movl %eax, %edx
je 0x2408
movq %rdx, 0x8(%rsp)
movl (%r14), %r15d
cmpl %r15d, 0x4(%r14)
jne 0x2386
leal (%r15,%r15), %eax
testq %r15, %r15
movl $0x10, %esi
cmovnel %eax, %esi
movl %esi, (%r14)
movq 0x10(%r14), %rdi
shlq $0x6, %rsi
callq 0x11a0
movq %rax, 0x10(%r14)
movq %r15, %rdi
shlq $0x6, %rdi
addq %rax, %rdi
movl (%r14), %edx
subl %r15d, %edx
shlq $0x6, %rdx
xorl %esi, %esi
callq 0x1100
movq 0x10(%r14), %rbp
movl 0x4(%r14), %r15d
leal 0x1(%r15), %eax
movl %eax, 0x4(%r14)
shlq $0x6, %r15
movq %r13, %rdi
callq 0x10c0
incl %eax
movslq %eax, %r12
movq %r12, %rdi
callq 0x1190
movq %r13, %rsi
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rdx
callq 0x1180
movq %r13, 0x18(%rbp,%r15)
movq 0x18(%rbx), %rax
movq 0x8(%rsp), %rdx
movq %r13, (%rax,%rdx,8)
movl $0x0, (%rbp,%r15)
movzwl 0x6(%rbp,%r15), %eax
shll $0x10, %eax
movl %eax, 0x4(%rbp,%r15)
movl $0xffffffff, 0x10(%rbp,%r15) # imm = 0xFFFFFFFF
movq $-0x1, 0x8(%rbp,%r15)
movl 0x4(%r14), %eax
decl %eax
movq 0x20(%rbx), %rcx
movl %eax, (%rcx,%rdx,4)
movq 0x20(%rbx), %rax
movl (%rax,%rdx,4), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x241e
cmpl $0x0, (%r12)
movl %eax, %r12d
je 0x26e9
movl 0x20(%r15), %eax
cmpl %eax, 0x24(%r15)
jne 0x2683
movl %eax, %ecx
shrl %ecx
addl %eax, %ecx
testl %eax, %eax
movl $0x10, %eax
cmovnel %ecx, %eax
movl %eax, 0x20(%r15)
movq 0x28(%r15), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x11a0
movq %rax, 0x28(%r15)
movq 0x28(%r15), %rbp
movl 0x24(%r15), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x24(%r15)
leaq (%rax,%rax,2), %r13
movq 0x20(%rbx), %rcx
movl %eax, (%rcx,%r12,4)
movq %r14, %rdi
callq 0x10c0
incl %eax
movslq %eax, %r15
movq %r15, %rdi
callq 0x1190
movq %r14, %rsi
movq %r12, %r14
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rdx
callq 0x1180
movq %r12, (%rbp,%r13,8)
movq 0x18(%rbx), %rax
movq %r12, (%rax,%r14,8)
movq %r14, %r12
movq $-0x1, 0x8(%rbp,%r13,8)
movl $0xffffffff, 0x10(%rbp,%r13,8) # imm = 0xFFFFFFFF
movq 0x20(%rbx), %rax
movl (%rax,%r12,4), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x30(%rdi), %rax
movq %rax, 0x8(%rsp)
movl (%rax), %ecx
testl %ecx, %ecx
je 0x2758
movq %rsi, %r14
leal -0x1(%rcx), %edi
movsbl (%rsi), %r13d
testl %r13d, %r13d
movq %rcx, 0x18(%rsp)
je 0x2760
movb 0x1(%r14), %al
testb %al, %al
je 0x2763
leaq 0x2(%r14), %rcx
movl %r13d, %edx
shll $0x5, %edx
subl %r13d, %edx
movsbl %al, %r13d
addl %edx, %r13d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x273d
jmp 0x2763
xorl %r15d, %r15d
jmp 0x27ee
xorl %r13d, %r13d
andl %edi, %r13d
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdx
movl $0x1, %ebx
movl %r13d, %r15d
movl %edi, 0x14(%rsp)
movq %rdx, 0x20(%rsp)
movl %r15d, %eax
shrl $0x4, %eax
movl (%rdx,%rax,4), %r12d
leal (%r15,%r15), %ebp
andl $0x1e, %ebp
movl %r12d, %eax
movl %ebp, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x27dc
testb $0x1, %al
jne 0x27c5
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movl %r15d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r14, %rsi
callq 0x1140
movq 0x20(%rsp), %rdx
movl 0x14(%rsp), %edi
testl %eax, %eax
je 0x27dc
addl %ebx, %r15d
andl %edi, %r15d
incl %ebx
cmpl %r13d, %r15d
jne 0x2780
movq 0x18(%rsp), %rcx
movl %ecx, %r15d
jmp 0x27ee
movl %ebp, %ecx
shrl %cl, %r12d
testb $0x3, %r12b
movq 0x18(%rsp), %rcx
cmovnel %ecx, %r15d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %r15d
je 0x2807
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl %r15d, %ecx
movl (%rax,%rcx,4), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x18(%rdi), %rax
movq %rax, 0x8(%rsp)
movl (%rax), %ecx
testl %ecx, %ecx
je 0x28f2
movq %rsi, %r14
leal -0x1(%rcx), %edi
movsbl (%rsi), %r13d
testl %r13d, %r13d
movq %rcx, 0x18(%rsp)
je 0x28fa
movb 0x1(%r14), %al
testb %al, %al
je 0x28fd
leaq 0x2(%r14), %rcx
movl %r13d, %edx
shll $0x5, %edx
subl %r13d, %edx
movsbl %al, %r13d
addl %edx, %r13d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x28d7
jmp 0x28fd
xorl %r15d, %r15d
jmp 0x2988
xorl %r13d, %r13d
andl %edi, %r13d
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdx
movl $0x1, %ebx
movl %r13d, %r15d
movl %edi, 0x14(%rsp)
movq %rdx, 0x20(%rsp)
movl %r15d, %eax
shrl $0x4, %eax
movl (%rdx,%rax,4), %r12d
leal (%r15,%r15), %ebp
andl $0x1e, %ebp
movl %r12d, %eax
movl %ebp, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x2976
testb $0x1, %al
jne 0x295f
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movl %r15d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r14, %rsi
callq 0x1140
movq 0x20(%rsp), %rdx
movl 0x14(%rsp), %edi
testl %eax, %eax
je 0x2976
addl %ebx, %r15d
andl %edi, %r15d
incl %ebx
cmpl %r13d, %r15d
jne 0x291a
movq 0x18(%rsp), %rcx
movl %ecx, %r15d
jmp 0x2988
movl %ebp, %ecx
shrl %cl, %r12d
testb $0x3, %r12b
movq 0x18(%rsp), %rcx
cmovnel %ecx, %r15d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %r15d
je 0x29a1
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl %r15d, %ecx
movl (%rax,%rcx,4), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x1008, %rsp           # imm = 0x1008
movl %ecx, %ebx
movl %edx, %ebp
movl $0x1, %edx
movl %ebp, %ecx
shll %cl, %edx
cmpl $0x8, %ebp
jg 0x74c0
movslq %edx, %r14
decl %edx
shlq $0x4, %r14
leaq (%rsp,%r14), %rax
xorl %ecx, %ecx
movq %rdi, 0x8(%rsp,%rcx)
movq %rdi, (%rsp,%rcx)
addq $0x10, %rcx
cmpq %rcx, %r14
jne 0x7360
movl %ebx, %ecx
movslq %edx, %rdx
cmpq %rsi, %rdi
je 0x739b
movq %rdi, %r8
movq (%r8), %r9
shrq %cl, %r9
andq %rdx, %r9
shlq $0x4, %r9
addq $0x10, 0x8(%rsp,%r9)
addq $0x10, %r8
cmpq %rsi, %r8
jne 0x737f
testl %ebp, %ebp
je 0x73c1
movl $0x10, %esi
movq -0x8(%rsp,%rsi), %r8
movq %r8, %r9
subq %rdi, %r9
addq %r9, 0x8(%rsp,%rsi)
movq %r8, (%rsp,%rsi)
addq $0x10, %rsi
cmpq %rsi, %r14
jne 0x73a4
movq %rsp, %rsi
movq (%rsi), %r9
cmpq 0x8(%rsi), %r9
je 0x7434
movq (%r9), %r8
movq %r8, %r10
shrq %cl, %r10
andq %rdx, %r10
shlq $0x4, %r10
addq %rsp, %r10
cmpq %rsi, %r10
je 0x743a
movq 0x8(%r9), %r9
movq %r8, %r11
movq %r9, %r15
movq (%r10), %r12
movq (%r12), %r8
movq 0x8(%r12), %r9
leaq 0x10(%r12), %r13
movq %r13, (%r10)
movq %r11, (%r12)
movq %r15, 0x8(%r12)
movq %r8, %r10
shrq %cl, %r10
andq %rdx, %r10
shlq $0x4, %r10
addq %rsp, %r10
cmpq %rsi, %r10
jne 0x73e9
movq (%rsi), %r10
leaq 0x10(%r10), %r11
movq %r11, (%rsi)
movq %r8, (%r10)
movq %r9, 0x8(%r10)
jmp 0x7441
addq $0x10, %rsi
jmp 0x7441
addq $0x10, %r9
movq %r9, (%rsi)
cmpq %rax, %rsi
jne 0x73c4
movq %rdi, (%rsp)
testl %ebp, %ebp
je 0x7469
movl $0x10, %eax
movq -0x8(%rsp,%rax), %rcx
movq %rcx, (%rsp,%rax)
addq $0x10, %rax
cmpq %rax, %r14
jne 0x7457
testl %ebx, %ebx
je 0x74ae
xorl %r15d, %r15d
subl %ebp, %ebx
cmovlel %r15d, %ebx
movq (%rsp,%r15), %rdi
movq 0x8(%rsp,%r15), %rsi
movq %rsi, %rax
subq %rdi, %rax
sarq $0x4, %rax
cmpq $0x41, %rax
jl 0x749a
movl %ebp, %edx
movl %ebx, %ecx
callq 0x732a
jmp 0x74a5
cmpq $0x2, %rax
jl 0x74a5
callq 0x72d0
addq $0x10, %r15
cmpq %r15, %r14
jne 0x7476
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c39(%rip), %rdi      # 0x9100
leaq 0x21ba(%rip), %rsi      # 0x9688
leaq 0x21bb(%rip), %rcx      # 0x9690
movl $0x7, %edx
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r12
movl %edi, %ebp
movslq %edi, %r15
leaq 0x4(,%r15,4), %rdi
callq 0x1190
movq %rax, %r14
testl %r15d, %r15d
jle 0x75c4
movl %ebp, %eax
xorl %ecx, %ecx
xorl %ebp, %ebp
testl %ebp, %ebp
jle 0x75a1
movq (%r12,%rcx,8), %rsi
movl $0x1, %edx
movl %ebp, %edi
leal (%rdx,%rdi), %r8d
incl %r8d
sarl %r8d
movslq %r8d, %r9
movslq (%r14,%r9,4), %r9
cmpq %rsi, (%r12,%r9,8)
jb 0x7595
decl %r8d
movl %r8d, %edi
jmp 0x759b
incl %r8d
movl %r8d, %edx
cmpl %edi, %edx
jle 0x7576
jmp 0x75a6
movl $0x1, %edx
movslq %edx, %rdx
movl -0x4(%r14,%rdx,4), %esi
movl %esi, (%rbx,%rcx,4)
movl %ecx, (%r14,%rdx,4)
cmpl %ebp, %edx
cmovgl %edx, %ebp
incq %rcx
cmpq %rax, %rcx
jne 0x7567
jmp 0x75c6
xorl %ebp, %ebp
movslq %ebp, %r13
movl (%r14,%r13,4), %r12d
shlq $0x2, %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1180
testl %r13d, %r13d
jle 0x75fe
movl %ebp, %eax
incq %rax
movl %r12d, -0x8(%rbx,%rax,4)
movslq %r12d, %rcx
movl (%r14,%rcx,4), %r12d
decq %rax
cmpq $0x1, %rax
jg 0x75e9
movq %r14, %rdi
callq 0x1040
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x4(%rdi), %r15d
movl $0x1, %esi
movq %r15, %rdi
callq 0x1130
movq %rax, %r14
testq %r15, %r15
je 0x76a8
movq 0x18(%rbx), %rax
leaq 0xc(%rax), %rcx
xorl %edx, %edx
xorl %ebp, %ebp
leaq (%rdx,%rdx,2), %rdi
movl (%rax,%rdi,8), %esi
movl 0x4(%rax,%rdi,8), %r8d
cmpl %r8d, %esi
je 0x7697
movq 0x8(%rbx), %r9
movq (%r9,%r8,8), %r8
movq %r8, %r9
shrq $0x20, %r9
addl %r9d, %r8d
cmpl %r9d, %r8d
jbe 0x7697
leaq (%rax,%rdi,8), %rdi
movl 0xc(%rdi), %edi
movl %r8d, %r8d
subq %r9, %r8
leaq (%r9,%r9,2), %r9
leaq (%rcx,%r9,8), %r9
cmpl %esi, -0x8(%r9)
jne 0x768e
cmpl %edi, (%r9)
je 0x769e
addq $0x18, %r9
decq %r8
jne 0x7683
movb $0x1, (%r14,%rdx)
incl %ebp
incq %rdx
cmpq %r15, %rdx
jne 0x7646
jmp 0x76aa
xorl %ebp, %ebp
testl %ebp, %ebp
je 0x76fd
cmpl $0x0, 0x4(%rbx)
je 0x76f0
xorl %ecx, %ecx
xorl %edx, %edx
xorl %eax, %eax
cmpb $0x0, (%r14,%rdx)
jne 0x76df
movq 0x18(%rbx), %rsi
movl %eax, %edi
incl %eax
leaq (%rdi,%rdi,2), %rdi
movq 0x10(%rsi,%rcx), %r8
movq %r8, 0x10(%rsi,%rdi,8)
movups (%rsi,%rcx), %xmm0
movups %xmm0, (%rsi,%rdi,8)
incq %rdx
movl 0x4(%rbx), %esi
addq $0x18, %rcx
cmpq %rsi, %rdx
jb 0x76ba
jmp 0x76f2
xorl %eax, %eax
movl %eax, 0x4(%rbx)
movq %rbx, %rdi
callq 0x774d
movq %r14, %rdi
callq 0x1040
leaq 0x5b2c(%rip), %rax      # 0xd238
cmpl $0x3, (%rax)
jae 0x771e
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x58d3(%rip), %rax      # 0xcff8
movq (%rax), %r14
callq 0x683e
movl 0x4(%rbx), %r8d
leaq 0x1f8a(%rip), %rsi      # 0x96c2
leaq 0x1fbb(%rip), %rdx      # 0x96fa
movq %r14, %rdi
movl %ebp, %ecx
movb $0x1, %al
callq 0x1160
jmp 0x7711
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x1040
movl (%rbx), %edi
movl $0x8, %esi
callq 0x1130
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %ecx
testq %rcx, %rcx
je 0x77e5
leal 0x1(%rcx), %edx
cmpl $0x3, %edx
movl $0x2, %esi
cmovael %edx, %esi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rdx
xorl %r8d, %r8d
movl $0x1, %esi
movl $0x18, %edi
movl %r8d, %r9d
cmpq %rdi, %rcx
je 0x77ba
movq 0x18(%rbx), %r10
movl (%r10,%rdi), %r11d
leaq (%r9,%r9,2), %r14
cmpl (%r10,%r14,8), %r11d
je 0x77da
leaq (%r9,%r9,2), %r10
shlq $0x20, %r9
movl %esi, %r11d
subl %r8d, %r11d
orq %r9, %r11
movq 0x18(%rbx), %r8
movl (%r8,%r10,8), %r8d
movq %r11, (%rax,%r8,8)
movl %esi, %r8d
incl %esi
addq $0x18, %rdi
cmpq %rdi, %rdx
jne 0x77a0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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
cmpl $0x0, 0x4(%rsi)
je 0x82b8
leaq 0x148c(%rip), %r12      # 0x9708
xorl %r13d, %r13d
xorl %ebp, %ebp
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
movl 0x4(%r14), %eax
addq $0x40, %r13
cmpq %rax, %rbp
jb 0x8281
cmpl $0x0, 0x4(%rbx)
je 0x8345
movl $0x10, %r13d
xorl %ebp, %ebp
leaq 0x1446(%rip), %r12      # 0x9717
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 0xf8c(%rip), %rax       # 0x9295
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
addq $0x10, %rsp
incq %rbp
movl 0x4(%rbx), %eax
addq $0x18, %r13
cmpq %rax, %rbp
jb 0x82d1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
pushq %rax
movl %edi, %ebp
movl $0x20, %edi
callq 0x1160
movq %rax, %rbx
leaq 0x1f93(%rip), %rdi      # 0xedcb
callq 0x12dc
movq 0x62cc(%rip), %rcx      # 0x13110
movslq 0x62d5(%rip), %rsi      # 0x13120
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
testq %rsi, %rsi
jle 0xce79
leaq 0x4(%rcx), %r8
xorl %edi, %edi
cmpl %ebp, -0x4(%r8)
jne 0xce66
cmpl %eax, (%r8)
je 0xce77
incq %rdi
addq $0x108, %r8             # imm = 0x108
cmpq %rdi, %rsi
jne 0xce5b
jmp 0xce79
movl %edi, %edx
cmpl $-0x1, %edx
je 0xcea1
movl %edx, %eax
movq %rax, %rdx
shlq $0x8, %rdx
leaq (%rdx,%rax,8), %rax
leaq (%rcx,%rax), %rsi
addq $0x8, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1060
leaq 0x2bc9(%rip), %rsi      # 0xfa71
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x11c0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
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 $0xf80000, %esi         # imm = 0xF80000
shll $0x4, %edx
andl $0x70000, %edx          # imm = 0x70000
orl %esi, %edx
addl %edi, %edx
addl $0xff000000, %edx       # imm = 0xFF000000
movl %edx, (%rax,%rcx,4)
incq %rcx
cmpq $0x100, %rcx            # imm = 0x100
jne 0xcece
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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, %r12d
movq %rdi, %rbx
imull %ecx, %r12d
movq %rsi, %rdi
callq 0xcebe
movq %rax, %r14
leaq (,%r12,4), %rdi
callq 0x1160
movq %rax, %r15
testl %r12d, %r12d
je 0xcf74
movl %r12d, %eax
xorl %ecx, %ecx
movzbl (%rbx,%rcx), %edx
movl (%r14,%rdx,4), %edx
movl %edx, (%r15,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0xcf60
movq %r14, %rdi
callq 0x1030
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
movl $0x8, %edi
callq 0x10a0
movq %rax, %r14
leaq 0x2b0f(%rip), %rax      # 0x3d58
movq %rax, (%r14)
movl $0x8, %edi
callq 0x10a0
leaq 0x2b3b(%rip), %rcx      # 0x3d98
movq %rcx, (%rax)
cmpl $0x3, %ebp
jne 0x128c
movq 0x8(%rbx), %rcx
movzbl (%rcx), %ecx
cmpl $0x31, %ecx
je 0x1279
cmpl $0x32, %ecx
jne 0x129f
movq %rax, %r14
movq 0x10(%rbx), %rsi
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq (%rbx), %rsi
leaq 0xd6e(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1040
jmp 0x12ab
leaq 0xd77(%rip), %rdi       # 0x201d
callq 0x10e0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x10c0
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x28b3(%rip), %rbx      # 0x40c0
movq %rbx, %rdi
callq 0x15e0
movl 0x28a9(%rip), %esi      # 0x40c4
incl %esi
movl %esi, 0x28a1(%rip)      # 0x40c4
leaq 0x817(%rip), %rdi       # 0x2041
xorl %eax, %eax
callq 0x1090
movl $0x2, %edi
callq 0x1100
movl 0x2883(%rip), %esi      # 0x40c4
leaq 0x80c(%rip), %rdi       # 0x2054
xorl %eax, %eax
callq 0x1090
movq %rbx, %rdi
callq 0x164e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x122c
leaq 0x2849(%rip), %rdi      # 0x40c0
callq 0x15d2
leaq 0x7f8(%rip), %rdi       # 0x207b
callq 0x1050
leaq 0x808(%rip), %rdi       # 0x2097
callq 0x1050
leaq 0x2835(%rip), %r15      # 0x40d0
leaq -0xa2(%rip), %rbx       # 0x1800
leaq 0x7bf(%rip), %r14       # 0x2068
xorl %r12d, %r12d
leaq (%r15,%r12), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1320
testl %eax, %eax
je 0x18c8
movq %r14, %rdi
xorl %eax, %eax
callq 0x1090
addq $0x8, %r12
cmpq $0x18, %r12
jne 0x18ac
movq 0x27f7(%rip), %rdi      # 0x40d0
xorl %esi, %esi
callq 0x14b0
movq 0x27f1(%rip), %rdi      # 0x40d8
xorl %esi, %esi
callq 0x14b0
movq 0x27eb(%rip), %rdi      # 0x40e0
xorl %esi, %esi
callq 0x14b0
leaq 0x7ed(%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_O1/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
movb (%rsi), %al
testb %al, %al
sete %cl
testq %rdx, %rdx
sete %dl
orb %cl, %dl
jne 0x1373
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %ebp
leaq 0x1ce7(%rip), %r12      # 0x3004
leaq 0x1ce9(%rip), %r13      # 0x300d
movzbl %al, %ecx
cmpl $0xc, %ecx
jg 0x1338
cmpl $0x9, %ecx
je 0x1354
cmpl $0xa, %ecx
je 0x135f
jmp 0x1347
cmpl $0xd, %ecx
je 0x135f
cmpl $0x7c, %ecx
jne 0x1347
movq %r13, %rdi
jmp 0x1357
movsbl %al, %edi
movq %r15, %rsi
callq 0x10f0
jmp 0x135f
movq %r12, %rdi
movq %r15, %rsi
callq 0x10d0
movb (%r14,%rbp), %al
testb %al, %al
je 0x1373
leaq 0x1(%rbp), %rcx
cmpq %rbx, %rbp
movq %rcx, %rbp
jb 0x1324
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq