LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/datastruct/timerqueue.c
// Function: timerqueue_getptr
void *
timerqueue_getptr(struct timerqueue * Q, const struct timeval * tv)
{
	struct timerrec * r;
	void * ptr;

	/*
	 * Get the minimum element from the heap.  Return NULL if the heap
	 * has no minimum element (i.e., is empty).
	 */
	if ((r = ptrheap_getmin(Q->H)) == NULL)
		return (NULL);

	/* If the minimum timeval is greater than ${tv}, return NULL. */
	if (tvcmp(&r->tv, tv) > 0)
		return (NULL);

	/* Remove this record from the heap. */
	ptrheap_deletemin(Q->H);

	/* Extract its pointer. */
	ptr = r->ptr;

	/* Free the record. */
	free(r);

	/*
	 * And finally return the pointer which was associated with the
	 * (formerly) minimum timeval in the heap.
	 */
	return (ptr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x8ee0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x8020
movq $0x0, -0x8(%rbp)
jmp 0x8065
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x8070
cmpl $0x0, %eax
jle 0x803c
movq $0x0, -0x8(%rbp)
jmp 0x8065
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x9220
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x2040
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/datastruct/timerqueue.c
// Function: tvcmp
static int
tvcmp(const struct timeval * x, const struct timeval * y)
{

	/* Does one have more seconds? */
	if (x->tv_sec > y->tv_sec)
		return (1);
	if (x->tv_sec < y->tv_sec)
		return (-1);

	/* Does one have more microseconds? */
	if (x->tv_usec > y->tv_usec)
		return (1);
	if (x->tv_usec < y->tv_usec)
		return (-1);

	/* They must be equal. */
	return (0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
cmpq (%rcx), %rax
jle 0x8095
movl $0x1, -0x4(%rbp)
jmp 0x80eb
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
cmpq (%rcx), %rax
jge 0x80ae
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x80eb
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jle 0x80c9
movl $0x1, -0x4(%rbp)
jmp 0x80eb
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jge 0x80e4
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x80eb
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/datastruct/timerqueue.c
// Function: timerqueue_free
void
timerqueue_free(struct timerqueue * Q)
{
	struct timerrec * r;

	/* Behave consistently with free(NULL). */
	if (Q == NULL)
		return;

	/* Extract elements from the heap and free them one by one. */
	while ((r = ptrheap_getmin(Q->H)) != NULL) {
		free(r);
		ptrheap_deletemin(Q->H);
	}

	/* Free the heap. */
	ptrheap_free(Q->H);

	/* Free the timer priority queue structure. */
	free(Q);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x8105
jmp 0x8149
jmp 0x8107
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x8ee0
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x8134
movq -0x10(%rbp), %rdi
callq 0x2040
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x9220
jmp 0x8107
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x9320
movq -0x8(%rbp), %rdi
callq 0x2040
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/network/network_read.c
// Function: network_read
void *
network_read(int fd, uint8_t * buf, size_t buflen, size_t minread,
    int (* callback)(void *, ssize_t), void * cookie)
{
	struct network_read_cookie * C;

	/* Make sure buflen is non-zero. */
	assert(buflen != 0);

	/* Sanity-check: # bytes must fit into a ssize_t. */
	assert(buflen <= SSIZE_MAX);

	/* Bake a cookie. */
	if ((C = mpool_network_read_cookie_malloc()) == NULL)
		goto err0;
	C->callback = callback;
	C->cookie = cookie;
	C->fd = fd;
	C->buf = buf;
	C->buflen = buflen;
	C->minlen = minread;
	C->bufpos = 0;

	/* Register a callback for network readiness. */
	if (events_network_register(callback_buf, C, C->fd,
	    EVENTS_NETWORK_OP_READ))
		goto err1;

	/* Success! */
	return (C);

err1:
	mpool_network_read_cookie_free(C);
err0:
	/* Failure! */
	return (NULL);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x8178
jmp 0x8197
leaq 0x298e(%rip), %rdi      # 0xab0d
leaq 0x2993(%rip), %rsi      # 0xab19
movl $0x76, %edx
leaq 0x29ad(%rip), %rcx      # 0xab3f
callq 0x2180
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -0x20(%rbp)
ja 0x81a9
jmp 0x81c8
leaq 0x29e4(%rip), %rdi      # 0xab94
leaq 0x2962(%rip), %rsi      # 0xab19
movl $0x79, %edx
leaq 0x297c(%rip), %rcx      # 0xab3f
callq 0x2180
callq 0x8280
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x81dc
jmp 0x8260
movq -0x30(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0xc(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x20(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x28(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x40(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x40(%rbp), %rsi
movq -0x40(%rbp), %rax
movl 0x10(%rax), %edx
leaq 0x61(%rip), %rdi        # 0x82a0
xorl %ecx, %ecx
callq 0x3350
cmpl $0x0, %eax
je 0x824d
jmp 0x8257
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x8268
movq -0x40(%rbp), %rdi
callq 0x83f0
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/network/network_read.c
// Function: callback_buf
static int
callback_buf(void * cookie)
{
	struct network_read_cookie * C = cookie;
	size_t oplen;
	ssize_t len;

	/* Attempt to read/write data to/from the buffer. */
	oplen = C->buflen - C->bufpos;
	len = recv(C->fd, C->buf + C->bufpos, oplen, 0);

	/* Failure? */
	if (len == -1) {
		/* Was it really an error, or just a try-again? */
		if ((errno == EAGAIN) ||
#if EAGAIN != EWOULDBLOCK
		    (errno == EWOULDBLOCK) ||
#endif
		    (errno == EINTR))
			goto tryagain;

		/* Something went wrong. */
		goto failed;
	} else if (len == 0) {
		/* The socket was shut down by the remote host. */
		goto eof;
	}

	/* We processed some data. */
	C->bufpos += (size_t)len;

	/* Do we need to keep going? */
	if (C->bufpos < C->minlen)
		goto tryagain;

	/* Sanity-check: buffer position must fit into a ssize_t. */
	assert(C->bufpos <= SSIZE_MAX);

	/* Invoke the callback and return. */
	return (docallback(C, (ssize_t)C->bufpos));

tryagain:
	/* Reset the event. */
	if (events_network_register(callback_buf, C, C->fd,
	    EVENTS_NETWORK_OP_READ))
		goto failed;

	/* Callback was reset. */
	return (0);

eof:
	/* Invoke the callback with an EOF status and return. */
	return (docallback(C, 0));

failed:
	/* Invoke the callback with a failure status and return. */
	return (docallback(C, -1));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
subq 0x30(%rcx), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x18(%rbp), %rax
addq 0x30(%rax), %rsi
movq -0x20(%rbp), %rdx
xorl %ecx, %ecx
callq 0x2060
movq %rax, -0x28(%rbp)
cmpq $-0x1, -0x28(%rbp)
jne 0x8313
callq 0x20a0
cmpl $0xb, (%rax)
je 0x8309
callq 0x20a0
cmpl $0x4, (%rax)
jne 0x830e
jmp 0x8390
jmp 0x83cb
cmpq $0x0, -0x28(%rbp)
jne 0x831f
jmp 0x83b9
jmp 0x8321
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
addq 0x30(%rax), %rcx
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x28(%rcx), %rax
jae 0x8345
jmp 0x8390
movq -0x18(%rbp), %rax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rcx, 0x30(%rax)
ja 0x835b
jmp 0x837a
leaq 0x2846(%rip), %rdi      # 0xaba8
leaq 0x27b0(%rip), %rsi      # 0xab19
movl $0x4f, %edx
leaq 0x284a(%rip), %rcx      # 0xabbf
callq 0x2180
movq -0x18(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rsi
callq 0x8580
movl %eax, -0x4(%rbp)
jmp 0x83de
movq -0x18(%rbp), %rsi
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edx
leaq -0x102(%rip), %rdi      # 0x82a0
xorl %ecx, %ecx
callq 0x3350
cmpl $0x0, %eax
je 0x83b0
jmp 0x83cb
movl $0x0, -0x4(%rbp)
jmp 0x83de
movq -0x18(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x8580
movl %eax, -0x4(%rbp)
jmp 0x83de
movq -0x18(%rbp), %rdi
movq $-0x1, %rsi
callq 0x8580
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/util/asprintf.c
// Function: libcperciva_asprintf
int
asprintf(char ** ret, const char * format, ...)
{
	va_list ap;
	int len;
	size_t buflen;

	/* Figure out how long the string needs to be. */
	va_start(ap, format);
	len = vsnprintf(NULL, 0, format, ap);
	va_end(ap);

	/* Did we fail? */
	if (len < 0)
		goto err0;
	buflen = (size_t)(len) + 1;

	/* Allocate memory. */
	if ((*ret = malloc(buflen)) == NULL)
		goto err0;

	/* Actually generate the string. */
	va_start(ap, format);
	len = vsnprintf(*ret, buflen, format, ap);
	va_end(ap);

	/* Did we fail? */
	if (len < 0)
		goto err1;

	/* Success! */
	return (len);

err1:
	free(*ret);
err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
testb %al, %al
je 0x876b
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %r9, -0xc8(%rbp)
movq %r8, -0xd0(%rbp)
movq %rcx, -0xd8(%rbp)
movq %rdx, -0xe0(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
leaq -0x30(%rbp), %rax
leaq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq -0x18(%rbp), %rdx
leaq -0x30(%rbp), %rcx
xorl %eax, %eax
movl %eax, %esi
movq %rsi, %rdi
callq 0x20d0
movl %eax, -0x34(%rbp)
leaq -0x30(%rbp), %rax
cmpl $0x0, -0x34(%rbp)
jge 0x87d9
jmp 0x885c
movslq -0x34(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x2240
movq -0x10(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x87fd
jmp 0x885c
leaq -0x30(%rbp), %rax
leaq -0xf0(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x40(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x30(%rbp), %rcx
callq 0x20d0
movl %eax, -0x34(%rbp)
leaq -0x30(%rbp), %rax
cmpl $0x0, -0x34(%rbp)
jge 0x8848
jmp 0x8850
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x8863
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x2040
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0xf0, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/util/noeintr.c
// Function: noeintr_write
ssize_t
noeintr_write(int d, const void * buf, size_t nbytes)
{
	const uint8_t * p = buf;
	size_t len = nbytes;
	ssize_t lenwrit;

	/* Implementation-defined: Don't allow oversized writes. */
	assert(nbytes <= SSIZE_MAX);

	/* Loop until we have no data left to write. */
	while (len > 0) {
		if ((lenwrit = write(d, p, len)) == -1) {
			/* EINTR is harmless. */
			if (errno == EINTR)
				continue;

			/* Anything else isn't. */
			goto err0;
		}

		/* Sanity check. */
		assert(lenwrit >= 0);
		assert(lenwrit <= (ssize_t)len);

		/*
		 * We might have done a partial write; advance the buffer
		 * pointer and adjust the remaining write length.
		 */
		p += (size_t)lenwrit;
		len -= (size_t)lenwrit;
	}

	/* Success! */
	return (ssize_t)(nbytes);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
cmpq %rax, -0x20(%rbp)
ja 0x88a5
jmp 0x88c4
leaq 0x232c(%rip), %rdi      # 0xabd8
leaq 0x2339(%rip), %rsi      # 0xabec
movl $0x17, %edx
leaq 0x234b(%rip), %rcx      # 0xac0a
callq 0x2180
jmp 0x88c6
cmpq $0x0, -0x30(%rbp)
jbe 0x896c
movl -0xc(%rbp), %edi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x2110
movq %rax, -0x38(%rbp)
cmpq $-0x1, %rax
jne 0x88f9
callq 0x20a0
cmpl $0x4, (%rax)
jne 0x88f7
jmp 0x88c6
jmp 0x8976
cmpq $0x0, -0x38(%rbp)
jl 0x8902
jmp 0x8921
leaq 0x2332(%rip), %rdi      # 0xac3b
leaq 0x22dc(%rip), %rsi      # 0xabec
movl $0x25, %edx
leaq 0x22ee(%rip), %rcx      # 0xac0a
callq 0x2180
movq -0x38(%rbp), %rax
cmpq -0x30(%rbp), %rax
jg 0x892d
jmp 0x894c
leaq 0x2314(%rip), %rdi      # 0xac48
leaq 0x22b1(%rip), %rsi      # 0xabec
movl $0x26, %edx
leaq 0x22c3(%rip), %rcx      # 0xac0a
callq 0x2180
movq -0x38(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x30(%rbp)
jmp 0x88c6
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x897e
movq $-0x1, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/datastruct/ptrheap.c
// Function: heapify
static void
heapify(PTRLIST elems, size_t i, size_t N,
    int (* compar)(void *, const void *, const void *),
    void (* setreccookie)(void *, void *, size_t), void * cookie)
{
	size_t min;

	/* Iterate down the tree. */
	do {
		/* Look for the minimum element out of {i, 2i+1, 2i+2}. */
		min = i;

		/* Is this bigger than element 2i+1? */
		if ((2 * i + 1 < N) &&
		    (compar(cookie, *ptrlist_get(elems, min),
			*ptrlist_get(elems, 2 * i + 1)) > 0))
			min = 2 * i + 1;

		/* Is this bigger than element 2i+2? */
		if ((2 * i + 2 < N) &&
		    (compar(cookie, *ptrlist_get(elems, min),
			*ptrlist_get(elems, 2 * i + 2)) > 0))
			min = 2 * i + 2;

		/* If the minimum is i, we have heap-property. */
		if (min == i)
			break;

		/* Move the minimum into position i. */
		swap(elems, min, i, setreccookie, cookie);

		/* Move down the tree. */
		i = min;
	} while (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
shlq %rax
addq $0x1, %rax
cmpq -0x18(%rbp), %rax
jae 0x8c79
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x8bb0
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
shlq %rsi
addq $0x1, %rsi
callq 0x8bb0
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq (%rcx), %rdx
callq *%rax
cmpl $0x0, %eax
jle 0x8c79
movq -0x10(%rbp), %rax
shlq %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
shlq %rax
addq $0x2, %rax
cmpq -0x18(%rbp), %rax
jae 0x8cea
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x8bb0
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
shlq %rsi
addq $0x2, %rsi
callq 0x8bb0
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq %rax, %rcx
movq -0x58(%rbp), %rax
movq (%rcx), %rdx
callq *%rax
cmpl $0x0, %eax
jle 0x8cea
movq -0x10(%rbp), %rax
shlq %rax
addq $0x2, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x8cf6
jmp 0x8d23
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
callq 0x9100
movq -0x38(%rbp), %rax
movq %rax, -0x10(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x8c00
jmp 0x8d23
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/datastruct/ptrheap.c
// Function: ptrheap_add
int
ptrheap_add(struct ptrheap * H, void * ptr)
{

	/* Add the element to the end of the heap. */
	if (ptrlist_append(H->elems, &ptr, 1))
		goto err0;
	H->nelems += 1;

	/* Advise the caller about the current location of this record. */
	if (H->setreccookie != NULL)
		(H->setreccookie)(H->cookie, ptr, H->nelems - 1);

	/* Move the new element up in the tree if necessary. */
	heapifyup(H->elems, H->nelems - 1,
	    H->compar, H->setreccookie, H->cookie);

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x18(%rbp), %rsi
movl $0x1, %edx
callq 0x8df0
cmpl $0x0, %eax
je 0x8d5d
jmp 0x8dd3
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x8d9a
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rcx
movq 0x20(%rcx), %rdx
subq $0x1, %rdx
callq *%rax
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
subq $0x1, %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %r8
callq 0x8e20
movl $0x0, -0x4(%rbp)
jmp 0x8dda
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/datastruct/ptrheap.c
// Function: heapifyup
static void
heapifyup(PTRLIST elems, size_t i,
    int (* compar)(void *, const void *, const void *),
    void (* setreccookie)(void *, void *, size_t), void * cookie)
{

	/* Iterate up the tree. */
	do {
		/* If we're at the root, we have nothing to do. */
		if (i == 0)
			break;

		/* If this is >= its parent, we're done. */
		if (compar(cookie, *ptrlist_get(elems, i),
		    *ptrlist_get(elems, (i - 1) / 2)) >= 0)
			break;

		/* Swap with the parent. */
		swap(elems, i, (i - 1) / 2, setreccookie, cookie);

		/* Move up the tree. */
		i = (i - 1) / 2;
	} while (1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x8e48
jmp 0x8ed6
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8bb0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
subq $0x1, %rsi
shrq %rsi
callq 0x8bb0
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq (%rcx), %rdx
callq *%rax
cmpl $0x0, %eax
jl 0x8e9b
jmp 0x8ed6
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
subq $0x1, %rdx
shrq %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0x9100
movq -0x10(%rbp), %rax
subq $0x1, %rax
shrq %rax
movq %rax, -0x10(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x8e3c
jmp 0x8ed6
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/datastruct/ptrheap.c
// Function: swap
static void
swap(PTRLIST elems, size_t i, size_t j,
    void (* setreccookie)(void *, void *, size_t), void * cookie)
{
	void * tmp;

	/* Swap the elements. */
	tmp = *ptrlist_get(elems, i);
	*ptrlist_get(elems, i) = *ptrlist_get(elems, j);
	*ptrlist_get(elems, j) = tmp;

	/* Notify about the moved elements. */
	if (setreccookie != NULL) {
		setreccookie(cookie, *ptrlist_get(elems, i), i);
		setreccookie(cookie, *ptrlist_get(elems, j), j);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8bb0
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x8bb0
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8bb0
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x8bb0
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
cmpq $0x0, -0x20(%rbp)
je 0x91dd
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8bb0
movq -0x60(%rbp), %rdi
movq %rax, %rcx
movq -0x58(%rbp), %rax
movq (%rcx), %rsi
movq -0x10(%rbp), %rdx
callq *%rax
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x8bb0
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq (%rcx), %rsi
movq -0x18(%rbp), %rdx
callq *%rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/liball/../libcperciva/datastruct/ptrheap.c
// Function: ptrheap_free
void
ptrheap_free(struct ptrheap * H)
{

	/* Behave consistently with free(NULL). */
	if (H == NULL)
		return;

	ptrlist_free(H->elems);
	free(H);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x9335
jmp 0x934b
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x9360
movq -0x8(%rbp), %rdi
callq 0x2040
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/lib/twister.c
// Function: init_genrand
void init_genrand(unsigned long s)
{
    mt[0]= s & 0xffffffffUL;
    for (mti=1; mti<N; mti++) {
        mt[mti] = 
	    (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); 
        /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */
        /* In the previous versions, MSBs of the seed affect   */
        /* only MSBs of the array mt[].                        */
        /* 2002/01/09 modified by Makoto Matsumoto             */
        mt[mti] &= 0xffffffffUL;
        /* for >32 bit machines */
    }
}

// Assembly:
movq %rdi, -0x8(%rsp)
movabsq $0xffffffff, %rax       # imm = 0xFFFFFFFF
andq -0x8(%rsp), %rax
movq %rax, 0x1ae35(%rip)     # 0x1c180
movl $0x1, 0x1addb(%rip)     # 0x1c130
cmpl $0x270, 0x1add1(%rip)   # imm = 0x270
jge 0x13f8
movl 0x1adc5(%rip), %eax     # 0x1c130
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x1ae08(%rip), %rax     # 0x1c180
movq (%rax,%rcx,8), %rax
movl 0x1adae(%rip), %ecx     # 0x1c130
subl $0x1, %ecx
movslq %ecx, %rdx
leaq 0x1adf1(%rip), %rcx     # 0x1c180
movq (%rcx,%rdx,8), %rcx
shrq $0x1e, %rcx
xorq %rcx, %rax
imulq $0x6c078965, %rax, %rdx # imm = 0x6C078965
movslq 0x1ad88(%rip), %rax     # 0x1c130
addq %rax, %rdx
movslq 0x1ad7e(%rip), %rcx     # 0x1c130
leaq 0x1adc7(%rip), %rax     # 0x1c180
movq %rdx, (%rax,%rcx,8)
movslq 0x1ad6c(%rip), %rcx     # 0x1c130
leaq 0x1adb5(%rip), %rax     # 0x1c180
movabsq $0xffffffff, %rdx       # imm = 0xFFFFFFFF
andq (%rax,%rcx,8), %rdx
leaq 0x1ada0(%rip), %rax     # 0x1c180
movq %rdx, (%rax,%rcx,8)
movl 0x1ad46(%rip), %eax     # 0x1c130
addl $0x1, %eax
movl %eax, 0x1ad3d(%rip)     # 0x1c130
jmp 0x1355
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/lib/../include/arithmetic_ansi.h
// Function: vecalloc
inline static void* vecalloc(size_t size)
{
    void *memblock = malloc(size);
    if (memblock) {
        memset(memblock, 0, size);
    }
    return memblock;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x1170
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x1a71
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
xorl %esi, %esi
callq 0x10f0
movq 0x8(%rsp), %rax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/lib/lbfgs.c
// Function: owlqn_x1norm
static lbfgsfloatval_t owlqn_x1norm(
    const lbfgsfloatval_t* x,
    const int start,
    const int n
    )
{
    int i;
    lbfgsfloatval_t norm = 0.;

    for (i = start;i < n;++i) {
        norm += fabs(x[i]);
    }

    return norm;
}

// Assembly:
movq %rdi, -0x8(%rsp)
movl %esi, -0xc(%rsp)
movl %edx, -0x10(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x20(%rsp)
movl -0xc(%rsp), %eax
movl %eax, -0x14(%rsp)
movl -0x14(%rsp), %eax
cmpl -0x10(%rsp), %eax
jge 0x3d7b
movq -0x8(%rsp), %rax
movslq -0x14(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movaps 0x15322(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
addsd -0x20(%rsp), %xmm0
movsd %xmm0, -0x20(%rsp)
movl -0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rsp)
jmp 0x3d3e
movsd -0x20(%rsp), %xmm0
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/lib/../include/arithmetic_ansi.h
// Function: vecdot
inline static void vecdot(lbfgsfloatval_t* s, const lbfgsfloatval_t *x, const lbfgsfloatval_t *y, const int n)
{
    int i;
    *s = 0.;
    for (i = 0;i < n;++i) {
        *s += x[i] * y[i];
    }
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movl %ecx, -0x1c(%rsp)
movq -0x8(%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movl $0x0, -0x20(%rsp)
movl -0x20(%rsp), %eax
cmpl -0x1c(%rsp), %eax
jge 0x41c1
movq -0x10(%rsp), %rax
movslq -0x20(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rsp), %rax
movslq -0x20(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm2
movq -0x8(%rsp), %rax
movsd (%rax), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rax)
movl -0x20(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rsp)
jmp 0x4177
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/lib/lbfgs.c
// Function: owlqn_project
static void owlqn_project(
    lbfgsfloatval_t* d,
    const lbfgsfloatval_t* sign,
    const int start,
    const int end
    )
{
    int i;

    for (i = start;i < end;++i) {
        if (d[i] * sign[i] <= 0) {
            d[i] = 0;
        }
    }
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movl %edx, -0x14(%rsp)
movl %ecx, -0x18(%rsp)
movl -0x14(%rsp), %eax
movl %eax, -0x1c(%rsp)
movl -0x1c(%rsp), %eax
cmpl -0x18(%rsp), %eax
jge 0x42fc
movq -0x8(%rsp), %rax
movslq -0x1c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq -0x10(%rsp), %rax
movslq -0x1c(%rsp), %rcx
mulsd (%rax,%rcx,8), %xmm1
xorps %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jb 0x42ed
movq -0x8(%rsp), %rax
movslq -0x1c(%rsp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x42ef
movl -0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rsp)
jmp 0x42aa
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/plm.c
// Function: default_options
options_t* default_options() {
    /* Default options */
    options_t *options = (options_t *) malloc(sizeof(options_t));

    options->lambdaH = REGULARIZATION_LAMBDA_H;
    options->lambdaE = REGULARIZATION_LAMBDA_E;
    options->lambdaGroup = REGULARIZATION_LAMBDA_GROUP;
    options->scale = REWEIGHTING_SCALE;
    options->zeroAPC = 0;
    options->maxIter = 0;
    options->usePairs = 1;
    options->estimator = INFER_MAP;
    options->estimatorMAP = INFER_MAP_PLM;
    options->target = NULL;
    options->alphabet = (char *) codesAA;

    /* Sequence weight options */
    options->fastWeights = 0;
    options->theta = REWEIGHTING_THETA;

    /* SGD options */
    options->sgd = 0;
    options->sgdBatchSize = SGD_BATCH_SIZE;

    return options;
}

// Assembly:
pushq %rax
movl $0x60, %edi
callq 0x1170
movq %rax, (%rsp)
movq (%rsp), %rax
movsd 0x13815(%rip), %xmm0    # 0x19110
movsd %xmm0, 0x40(%rax)
movq (%rsp), %rax
movsd 0x137fc(%rip), %xmm0    # 0x19108
movsd %xmm0, 0x48(%rax)
movq (%rsp), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x50(%rax)
movq (%rsp), %rax
movsd 0x13727(%rip), %xmm0    # 0x19050
movsd %xmm0, 0x38(%rax)
movq (%rsp), %rax
movl $0x0, 0x58(%rax)
movq (%rsp), %rax
movl $0x0, 0x1c(%rax)
movq (%rsp), %rax
movl $0x1, 0x10(%rax)
movq (%rsp), %rax
movl $0x0, 0x14(%rax)
movq (%rsp), %rax
movl $0x0, 0x18(%rax)
movq (%rsp), %rax
movq $0x0, (%rax)
movq 0x167e1(%rip), %rcx     # 0x1c158
movq (%rsp), %rax
movq %rcx, 0x8(%rax)
movq (%rsp), %rax
movl $0x0, 0x28(%rax)
movq (%rsp), %rax
movsd 0x1376a(%rip), %xmm0    # 0x19100
movsd %xmm0, 0x30(%rax)
movq (%rsp), %rax
movl $0x0, 0x20(%rax)
movq (%rsp), %rax
movl $0x800, 0x24(%rax)      # imm = 0x800
movq (%rsp), %rax
popq %rcx
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/plm.c
// Function: run_plmc
void run_plmc(char *alignFile, char* outputFile, char *couplingsFile,
    char *weightsFile, char *weightsOutputFile, options_t *options) {

    /* Initialize PRNG */
    init_genrand(42);

    /* Read multiple sequence alignment */
    alignment_t *ali = MSARead(alignFile, options);

    if (weightsFile != NULL) {
        ReadCustomWeightsFile(weightsFile, ali);
    } else {
        /* Reweight sequences by inverse neighborhood density */
        MSAReweightSequences(ali, options);
    }
    if (weightsOutputFile != NULL) {
        WriteWeightsFile(weightsOutputFile, ali);
    }

    /* Compute sitewise and pairwise marginal distributions */
    MSACountMarginals(ali, options);

    /* Infer model parameters */
    numeric_t *x = InferPairModel(ali, options);

    /* (Optionally) Output estimated parameters and coupling scores */
    if (outputFile != NULL)
        OutputParametersFull(outputFile, x, ali, options);
    if (couplingsFile != NULL)
        OutputCouplingScores(couplingsFile, x, ali, options);

    /* Free alignment and options */
    MSAFree(ali, options);
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movl $0x2a, %edi
callq 0x1330
movq 0x40(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x5ac0
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x5a19
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x17f30
jmp 0x5a28
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x169f0
cmpq $0x0, 0x20(%rsp)
je 0x5a3f
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x181d0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x7040
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xa0f0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0x5a83
movq 0x38(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x81e0
cmpq $0x0, 0x30(%rsp)
je 0x5aa4
movq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x8ce0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x9ac0
addq $0x48, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/plm.c
// Function: MSAFree
void MSAFree(alignment_t *ali, options_t *options) {
    /* Free alignment and options */
    if (ali->names && ali->names[0])
        for (int i = 0; i < ali->nSeqs; i++) free(ali->names[i]);
    free(ali->names);
    free(ali->sequences);
    free(ali->weights);
    free(ali->fi);
    free(ali->fij);

    /* Note: options->target and options->alphabet are never allocated */
    free(options);
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x9b24
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, (%rax)
je 0x9b24
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
movq 0x10(%rsp), %rcx
cmpl (%rcx), %eax
jge 0x9b22
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1030
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x9af1
jmp 0x9b24
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x1030
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x1030
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x1030
movq 0x10(%rsp), %rax
movq 0x58(%rax), %rdi
callq 0x1030
movq 0x10(%rsp), %rax
movq 0x60(%rax), %rdi
callq 0x1030
movq 0x8(%rsp), %rdi
callq 0x1030
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/plm.c
// Function: MSAReadSeq
void MSAReadSeq(char *seq, FILE *fpAli) {
    /* Read sequence from the current line(s) */
    char buf[BUFFER_SIZE];
    /* Look ahead one character */
    char c = fgetc(fpAli); 
    ungetc(c, fpAli);
    seq[0] = '\0';
    while (c != '>' && !feof(fpAli)) {
        fgetstr(buf, fpAli);
        strcat(seq, buf);
        /* Look ahead one character */
        c = fgetc(fpAli);
        ungetc(c, fpAli);
    }
}

// Assembly:
subq $0xa038, %rsp           # imm = 0xA038
movq %rdi, 0xa030(%rsp)
movq %rsi, 0xa028(%rsp)
movq 0xa028(%rsp), %rdi
callq 0x1100
movb %al, 0x1f(%rsp)
movsbl 0x1f(%rsp), %edi
movq 0xa028(%rsp), %rsi
callq 0x1180
movq 0xa030(%rsp), %rax
movb $0x0, (%rax)
movsbl 0x1f(%rsp), %ecx
xorl %eax, %eax
cmpl $0x3e, %ecx
movb %al, 0xf(%rsp)
je 0x9bee
movq 0xa028(%rsp), %rdi
callq 0x1150
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x9bfb
jmp 0x9ca5
leaq 0x20(%rsp), %rdi
movq 0xa028(%rsp), %rdx
movl $0xa000, %esi           # imm = 0xA000
callq 0x1120
cmpq $0x0, %rax
je 0x9c6b
leaq 0x20(%rsp), %rdi
movl $0xa, %esi
callq 0x10c0
movq %rax, 0x10(%rsp)
cmpq $0x0, %rax
je 0x9c3a
movq 0x10(%rsp), %rax
movb $0x0, (%rax)
jmp 0x9c3c
leaq 0x20(%rsp), %rdi
callq 0x10b0
subq $0x1, %rax
movsbl 0x20(%rsp,%rax), %eax
cmpl $0xd, %eax
jne 0x9c69
leaq 0x20(%rsp), %rdi
callq 0x10b0
subq $0x1, %rax
movb $0x0, 0x20(%rsp,%rax)
jmp 0x9c3c
jmp 0x9c6b
movq 0xa030(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x11b0
movq 0xa028(%rsp), %rdi
callq 0x1100
movb %al, 0x1f(%rsp)
movsbl 0x1f(%rsp), %edi
movq 0xa028(%rsp), %rsi
callq 0x1180
jmp 0x9bc5
addq $0xa038, %rsp           # imm = 0xA038
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/plm.c
// Function: MSAReadCode
letter_t MSAReadCode(char c, char *alphabet, int nCodes) {
    /* Encode a character as an integer between -nCodes and +nCodes
          In alphabet:                     store index           [0, nCodes - 1]
          Lowercase version of alphabet:   downshift by nCodes   [-nCodes, -1]
          Out of alphabet:                 store nCodes          [nCodes]
     */
    letter_t i = 0;

    /* Protein-specific treatment of '.' */
    if (alphabet == codesAA) if (c == '.') c = '-';

    /* Store lowercase characters as down-shifted by nCodes */
    while ((i < nCodes - 1) && toupper(c) != alphabet[i]) i++;
    if (c != alphabet[i] && toupper(c) == alphabet[i]) i -= nCodes;

    /* Encode out-of-alphabet characters by [nCodes] */
    if (i > 0 && toupper(c) != alphabet[i]) i = nCodes;
    return i;
}

// Assembly:
subq $0x28, %rsp
movb %dil, %al
movb %al, 0x27(%rsp)
movq %rsi, 0x18(%rsp)
movl %edx, 0x14(%rsp)
movl $0x0, 0x10(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x12480(%rip), %rax     # 0x1c158
jne 0x9ceb
movsbl 0x27(%rsp), %eax
cmpl $0x2e, %eax
jne 0x9ce9
movb $0x2d, 0x27(%rsp)
jmp 0x9ceb
jmp 0x9ced
movl 0x10(%rsp), %ecx
movl 0x14(%rsp), %edx
subl $0x1, %edx
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, 0xf(%rsp)
jge 0x9d23
movsbl 0x27(%rsp), %edi
callq 0x1070
movq 0x18(%rsp), %rcx
movslq 0x10(%rsp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x9d2d
jmp 0x9d3a
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x9ced
movsbl 0x27(%rsp), %eax
movq 0x18(%rsp), %rcx
movslq 0x10(%rsp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x9d7b
movsbl 0x27(%rsp), %edi
callq 0x1070
movq 0x18(%rsp), %rcx
movslq 0x10(%rsp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x9d7b
movl 0x14(%rsp), %ecx
movl 0x10(%rsp), %eax
subl %ecx, %eax
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x10(%rsp)
jle 0x9da6
movsbl 0x27(%rsp), %edi
callq 0x1070
movq 0x18(%rsp), %rcx
movslq 0x10(%rsp), %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x9da6
movl 0x14(%rsp), %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/inference.c
// Function: ElapsedTime
numeric_t ElapsedTime(struct timeval *start) {
/* Computes the elapsed time from START to NOW in seconds */
    struct timeval now;
    gettimeofday(&now, NULL);
    if (now.tv_usec < start->tv_usec) {
        int nsec = (start->tv_usec - now.tv_usec) / 1000000 + 1;
        start->tv_usec -= 1000000 * nsec;
        start->tv_sec += nsec;
    }
    if (now.tv_usec - start->tv_usec > 1000000) {
        int nsec = (now.tv_usec - start->tv_usec) / 1000000;
        start->tv_usec += 1000000 * nsec;
        start->tv_sec -= nsec;
    }
    return (numeric_t) (now.tv_sec - start->tv_sec)
                      + ((numeric_t) (now.tv_usec - start->tv_usec)) / 1E6;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x10e0
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jge 0x16262
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
subq 0x18(%rsp), %rax
movl $0xf4240, %ecx          # imm = 0xF4240
cqto
idivq %rcx
addq $0x1, %rax
movl %eax, 0xc(%rsp)
imull $0xf4240, 0xc(%rsp), %eax # imm = 0xF4240
movslq %eax, %rdx
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x8(%rax)
movslq 0xc(%rsp), %rcx
movq 0x20(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq 0x8(%rcx), %rax
cmpq $0xf4240, %rax          # imm = 0xF4240
jle 0x162bf
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq 0x8(%rcx), %rax
movl $0xf4240, %ecx          # imm = 0xF4240
cqto
idivq %rcx
movl %eax, 0x8(%rsp)
imull $0xf4240, 0x8(%rsp), %eax # imm = 0xF4240
movslq %eax, %rcx
movq 0x20(%rsp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movslq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rax
movq (%rax), %rcx
subq %rdx, %rcx
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
subq (%rcx), %rax
cvtsi2sd %rax, %xmm0
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq 0x8(%rcx), %rax
cvtsi2sd %rax, %xmm1
movsd 0x30fc(%rip), %xmm2     # 0x193e8
divsd %xmm2, %xmm1
addsd %xmm1, %xmm0
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/weights.c
// Function: ValidateCustomWeightsFile
int ValidateCustomWeightsFile(char *weightsFile, alignment_t *ali) {
    /* Check that the weights file exists */
    /* Remember to close file pointer before returning. */
    FILE *fp = fopen(weightsFile, "r");
    if (fp == NULL) {
        fprintf(stderr, "Error: weights file %s does not exist\n", weightsFile);
        fclose(fp);
        return 1;
    }

    /* Count number of lines in file */
    int nLines = 0;
    int MAX_LINE_LENGTH = 1024;
    char line[MAX_LINE_LENGTH];
    while (fgets(line, MAX_LINE_LENGTH, fp) != NULL) nLines++;

    int nSeqsRaw = ali->nSeqs + ali->nSkippedSeqs;
    if (nLines != nSeqsRaw) {
        fprintf(stderr, "Error: weights file %s has %d lines, but alignment has %d sequences\n",
                weightsFile, nLines, nSeqsRaw);
        fclose(fp);
        return 1;
    }

    fclose(fp);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x230e(%rip), %rsi      # 0x1a129
callq 0x1190
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x17e5c
movq 0x41c6(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
movq -0x10(%rbp), %rdx
leaq 0x1a2b(%rip), %rsi      # 0x1986b
movb $0x0, %al
callq 0x1140
movq -0x20(%rbp), %rdi
callq 0x10a0
movl $0x1, -0x4(%rbp)
jmp 0x17f23
movl $0x0, -0x24(%rbp)
movl $0x400, -0x28(%rbp)     # imm = 0x400
movl -0x28(%rbp), %eax
movq %rsp, %rcx
movq %rcx, -0x30(%rbp)
movq %rax, %rdx
addq $0xf, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x48(%rbp)
movq %rcx, %rsp
movq %rax, -0x38(%rbp)
movq -0x48(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x20(%rbp), %rdx
callq 0x1120
cmpq $0x0, %rax
je 0x17eb1
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x17e90
movq -0x18(%rbp), %rax
movl (%rax), %eax
movq -0x18(%rbp), %rcx
addl 0x28(%rcx), %eax
movl %eax, -0x3c(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x3c(%rbp), %eax
je 0x17f05
movq 0x4128(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
movq -0x10(%rbp), %rdx
movl -0x24(%rbp), %ecx
movl -0x3c(%rbp), %r8d
leaq 0x19ad(%rip), %rsi      # 0x19892
movb $0x0, %al
callq 0x1140
movq -0x20(%rbp), %rdi
callq 0x10a0
movl $0x1, -0x4(%rbp)
movl $0x1, -0x40(%rbp)
jmp 0x17f1c
movq -0x20(%rbp), %rdi
callq 0x10a0
movl $0x0, -0x4(%rbp)
movl $0x1, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, %rsp
movl -0x4(%rbp), %eax
movq %rbp, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/weights.c
// Function: WriteWeightsFile
void WriteWeightsFile(char *weightsFile, alignment_t *ali) {
    // Note: Ignoring options->scale and options->theta here, writing out raw weights
    /* Write weights to file */
    FILE *fpOutput = fopen(weightsFile, "w");
    if (fpOutput == NULL) {
        fprintf(stderr, "Error: could not open weights file %s\n", weightsFile);
        exit(1);
    }
    // Write out weights, one float per line, and include invalid seqs as weight 0
    // Copied from plm.OutputParametersFull()
    int skipix = 0, reducedix = 0;
    for (int i = 0; i < (ali->nSeqs + ali->nSkippedSeqs); i++) {
        if (skipix < ali->nSkippedSeqs && i == ali->skippedSeqs[skipix]) {
            /* Skip skipped sequences */
            fprintf(fpOutput, "0.0\n");
            skipix++;
        } else {
            numeric_t w = ali->weights[reducedix];
            fprintf(fpOutput, weights_fmt, w);
            reducedix++;
        }
    }
    fclose(fpOutput);
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rdi
leaq 0x1fb9(%rip), %rsi      # 0x1a1a3
callq 0x1190
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x18223
movq 0x3df5(%rip), %rax      # 0x1bff8
movq (%rax), %rdi
movq 0x30(%rsp), %rdx
leaq 0x16e8(%rip), %rsi      # 0x198fa
movb $0x0, %al
callq 0x1140
movl $0x1, %edi
callq 0x11c0
movl $0x0, 0x1c(%rsp)
movl $0x0, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
movl 0x14(%rsp), %eax
movq 0x28(%rsp), %rcx
movl (%rcx), %ecx
movq 0x28(%rsp), %rdx
addl 0x28(%rdx), %ecx
cmpl %ecx, %eax
jge 0x182ea
movl 0x1c(%rsp), %eax
movq 0x28(%rsp), %rcx
cmpl 0x28(%rcx), %eax
jge 0x1829b
movl 0x14(%rsp), %eax
movq 0x28(%rsp), %rcx
movq 0x30(%rcx), %rcx
movslq 0x1c(%rsp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne 0x1829b
movq 0x20(%rsp), %rdi
leaq 0x175d(%rip), %rsi      # 0x199e4
movb $0x0, %al
callq 0x1140
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x182d8
movq 0x28(%rsp), %rax
movq 0x50(%rax), %rax
movslq 0x18(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movq 0x3ea0(%rip), %rsi      # 0x1c160
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x1140
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x182da
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x1823b
movq 0x20(%rsp), %rdi
callq 0x10a0
addq $0x38, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenGene[P]pecheck/src/fastqreader.cpp
// Function: FastqReader::FastqReader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, bool)
FastqReader::FastqReader(string filename, bool hasQuality, bool phred64){
	mFilename = filename;
	mZipFile = NULL;
	mZipped = false;
	mFile = NULL;
	mStdinMode = false;
	mPhred64 = phred64;
	mHasQuality = hasQuality;
	mBuf = new char[FQ_BUF_SIZE];
	mBufDataLen = 0;
	mBufUsedLen = 0;
	init();
}

// Assembly:
subq $0x48, %rsp
movq %rsi, 0x18(%rsp)
movb %cl, %al
movb %dl, %cl
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
andb $0x1, %cl
movb %cl, 0x37(%rsp)
andb $0x1, %al
movb %al, 0x36(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
callq 0x4520
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x4070
jmp 0x4a4c
movq 0x8(%rsp), %rax
movq $0x0, 0x20(%rax)
movb $0x0, 0x30(%rax)
movq $0x0, 0x28(%rax)
movb $0x0, 0x48(%rax)
movb 0x36(%rsp), %cl
andb $0x1, %cl
movb %cl, 0x32(%rax)
movb 0x37(%rsp), %cl
andb $0x1, %cl
movb %cl, 0x31(%rax)
movl $0x100000, %edi         # imm = 0x100000
callq 0x4040
movq %rax, (%rsp)
jmp 0x4a8d
movq 0x8(%rsp), %rdi
movq (%rsp), %rax
movq %rax, 0x38(%rdi)
movl $0x0, 0x40(%rdi)
movl $0x0, 0x44(%rdi)
callq 0x4ae0
jmp 0x4aaf
addq $0x48, %rsp
retq
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
callq 0x4758
movq 0x28(%rsp), %rdi
callq 0x46a0
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenGene[P]pecheck/src/fastqreader.cpp
// Function: FastqReader::init()
void FastqReader::init(){
	if (ends_with(mFilename, ".gz")){
		mZipFile = gzopen(mFilename.c_str(), "r");
		mZipped = true;
		gzrewind(mZipFile);
	}
	else {
		if(mFilename == "/dev/stdin") {
			mFile = stdin;
		}
		else
			mFile = fopen(mFilename.c_str(), "rb");
		if(mFile == NULL) {
			error_exit("Failed to open file: " + mFilename);
		}
		mZipped = false;
	}
	readToBuf();
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %rax, 0x18(%rsp)
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x46b0
movq 0x20(%rsp), %rdx
leaq 0x1153d(%rip), %rsi     # 0x16059
leaq 0x60(%rsp), %rdi
callq 0x67f0
jmp 0x4b28
movq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x6760
movb %al, 0xf(%rsp)
jmp 0x4b3d
leaq 0x60(%rsp), %rdi
callq 0x4758
leaq 0x5f(%rsp), %rdi
callq 0x43e0
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x4b5b
jmp 0x4bc9
movq 0x18(%rsp), %rdi
callq 0x4170
movq %rax, %rdi
leaq 0x114ad(%rip), %rsi     # 0x1601c
callq 0x4560
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rax)
movb $0x1, 0x30(%rax)
movq 0x20(%rax), %rdi
callq 0x4410
jmp 0x4c7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x4bba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x4758
leaq 0x5f(%rsp), %rdi
callq 0x43e0
jmp 0x4c8c
movq 0x18(%rsp), %rdi
leaq 0x11449(%rip), %rsi     # 0x1601e
callq 0x68b0
testb $0x1, %al
jne 0x4be0
jmp 0x4bf5
movq 0x18(%rsp), %rax
movq 0x193d4(%rip), %rcx     # 0x1dfc0
movq (%rcx), %rcx
movq %rcx, 0x28(%rax)
jmp 0x4c1a
movq 0x18(%rsp), %rdi
callq 0x4170
movq %rax, %rdi
leaq 0x11420(%rip), %rsi     # 0x16029
callq 0x4460
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x18(%rsp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x4c71
movq 0x18(%rsp), %rdx
leaq 0x113fa(%rip), %rsi     # 0x1602c
leaq 0x28(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x6920
movq (%rsp), %rdi
callq 0x68e0
jmp 0x4c4b
leaq 0x28(%rsp), %rdi
callq 0x4758
jmp 0x4c71
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x4758
jmp 0x4c8c
movq 0x18(%rsp), %rax
movb $0x0, 0x30(%rax)
movq 0x18(%rsp), %rdi
callq 0x4d70
addq $0x88, %rsp
retq
movq 0x50(%rsp), %rdi
callq 0x46a0
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/OpenGene[P]pecheck/src/fastqreader.cpp
// Function: FastqReader::close()
void FastqReader::close(){
	if (mZipped){
		if (mZipFile){
			gzclose(mZipFile);
			mZipFile = NULL;
		}
	}
	else {
		if (mFile){
			fclose(mFile);//mFile.close();
			mFile = NULL;
		}
	}
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
testb $0x1, 0x30(%rax)
je 0x4d42
movq 0x8(%rsp), %rax
cmpq $0x0, 0x20(%rax)
je 0x4d40
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x4640
movq 0x8(%rsp), %rax
movq $0x0, 0x20(%rax)
jmp 0x4d6b
movq 0x8(%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x4d69
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x4350
movq 0x8(%rsp), %rax
movq $0x0, 0x28(%rax)
jmp 0x4d6b
addq $0x18, %rsp
retq