LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_lbs/proto_lbs_client.c
// Function: proto_lbs_request_params2
int
proto_lbs_request_params2(struct wire_requestqueue * Q,
    int (* callback)(void *, int, size_t, uint64_t, uint64_t), void * cookie)
{
	struct params2_cookie * C;
	uint8_t buf[4];

	/* Sanity check. */
	assert(callback != NULL);

	/* Bake a cookie. */
	if ((C = malloc(sizeof(struct params2_cookie))) == NULL)
		goto err0;
	C->callback = callback;
	C->cookie = cookie;

	/* Construct request. */
	be32enc(&buf[0], PROTO_LBS_PARAMS2);

	/* Send request. */
	if (wire_requestqueue_add(Q, buf, 4, callback_params2, C))
		goto err1;

	/* Success! */
	return (0);

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

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rsi, %rsi
je 0x11142
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
movl $0x10, %edi
callq 0x22a0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x11132
movq %rax, %r14
movq %r13, (%rax)
movq %r12, 0x8(%rax)
leaq 0xc(%rsp), %rsi
movl $0x4000000, (%rsi)      # imm = 0x4000000
leaq 0x4f(%rip), %rcx        # 0x11161
movl $0x4, %edx
movq %r15, %rdi
movq %rax, %r8
callq 0x12491
testl %eax, %eax
je 0x11130
movq %r14, %rdi
callq 0x2040
jmp 0x11132
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x589b(%rip), %rdi      # 0x169e4
leaq 0x58a5(%rip), %rsi      # 0x169f5
leaq 0x592b(%rip), %rcx      # 0x16a82
movl $0x8d, %edx
callq 0x21c0
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_lbs/proto_lbs_client.c
// Function: callback_params2
static int
callback_params2(void * cookie, uint8_t * buf, size_t buflen)
{
	struct params2_cookie * C = cookie;
	int failed = 1;
	size_t blklen = 0;
	uint64_t blkno = 0;
	uint64_t lastblk = (uint64_t)(-1);
	int rc;

	/* If we have a packet, parse it. */
	if (buf != NULL) {
		/* Do we have the right packet length? */
		if (buflen != 20)
			BAD("PARAMS2", "bogus length");

		/* Parse the packet. */
		blklen = be32dec(&buf[0]);
		blkno = be64dec(&buf[4]);
		lastblk = be64dec(&buf[12]);

		/* We successfully parsed this response. */
		failed = 0;
	}

failed:
	/* Invoke the upstream callback. */
	rc = (C->callback)(C->cookie, failed, blklen, blkno, lastblk);

	/* Free the cookie. */
	free(C);

	/* Return status from callback. */
	return (rc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %ebp
movq $-0x1, %r14
testq %rsi, %rsi
je 0x1119a
cmpq $0x14, %rdx
jne 0x1119f
movl (%rsi), %r15d
bswapl %r15d
movq 0x4(%rsi), %rcx
bswapq %rcx
movq 0xc(%rsi), %r14
bswapq %r14
xorl %ebp, %ebp
jmp 0x111cb
xorl %r15d, %r15d
jmp 0x111c9
leaq 0x5ad4(%rip), %rdi      # 0x16c7a
leaq 0x5afe(%rip), %rsi      # 0x16cab
leaq 0x5aea(%rip), %rdx      # 0x16c9e
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x100ef
callq 0x20a0
movl $0x0, (%rax)
xorl %ecx, %ecx
movq 0x8(%rbx), %rdi
movl %ebp, %esi
movq %r15, %rdx
movq %r14, %r8
callq *(%rbx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2040
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_lbs/proto_lbs_client.c
// Function: proto_lbs_request_get
int
proto_lbs_request_get(struct wire_requestqueue * Q,
    uint64_t blkno, size_t blklen,
    int (* callback)(void *, int, int, const uint8_t *), void * cookie)
{
	struct get_cookie * C;
	uint8_t * buf;

	/* Sanity check. */
	assert(callback != NULL);

	/* Bake a cookie. */
	if ((C = malloc(sizeof(struct get_cookie))) == NULL)
		goto err0;
	C->callback = callback;
	C->cookie = cookie;
	C->blklen = blklen;

	/* Start writing a request. */
	if ((buf = wire_requestqueue_add_getbuf(Q, 12,
	    callback_get, C)) == NULL)
		goto err1;

	/* Construct request. */
	be32enc(&buf[0], PROTO_LBS_GET);
	be64enc(&buf[4], blkno);

	/* Finish writing request. */
	if (wire_requestqueue_add_done(Q, buf, 12))
		goto err1;

	/* Success! */
	return (0);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rcx, %rcx
je 0x112ca
movq %r8, %r12
movq %rcx, %rbp
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r15
movl $0x18, %edi
callq 0x22a0
movq %rax, %r14
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r14, %r14
je 0x112bb
movq %rbp, (%r14)
movq %r12, 0x8(%r14)
movq %r13, 0x10(%r14)
leaq 0xa9(%rip), %rdx        # 0x112e9
movl $0xc, %esi
movq %r15, %rdi
movq %r14, %rcx
callq 0x1217a
testq %rax, %rax
je 0x112aa
movl $0x1000000, (%rax)      # imm = 0x1000000
movb %bl, 0xb(%rax)
movb %bh, 0xa(%rax)
movl %ebx, %ecx
shrl $0x10, %ecx
movb %cl, 0x9(%rax)
movl %ebx, %ecx
shrl $0x18, %ecx
movb %cl, 0x8(%rax)
movq %rbx, %rcx
shrq $0x20, %rcx
movb %cl, 0x7(%rax)
movq %rbx, %rcx
shrq $0x28, %rcx
movb %cl, 0x6(%rax)
movq %rbx, %rcx
shrq $0x30, %rcx
movb %cl, 0x5(%rax)
shrq $0x38, %rbx
movb %bl, 0x4(%rax)
movl $0xc, %edx
movq %r15, %rdi
movq %rax, %rsi
callq 0x12475
testl %eax, %eax
je 0x112b9
movq %r14, %rdi
callq 0x2040
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x112bb
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5713(%rip), %rdi      # 0x169e4
leaq 0x571d(%rip), %rsi      # 0x169f5
leaq 0x5817(%rip), %rcx      # 0x16af6
movl $0xdd, %edx
callq 0x21c0
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_lbs/proto_lbs_client.c
// Function: callback_get
static int
callback_get(void * cookie, uint8_t * buf, size_t buflen)
{
	struct get_cookie * C = cookie;
	int failed = 1;
	int status = 0;
	const uint8_t * blk = NULL;
	int rc;

	/* If we have a packet, parse it. */
	if (buf != NULL) {
		/* Is the status code sane? */
		if (buflen < 4)
			BAD("GET", "bogus length");
		if (be32dec(&buf[0]) > 1)
			BAD("GET", "bogus status code");
		status = (int)be32dec(&buf[0]);

		/* Do we have the right packet length? */
		if ((status == 0) && (buflen != 4 + C->blklen))
			BAD("GET", "wrong length for status");
		if ((status == 1) && (buflen != 4))
			BAD("GET", "wrong length for status");

		/* Find the block data, if any. */
		if (status == 0)
			blk = &buf[4];

		/* We successfully parsed this response. */
		failed = 0;
	}

failed:
	/* Invoke the upstream callback. */
	rc = (C->callback)(C->cookie, failed, status, blk);

	/* Free the cookie. */
	free(C);

	/* Return status from callback. */
	return (rc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x1, %r14d
testq %rsi, %rsi
je 0x1131c
cmpq $0x3, %rdx
ja 0x11321
leaq 0x596e(%rip), %rdi      # 0x16c7a
leaq 0x59a0(%rip), %rsi      # 0x16cb3
leaq 0x5984(%rip), %rdx      # 0x16c9e
jmp 0x11345
xorl %r15d, %r15d
jmp 0x1135a
movq %rsi, %r12
movl (%rsi), %r15d
bswapl %r15d
cmpl $0x2, %r15d
jb 0x11381
leaq 0x5943(%rip), %rdi      # 0x16c7a
leaq 0x5975(%rip), %rsi      # 0x16cb3
leaq 0x5972(%rip), %rdx      # 0x16cb7
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x100ef
callq 0x20a0
movl $0x0, (%rax)
xorl %r12d, %r12d
movq 0x8(%rbx), %rdi
movl %r14d, %esi
movl %r15d, %edx
movq %r12, %rcx
callq *(%rbx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2040
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
testl %r15d, %r15d
je 0x113c4
cmpq $0x4, %rdx
je 0x113d1
leaq 0x58e7(%rip), %rdi      # 0x16c7a
leaq 0x5919(%rip), %rsi      # 0x16cb3
leaq 0x5928(%rip), %rdx      # 0x16cc9
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x100ef
callq 0x20a0
movl $0x0, (%rax)
movl $0x1, %r15d
movl $0x1, %r14d
jmp 0x1135d
movq 0x10(%rbx), %rax
addq $0x4, %rax
cmpq %rdx, %rax
jne 0x113e4
addq $0x4, %r12
xorl %r14d, %r14d
testl %r15d, %r15d
cmovneq %r14, %r12
jmp 0x1135d
leaq 0x588f(%rip), %rdi      # 0x16c7a
leaq 0x58c1(%rip), %rsi      # 0x16cb3
leaq 0x58d0(%rip), %rdx      # 0x16cc9
jmp 0x11345
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_lbs/proto_lbs_client.c
// Function: callback_append
static int
callback_append(void * cookie, uint8_t * buf, size_t buflen)
{
	struct append_cookie * C = cookie;
	int failed = 1;
	int status = 0;
	uint64_t blkno = 0;
	int rc;

	/* If we have a packet, parse it. */
	if (buf != NULL) {
		/* Is the status code sane? */
		if (buflen < 4)
			BAD("APPEND", "bogus length");
		if (be32dec(&buf[0]) > 1)
			BAD("APPEND", "bogus status code");
		status = (int)be32dec(&buf[0]);

		/* Do we have the right packet length? */
		if ((status == 0) && (buflen != 12))
			BAD("APPEND", "wrong length for status");
		if ((status == 1) && (buflen != 4))
			BAD("APPEND", "wrong length for status");

		/* Parse the next block #, if any. */
		if (status == 0)
			blkno = be64dec(&buf[4]);

		/* We successfully parsed this response. */
		failed = 0;
	}

failed:
	/* Invoke the upstream callback. */
	rc = (C->callback)(C->cookie, failed, status, blkno);

	/* Free the cookie. */
	free(C);

	/* Return status from callback. */
	return (rc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %ebp
testq %rsi, %rsi
je 0x115b9
cmpq $0x3, %rdx
ja 0x115be
leaq 0x56d1(%rip), %rdi      # 0x16c7a
leaq 0x5731(%rip), %rsi      # 0x16ce1
leaq 0x56e7(%rip), %rdx      # 0x16c9e
jmp 0x115fd
xorl %r14d, %r14d
jmp 0x11612
movl (%rsi), %eax
bswapl %eax
cmpl $0x2, %eax
jb 0x115de
leaq 0x56ac(%rip), %rdi      # 0x16c7a
leaq 0x570c(%rip), %rsi      # 0x16ce1
leaq 0x56db(%rip), %rdx      # 0x16cb7
jmp 0x115fd
cmpq $0xc, %rdx
je 0x1163a
testl %eax, %eax
jne 0x1163a
leaq 0x568b(%rip), %rdi      # 0x16c7a
leaq 0x56eb(%rip), %rsi      # 0x16ce1
leaq 0x56cc(%rip), %rdx      # 0x16cc9
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x100ef
callq 0x20a0
movl $0x0, (%rax)
xorl %r15d, %r15d
movq 0x8(%rbx), %rdi
movl %ebp, %esi
movl %r14d, %edx
movq %r15, %rcx
callq *(%rbx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2040
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x4, %rdx
je 0x1167c
cmpl $0x1, %eax
jne 0x1167c
leaq 0x562e(%rip), %rdi      # 0x16c7a
leaq 0x568e(%rip), %rsi      # 0x16ce1
leaq 0x566f(%rip), %rdx      # 0x16cc9
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x100ef
callq 0x20a0
movl $0x0, (%rax)
movl $0x1, %r14d
movl $0x1, %ebp
jmp 0x11615
testl %eax, %eax
je 0x1168b
xorl %r15d, %r15d
movl $0x1, %r14d
jmp 0x1169d
addq $0x4, %rsi
movq %rsi, %rdi
callq 0x118a4
movq %rax, %r15
xorl %r14d, %r14d
xorl %ebp, %ebp
jmp 0x11615
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_lbs/proto_lbs_client.c
// Function: proto_lbs_request_append
int
proto_lbs_request_append(struct wire_requestqueue * Q,
    uint32_t nblks, uint64_t blkno, size_t blklen, const uint8_t * buf,
    int (* callback)(void *, int, int, uint64_t), void * cookie)
{
	const uint8_t ** bufv;
	size_t i;

	/* Allocate vector of pointers to blocks. */
	if (IMALLOC(bufv, nblks, const uint8_t *))
		goto err0;

	/* Fill in vector. */
	for (i = 0; i < nblks; i++)
		bufv[i] = &buf[i * blklen];

	/* Send the request. */
	if (proto_lbs_request_append_blks(Q, nblks, blkno, blklen, bufv,
	    callback, cookie))
		goto err1;

	/* Free the vector. */
	free(bufv);

	/* Success! */
	return (0);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r15
movl %esi, %ebp
xorl %ebx, %ebx
testl %esi, %esi
je 0x11709
movq %r8, %r12
movq %rdi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %r9, 0x20(%rsp)
movl %ebp, %r13d
leaq (,%r13,8), %rdi
callq 0x22a0
testq %rax, %rax
je 0x11732
movq %rax, %r14
xorl %eax, %eax
movq %r12, (%r14,%rax,8)
incq %rax
addq %r15, %r12
cmpq %rax, %r13
jne 0x116e9
movq 0x20(%rsp), %r9
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rdi
jmp 0x1170c
xorl %r14d, %r14d
movq 0x60(%rsp), %rax
movq %rax, (%rsp)
movl %ebp, %esi
movq %r15, %rcx
movq %r14, %r8
callq 0x113fe
movl %eax, %ebp
movq %r14, %rdi
callq 0x2040
negl %ebp
sbbl %ebx, %ebx
jmp 0x11737
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_lbs/proto_lbs_client.c
// Function: proto_lbs_request_free
int
proto_lbs_request_free(struct wire_requestqueue * Q, uint64_t blkno,
    int (* callback)(void *, int), void * cookie)
{
	struct free_cookie * C;
	uint8_t * buf;

	/* Sanity check. */
	assert(callback != NULL);

	/* Bake a cookie. */
	if ((C = malloc(sizeof(struct free_cookie))) == NULL)
		goto err0;
	C->callback = callback;
	C->cookie = cookie;

	/* Start writing a request. */
	if ((buf = wire_requestqueue_add_getbuf(Q, 12,
	    callback_free, C)) == NULL)
		goto err1;

	/* Construct request. */
	be32enc(&buf[0], PROTO_LBS_FREE);
	be64enc(&buf[4], blkno);

	/* Finish writing request. */
	if (wire_requestqueue_add_done(Q, buf, 12))
		goto err1;

	/* Success! */
	return (0);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0x11818
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r15
movl $0x10, %edi
callq 0x22a0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x11807
movq %rax, %r14
movq %r13, (%rax)
movq %r12, 0x8(%rax)
leaq 0xa6(%rip), %rdx        # 0x11837
movl $0xc, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0x1217a
testq %rax, %rax
je 0x117fb
movl $0x3000000, (%rax)      # imm = 0x3000000
movb %bl, 0xb(%rax)
movb %bh, 0xa(%rax)
movl %ebx, %ecx
shrl $0x10, %ecx
movb %cl, 0x9(%rax)
movl %ebx, %ecx
shrl $0x18, %ecx
movb %cl, 0x8(%rax)
movq %rbx, %rcx
shrq $0x20, %rcx
movb %cl, 0x7(%rax)
movq %rbx, %rcx
shrq $0x28, %rcx
movb %cl, 0x6(%rax)
movq %rbx, %rcx
shrq $0x30, %rcx
movb %cl, 0x5(%rax)
shrq $0x38, %rbx
movb %bl, 0x4(%rax)
movl $0xc, %edx
movq %r15, %rdi
movq %rax, %rsi
callq 0x12475
testl %eax, %eax
je 0x11805
movq %r14, %rdi
callq 0x2040
jmp 0x11807
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x51c5(%rip), %rdi      # 0x169e4
leaq 0x51cf(%rip), %rsi      # 0x169f5
leaq 0x53ee(%rip), %rcx      # 0x16c1b
movl $0x1ca, %edx            # imm = 0x1CA
callq 0x21c0
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/liball/../lib/proto_lbs/proto_lbs_client.c
// Function: callback_free
static int
callback_free(void * cookie, uint8_t * buf, size_t buflen)
{
	struct free_cookie * C = cookie;
	int failed = 1;
	int rc;

	/* If we have a packet, parse it. */
	if (buf != NULL) {
		/* Is the status code sane? */
		if (buflen < 4)
			BAD("FREE", "bogus length");
		if (be32dec(&buf[0]) > 0)
			BAD("FREE", "bogus status code");

		/* We successfully parsed this response. */
		failed = 0;
	}

failed:
	/* Invoke the upstream callback. */
	rc = (C->callback)(C->cookie, failed);

	/* Free the cookie. */
	free(C);

	/* Return status from callback. */
	return (rc);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %ebp
testq %rsi, %rsi
je 0x11885
cmpq $0x4, %rdx
jae 0x11856
leaq 0x544a(%rip), %rdx      # 0x16c9e
jmp 0x11865
movl (%rsi), %eax
bswapl %eax
testl %eax, %eax
je 0x118a0
leaq 0x5452(%rip), %rdx      # 0x16cb7
leaq 0x540e(%rip), %rdi      # 0x16c7a
leaq 0x5475(%rip), %rsi      # 0x16ce8
xorl %eax, %eax
callq 0x100ef
callq 0x20a0
movl $0x0, (%rax)
movq 0x8(%rbx), %rdi
movl %ebp, %esi
callq *(%rbx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2040
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x11885
// File: /workspace/github_c_makefile_star2_O3/alexgirao[P]aimant/chargenx.c
// Function: open_stdout0
static int open_stdout0(int flags)
{
	int fd;
	assert(*args->out_file);
	if ((fd = open(args->out_file, flags, 0644)) < 0) {
		int save_errno = errno;
		assert(fd == -1);
		DEBUG("open(args->out_file=[%s], flags=%i, 0644), errno=%i", args->out_file, flags, save_errno);
		errno = save_errno;
		perror(args->out_file);
		return -1;
	}
	if (fd != STDOUT_FILENO) {
		assert(dup2(fd, STDOUT_FILENO) == STDOUT_FILENO);
		assert(close(fd) == 0);
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, 0x59a9(%rip)      # 0x82e4
je 0x29a5
movl %edi, %r14d
leaq 0x599d(%rip), %rdi      # 0x82e4
xorl %ebx, %ebx
movl %r14d, %esi
movl $0x1a4, %edx            # imm = 0x1A4
xorl %eax, %eax
callq 0x1200
movl %eax, %r15d
testl %eax, %eax
js 0x2990
cmpl $0x1, %r15d
je 0x2983
movl %r15d, %edi
movl $0x1, %esi
callq 0x10f0
cmpl $0x1, %eax
jne 0x29e3
movl %r15d, %edi
callq 0x1180
testl %eax, %eax
jne 0x2a02
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $-0x1, %r15d
jne 0x29c4
movl %r14d, %edi
callq 0x1418
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x2983
leaq 0x2cf9(%rip), %rdi      # 0x56a5
leaq 0x2721(%rip), %rsi      # 0x50d4
leaq 0x2cfb(%rip), %rcx      # 0x56b5
movl $0x1f1, %edx            # imm = 0x1F1
callq 0x1140
leaq 0x2d00(%rip), %rdi      # 0x56cb
leaq 0x2702(%rip), %rsi      # 0x50d4
leaq 0x2cdc(%rip), %rcx      # 0x56b5
movl $0x1f4, %edx            # imm = 0x1F4
callq 0x1140
leaq 0x2d1e(%rip), %rdi      # 0x5708
leaq 0x26e3(%rip), %rsi      # 0x50d4
leaq 0x2cbd(%rip), %rcx      # 0x56b5
movl $0x1fb, %edx            # imm = 0x1FB
callq 0x1140
leaq 0x2d28(%rip), %rdi      # 0x5731
leaq 0x26c4(%rip), %rsi      # 0x50d4
leaq 0x2c9e(%rip), %rcx      # 0x56b5
movl $0x1fc, %edx            # imm = 0x1FC
callq 0x1140
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/alexgirao[P]aimant/getopt_x.c
// Function: getopt_x_option
int getopt_x_option(struct getopt_x *state, int c, struct option *opt)
{
	assert(opt);
	if (c < 0) {
		return -1;
	} else if (c < state->n_short_options) {
		opt->name = NULL;
		opt->val = state->optstring0_alnum[c];
		opt->has_arg = FD_ISSET_HAS_ARG(opt->val, state->optset);
	} else if (c < state->n_all_options) {
		*opt = state->longopts[c - state->n_short_options];
	} else {
		return -1;
	}
	return c + 1;
}

// Assembly:
testq %rdx, %rdx
je 0x3434
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %esi, %esi
js 0x3433
movl %esi, %ecx
subl 0x180(%rdi), %ecx
jge 0x340c
movq $0x0, (%rdx)
movl %esi, %eax
movsbl 0x11c(%rdi,%rax), %eax
movl %eax, 0x18(%rdx)
movl %eax, %ecx
shrl $0x3, %ecx
andl $0x18, %ecx
movq 0xb0(%rdi,%rcx), %rcx
xorl %edi, %edi
btq %rax, %rcx
setb %dil
movl %edi, 0x8(%rdx)
jmp 0x342f
cmpl %esi, 0x184(%rdi)
jle 0x3433
movq 0x18(%rdi), %rax
movslq %ecx, %rcx
shlq $0x5, %rcx
movups (%rax,%rcx), %xmm0
movups 0x10(%rax,%rcx), %xmm1
movups %xmm1, 0x10(%rdx)
movups %xmm0, (%rdx)
incl %esi
movl %esi, %eax
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x2595(%rip), %rdi      # 0x59d4
leaq 0x24b1(%rip), %rsi      # 0x58f7
leaq 0x258b(%rip), %rcx      # 0x59d8
movl $0x177, %edx            # imm = 0x177
callq 0x1140
// File: /workspace/github_c_makefile_star2_O3/alexgirao[P]aimant/bsd-getopt_long.c
// Function: pure_permute_args
static void pure_permute_args(int panonopt_start, int panonopt_end, 
                              int opt_end, char * const *nargv)
{
    int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos;
    char *swap;
    
    /*
     * compute lengths of blocks and number and size of cycles
     */
    nnonopts = panonopt_end - panonopt_start;
    nopts = opt_end - panonopt_end;
    ncycle = pure_gcd(nnonopts, nopts);
    cyclelen = (opt_end - panonopt_start) / ncycle;
    
    for (i = 0; i < ncycle; i++) {
        cstart = panonopt_end+i;
        pos = cstart;
        for (j = 0; j < cyclelen; j++) {
            if (pos >= panonopt_end)
                pos -= nnonopts;
            else
                pos += nopts;
            swap = nargv[pos];
            /* LINTED const cast */
            ((char **) nargv)[pos] = nargv[cstart];
            /* LINTED const cast */
            ((char **)nargv)[cstart] = swap;
        }
    }
}

// Assembly:
movl %edx, %r8d
movl %esi, %r9d
subl %edi, %r9d
movl %edx, %r10d
subl %esi, %r10d
movl %r9d, %eax
cltd
idivl %r10d
movl %r10d, %r11d
testl %edx, %edx
je 0x3eae
movl %r10d, %eax
movl %edx, %r11d
cltd
idivl %r11d
movl %r11d, %eax
testl %edx, %edx
jne 0x3ea0
subl %edi, %r8d
movl %r8d, %eax
cltd
idivl %r11d
testl %r11d, %r11d
jle 0x3f1d
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
negl %r9d
movslq %esi, %rdx
movl %r11d, %edi
xorl %r8d, %r8d
testl %eax, %eax
jle 0x3f0b
leaq (%r8,%rdx), %r11
movq (%rcx,%r11,8), %r15
movl %eax, %ebx
movl %r11d, %r14d
movl %r10d, %r12d
cmpl %esi, %r14d
jl 0x3ef2
movl %r9d, %r12d
addl %r12d, %r14d
movslq %r14d, %r12
movq (%rcx,%r12,8), %r13
movq %r15, (%rcx,%r12,8)
movq %r13, (%rcx,%r11,8)
movq %r13, %r15
decl %ebx
jne 0x3ee7
incq %r8
cmpq %rdi, %r8
jne 0x3ed6
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: big_alloc
BIG* big_alloc(size_t cap) {
    ASSERT(cap >= 2);
    BIG* out = calloc(1, sizeof(*out) + cap*sizeof(*out->radix) + 4);
    EXPECT(out, "Ran out of memory.");
    out->refs = 1;
    out->cap = cap;
    out->size = 0;
    return out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpq $0x1, %rdi
jbe 0x5283
movq %rdi, %rbx
leaq 0x1c(,%rdi,4), %rsi
movl $0x1, %edi
callq 0x50c0
testq %rax, %rax
je 0x5291
movl $0x1, (%rax)
movq %rbx, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0xdb346(%rip), %rsi     # 0xe05d0
movl $0x35, %edx
jmp 0x529d
leaq 0xdb36e(%rip), %rsi     # 0xe0606
movl $0x13, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: trace_stack
static void trace_stack (void) {
    TRACE("??");
    for (long i = STACK_MAX-1; i >= (long)stack_counter; i--) {
        TRACE(" ");
        value_trace_(stack[i], 2);
    }
    TRACE("\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0xde1c5(%rip), %rsi     # 0xe348c
movl $0x2, %edx
movl $0x2, %edi
callq 0x5060
cmpq $0x7ffff, 0x10be1f(%rip) # imm = 0x7FFFF
jg 0x532a
movl $0x80000, %r14d         # imm = 0x80000
leaq 0x90e048(%rip), %r15    # 0x913338
leaq 0xf4fda(%rip), %rbx     # 0xfa2d1
movl $0x1, %edx
movl $0x2, %edi
movq %rbx, %rsi
callq 0x5060
movq -0x8(%r15), %rdi
movq (%r15), %rsi
movl $0x2, %edx
callq 0x8ec1
decq %r14
addq $-0x10, %r15
cmpq 0x10bdd8(%rip), %r14    # 0x111100
jg 0x52f7
leaq 0xf5816(%rip), %rsi     # 0xfab47
movl $0x1, %edx
movl $0x2, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5060
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: u64_repr
void u64_repr(uint64_t x, char* c, size_t m, char** out_ptr, size_t *out_size) {
    ASSERT(m >= 4);
    memset(c, 0, m);
    char* p = c+(m-1);
    size_t n = 0;
    do {
        *--p = '0' + (x % 10);
        x /= 10;
        n++;
    } while (x && (p > c));
    *out_ptr = p;
    *out_size = n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, -0x30(%rbp)
cmpq $0x3, %rdx
jbe 0x53dd
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
xorl %ebx, %ebx
movq %rsi, %rdi
xorl %esi, %esi
callq 0x5080
leaq (%r15,%r13), %rsi
addq $-0x2, %rsi
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
movq %r12, %rcx
movq %r12, %rax
mulq %rdi
movq %rdx, %r12
shrq $0x3, %r12
leal (%r12,%r12), %eax
leal (%rax,%rax,4), %eax
movl %ecx, %edx
subl %eax, %edx
orb $0x30, %dl
movb %dl, (%rsi)
incq %rbx
leaq -0x1(%rsi), %rax
cmpq $0xa, %rcx
jb 0x53c1
cmpq %r15, %rsi
movq %rax, %rsi
ja 0x538c
incq %rax
movq %rax, (%r14)
movq -0x30(%rbp), %rax
movq %rbx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdb236(%rip), %rsi     # 0xe061a
movl $0x34, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: i64_repr
void i64_repr(int64_t y, char* c, size_t m, char** out_ptr, size_t *out_size) {
    ASSERT(m >= 5);
    c[0] = 0;
    char* p;
    size_t n;
    uint64_t x;
    if (y < 0) {
        if (y == INT64_MIN) {
            x = 1+(uint64_t)INT64_MAX;
        } else {
            x = (uint64_t)-y;
        }
    } else {
        x = (uint64_t)y;
    }
    u64_repr(x,c+1,m-1,&p,&n);
    if (y<0) { *--p = '-'; n++; }
    *out_ptr = p;
    *out_size = n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
cmpq $0x4, %rdx
jbe 0x5487
movq %r8, %rbx
movq %rcx, %r14
movb $0x0, (%rsi)
testq %rdi, %rdi
js 0x5447
incq %rsi
decq %rdx
leaq -0x30(%rbp), %r15
leaq -0x28(%rbp), %r12
movq %r15, %rcx
movq %r12, %r8
callq 0x534a
movq (%r15), %rax
movq (%r12), %rcx
jmp 0x5474
negq %rdi
incq %rsi
decq %rdx
leaq -0x30(%rbp), %r15
leaq -0x28(%rbp), %r12
movq %r15, %rcx
movq %r12, %r8
callq 0x534a
movq (%r15), %rax
movb $0x2d, -0x1(%rax)
decq %rax
movq (%r12), %rcx
incq %rcx
movq %rax, (%r14)
movq %rcx, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdb1c1(%rip), %rsi     # 0xe064f
movl $0x34, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: main
int main (int argc, char** argv) {
	global_argc = argc;
	global_argv = argv;
	mw_mirth_main_main();
	push_resource(MKI64(0));
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, 0x10de7a(%rip)    # 0x113330
movq %rsi, 0x10de7b(%rip)    # 0x113338
callq 0x54d4
leaq 0x10bbef(%rip), %rsi    # 0x1110b8
xorl %edi, %edi
callq 0x8e6d
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: value_trace_
static void value_trace_(VAL v, int fd) {
    if (VTYPE(v) && VTYPE(v)->trace_) {
        VTYPE(v)->trace_(v,fd);
    } else if (VTYPE(v)) {
        const char* name = VTYPE(v)->name;
        write(fd, "<", 1);
        write(fd, name, strlen(name));
        write(fd, ">", 1);
    } else {
        write(fd, "<NULL>", 6);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rax
je 0x8eea
movq 0x20(%rax), %rcx
testq %rcx, %rcx
je 0x8ef8
movl %ebx, %edx
popq %rbx
popq %r14
popq %rbp
jmpq *%rcx
leaq 0xd7795(%rip), %rsi     # 0xe0686
movl $0x6, %edx
jmp 0x8f2f
movq (%rax), %r14
leaq 0xd7782(%rip), %rsi     # 0xe0684
movl $0x1, %edx
movl %ebx, %edi
callq 0x5060
movq %r14, %rdi
callq 0x5070
movl %ebx, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x5060
leaq 0xf06cc(%rip), %rsi     # 0xf95f6
movl $0x1, %edx
movl %ebx, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0x5060
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtp_std_result_Result_2_Ok
static VAL mtp_std_result_Result_2_Ok (struct std_result_Result_2 in_Result_1) {
	struct std_result_Result_2_Ok v3 = *in_Result_1.ptr.Ok;
	if (!--(in_Result_1.ptr.Ok->refs)) {
		free(in_Result_1.ptr.Ok);
	} else {
		incref(v3.m0);
	}
	return v3.m0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rbx
movq 0x10(%rdi), %r14
decl (%rdi)
je 0x8fe9
testb $0x1, %r14b
je 0x8fee
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x8fee
incl (%rax)
jmp 0x8fee
callq 0x5030
movq %rbx, %rax
movq %r14, %rdx
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtp_std_result_Result_2_Err
static VAL mtp_std_result_Result_2_Err (struct std_result_Result_2 in_Result_1) {
	struct std_result_Result_2_Err v3 = *in_Result_1.ptr.Err;
	if (!--(in_Result_1.ptr.Err->refs)) {
		free(in_Result_1.ptr.Err);
	} else {
		incref(v3.m0);
	}
	return v3.m0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rbx
movq 0x10(%rdi), %r14
decl (%rdi)
je 0x9030
testb $0x1, %r14b
je 0x9035
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x9035
incl (%rax)
jmp 0x9035
callq 0x5030
movq %rbx, %rax
movq %r14, %rdx
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: str_make
static STR* str_make (const char* data, USIZE size) {
    ASSERT(data);
    ASSERT(size <= SIZE_MAX - sizeof(STR) - 4);
    STR* str = str_alloc(size);
    str->size = size;
    memcpy(str->data, data, (size_t)size);
    return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x9087
movq %rsi, %rbx
cmpq $-0x1c, %rsi
jae 0x9095
movq %rdi, %r14
movq %rbx, %rdi
callq 0xf5e4
movq %rax, %r15
movq %rbx, 0x10(%rax)
leaq 0x18(%rax), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x50e0
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf1928(%rip), %rsi     # 0xfa9b6
movl $0x31, %edx
jmp 0x90a1
leaq 0xf194c(%rip), %rsi     # 0xfa9e8
movl $0x4f, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: tup_decref_outer
static void tup_decref_outer(PTUP ptup) {
    if (PTRISPTR(ptup)) {
        TUP* tup = PTRPTR(ptup);
        if (tup->refs == 1) {
            free(tup);
        } else {
            for (size_t i = 0; i < tup->size; i++) {
                incref(tup->cells[i]);
            }
            if (!--tup->refs) tup_free(MKTUP(ptup));
        }
    }
}

// Assembly:
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %rdi, %rax
andq %rcx, %rax
sete %dl
testb $0x3, %dil
setne %sil
orb %dl, %sil
jne 0x9188
movl (%rax), %esi
cmpl $0x1, %esi
jne 0x913a
movq %rax, %rdi
jmp 0x5030
pushq %rbp
movq %rsp, %rbp
movzwl 0x6(%rax), %edx
testq %rdx, %rdx
je 0x917d
shll $0x4, %edx
xorl %esi, %esi
testb $0x1, 0x10(%rax,%rsi)
je 0x9172
movq 0x8(%rax,%rsi), %r9
movq %r9, %r8
andq %rcx, %r8
sete %r10b
testb $0x3, %r9b
setne %r9b
orb %r10b, %r9b
jne 0x9172
incl (%r8)
addq $0x10, %rsi
cmpq %rsi, %rdx
jne 0x914c
movl (%rax), %esi
decl %esi
movl %esi, (%rax)
popq %rbp
je 0xf64a
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_prim_zaWorld_traceze
static void mw_std_prim_zaWorld_traceze (STR* in_Str_1) {
	struct std_file_zaFile* v4;
	mw_std_prim_zaWorld_stderrzefile(&v4);
	incref(MKSTR(in_Str_1));
	incref(MKSTR(in_Str_1));
	void* v5 = str_base(in_Str_1);
	uint64_t v6 = str_size(in_Str_1);
	INT v7 = u64_to_int(v6);
	struct std_file_zaFile* v8;
	struct std_result_Result_2 v9 = mw_std_prelude_unsafe_1_sp2(v4, v5, v7, &v8);
	decref(MKSTR(in_Str_1));
	decref(MK_std_result_Result_2(v9));
	struct std_maybe_Maybe_1 v10 = mw_std_file_zaFile_closezefilezx(v8);
	decref(MK_std_maybe_Maybe_1(v10));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
leaq -0x30(%rbp), %r14
movl $0x2, %edi
xorl %esi, %esi
movq %r14, %rdx
callq 0x7914f
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movq %rbx, %r13
andq %r12, %r13
setne %al
testb $0x3, %bl
sete %r14b
andb %al, %r14b
cmpb $0x1, %r14b
jne 0x9230
addl $0x2, (%r13)
movq %rbx, %rdi
callq 0xe7f9
movq %rax, %r15
movq %rbx, %rdi
callq 0xe36d
movq %rax, %rdi
callq 0xe3d6
leaq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x926cf
movl %eax, %edi
movq %rdx, %r15
testb %r14b, %r14b
je 0x9283
decl (%r13)
jne 0x9283
leaq 0x107ee4(%rip), %rsi    # 0x111159
movq %rdi, %r14
movq %rbx, %rdi
callq 0xd13d
movq %r14, %rdi
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x92ae
decl (%rax)
jne 0x92ae
shlq $0x30, %rdi
orq %r15, %rdi
leaq 0x1099b0(%rip), %rsi    # 0x112c59
callq 0xd13d
movq -0x30(%rbp), %rdi
callq 0x7903b
andq %rdx, %r12
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x92cf
decl (%r12)
je 0x92de
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x107fd5(%rip), %rsi    # 0x1112c1
movq %rax, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd13d
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: do_panic
static void do_panic(STR* m) {
    if (m) {
        size_t n = (m->size < SIZE_MAX) ? (size_t)(m->size) : SIZE_MAX;
        write(2, m->data, n);
        TRACE("\n");
    } else {
        TRACE("panic!\n");
    }
    trace_stack();
    trace_rstack();
    exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
jne 0x9319
leaq 0xf182f(%rip), %rsi     # 0xfab41
movl $0x7, %edx
jmp 0x933a
movq %rdi, %rsi
movq 0x10(%rdi), %rdx
addq $0x18, %rsi
movl $0x2, %edi
callq 0x5060
leaq 0xf1812(%rip), %rsi     # 0xfab47
movl $0x1, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtw_std_maybe_Maybe_1_Some
static struct std_maybe_Maybe_1 mtw_std_maybe_Maybe_1_Some (VAL in_t_1) {
	struct std_maybe_Maybe_1_Some* v3 = calloc(1, sizeof *v3);
	ASSERT(v3);
	v3->refs = 1;
	v3->m0 = in_t_1;
	struct std_maybe_Maybe_1 v4 = { .tag=std_maybe_Maybe_1_Some, .ptr.Some=v3 };
	return v4;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %edi
movl $0x18, %esi
callq 0x50c0
testq %rax, %rax
je 0x938f
movq %rax, %rdx
movl $0x1, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0xd763e(%rip), %rsi     # 0xe09d4
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtw_argzeparser_types_ArgpOptionType_Short
static struct argzeparser_types_ArgpOptionType mtw_argzeparser_types_ArgpOptionType_Short (enum std_byte_Byte in_Byte_1) {
	struct argzeparser_types_ArgpOptionType_Short* v3 = calloc(1, sizeof *v3);
	ASSERT(v3);
	v3->refs = 1;
	v3->mByte = in_Byte_1;
	struct argzeparser_types_ArgpOptionType v4 = { .tag=argzeparser_types_ArgpOptionType_Short, .ptr.Short=v3 };
	return v4;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
movl $0x1, %edi
movl $0x8, %esi
callq 0x50c0
testq %rax, %rax
je 0x93e0
movl $0x1, (%rax)
movl %ebx, 0x4(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0xd761f(%rip), %rsi     # 0xe0a06
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtw_argzeparser_types_ArgpOption_ArgpOption
static struct argzeparser_types_ArgpOption* mtw_argzeparser_types_ArgpOption_ArgpOption (struct std_maybe_Maybe_1 in_Maybe_1, struct argzeparser_types_ArgpOptionType in_ArgpOptionType_2, struct std_maybe_Maybe_1 in_Maybe_3, struct std_maybe_Maybe_1 in_Maybe_4, struct std_maybe_Maybe_1 in_Maybe_5) {
	struct argzeparser_types_ArgpOption* v7 = calloc(1, sizeof *v7);
	ASSERT(v7);
	v7->refs = 1;
	v7->mgroup = in_Maybe_5;
	v7->mdoc = in_Maybe_4;
	v7->margzedoc = in_Maybe_3;
	v7->mflagzetype = in_ArgpOptionType_2;
	v7->mname = in_Maybe_1;
	return v7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movl %ecx, %r13d
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %rbx
movl $0x1, %edi
movl $0x58, %esi
callq 0x50c0
testq %rax, %rax
je 0x9479
leaq 0x20(%rbp), %rcx
leaq 0x10(%rbp), %rdx
movl $0x1, %esi
movl %esi, (%rax)
movups (%rcx), %xmm0
movups %xmm0, 0x48(%rax)
movups (%rdx), %xmm0
movups %xmm0, 0x38(%rax)
movl %r13d, 0x28(%rax)
movq %r15, 0x30(%rax)
movl %r12d, 0x18(%rax)
movq %r14, 0x20(%rax)
movl %esi, 0x8(%rax)
movq %rbx, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd75b8(%rip), %rsi     # 0xe0a38
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_zaLister_1_pushzx
static void mw_std_list_zaLister_1_pushzx (VAL in_t_1, struct std_list_List_1 in_zaLister_2, struct std_list_List_1 *out_zaLister_3) {
	incref(MK_std_list_List_1(in_zaLister_2));
	struct std_list_List_1 v4 = mw_std_list_List_1_cons(in_t_1, in_zaLister_2);
	decref(MK_std_list_List_1(in_zaLister_2));
	*out_zaLister_3 = v4;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %r14d
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
andq %rcx, %r13
setne %al
testb $0x3, %r15b
sete %cl
testb %cl, %al
je 0x9500
incl (%r13)
movl %r14d, %edx
movq %r15, %rcx
callq 0xd1ec
movq %rdx, %r12
decl (%r13)
jne 0x950e
shlq $0x30, %r14
orq %r15, %r14
leaq 0x107d83(%rip), %rsi    # 0x111279
movq %r14, %rdi
callq 0xd13d
jmp 0x950e
movl %r14d, %edx
movq %r15, %rcx
callq 0xd1ec
movq %rdx, %r12
movl $0x1, (%rbx)
movq %r12, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_for_1_sp5
static struct std_list_List_1 mw_std_list_List_1_for_1_sp5 (struct std_list_List_1 in_List_1, struct std_list_List_1 in_List_2) {
	bool v4 = true;
	struct std_list_List_1 v5 = in_List_1;
	struct std_list_List_1 v6 = in_List_2;
	bool v7 = v4;
	bool v8 = v4;
	while (v8) {
		struct std_list_List_1 v9 = v5;
		struct std_list_List_1 v10 = v6;
		bool v11 = v7;
		struct std_list_List_1 branch_List_12;
		struct std_list_List_1 branch_List_13;
		bool branch_Bool_14;
		switch ((v10).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v15;
				VAL v16 = mtp_std_list_List_1_Cons(v10, &v15);
				struct std_list_List_1 v17 = mw_std_list_List_1_cons(v16, v9);
				bool v18 = true;
				branch_Bool_14 = v18;
				branch_List_13 = v15;
				branch_List_12 = v17;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v19 = { .tag=std_list_List_1_Nil };
				bool v20 = false;
				branch_Bool_14 = v20;
				branch_List_13 = v19;
				branch_List_12 = v9;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v8 = branch_Bool_14;
		v7 = branch_Bool_14;
		v6 = branch_List_13;
		v5 = branch_List_12;
	}
	decref(MK_std_list_List_1(v6));
	return v5;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movl %edi, %r15d
leaq -0x28(%rbp), %r14
cmpl $0x1, %edx
jne 0xd065
movq %rcx, %rdi
movq %r14, %rsi
callq 0xd0aa
movq %rax, %rdi
movq %rdx, %rsi
movl %r15d, %edx
movq %rbx, %rcx
callq 0xd1ec
movq %rdx, %rbx
movl -0x28(%rbp), %edx
movq -0x20(%rbp), %rcx
movl $0x1, %r15d
jmp 0xd032
testl %edx, %edx
jne 0xd07a
movl %r15d, %eax
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xd363a(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xd363f(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtp_std_list_List_1_Cons
static VAL mtp_std_list_List_1_Cons (struct std_list_List_1 in_List_1, struct std_list_List_1 *out_List_3) {
	struct std_list_List_1_Cons v4 = *in_List_1.ptr.Cons;
	if (!--(in_List_1.ptr.Cons->refs)) {
		free(in_List_1.ptr.Cons);
	} else {
		incref(v4.m0);
		incref(MK_std_list_List_1(v4.mList));
	}
	*out_List_3 = v4.mList;
	return v4.m0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x8(%rdi), %r14
movq 0x10(%rdi), %r15
movl 0x18(%rdi), %r8d
movl 0x1c(%rdi), %r13d
movq 0x20(%rdi), %r12
decl (%rdi)
je 0xd110
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
testb $0x1, %r15b
je 0xd0fb
movq %r14, %rcx
andq %rax, %rcx
sete %dl
testb $0x3, %r14b
setne %sil
orb %dl, %sil
jne 0xd0fb
incl (%rcx)
andq %r12, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xd11d
incl (%rax)
jmp 0xd11d
movl %r8d, -0x2c(%rbp)
callq 0x5030
movl -0x2c(%rbp), %r8d
movl %r8d, (%rbx)
movl %r13d, 0x4(%rbx)
movq %r12, 0x8(%rbx)
movq %r14, %rax
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: free_value
static void free_value(VAL v) {
    ASSERT(VTYPE(v));
    ASSERT1(VTYPE(v)->free,v);
    ASSERT1(HAS_REFS(v),v);
    ASSERT1(VREFS(v) == 0,v);
    VTYPE(v)->free(v);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %rsi, %rax
andq %rcx, %rax
je 0xd196
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rax), %rax
testq %rax, %rax
je 0xd1ae
testb $0x1, %bl
je 0xd188
andq %r14, %rcx
je 0xd188
movl %r14d, %edx
andl $0x3, %edx
jne 0xd188
cmpl $0x0, (%rcx)
jne 0xd1bc
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
leaq 0xd3792(%rip), %rsi     # 0xe0921
movl $0x38, %edx
jmp 0xd1c8
leaq 0xd3712(%rip), %rsi     # 0xe08af
movl $0x35, %edx
movl $0x2, %edi
callq 0x5060
jmp 0xd1dd
leaq 0xd3730(%rip), %rsi     # 0xe08e5
movl $0x3b, %edx
jmp 0xd1c8
leaq 0xd3797(%rip), %rsi     # 0xe095a
movl $0x3a, %edx
movl $0x2, %edi
callq 0x5060
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd34b
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtw_std_list_List_1_Cons
static struct std_list_List_1 mtw_std_list_List_1_Cons (VAL in_t_1, struct std_list_List_1 in_List_2) {
	struct std_list_List_1_Cons* v4 = calloc(1, sizeof *v4);
	ASSERT(v4);
	v4->refs = 1;
	v4->mList = in_List_2;
	v4->m0 = in_t_1;
	struct std_list_List_1 v5 = { .tag=std_list_List_1_Cons, .ptr.Cons=v4 };
	return v5;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r15
movl $0x1, %edi
movl $0x28, %esi
callq 0x50c0
testq %rax, %rax
je 0xd23e
movq %rax, %rdx
movl $0x1, (%rax)
movl %r12d, 0x18(%rax)
movq %r14, 0x20(%rax)
movq %r15, 0x8(%rax)
movq %rbx, 0x10(%rax)
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd362c(%rip), %rsi     # 0xe0871
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: std_list_List_1_free
void std_list_List_1_free (VAL v) {
	struct std_list_List_1 self = V_std_list_List_1(v);
	switch (self.tag) {
		case std_list_List_1_Nil: break;
		case std_list_List_1_Cons: {
			decref(self.ptr.Cons->m0);
			decref(MK_std_list_List_1(self.ptr.Cons->mList));
			free(self.ptr.Cons);
		} break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movabsq $-0x1000000000000, %rax # imm = 0xFFFF000000000000
andq %rdi, %rax
leaq 0x4(%r14), %rcx
cmpq %rcx, %rax
jne 0xd2f9
movq %rdi, %rbx
andq %r14, %rbx
testb $0x1, 0x10(%rbx)
je 0xd2be
movq 0x8(%rbx), %rcx
movq %rcx, %rax
andq %r14, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0xd2be
decl (%rax)
jne 0xd2be
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
callq 0xd13d
movq 0x20(%rbx), %rax
andq %rax, %r14
sete %cl
testb $0x3, %al
setne %al
orb %cl, %al
jne 0xd2ed
decl (%r14)
jne 0xd2ed
leaq 0x103f9c(%rip), %rsi    # 0x111279
movl 0x18(%rbx), %edi
shlq $0x30, %rdi
orq 0x20(%rbx), %rdi
callq 0xd13d
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x5030
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: argzeparser_types_ArgpOption_free
static void argzeparser_types_ArgpOption_free (VAL vself) {
	ASSERT(vself.tag == TAG_argzeparser_types_ArgpOption);
	struct argzeparser_types_ArgpOption* self = vself.data.ptr;
	decref(MK_std_maybe_Maybe_1(self->mname));
	decref(MK_argzeparser_types_ArgpOptionType(self->mflagzetype));
	decref(MK_std_maybe_Maybe_1(self->margzedoc));
	decref(MK_std_maybe_Maybe_1(self->mdoc));
	decref(MK_std_maybe_Maybe_1(self->mgroup));
	free(self);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x103df1(%rip), %rax    # 0x1111a1
cmpq %rsi, %rax
jne 0xd4c6
movq %rdi, %rbx
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq 0x10(%rdi), %rcx
leaq 0x103ef0(%rip), %r14    # 0x1112c1
movq %rcx, %rax
andq %r15, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0xd3fb
decl (%rax)
jne 0xd3fb
movl 0x8(%rbx), %edi
shlq $0x30, %rdi
orq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0xd13d
movq 0x20(%rbx), %rcx
movq %rcx, %rax
andq %r15, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0xd42d
decl (%rax)
jne 0xd42d
leaq 0x103eec(%rip), %rsi    # 0x111309
movl 0x18(%rbx), %edi
shlq $0x30, %rdi
orq 0x20(%rbx), %rdi
callq 0xd13d
movq 0x30(%rbx), %rcx
movq %rcx, %rax
andq %r15, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0xd45b
decl (%rax)
jne 0xd45b
movl 0x28(%rbx), %edi
shlq $0x30, %rdi
orq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0xd13d
movq 0x40(%rbx), %rcx
movq %rcx, %rax
andq %r15, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0xd489
decl (%rax)
jne 0xd489
movl 0x38(%rbx), %edi
shlq $0x30, %rdi
orq 0x40(%rbx), %rdi
movq %r14, %rsi
callq 0xd13d
movq 0x50(%rbx), %rax
andq %rax, %r15
sete %cl
testb $0x3, %al
setne %al
orb %cl, %al
jne 0xd4b4
decl (%r15)
jne 0xd4b4
movl 0x48(%rbx), %edi
shlq $0x30, %rdi
orq 0x50(%rbx), %rdi
movq %r14, %rsi
callq 0xd13d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5030
leaq 0xd35a8(%rip), %rsi     # 0xe0a75
movl $0x5b, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: std_maybe_Maybe_1_free
void std_maybe_Maybe_1_free (VAL v) {
	struct std_maybe_Maybe_1 self = V_std_maybe_Maybe_1(v);
	switch (self.tag) {
		case std_maybe_Maybe_1_None: break;
		case std_maybe_Maybe_1_Some: {
			decref(self.ptr.Some->m0);
			free(self.ptr.Some);
		} break;
	}
}

// Assembly:
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movabsq $-0x1000000000000, %rcx # imm = 0xFFFF000000000000
andq %rdi, %rcx
leaq 0x4(%rax), %rdx
cmpq %rdx, %rcx
jne 0xd59d
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
andq %rax, %rbx
testb $0x1, 0x10(%rbx)
je 0xd58f
movq 0x8(%rbx), %rcx
andq %rcx, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0xd58f
decl (%rax)
jne 0xd58f
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
callq 0xd13d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5030
retq
// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: argzeparser_types_ArgpOptionType_free
void argzeparser_types_ArgpOptionType_free (VAL v) {
	struct argzeparser_types_ArgpOptionType self = V_argzeparser_types_ArgpOptionType(v);
	switch (self.tag) {
		case argzeparser_types_ArgpOptionType_Short: {
			free(self.ptr.Short);
		} break;
		case argzeparser_types_ArgpOptionType_LongOnly: {
			decref(MKSTR(self.ptr.LongOnly->mStr));
			free(self.ptr.LongOnly);
		} break;
		case argzeparser_types_ArgpOptionType_Positional: break;
		case argzeparser_types_ArgpOptionType_End: break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %rdi, %rcx
shrq $0x30, %rcx
andq %rax, %rbx
cmpq $0x1, %rcx
je 0xd619
testl %ecx, %ecx
je 0xd63e
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x8(%rbx), %rdi
andq %rdi, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xd63e
decl (%rax)
jne 0xd63e
leaq 0x103b20(%rip), %rsi    # 0x111159
callq 0xd13d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5030