LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/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
subq $0x900, %rsp            # imm = 0x900
testb %al, %al
je 0x54b7
movaps %xmm0, -0x8d0(%rbp)
movaps %xmm1, -0x8c0(%rbp)
movaps %xmm2, -0x8b0(%rbp)
movaps %xmm3, -0x8a0(%rbp)
movaps %xmm4, -0x890(%rbp)
movaps %xmm5, -0x880(%rbp)
movaps %xmm6, -0x870(%rbp)
movaps %xmm7, -0x860(%rbp)
movq %r9, -0x8d8(%rbp)
movq %r8, -0x8e0(%rbp)
movq %rcx, -0x8e8(%rbp)
movq %rdx, -0x8f0(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x3af2(%rip), %rcx      # 0x8fd8
cmpq (%rcx), %rax
jne 0x54fb
movq 0x3c16(%rip), %rax      # 0x9108
movq %rax, -0x848(%rbp)
jmp 0x556b
movq -0x10(%rbp), %rax
movq 0x3af2(%rip), %rcx      # 0x8ff8
cmpq (%rcx), %rax
jne 0x551b
movq 0x3bfe(%rip), %rax      # 0x9110
movq %rax, -0x848(%rbp)
jmp 0x5569
leaq -0x840(%rbp), %rax
leaq -0x900(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x840(%rbp), %rdx
callq 0x1130
leaq -0x840(%rbp), %rax
movl $0x0, -0x4(%rbp)
jmp 0x55fa
jmp 0x556b
leaq -0x840(%rbp), %rax
leaq -0x900(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
leaq -0x820(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x840(%rbp), %rdx
callq 0x10f0
leaq -0x840(%rbp), %rax
movq -0x848(%rbp), %rdi
leaq 0xdcb(%rip), %rsi       # 0x6389
callq 0x1100
movq %rax, -0x850(%rbp)
cmpq $0x0, -0x850(%rbp)
je 0x55f3
leaq -0x820(%rbp), %rdi
movq -0x850(%rbp), %rsi
callq 0x1090
movq -0x850(%rbp), %rdi
callq 0x1060
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x900, %rsp            # imm = 0x900
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/MicBrain[P]Git-Sample/util.c
// Function: is_sane_path
int is_sane_path(const char* path) {
  if (strlen(path) > 512)
    return 0;

  // Only allow modifying files in .beargit directory
  //const char* prefix = ".beargit";
  //if (strncmp(prefix, path, strlen(prefix)) != 0)
  //  return 0;

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1070
cmpq $0x200, %rax            # imm = 0x200
jbe 0x5636
movl $0x0, -0x4(%rbp)
jmp 0x563d
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movl $0x14, -0x28(%rbp)
leaq -0x24(%rbp), %rdi
xorl %esi, %esi
movl $0x14, %edx
callq 0x4010a0
movw $0x11, -0x24(%rbp)
movb $0x6, -0x19(%rbp)
movl $0x6811, %edi           # imm = 0x6811
callq 0x453ff0
movw %ax, -0x22(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x20(%rbp)
movl 0xd39c3(%rip), %eax     # 0x4d5350
movl %eax, -0x18(%rbp)
movw 0xd39bd(%rip), %ax      # 0x4d5354
movw %ax, -0x14(%rbp)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, %edx
movl -0x28(%rbp), %r9d
xorl %ecx, %ecx
leaq -0x24(%rbp), %r8
callq 0x453b90
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movl $0x14, -0x28(%rbp)
leaq -0x24(%rbp), %rdi
xorl %esi, %esi
movl $0x14, %edx
callq 0x4010a0
movw $0x11, -0x24(%rbp)
movb $0x6, -0x19(%rbp)
movl $0x6811, %edi           # imm = 0x6811
callq 0x453ff0
movw %ax, -0x22(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x20(%rbp)
leaq -0x24(%rbp), %rdi
addq $0xc, %rdi
movl $0xff, %esi
movl $0x6, %edx
callq 0x4010a0
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, %edx
movl -0x28(%rbp), %r9d
xorl %ecx, %ecx
leaq -0x24(%rbp), %r8
callq 0x453b90
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0x4, %esi
callq 0x402ab0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x5, (%rax)
movl 0xd388c(%rip), %eax     # 0x4d5328
movb %al, %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, (%rax)
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x401940
movl %eax, -0x1c(%rbp)
cmpl $-0x1, -0x1c(%rbp)
jne 0x401b1c
callq 0x405690
movl (%rax), %edi
callq 0x423810
movq %rax, %rsi
leaq 0xa0560(%rip), %rdi     # 0x4a206c
movb $0x0, %al
callq 0x40d110
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x401b23
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0x4, %esi
callq 0x402ab0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x28(%rbp)
movb $0x3, (%rax)
movl 0xd37bc(%rip), %eax     # 0x4d5328
movb %al, %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
shrl $0x8, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movb %cl, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x28(%rbp), %rax
movb %cl, (%rax)
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x4019d0
movl %eax, -0x1c(%rbp)
cmpl $-0x1, -0x1c(%rbp)
jne 0x401bec
callq 0x405690
movl (%rax), %edi
callq 0x423810
movq %rax, %rsi
leaq 0xa0490(%rip), %rdi     # 0x4a206c
movb $0x0, %al
callq 0x40d110
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x401bf3
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/jelaas[P]egetty/egetty.c
// Function: devsocket
static int devsocket(void)
{
	/* we couldn't care less which one; just want to talk to the kernel! */
	static int dumb[3] = { AF_INET, AF_PACKET, AF_INET6 };
	int i, fd;
  
	for(i=0; i<3; i++)
		if((fd = socket(dumb[i], SOCK_DGRAM, 0)) >= 0)
			return fd;
	return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x0, -0x8(%rbp)
cmpl $0x3, -0x8(%rbp)
jge 0x4024fc
movslq -0x8(%rbp), %rcx
leaq 0xd0c20(%rip), %rax     # 0x4d30f0
movl (%rax,%rcx,4), %edi
movl $0x2, %esi
xorl %edx, %edx
callq 0x453c60
movl %eax, -0xc(%rbp)
cmpl $0x0, %eax
jl 0x4024ef
movl -0xc(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x402503
jmp 0x4024f1
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x4024bf
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/jelaas[P]egetty/egetty.c
// Function: check_flag
static int check_flag(char *ifname, short flag)
{
	struct ifreq ifr;

	memset(&ifr, 0, sizeof(ifr));
	
	strcpy(ifr.ifr_name, ifname);
	
	if (ioctl(conf.devsocket, SIOCGIFFLAGS, &ifr) < 0) {
		return -1;
	}
	return (ifr.ifr_flags & flag) != flag;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movw %si, %ax
movq %rdi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x4010a0
leaq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x401020
movl 0xd2e12(%rip), %edi     # 0x4d5358
movl $0x8913, %esi           # imm = 0x8913
leaq -0x40(%rbp), %rdx
movb $0x0, %al
callq 0x451b90
cmpl $0x0, %eax
jge 0x402564
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x40257f
movswl -0x30(%rbp), %eax
movswl -0x12(%rbp), %ecx
andl %ecx, %eax
movswl -0x12(%rbp), %ecx
cmpl %ecx, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/jelaas[P]egetty/egetty.c
// Function: set_flag
static int set_flag(char *ifname, short flag)
{
	struct ifreq ifr;

	memset(&ifr, 0, sizeof(ifr));
	
	strcpy(ifr.ifr_name, ifname);
	
	if (ioctl(conf.devsocket, SIOCGIFFLAGS, &ifr) < 0) {
		return -1;
	}
	strcpy(ifr.ifr_name, ifname);
	ifr.ifr_flags |= flag;
	if (ioctl(conf.devsocket, SIOCSIFFLAGS, &ifr) < 0) {
		return -1;
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movw %si, %ax
movq %rdi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x4010a0
leaq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x401020
movl 0xd2d92(%rip), %edi     # 0x4d5358
movl $0x8913, %esi           # imm = 0x8913
leaq -0x40(%rbp), %rdx
movb $0x0, %al
callq 0x451b90
cmpl $0x0, %eax
jge 0x4025e4
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x40262a
leaq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x401020
movswl -0x12(%rbp), %ecx
movswl -0x30(%rbp), %eax
orl %ecx, %eax
movw %ax, -0x30(%rbp)
movl 0xd2d53(%rip), %edi     # 0x4d5358
movl $0x8914, %esi           # imm = 0x8914
leaq -0x40(%rbp), %rdx
movb $0x0, %al
callq 0x451b90
cmpl $0x0, %eax
jge 0x402623
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x40262a
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, %edi
callq 0x421160
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x40266a
movq $0x0, -0x8(%rbp)
jmp 0x4026e4
movl $0x40, %edi
callq 0x421160
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x402692
movq -0x20(%rbp), %rdi
callq 0x4214a0
movq $0x0, -0x8(%rbp)
jmp 0x4026e4
movq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x40, %edx
callq 0x4010a0
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x18(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rcx
movl -0xc(%rbp), %eax
addq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/jelaas[P]egetty/skbuff.c
// Function: skb_clone
struct sk_buff *skb_clone(struct sk_buff *skb)
{
	struct sk_buff *nskb;

	nskb = malloc(sizeof(struct sk_buff));
	if(!nskb) {
		return NULL;
	}
	memcpy(nskb, skb, sizeof(struct sk_buff));
	return nskb;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl $0x40, %edi
callq 0x421160
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x40279b
movq $0x0, -0x8(%rbp)
jmp 0x4027b5
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x40, %edx
callq 0x401040
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl -0x14(%rbp), %eax
addl -0x18(%rbp), %eax
movl %eax, %eax
movl %eax, %edi
callq 0x421160
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x4027ff
movq $0x0, -0x8(%rbp)
jmp 0x4028c2
movl $0x40, %edi
callq 0x421160
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x40282a
movq -0x28(%rbp), %rdi
callq 0x4214a0
movq $0x0, -0x8(%rbp)
jmp 0x4028c2
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x40, %edx
callq 0x401040
movq -0x28(%rbp), %rdi
movslq -0x14(%rbp), %rax
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, %edx
callq 0x401040
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x28(%rbp), %rcx
movslq -0x14(%rbp), %rax
addq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movl (%rax), %eax
addq %rax, %rcx
movslq -0x14(%rbp), %rax
addq %rax, %rcx
movslq -0x18(%rbp), %rax
addq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movl (%rax), %eax
addq %rax, %rcx
movslq -0x14(%rbp), %rax
addq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
subq %rax, %rdi
callq 0x421160
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x40290c
movq $0x0, -0x8(%rbp)
jmp 0x4029de
movl $0x40, %edi
callq 0x421160
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x402937
movq -0x20(%rbp), %rdi
callq 0x4214a0
movq $0x0, -0x8(%rbp)
jmp 0x4029de
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x40, %edx
callq 0x401040
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
subq %rax, %rdx
callq 0x401040
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4029f0
movq -0x28(%rbp), %rcx
movl %eax, %eax
addq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rdx
movq 0x30(%rdx), %rdx
subq %rdx, %rax
addq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rcx
movq -0x10(%rbp), %rax
movl (%rax), %eax
addq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x18(%rbp)
movl -0xc(%rbp), %edx
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rcx
movl %edx, %edx
addq %rdx, %rcx
movq %rcx, 0x20(%rax)
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x1040, %rsp           # imm = 0x1040
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x1326(%rip), %rax      # 0x42f0
movq %rax, -0x1030(%rbp)
movq 0x1320(%rip), %rax      # 0x42f8
movq %rax, -0x1028(%rbp)
movq 0x131a(%rip), %rax      # 0x4300
movq %rax, -0x1020(%rbp)
leaq -0x1030(%rbp), %rdi
callq 0x21c0
movl %eax, -0x1034(%rbp)
leaq -0x1010(%rbp), %rdi
xorl %esi, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x2130
cmpl $0x0, -0x1034(%rbp)
jl 0x301d
jmp 0x303c
leaq 0x125d(%rip), %rdi      # 0x4281
leaq 0x125e(%rip), %rsi      # 0x4289
movl $0x12, %edx
leaq 0x1265(%rip), %rcx      # 0x429c
callq 0x2120
leaq -0x1030(%rbp), %rdi
callq 0x2080
movl -0x1034(%rbp), %edi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x2110
movl -0x1034(%rbp), %edi
leaq -0x1010(%rbp), %rsi
movl $0x1000, %edx           # imm = 0x1000
callq 0x20c0
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x307a
jmp 0x3099
leaq 0x124e(%rip), %rdi      # 0x42cf
leaq 0x1201(%rip), %rsi      # 0x4289
movl $0x17, %edx
leaq 0x1208(%rip), %rcx      # 0x429c
callq 0x2120
movq -0x8(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x3048
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x1, %edi
movl $0x60, %esi
callq 0x1140
movq %rax, -0x8(%rbp)
callq 0x2640
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
callq 0x2640
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x2668
jmp 0x2829
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x2830
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x274d
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movl -0xc(%rbp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x1040
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x1040
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x1040
movq -0x20(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x273d
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movq -0x20(%rbp), %rcx
movq 0x28(%rcx), %rcx
cmpl 0x14(%rcx), %eax
jae 0x270e
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq 0x28(%rax), %rax
movl -0x10(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
callq 0x1040
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x26db
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq 0x28(%rax), %rdi
callq 0x1040
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq 0x18(%rax), %rdi
callq 0x1040
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x1040
jmp 0x273f
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x267c
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x24(%rcx), %eax
jae 0x2785
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movl -0xc(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x1040
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x2754
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x2830
movq -0x8(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x27df
movq $0x0, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jae 0x27dd
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
callq 0x1040
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x27a5
jmp 0x27df
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x1040
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x1040
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x1040
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rdi
callq 0x1040
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x1040
movq -0x8(%rbp), %rdi
callq 0x1040
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x18(%rbp), %rdx
callq 0x2ac0
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0x2aaa
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x2a0d
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, (%rax)
je 0x29ac
movq -0x8(%rbp), %rax
movl (%rax), %eax
shll %eax
movl %eax, -0x30(%rbp)
jmp 0x29b6
movl $0x10, %eax
movl %eax, -0x30(%rbp)
jmp 0x29b6
movl -0x30(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, %esi
shlq $0x6, %rsi
callq 0x11b0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0x2c(%rbp), %eax
shlq $0x6, %rax
addq %rax, %rdi
movq -0x8(%rbp), %rax
movl (%rax), %eax
subl -0x2c(%rbp), %eax
movl %eax, %eax
movl %eax, %edx
shlq $0x6, %rdx
xorl %esi, %esi
callq 0x1120
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rdx
movl 0x4(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x4(%rdx)
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x28a0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movq %rdx, 0x18(%rax)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x14(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
movl $0x0, (%rax)
movq -0x28(%rbp), %rax
movl 0x4(%rax), %ecx
andl $0xffff0000, %ecx       # imm = 0xFFFF0000
orl $0x0, %ecx
movl %ecx, 0x4(%rax)
movq -0x28(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq -0x28(%rbp), %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
movq -0x28(%rbp), %rax
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edx
subl $0x1, %edx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x14(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x14(%rbp), %ecx
movl (%rax,%rcx,4), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0x2ac0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x2f45
movq -0x8(%rbp), %rax
movl 0x24(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x20(%rcx), %eax
jne 0x2ec6
jmp 0x2e6c
movq -0x8(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0x2e8d
movq -0x8(%rbp), %rax
movl 0x20(%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x20(%rcx), %ecx
shrl %ecx
addl %ecx, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2e97
movl $0x10, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2e97
movl -0x2c(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x8(%rbp), %rax
movl 0x20(%rax), %eax
imulq $0x18, %rax, %rsi
callq 0x11b0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x28(%rax)
jmp 0x2ec6
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rdx
movl 0x24(%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x24(%rdx)
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl 0x24(%rax), %edx
subl $0x1, %edx
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x1c(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
movq -0x10(%rbp), %rdi
callq 0x28a0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movq %rdx, (%rax)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x1c(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq -0x28(%rbp), %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
movq -0x28(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x1c(%rbp), %ecx
movl (%rax,%rcx,4), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2fc0
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x2fa1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x20(%rbp)
jmp 0x2fb2
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x1c(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x2fc0
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x3271
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x20(%rbp)
jmp 0x3282
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x1c(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]partig/sketch.c
// Function: tq_shift
static inline int tq_shift(tiny_queue_t *q)
{
	int x;
	if (q->count == 0) return -1;
	x = q->a[q->front++];
	q->front &= 0x3f;
	--q->count;
	return x;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x9b5b
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9b94
movq -0x10(%rbp), %rax
movq -0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movslq %ecx, %rcx
movl 0x8(%rax,%rcx,4), %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %ecx
andl $0x3f, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]partig/pdist.c
// Function: pt_pdopt_init
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
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x1120
movq -0x8(%rbp), %rax
movl $0x33, (%rax)
movq -0x8(%rbp), %rax
movl $0x33, 0x4(%rax)
movq -0x8(%rbp), %rax
movl $0x1, 0x8(%rax)
movq -0x8(%rbp), %rax
movl $0x14, 0xc(%rax)
movq -0x8(%rbp), %rax
movl $0x5, 0x10(%rax)
movq -0x8(%rbp), %rax
movsd 0x346a(%rip), %xmm0     # 0xd668
movsd %xmm0, 0x18(%rax)
movq -0x8(%rbp), %rax
movsd 0x2ed1(%rip), %xmm0     # 0xd0e0
movsd %xmm0, 0x20(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x2, %rdi
callq 0x11a0
movq %rax, -0x30(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0xa313
movl $0x1, -0x3c(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x40(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jg 0xa2c6
movl -0x3c(%rbp), %eax
addl -0x40(%rbp), %eax
addl $0x1, %eax
sarl %eax
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq -0x30(%rbp), %rcx
movslq -0x48(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq (%rax,%rcx,8), %rax
movq -0x10(%rbp), %rcx
movslq -0x1c(%rbp), %rdx
cmpq (%rcx,%rdx,8), %rax
jae 0xa2bb
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xa2c4
movl -0x48(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0xa278
movl -0x3c(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x30(%rbp), %rax
movl -0x44(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x38(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x1c(%rbp), %edx
movq -0x30(%rbp), %rax
movslq -0x44(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x44(%rbp), %eax
cmpl -0x24(%rbp), %eax
jle 0xa303
movl -0x44(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0xa305
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa25f
movq -0x30(%rbp), %rax
movslq -0x24(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x20(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movslq -0x4(%rbp), %rdx
shlq $0x2, %rdx
callq 0x1190
movl -0x24(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jl 0xa36c
movl -0x20(%rbp), %edx
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x30(%rbp), %rax
movslq -0x20(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa33f
movq -0x30(%rbp), %rdi
callq 0x1040
movl -0x24(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x1140
movq %rax, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0xa444
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x14(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movq -0x28(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0xa3fc
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x1, (%rax,%rcx)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa434
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movl 0x4(%rax), %esi
movq -0x28(%rbp), %rax
movl (%rax), %edx
movq -0x28(%rbp), %rax
movl 0xc(%rax), %ecx
callq 0xa530
cmpl $0x0, %eax
jne 0xa432
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
movb $0x1, (%rax,%rcx)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa434
jmp 0xa436
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xa3b1
cmpl $0x0, -0x1c(%rbp)
jbe 0xa4d9
movl $0x0, -0x18(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0xa4c6
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
cmpb $0x0, (%rax,%rcx)
jne 0xa4b9
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x18(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x18(%rbp)
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rcx
movl -0x14(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
jmp 0xa4bb
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xa45c
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rdi
callq 0xa5e0
movq -0x10(%rbp), %rdi
callq 0x1040
leaq 0x5d4f(%rip), %rax      # 0x10238
cmpl $0x3, (%rax)
jb 0xa525
movq 0x5b03(%rip), %rax      # 0xfff8
movq (%rax), %rax
movq %rax, -0x30(%rbp)
callq 0x8c60
movq -0x30(%rbp), %rdi
movl -0x1c(%rbp), %ecx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %r8d
leaq 0x319b(%rip), %rsi      # 0xd6b2
leaq 0x31cc(%rip), %rdx      # 0xd6ea
movb $0x1, %al
callq 0x1170
movl -0x1c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/lh3[P]partig/pdist.c
// Function: pt_pdist_has_rev
static int pt_pdist_has_rev(const pt_match_t *ma, uint32_t sid1, uint32_t sid2, uint32_t r)
{
	uint32_t o = ma->idx[sid1] >> 32;
	uint32_t n = (uint32_t)ma->idx[sid1], j;
	for (j = o; j < o + n; ++j)
		if (ma->ma[j].sid[1] == sid2 && ma->ma[j].rev == r)
			return 1;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x14(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x24(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl -0x20(%rbp), %ecx
addl -0x24(%rbp), %ecx
cmpl %ecx, %eax
jae 0xa5c6
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
cmpl -0x18(%rbp), %eax
jne 0xa5b9
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpl -0x1c(%rbp), %eax
jne 0xa5b9
movl $0x1, -0x4(%rbp)
jmp 0xa5cd
jmp 0xa5bb
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xa56f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x1040
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, %edi
movl $0x8, %esi
callq 0x1140
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movl $0x0, -0xc(%rbp)
movl $0x1, -0x10(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
ja 0xa6b4
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
je 0xa66a
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x10(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rcx
movl -0xc(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
je 0xa6a4
movl -0xc(%rbp), %eax
movl %eax, %edx
shlq $0x20, %rdx
movl -0x10(%rbp), %eax
subl -0xc(%rbp), %eax
movl %eax, %eax
orq %rax, %rdx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rcx
movl -0xc(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rcx
movl (%rcx), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x10(%rbp), %eax
movl %eax, -0xc(%rbp)
jmp 0xa6a6
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xa624
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]partig/pdist.c
// Function: pt_pdist
pt_match_t *pt_pdist(const pt_pdopt_t *opt, const gfa_t *g)
{
	pt_match_t *ma;
	int64_t n_an;
	uint32_t n_mz;
	pt_mz1_t *mz;
	pt128_t *an = 0;

	PT_CALLOC(ma, 1);
	PT_CALLOC(ma->info, g->n_seg);
	ma->n_seg = g->n_seg;
	mz = pt_collect_minimizers(opt, g, &n_mz);
	an = pt_collect_anchors(g, n_mz, mz, opt->max_occ, &n_an, ma->info);
	free(mz);
	ma->ma = pt_cal_sim(n_an, an, ma->info, opt->k, opt->min_cnt, opt->min_sim, &ma->n_ma);
	free(an);
	pt_pdist_idx(ma);
	pt_pdist_symm(ma);
	pt_pdist_flt(ma, opt->min_cnt, opt->diff_thres);
	pt_pdist_symm(ma);
	return ma;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x38(%rbp)
movl $0x1, %edi
movl $0x20, %esi
callq 0x1140
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %edi
movl $0x8, %esi
callq 0x1140
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x24(%rbp), %rdx
callq 0xa7f0
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x30(%rbp), %rdx
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x18(%rbp), %rax
movq 0x10(%rax), %r9
leaq -0x20(%rbp), %r8
callq 0xa930
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
callq 0x1040
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x8(%rbp), %rax
movl (%rax), %ecx
movq -0x8(%rbp), %rax
movl 0x10(%rax), %r8d
movq -0x8(%rbp), %rax
movsd 0x18(%rax), %xmm0
movq -0x18(%rbp), %r9
addq $0x4, %r9
callq 0xaeb0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x38(%rbp), %rdi
callq 0x1040
movq -0x18(%rbp), %rdi
callq 0xa5e0
movq -0x18(%rbp), %rdi
callq 0xa380
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x10(%rax), %esi
movq -0x8(%rbp), %rax
movsd 0x20(%rax), %xmm0
callq 0xb2d0
movq -0x18(%rbp), %rdi
callq 0xa380
movq -0x18(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/lh3[P]partig/pdist.c
// Function: pt_collect_minimizers
static pt_mz1_t *pt_collect_minimizers(const pt_pdopt_t *opt, const gfa_t *g, uint32_t *n_mz_)
{
	uint32_t i;
	pt_mz1_v mz = {0,0,0};
	for (i = 0; i < g->n_seg; ++i)
		pt_sketch(g->seg[i].seq, g->seg[i].len, opt->w, opt->k, i, opt->is_hpc, &mz);
	if (pt_verbose >= 3)
		fprintf(stderr, "[%s::%.3f] collected %d minimizers\n", __func__, pt_realtime(), mz.n);
	radix_sort_mz(mz.a, mz.a + mz.n);
	if (pt_verbose >= 3)
		fprintf(stderr, "[%s::%.3f] sorted %d minimizers\n", __func__, pt_realtime(), mz.n);
	*n_mz_ = mz.n;
	return mz.a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1120
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0xa882
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x1c(%rbp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %esi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edx
movq -0x8(%rbp), %rax
movl (%rax), %ecx
movl -0x1c(%rbp), %r8d
movq -0x8(%rbp), %rax
movl 0x8(%rax), %r9d
leaq -0x30(%rbp), %rax
movq %rax, (%rsp)
callq 0x8cd0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa81b
leaq 0x59af(%rip), %rax      # 0x10238
cmpl $0x3, (%rax)
jb 0xa8bd
movq 0x5763(%rip), %rax      # 0xfff8
movq (%rax), %rax
movq %rax, -0x38(%rbp)
callq 0x8c60
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %ecx
leaq 0x2e72(%rip), %rsi      # 0xd721
leaq 0x2e8f(%rip), %rdx      # 0xd745
movb $0x1, %al
callq 0x1170
movq -0x28(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x30(%rbp), %eax
shlq $0x4, %rax
addq %rax, %rsi
callq 0xa140
leaq 0x595d(%rip), %rax      # 0x10238
cmpl $0x3, (%rax)
jb 0xa90f
movq 0x5711(%rip), %rax      # 0xfff8
movq (%rax), %rax
movq %rax, -0x40(%rbp)
callq 0x8c60
movq -0x40(%rbp), %rdi
movl -0x30(%rbp), %ecx
leaq 0x2e5a(%rip), %rsi      # 0xd75b
leaq 0x2e3d(%rip), %rdx      # 0xd745
movb $0x1, %al
callq 0x1170
movl -0x30(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)