LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/zmtp.c
// Function: on_greet_v3_3_hshake_recv__REP
static int on_greet_v3_3_hshake_recv__REP(struct io_req *req, int len)
{
	struct zmtp *zmtp = req->data;
	struct io_req *wr_req;
	int rc;

	/*
	 * Receive full hshake, validate and send our hshake
	 */

	if (len < 0)
		goto out;

	rc = zmtp_expect_msg(zmtp, req, true, NULL);
	if (rc < 0) {
		len = rc;
		goto out;
	}
	if (rc == 0)
		/* Package is not fully received, continue */
		return 0;

	rc = zmtp_parse_hshake(req, ZMTP_REP);
	if (rc < 0) {
		/* TODO: probably respond with ERROR? */
		len = rc;
		goto out;
	}

	/*
	 * Send hshake
	 */
	wr_req = io_req_create(zmtp->io_proto.q, REQ_WR, zmtp,
			       on_greet_v3_3_hshake_send__REP);
	if (wr_req == NULL) {
		len = -ENOMEM;
		goto out;
	}
	wr_req->buf = (struct io_buf){
		.iov[0] = {
			.iov_base = ZMTP_V3_REP_HS,
			.iov_len  = sizeof(ZMTP_V3_REP_HS)
		},
		.iov_num  = 1,
	};
	rc = zmtp->io_proto.submit(wr_req, TO_HEAD);
	if (rc) {
		io_req_put(wr_req);
		len = rc;
		goto out;
	}

out:
	io_req_put(req);
	if (len < 0)
		zmtp->inner_state = ZMTP_REP_CLOSED;

	return len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
movq 0x18(%rdi), %rbx
testl %esi, %esi
js 0x27cc
xorl %r15d, %r15d
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x20a3
testl %eax, %eax
js 0x27d1
je 0x27e8
pushq $-0x16
popq %r15
cmpq $0x3, 0x148(%r14)
jne 0x27d4
cmpq $0x19, 0x50(%r14)
jb 0x27d4
movq 0x48(%r14), %rdi
leaq 0x5a9d(%rip), %rsi      # 0x81d0
pushq $0x19
popq %rdx
callq 0x11a0
testl %eax, %eax
jne 0x27d4
movq (%rbx), %rdi
leaq 0xb3(%rip), %rcx        # 0x2800
pushq $0x1
popq %rsi
movq %rbx, %rdx
callq 0x37a0
testq %rax, %rax
je 0x27fa
movq %rax, %r12
leaq 0x5a45(%rip), %rax      # 0x81b0
movq %rax, 0x28(%r12)
movq $0x1b, 0x30(%r12)
movq %r12, %rdi
addq $0x38, %rdi
movl $0x110, %edx            # imm = 0x110
xorl %esi, %esi
callq 0x10e0
movq $0x1, 0x148(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x150(%r12)
movups %xmm0, 0x160(%r12)
movq %r12, %rdi
xorl %esi, %esi
callq *0x8(%rbx)
movl %ebp, %r15d
testl %eax, %eax
je 0x27d4
movl %eax, %r13d
movq %r12, %rdi
callq 0x3833
movl %r13d, %r15d
jmp 0x27d4
movl %ebp, %r15d
jmp 0x27d4
movl %eax, %r15d
movq %r14, %rdi
callq 0x3833
testl %r15d, %r15d
jns 0x27e8
movl $0x2, 0x28(%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0xc
popq %r15
jmp 0x27d4
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/zmtp.c
// Function: on_greet_v3_3_hshake_send__REP
static int on_greet_v3_3_hshake_send__REP(struct io_req *req, int len)
{
	struct zmtp *zmtp = req->data;

	/*
	 * Our hshake is sent, ready for incoming data.
	 */
	io_req_put(req);

	if (len < 0)
		zmtp->inner_state = ZMTP_REP_CLOSED;

	return len;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq 0x18(%rdi), %r14
callq 0x3833
testl %ebx, %ebx
jns 0x281b
movl $0x2, 0x28(%r14)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: buf_free
void buf_free(struct io_buf *buf)
{
	int i;

	for (i = 0; i < ARRAY_SIZE(buf->iov); i++)
		if (buf->iov_free[i])
			free(buf->iov[i].iov_base);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
addq $0x110, %rbx            # imm = 0x110
movq $-0x100, %r14
movq %rbx, %r15
testq %r14, %r14
je 0x2866
cmpb $0x1, (%r15)
jne 0x285d
movq -0x10(%rbx,%r14), %rdi
callq 0x1040
addq $0x10, %r14
incq %r15
jmp 0x2848
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: buf_it_len
static int buf_it_len(struct io_buf *buf, struct iovec_iter *beg,
		      struct iovec_iter *end)
{
	size_t sz, nb;

	sz = 0;
	while (buf_it_cmp(beg, end) < 0) {
		nb = buf_it_iovlen(buf, beg, end);
		buf_it_advance(buf, beg, nb);
		sz += nb;
	}

	return sz;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
xorl %r14d, %r14d
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3882
testl %eax, %eax
jns 0x28d2
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x38a5
movq %rax, %r13
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x38e8
addq %r13, %r14
jmp 0x289f
movl %r14d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: buf_check
static int buf_check(struct io_buf *buf)
{
	int i;
	struct iovec *iov;

	if (buf->iov_num == 0)
		return -EINVAL;
	if (buf->iov_num >= ARRAY_SIZE(buf->iov))
		return -EINVAL;
	for (i = 0; i < buf->iov_num - 1; i++) {
		/* Only last vari length element can be zero */
		if (!buf->iov[i].iov_len)
			return -EINVAL;
	}
	iov = &buf->iov[buf->iov_num - 1];
	/* Last, not vari length iov must be with valid length */
	if (!buf_vari_len(buf) && !iov->iov_len)
		return -EINVAL;
	/* Last, vari length iov must be fully zeroed or fully alloc'ed */
	if (buf_vari_len(buf) && (!!iov->iov_len ^ !!iov->iov_base))
		return -EINVAL;
	if (buf->pos.iov_ind > buf->iov_num)
		return -EINVAL;
	iov = &buf->iov[buf->pos.iov_ind];
	if (iov->iov_base == NULL && buf->pos.iov_off)
		return -EINVAL;
	if (iov->iov_len && buf->pos.iov_off > iov->iov_len) {
		assert(0);
		return -EINVAL;
	}

	return 0;
}

// Assembly:
pushq %rax
movq 0x120(%rdi), %rcx
leaq -0x10(%rcx), %rdx
pushq $-0x16
popq %rax
cmpq $-0xf, %rdx
jb 0x2cc5
leaq -0x1(%rcx), %rdx
leaq 0x8(%rdi), %rsi
movq %rcx, %r8
decq %r8
je 0x2c3f
cmpq $0x0, (%rsi)
leaq 0x10(%rsi), %rsi
jne 0x2c2b
jmp 0x2cc5
shlq $0x4, %rdx
movq 0x8(%rdi,%rdx), %rsi
cmpb $0x0, 0x128(%rdi)
je 0x2c69
addq %rdi, %rdx
testq %rsi, %rsi
setne %sil
cmpq $0x0, (%rdx)
setne %dl
xorb %sil, %dl
je 0x2c6e
jmp 0x2cc5
testq %rsi, %rsi
je 0x2cc5
movq 0x100(%rdi), %rdx
cmpq %rcx, %rdx
ja 0x2cc5
shlq $0x4, %rdx
cmpq $0x0, (%rdi,%rdx)
je 0x2cbb
addq %rdi, %rdx
movq 0x8(%rdx), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x2cc5
cmpq %rcx, 0x108(%rdi)
jbe 0x2cc5
leaq 0x2988(%rip), %rdi      # 0x562b
leaq 0x27c8(%rip), %rsi      # 0x5472
leaq 0x28f0(%rip), %rcx      # 0x55a1
movl $0x114, %edx            # imm = 0x114
callq 0x10d0
cmpq $0x0, 0x108(%rdi)
je 0x2c85
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: io_queue_deinit
void io_queue_deinit(struct io_queue *q)
{
	stash_free(q);
	assert(q->poller == NULL);
	assert(list_empty(&q->queue));
	assert(q->reqs_num[REQ_RD] == 0);
	assert(q->reqs_num[REQ_WR] == 0);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x158(%rdi), %rdi
callq 0x1040
andq $0x0, 0x168(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x158(%rbx)
cmpq $0x0, (%rbx)
jne 0x2d3a
leaq 0x138(%rbx), %rax
cmpq %rax, 0x138(%rbx)
jne 0x2d59
cmpl $0x0, 0x148(%rbx)
jne 0x2d78
cmpl $0x0, 0x14c(%rbx)
jne 0x2d97
popq %rbx
retq
leaq 0x271f(%rip), %rdi      # 0x5460
leaq 0x272a(%rip), %rsi      # 0x5472
leaq 0x2728(%rip), %rcx      # 0x5477
movl $0x313, %edx            # imm = 0x313
callq 0x10d0
leaq 0x273f(%rip), %rdi      # 0x549f
leaq 0x270b(%rip), %rsi      # 0x5472
leaq 0x2709(%rip), %rcx      # 0x5477
movl $0x314, %edx            # imm = 0x314
callq 0x10d0
leaq 0x2736(%rip), %rdi      # 0x54b5
leaq 0x26ec(%rip), %rsi      # 0x5472
leaq 0x26ea(%rip), %rcx      # 0x5477
movl $0x315, %edx            # imm = 0x315
callq 0x10d0
leaq 0x2730(%rip), %rdi      # 0x54ce
leaq 0x26cd(%rip), %rsi      # 0x5472
leaq 0x26cb(%rip), %rcx      # 0x5477
movl $0x316, %edx            # imm = 0x316
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: io_queue_bind
int io_queue_bind(struct io_queue *q, void *poller, int fd)
{
	int err, flags;

	if (q->poller)
		return -EINVAL;
	q->refs = 1;
	q->poller = poller;
	q->item = (struct poller_item){
		.fd     = fd,
		.events = 0,
		.data   = NULL,
		.action = on_io,
	};

	flags = fcntl(fd, F_GETFL, 0);
	if  (flags < 0)
		return -errno;
	err = fcntl(fd, F_SETFL, flags | O_NONBLOCK);
	if (err < 0)
		return -errno;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
cmpq $0x0, (%rdi)
je 0x2dc5
pushq $-0x16
popq %rbx
jmp 0x2e2c
movl %edx, %ebp
movq %rdi, %r14
movl $0x1, 0x174(%rdi)
movq %rsi, (%rdi)
movl %edx, 0x8(%rdi)
addq $0xc, %rdi
xorl %ebx, %ebx
movl $0x124, %edx            # imm = 0x124
xorl %esi, %esi
callq 0x10e0
leaq 0x40(%rip), %rax        # 0x2e33
movq %rax, 0x130(%r14)
pushq $0x3
popq %rsi
movl %ebp, %edi
xorl %edx, %edx
xorl %eax, %eax
callq 0x1090
testl %eax, %eax
js 0x2e23
orl $0x800, %eax            # imm = 0x800
pushq $0x4
popq %rsi
movl %ebp, %edi
movl %eax, %edx
xorl %eax, %eax
callq 0x1090
testl %eax, %eax
jns 0x2e2c
callq 0x1050
xorl %ebx, %ebx
subl (%rax), %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: io_queue_unbind
int io_queue_unbind(struct io_queue *q)
{
	int err;

	if (q->poller == NULL)
		return -EINVAL;
	if (q->refs == 0)
		return -EINVAL;
	if (q->refs > 1)
		return -EBUSY;

	err = __io_queue_cancel(q, -EIO);
	q->poller = NULL;
	q->refs = 0;

	return err;
}

// Assembly:
pushq %rbx
pushq $-0x16
popq %rax
cmpq $0x0, (%rdi)
je 0x34ae
movq %rdi, %rbx
movl 0x174(%rdi), %ecx
testl %ecx, %ecx
je 0x34ae
cmpl $0x1, %ecx
jle 0x3498
pushq $-0x10
popq %rax
jmp 0x34ae
pushq $-0x5
popq %rsi
movq %rbx, %rdi
callq 0x34b0
andq $0x0, (%rbx)
andl $0x0, 0x174(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: _io_queue_submit
static int __io_queue_submit(struct io_req *req, bool tail)
{
	struct io_queue *q = req->q;
	int rc, wr;

	if (q->poller == NULL)
		return -EINVAL;
	rc = req_check(req);
	if (rc)
		return -EINVAL;

	if (!q->in_proto && q->proto && q->proto->on_submit) {
		/* Forward request to proto if any */
		rc = q->proto->on_submit(q->proto, req);
		if (rc)
			return rc;
	}
	wr = req->flags & REQ_RDWR_MASK;
	/*
	 * Firstly add request to the list (either to the head or to the tail)
	 * to simplify __poller_update() and _poller_set_prewait() logic, which
	 * simply picks up first request from the queue and updates poller events
	 * accordingly.
	 */
	if (tail)
		list_add_tail(&req->list, &q->queue);
	else
		list_add(&req->list, &q->queue);

	if (q->refs == 1) {
		if (!wr && is_stashed(q))
			/*
			 * We do submission outside the IO loop, but read can
			 * be completed right now from a stash, thus set prewait
			 * for an event to be called just before poller wait and
			 * then return to on_io.
			 */
			rc = __poller_set_prewait(q->poller, &q->item);

		if (rc == 0)
			rc = __poller_update(q);
	}
	if (rc)
		/* Rollback in case of error */
		list_del_init(&req->list);
	else
		/* Success, account added request */
		q->reqs_num[wr]++;

	return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x10(%rdi), %r14
pushq $-0x16
popq %r15
cmpq $0x0, (%r14)
je 0x3619
movl %esi, %ebp
movq %rdi, %rbx
callq 0x3cb4
testl %eax, %eax
jne 0x3619
cmpb $0x0, 0x170(%r14)
jne 0x359e
movq 0x150(%r14), %rdi
testq %rdi, %rdi
je 0x359e
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x359e
movq %rbx, %rsi
callq *%rax
movl %eax, %r15d
testl %eax, %eax
jne 0x3619
movl 0x20(%rbx), %r12d
andl $0x1, %r12d
leaq 0x138(%r14), %rax
testb %bpl, %bpl
je 0x35c5
leaq 0x140(%r14), %rcx
movq %rax, %rdx
movq 0x140(%r14), %rax
jmp 0x35cc
movq (%rax), %rdx
leaq 0x8(%rdx), %rcx
movq %rbx, (%rcx)
movq %rdx, (%rbx)
movq %rbx, (%rax)
movq %rax, 0x8(%rbx)
cmpl $0x1, 0x174(%r14)
jne 0x360e
testl %r12d, %r12d
je 0x3625
movq %r14, %rdi
callq 0x39fc
testl %eax, %eax
je 0x360e
movl %eax, %r15d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
movq %rbx, (%rbx)
movq %rbx, 0x8(%rbx)
jmp 0x3619
incl 0x148(%r14,%r12,4)
xorl %r15d, %r15d
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x160(%r14)
je 0x35e8
movq 0x138(%r14), %rax
leaq 0x138(%r14), %rcx
cmpq %rcx, %rax
sete %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
jne 0x35e8
testb $0x1, 0x20(%rax)
jne 0x35e8
movq (%r14), %rdi
leaq 0x8(%r14), %rsi
leaq 0x6c1(%rip), %rax       # 0x3d22
movq %rax, 0x128(%r14)
callq 0x3e91
testl %eax, %eax
jne 0x35f4
jmp 0x35e8
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: io_queue_set_proto
int io_queue_set_proto(struct io_queue *q, struct io_proto *proto)
{
	if (proto) {
		if (q->proto)
			return -EINVAL;
		proto->q = q;
		proto->submit = __io_queue_submit_from_proto;
		q->proto = proto;
	} else {
		if (q->proto == NULL)
			return -EINVAL;
		q->proto->q = NULL;
		q->proto->submit = NULL;
		q->proto = NULL;
	}

	return 0;
}

// Assembly:
movq 0x150(%rdi), %rax
testq %rsi, %rsi
je 0x36a9
testq %rax, %rax
jne 0x36c0
movq %rdi, (%rsi)
leaq 0x21(%rip), %rax        # 0x36c4
movq %rax, 0x8(%rsi)
jmp 0x36b6
testq %rax, %rax
je 0x36c0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
xorl %esi, %esi
movq %rsi, 0x150(%rdi)
xorl %eax, %eax
retq
pushq $-0x16
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: io_req_put
bool io_req_put(struct io_req *req)
{
	int refs;

	assert(req->refs > 0);
	refs = --req->refs;
	if (!refs) {
		__io_req_deinit(req);
		free(req);
	}

	return !refs;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl 0x24(%rdi), %ebp
testl %ebp, %ebp
jle 0x3863
movq %rdi, %rbx
decl %ebp
movl %ebp, 0x24(%rdi)
jne 0x3857
movq %rbx, %rdi
callq 0x374c
movq %rbx, %rdi
callq 0x1040
testl %ebp, %ebp
sete %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x1ce7(%rip), %rdi      # 0x5551
leaq 0x1c01(%rip), %rsi      # 0x5472
leaq 0x1d08(%rip), %rcx      # 0x5580
movl $0x3f3, %edx            # imm = 0x3F3
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: buf_it_cmp
static int buf_it_cmp(struct iovec_iter *it1, struct iovec_iter *it2)
{
	if (it1->iov_ind < it2->iov_ind)
		return -1;
	if (it1->iov_ind > it2->iov_ind)
		return 1;
	if (it1->iov_off < it2->iov_off)
		return -1;
	if (it1->iov_off > it2->iov_off)
		return 1;

	return 0;
}

// Assembly:
movq (%rsi), %rcx
pushq $-0x1
popq %rax
cmpq %rcx, (%rdi)
jae 0x388e
retq
jbe 0x3894
pushq $0x1
popq %rax
retq
movq 0x8(%rsi), %rcx
cmpq %rcx, 0x8(%rdi)
jb 0x388d
seta %al
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: buf_it_iovlen
static size_t buf_it_iovlen(struct io_buf *buf, struct iovec_iter *beg,
			    struct iovec_iter *end)
{
	size_t len;

	if (buf_it_cmp(beg, end) >= 0)
		return 0;
	if (beg->iov_ind == end->iov_ind)
		len = end->iov_off;
	else
		len = buf->iov[beg->iov_ind].iov_len;

	return len - beg->iov_off;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x3882
testl %eax, %eax
js 0x38c6
xorl %eax, %eax
jmp 0x38e2
movq (%rbx), %rax
movq %rax, %rcx
shlq $0x4, %rcx
addq %rcx, %r15
cmpq (%r14), %rax
cmoveq %r14, %r15
movq 0x8(%r15), %rax
subq 0x8(%rbx), %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: buf_it_advance
static void buf_it_advance(struct io_buf *buf, struct iovec_iter *it, size_t sz)
{
	it->iov_off += sz;
	if (!buf_it_tail(buf, it) &&
	    buf_it_iov(buf, it)->iov_len == it->iov_off) {
		/*
		 * We advance if this is the end of iov
		 * and iov is not a tail
		 */
		it->iov_off = 0;
		it->iov_ind++;
	}
}

// Assembly:
addq 0x8(%rsi), %rdx
movq %rdx, 0x8(%rsi)
movq (%rsi), %rax
movq 0x120(%rdi), %rcx
decq %rcx
cmpq %rcx, %rax
je 0x391b
movq %rax, %rcx
shlq $0x4, %rcx
cmpq %rdx, 0x8(%rdi,%rcx)
jne 0x391b
andq $0x0, 0x8(%rsi)
incq %rax
movq %rax, (%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: buf_it_realloc
static int buf_it_realloc(struct io_buf *buf, struct iovec_iter *it, size_t sz)
{
	struct iovec *iov;
	void *tmp;

	/*
	 * Here we come because of two reasons:
	 *   1. !iov_len, !iov_base,  is_vari_len
	 *   2.  iov_len, !iov_base, !is_vari_len
	 *
	 * For 1 we reallocate the iov_len + sz.
	 * For 2 we allocate what is set in iov_len.
	 */

	iov = buf_it_iov(buf, it);
	if (buf_it_vari_len_tail(buf, it))
		sz += iov->iov_len;
	else
		sz  = iov->iov_len;

	tmp = realloc(iov->iov_base, sz);
	if (tmp == NULL)
		return -ENOMEM;
	iov->iov_base = tmp;
	buf->iov_free[it->iov_ind] = true;
	iov->iov_len = sz;

	return sz;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq (%rsi), %rax
movq %rax, %r12
shlq $0x4, %r12
addq %rdi, %r12
cmpb $0x1, 0x128(%rdi)
jne 0x397f
movq 0x120(%r14), %rcx
decq %rcx
cmpq %rcx, %rax
jne 0x397f
movq %rdx, %rbx
addq 0x8(%r12), %rbx
jmp 0x3984
movq 0x8(%r12), %rbx
movq (%r12), %rdi
movq %rbx, %rsi
callq 0x11b0
testq %rax, %rax
je 0x39ac
movq %rax, (%r12)
movq (%r15), %rax
movb $0x1, 0x110(%r14,%rax)
movq %rbx, 0x8(%r12)
jmp 0x39af
pushq $-0xc
popq %rbx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: buf_advance
static size_t buf_advance(struct io_buf *buf, struct iovec_iter *it,
			  size_t sz)
{
	size_t nb;
	struct iovec_iter end = END_IT(buf);

	while (buf_it_cmp(it, &end) < 0 && sz) {
		nb = min(sz, buf_it_iovlen(buf, it, &end));
		buf_it_advance(buf, it, nb);
		sz -= nb;
	}

	return sz;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x120(%rdi), %rax
cmpb $0x0, 0x128(%rdi)
je 0x3a65
xorl %ecx, %ecx
jmp 0x3a74
decq %rax
movq %rax, %rcx
shlq $0x4, %rcx
movq 0x8(%r15,%rcx), %rcx
movq %rsp, %r12
movq %rax, (%r12)
movq %rcx, 0x8(%r12)
movq %r14, %rdi
movq %r12, %rsi
callq 0x3882
testl %eax, %eax
jns 0x3abf
testq %rbx, %rbx
je 0x3abf
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x38a5
movq %rax, %r13
cmpq %rax, %rbx
cmovbq %rbx, %r13
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x38e8
subq %r13, %rbx
jmp 0x3a80
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: complete_req
static int complete_req(struct io_req *req, int len)
{
	struct io_queue *q = req->q;

	bool keep_in_queue = false;
	int off, dir;

	dir = req->flags & REQ_RDWR_MASK;
	io_req_get(req);
	list_del_init(&req->list);
	off = req->io_fn(req, len);
	if (dir == REQ_RD) {
		/* Read path */
		if (off == 0) {
			/* Return to the request queue, continue filling in */
			list_add(&req->list, &q->queue);
			keep_in_queue = true;
		} else {
			if (off > 0 && off != len) {
				/* Stash the rest or everything. */
				off = stash_rest(req, off, len);
			}
		}
	}
	io_req_put(req);
	if (!keep_in_queue) {
		assert(q->reqs_num[dir] > 0);
		q->reqs_num[dir]--;
	}

	return off;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %rbx
movq 0x10(%rdi), %r12
movl 0x20(%rdi), %r13d
andl $0x1, %r13d
callq 0x3806
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
movq %rbx, (%rbx)
movq %rbx, 0x8(%rbx)
movq %rbx, %rdi
movl %r15d, %esi
callq *0x178(%rbx)
movl %eax, %ebp
testq %r13, %r13
je 0x3b52
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x3833
testb %r14b, %r14b
jne 0x3b41
movl 0x148(%r12,%r13,4), %eax
testl %eax, %eax
jle 0x3c38
decl %eax
movl %eax, 0x148(%r12,%r13,4)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %ebp, %ebp
je 0x3bb8
setle %al
cmpl %r15d, %ebp
sete %cl
xorl %r14d, %r14d
orb %al, %cl
jne 0x3b1a
movq 0x10(%rbx), %rax
cmpl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
cmovnel %ebp, %r14d
cmpq $0x0, 0x160(%rax)
jne 0x3c57
movq %rax, %rbp
cmpq $0x0, 0x168(%rax)
jne 0x3c76
movslq %r15d, %r15
subq %r14, %r15
movq 0x158(%rbp), %rdi
testq %rdi, %rdi
je 0x3be5
callq 0x1120
movq 0x158(%rbp), %rdx
cmpq %r15, %rax
jb 0x3be7
jmp 0x3c0c
leaq 0x138(%r12), %rax
movq 0x138(%r12), %rcx
movq %rbx, 0x8(%rcx)
movq %rcx, (%rbx)
movq %rax, 0x8(%rbx)
movq %rbx, 0x138(%r12)
movb $0x1, %r14b
xorl %ebp, %ebp
jmp 0x3b1a
xorl %edx, %edx
leaq 0xfff(%r15), %rsi
andq $-0x1000, %rsi          # imm = 0xF000
movq %rdx, %rdi
callq 0x11b0
testq %rax, %rax
je 0x3c30
movq %rax, %rdx
movq %rax, 0x158(%rbp)
leaq 0x28(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x2926
cltq
cmpq %rax, %r15
jne 0x3c95
movq %r15, 0x160(%rbp)
xorl %ebp, %ebp
jmp 0x3b17
pushq $-0xc
popq %rbp
jmp 0x3b17
leaq 0x1a11(%rip), %rdi      # 0x5650
leaq 0x182c(%rip), %rsi      # 0x5472
leaq 0x1a18(%rip), %rcx      # 0x5665
movl $0x227, %edx            # imm = 0x227
callq 0x10d0
leaq 0x1a2e(%rip), %rdi      # 0x568c
leaq 0x180d(%rip), %rsi      # 0x5472
leaq 0x1a31(%rip), %rcx      # 0x569d
movl $0x171, %edx            # imm = 0x171
callq 0x10d0
leaq 0x1a50(%rip), %rdi      # 0x56cd
leaq 0x17ee(%rip), %rsi      # 0x5472
leaq 0x1a12(%rip), %rcx      # 0x569d
movl $0x172, %edx            # imm = 0x172
callq 0x10d0
leaq 0x1a43(%rip), %rdi      # 0x56df
leaq 0x17cf(%rip), %rsi      # 0x5472
leaq 0x19f3(%rip), %rcx      # 0x569d
movl $0x17b, %edx            # imm = 0x17B
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: req_check
static int req_check(struct io_req *req)
{
	int rc;

	rc = buf_check(&req->buf);
	if (rc)
		return rc;
	if ((req->flags & REQ_WR) && buf_vari_len(&req->buf))
		return -EINVAL;

	return 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x28, %rdi
callq 0x2c07
testl %eax, %eax
jne 0x3cdb
testb $0x1, 0x20(%rbx)
je 0x3cd9
cmpb $0x0, 0x150(%rbx)
je 0x3cd9
pushq $-0x16
popq %rax
jmp 0x3cdb
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/io.c
// Function: _poller_set
static int __poller_set(void *poller, struct poller_item *item, int new_events)
{
	int rc = 0, old_events = item->events;

	if (new_events ^ old_events) {
		item->events = new_events;
		if (old_events && new_events)
			rc = __poller_ctl(poller, P_CTL_MOD, item);
		else if (!old_events && new_events)
			rc = __poller_ctl(poller, P_CTL_ADD, item);
		else
			rc = __poller_ctl(poller, P_CTL_DEL, item);
	}

	return rc;
}

// Assembly:
movl 0x4(%rsi), %ecx
cmpl %edx, %ecx
jne 0x3ce7
xorl %eax, %eax
retq
movq %rsi, %rax
xorl %esi, %esi
testl %ecx, %ecx
setne %sil
addl %esi, %esi
testl %edx, %edx
pushq $0x2
popq %r8
cmovnel %esi, %r8d
testl %ecx, %ecx
pushq $0x1
popq %rsi
cmovel %r8d, %esi
testl %edx, %edx
cmovel %r8d, %esi
movl %edx, 0x4(%rax)
movq %rax, %rdx
jmp 0x3d15
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/poller.c
// Function: poller_create
int poller_create(void **p)
{
	int rc;
	struct poller *poller;

	poller = malloc(sizeof(*poller));
	if (poller == NULL)
		return -ENOMEM;
	INIT_LIST_HEAD(&poller->prew_list);
	poller->epollfd = epoll_create1(0);
	if (poller->epollfd < 0) {
		rc = -errno;
		free(poller);

		return rc;
	}
	*p = poller;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
pushq $0x18
popq %rdi
callq 0x1180
testq %rax, %rax
je 0x3d73
movq %rax, %rbx
addq $0x8, %rax
movq %rax, 0x8(%rbx)
movq %rax, 0x10(%rbx)
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x11e0
movl %eax, (%rbx)
testl %eax, %eax
js 0x3d78
movq %rbx, (%r14)
jmp 0x3d89
pushq $-0xc
popq %rbp
jmp 0x3d89
callq 0x1050
xorl %ebp, %ebp
subl (%rax), %ebp
movq %rbx, %rdi
callq 0x1040
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/poller.c
// Function: poller_destroy
void poller_destroy(void *p)
{
	struct poller *poller = p;

	if (poller) {
		del_prewaits(poller);
		close(poller->epollfd);
		free(poller);
	}
}

// Assembly:
testq %rdi, %rdi
je 0x3dcf
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
movq 0x8(%rdi), %rdi
cmpq %r14, %rdi
je 0x3dbb
movq (%rdi), %r15
addq $-0x10, %rdi
callq 0x409b
movq %r15, %rdi
jmp 0x3da5
movl (%rbx), %edi
callq 0x1100
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1040
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/poller.c
// Function: poller_ctl
int poller_ctl(void *p, int op, struct poller_item *item)
{
	int rc, eop;
	struct poller *poller = p;
	struct epoll_event epollev;

	if (poller == NULL)
		return -EINVAL;
	eop = to_epoll_op(op);
	if (eop < 0)
		return eop;
	if (op == P_CTL_DEL || item->prewait == NULL)
		del_prewait(poller, item);

	epollev = (struct epoll_event){
		.events   = to_epoll_events(item->events),
		.data.ptr = item,
	};
	rc = epoll_ctl(poller->epollfd, eop, item->fd, &epollev);

	return (rc >= 0 ? rc : -errno);
}

// Assembly:
pushq $-0x16
popq %rax
testq %rdi, %rdi
je 0x3e5c
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
cmpl $0x2, %esi
je 0x3e0b
cmpl $0x1, %ebp
je 0x3dfe
testl %ebp, %ebp
jne 0x3e54
pushq $0x1
jmp 0x3e00
pushq $0x3
popq %rbp
cmpq $0x0, 0x120(%rbx)
jne 0x3e16
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3e5d
movl 0x4(%rbx), %eax
movl %eax, %ecx
shrl %ecx
andl $0x1, %ecx
movl %eax, %edx
andl $0x4, %edx
orl %ecx, %edx
andl $0x1, %eax
leal (%rdx,%rax,8), %eax
leaq 0x4(%rsp), %rcx
movl %eax, (%rcx)
movq %rbx, 0x4(%rcx)
movl (%r14), %edi
movl (%rbx), %edx
movl %ebp, %esi
callq 0x1110
testl %eax, %eax
jns 0x3e54
callq 0x1050
movq %rax, %rcx
xorl %eax, %eax
subl (%rcx), %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/poller.c
// Function: del_prewait
static void del_prewait(struct poller *poller, struct poller_item *item)
{
	int i, prews_num = item->prews_num;
	struct prewait *prew;

	for (i = 0; i < ARRAY_SIZE(item->prews) && prews_num; i++) {
		prew = &item->prews[i];
		if (prew->poller)
			prews_num--;
		if (poller == prew->poller) {
			__del_prewait(prew);
			break;
		}
	}
}

// Assembly:
movl 0x18(%rsi), %eax
addq $0x20, %rsi
xorl %ecx, %ecx
cmpq $0x7, %rcx
ja 0x3e88
testl %eax, %eax
je 0x3e88
movq (%rsi), %rdx
cmpq %rdi, %rdx
je 0x3e89
cmpq $0x1, %rdx
adcl $-0x1, %eax
incq %rcx
addq $0x20, %rsi
jmp 0x3e66
retq
movq %rsi, %rdi
jmp 0x409b
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/poller.c
// Function: poller_set_prewait
int poller_set_prewait(void *p, struct poller_item *item)
{
	int rc = 0;
	struct poller *poller = p;

	if (item->prewait == NULL)
		del_prewait(poller, item);
	else if (item->prewait) {
		/*
		 * Item with a prewait action is a special case:
		 * it can belong to a limit amount of pollers,
		 * thus we have to check and return an error if
		 * no buffers left.
		 */
		rc = add_prewait(poller, item);
	}

	return rc;
}

// Assembly:
pushq %rax
cmpq $0x0, 0x120(%rsi)
je 0x3ea9
movl 0x18(%rsi), %eax
cmpl $0x7, %eax
jbe 0x3eb0
pushq $-0x69
popq %rax
jmp 0x3f24
callq 0x3e5d
jmp 0x3f22
pushq $0x20
popq %r9
xorl %ecx, %ecx
movl %eax, %edx
leaq 0x20(%r9), %r8
cmpq $0x140, %r8             # imm = 0x140
je 0x3ef6
movq (%rsi,%r9), %r10
cmpq %rdi, %r10
je 0x3f22
testq %r10, %r10
je 0x3edb
testl %edx, %edx
je 0x3f26
decl %edx
jmp 0x3ee5
addq %rsi, %r9
testq %rcx, %rcx
cmoveq %r9, %rcx
movq %r8, %r9
testl %edx, %edx
jne 0x3eb8
movq %r8, %r9
testq %rcx, %rcx
je 0x3eb8
jmp 0x3efb
testq %rcx, %rcx
je 0x3f43
movq %rdi, (%rcx)
movq %rsi, 0x8(%rcx)
leaq 0x10(%rcx), %rdx
leaq 0x8(%rdi), %r8
movq 0x10(%rdi), %r9
movq %rdx, 0x10(%rdi)
movq %r8, 0x10(%rcx)
movq %r9, 0x18(%rcx)
movq %rdx, (%r9)
incl %eax
movl %eax, 0x18(%rsi)
xorl %eax, %eax
popq %rcx
retq
leaq 0x18e4(%rip), %rdi      # 0x5811
leaq 0x18e7(%rip), %rsi      # 0x581b
leaq 0x190e(%rip), %rcx      # 0x5849
pushq $0x51
popq %rdx
callq 0x10d0
leaq 0x1936(%rip), %rdi      # 0x5880
leaq 0x18ca(%rip), %rsi      # 0x581b
leaq 0x18f1(%rip), %rcx      # 0x5849
pushq $0x59
jmp 0x3f3d
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/poller.c
// Function: poller_wait
int poller_wait(void *p, struct poller_item **pitems, int num, int timeout)
{
	int rc, i;
	struct poller *poller = p;
	struct epoll_event epollevs[num];
	struct poller_item *item;

	if (poller == NULL)
		return -EINVAL;

	rc = call_prewaits(poller, pitems, num);
	if (rc)
		return rc;
	rc = epoll_wait(poller->epollfd, epollevs, num, tv_to_poll(timeout));
	if (rc > 0) {
		for (i = 0; i < rc; i++) {
			item = (struct poller_item *)epollevs[i].data.ptr;
			item->revents = from_epoll_events(epollevs[i].events);
			pitems[i] = item;
		}
	}

	return (rc >= 0 ? rc : -errno);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %eax
movq %rsp, %r14
imulq $0xc, %rax, %rax
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r14
movq %r14, %rsp
testq %rdi, %rdi
je 0x3ff4
movl %ecx, %r8d
movq %rsi, %rbx
movq %rdi, %r13
testl %edx, %edx
je 0x400d
movl %r8d, -0x34(%rbp)
movl %edx, -0x2c(%rbp)
leaq 0x8(%r13), %r15
movl $0x0, -0x30(%rbp)
movq %r15, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x3ffd
movq -0x8(%r12), %rsi
andl $0x0, 0x8(%rsi)
movq %r13, %rdi
callq *0x120(%rsi)
testl %eax, %eax
jne 0x407d
movq -0x8(%r12), %rax
cmpl $0x0, 0x8(%rax)
je 0x3fab
movl -0x30(%rbp), %edx
movl %edx, %ecx
incl %edx
movq %rax, (%rbx,%rcx,8)
movl %edx, -0x30(%rbp)
cmpl -0x2c(%rbp), %edx
jne 0x3fab
movl -0x2c(%rbp), %edx
movl %edx, %r9d
jmp 0x4004
pushq $-0x16
popq %r9
jmp 0x4080
movl -0x30(%rbp), %r9d
movl -0x2c(%rbp), %edx
testl %r9d, %r9d
movl -0x34(%rbp), %r8d
jne 0x4080
movl (%r13), %edi
cmpl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
pushq $-0x1
popq %rcx
cmovnel %r8d, %ecx
movq %r14, %rsi
callq 0x11c0
movl %eax, %r9d
testl %eax, %eax
jle 0x406b
movl %r9d, %eax
addq $0x4, %r14
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x406b
movq (%r14), %rdx
movl -0x4(%r14), %esi
movl %esi, %edi
andl $0x1, %edi
movl %esi, %r8d
andl $0x4, %r8d
leal (%r8,%rdi,2), %edi
shrl $0x3, %esi
andl $0x1, %esi
orl %edi, %esi
movl %esi, 0x8(%rdx)
movq %rdx, (%rbx,%rcx,8)
incq %rcx
addq $0xc, %r14
jmp 0x4037
testl %r9d, %r9d
jns 0x4080
callq 0x1050
xorl %r9d, %r9d
subl (%rax), %r9d
jmp 0x4080
movl %eax, %r9d
movl %r9d, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/rouming[P]io/poller.c
// Function: _del_prewait
static void __del_prewait(struct prewait *prew)
{
	assert(prew->item->prews_num);
	prew->item->prews_num -= 1;
	prew->poller = NULL;
	prew->item = NULL;
	list_del(&prew->list);
}

// Assembly:
movq 0x8(%rdi), %rax
movl 0x18(%rax), %ecx
testl %ecx, %ecx
je 0x40c1
decl %ecx
movl %ecx, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq 0x10(%rdi), %rax
movq 0x18(%rdi), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
retq
pushq %rax
leaq 0x173c(%rip), %rdi      # 0x5805
leaq 0x174b(%rip), %rsi      # 0x581b
leaq 0x174d(%rip), %rcx      # 0x5824
pushq $0x25
popq %rdx
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/containers.c
// Function: new_vec
Vector* new_vec() {
  Vector* v = calloc(1, sizeof(Vector));
  v->ptr = calloc(16, sizeof(void*));
  v->capacity = 16;
  v->length = 0;
  return v;
}

// Assembly:
pushq %rbx
pushq $0x1
popq %rdi
pushq $0x18
popq %rsi
callq 0x20f0
movq %rax, %rbx
pushq $0x10
popq %rdi
pushq $0x8
popq %rsi
callq 0x20f0
movq %rax, (%rbx)
movq $0x10, 0x8(%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/containers.c
// Function: vec_push
void vec_push(Vector* v, void* elem) {
  if (v->capacity == v->length) {
    v->capacity *= 2;
    v->ptr = realloc(v->ptr, sizeof(void*) * v->capacity);
  }
  v->ptr[v->length++] = elem;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rcx
cmpq %rcx, %rsi
jne 0x22fb
leaq (%rsi,%rsi), %rcx
movq %rcx, 0x8(%r14)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x2140
movq %rax, (%r14)
movq 0x10(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%r14)
movq %rbx, (%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/cpp.c
// Function: preprocess
Token* preprocess(char* dir, Token* tokens) {
  gbl_env = calloc(1, sizeof(MacroEnv));
  gbl_env->name = "__hoc__";
  input = tokens;
  src_dir = dir;

  while (input) {
    traverse();
  }

  return output;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %rdi
pushq $0x20
popq %rsi
callq 0x20f0
movq %rax, 0xfd98(%rip)      # 0x120e8
leaq 0x9cad(%rip), %rcx      # 0xc004
movq %rcx, 0x8(%rax)
movq %rbx, 0xfd8e(%rip)      # 0x120f0
movq %r14, 0xfd8f(%rip)      # 0x120f8
testq %rbx, %rbx
je 0x237c
callq 0x238b
movq 0xfd76(%rip), %rbx      # 0x120f0
jmp 0x2369
movq 0xfd7d(%rip), %rax      # 0x12100
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/cpp.c
// Function: is_macro
static bool is_macro(Token* token) {
  if (token->tag == TIDENT) {
    for (MacroEnv* env = gbl_env; env != NULL; env = env->next) {
      if (streq(token->ident, env->name)) {
        return true;
      }
    }
  }
  return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
cmpl $0x2, 0x8(%rdi)
jne 0x2994
movq %rdi, %rbx
leaq 0xf773(%rip), %r14      # 0x120e8
movq (%r14), %r14
testq %r14, %r14
setne %bpl
je 0x2996
movq 0x10(%rbx), %rdi
movq 0x8(%r14), %rsi
callq 0xaa3e
testl %eax, %eax
je 0x2975
jmp 0x2996
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/cpp.c
// Function: copy_token
static Token* copy_token(Token* src) {
  Token* new = calloc(1, sizeof(Token));
  memcpy(new, src, sizeof(Token));
  new->next = NULL;
  return new;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rdi
pushq $0x38
popq %rsi
callq 0x20f0
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm0, (%rax)
movups %xmm1, 0x10(%rax)
movups %xmm2, 0x20(%rax)
movq 0x30(%rbx), %rcx
movq %rcx, 0x30(%rax)
andq $0x0, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/cpp.c
// Function: read_until_bol
static Token* read_until_bol(void) {
  if (input->bol) {
    return NULL;
  } else {
    Token* new = copy_token(input);
    consume();
    new->next = read_until_bol();
    return new;
  }
}

// Assembly:
pushq %rbx
movq 0xf6bb(%rip), %rdi      # 0x120f0
cmpb $0x0, 0x30(%rdi)
je 0x2a3f
xorl %ebx, %ebx
jmp 0x2a65
callq 0x29fa
movq %rax, %rbx
movq 0xf6a2(%rip), %rax      # 0x120f0
testq %rax, %rax
je 0x2a5d
movq (%rax), %rax
movq %rax, 0xf693(%rip)      # 0x120f0
callq 0x2a2d
movq %rax, (%rbx)
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/cpp.c
// Function: get_macro_tokens
static Token* get_macro_tokens(char* name) {
  for (MacroEnv* env = gbl_env; env != NULL; env = env->next) {
    if (streq(name, env->name)) {
      return copy_tokens(env->tokens);
    }
  }
  return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xf650(%rip), %r14      # 0x120e8
movq (%r14), %r14
testq %r14, %r14
je 0x2abd
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0xaa3e
testl %eax, %eax
je 0x2a98
movq 0x10(%r14), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2ac7
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/cpp.c
// Function: copy_tokens
static Token* copy_tokens(Token* src) {
  if (src == NULL) {
    return NULL;
  } else {
    Token* new = copy_token(src);
    new->next = copy_tokens(src->next);
    return new;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2ae8
movq %rdi, %r14
callq 0x29fa
movq %rax, %rbx
movq (%r14), %rdi
callq 0x2ac7
movq %rax, (%rbx)
jmp 0x2aea
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/emit.c
// Function: emit_const
static void emit_const(Type* type, Node* node) {
  if (!node) {
    return;
  }

  switch (node->tag) {
  case NINT: {
    if (size_of(type) == 1) {
      emit(".byte %d", node->integer);
    } else if (size_of(type) == 4) {
      emit(".int %d", node->integer);
    } else if (size_of(type) == 8) {
      emit(".quad %d", node->integer);
    } else {
      bad_token(node->token, "emit error: emit_const(invalid size)");
    }
    break;
  }
  case NGVAR: {
    if (size_of(type) == 1) {
      emit(".byte %s", node->name);
    } else if (size_of(type) == 4) {
      emit(".int %s", node->name);
    } else if (size_of(type) == 8) {
      emit(".quad %s", node->name);
    } else {
      bad_token(node->token, "emit error: emit_const(invalid size)");
    }
    break;
  }
  default:
    bad_token(node->token, "emit error: value is not constant");
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x2e9c
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %eax
cmpl $0x2, %eax
je 0x2ea4
testl %eax, %eax
jne 0x2f3b
movq %r14, %rdi
callq 0x75fe
cmpq $0x1, %rax
jne 0x2eda
movl 0x28(%rbx), %esi
leaq 0x92d7(%rip), %rdi      # 0xc16e
jmp 0x2f30
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
callq 0x75fe
cmpq $0x1, %rax
jne 0x2ebf
movq 0x40(%rbx), %rsi
leaq 0x92f0(%rip), %rdi      # 0xc1ad
jmp 0x2f0d
movq %r14, %rdi
callq 0x75fe
cmpq $0x4, %rax
jne 0x2ef4
movq 0x40(%rbx), %rsi
leaq 0x92de(%rip), %rdi      # 0xc1b6
jmp 0x2f0d
movq %r14, %rdi
callq 0x75fe
cmpq $0x4, %rax
jne 0x2f18
movl 0x28(%rbx), %esi
leaq 0x9285(%rip), %rdi      # 0xc177
jmp 0x2f30
movq %r14, %rdi
callq 0x75fe
cmpq $0x8, %rax
jne 0x2f4b
movq 0x40(%rbx), %rsi
leaq 0x92b1(%rip), %rdi      # 0xc1be
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2f5b
movq %r14, %rdi
callq 0x75fe
cmpq $0x8, %rax
jne 0x2f4b
movl 0x28(%rbx), %esi
leaq 0x924f(%rip), %rdi      # 0xc17f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2f5b
movq 0x8(%rbx), %rdi
leaq 0x9281(%rip), %rsi      # 0xc1c7
callq 0xa124
movq 0x8(%rbx), %rdi
leaq 0x9232(%rip), %rsi      # 0xc188
callq 0xa124
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/emit.c
// Function: emit
static void emit(char *fmt, ...) {
  va_list ap;
  va_start(ap, fmt);
  printf("\t");
  vprintf(fmt, ap);
  printf("\n");
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x2fbc
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %r14
movq %rdi, 0x10(%r14)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%r14)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%r14)
pushq $0x9
popq %rdi
callq 0x2040
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2130
pushq $0xa
popq %rdi
callq 0x2040
addq $0xd8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/emit.c
// Function: comment
static void comment(char *fmt, ...) {
  va_list ap;
  va_start(ap, fmt);
  printf("# ");
  vprintf(fmt, ap);
  printf("\n");
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x3063
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %r14
movq %rdi, 0x10(%r14)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%r14)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%r14)
leaq 0x91c2(%rip), %rdi      # 0xc24c
xorl %eax, %eax
callq 0x20a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2130
pushq $0xa
popq %rdi
callq 0x2040
addq $0xd8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/emit.c
// Function: emit_var
static void emit_var(Node* var) {
  comment("start lval NVAR %s", var->name);
  emit("lea rax, -%zu[rbp]", var->offset);
  push(AX);
  comment("end lval NVAR %s", var->name);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x40(%rdi), %rsi
leaq 0x92b8(%rip), %rdi      # 0xc396
xorl %eax, %eax
callq 0x3002
movq 0x48(%rbx), %rsi
leaq 0x92b9(%rip), %rdi      # 0xc3a9
xorl %eax, %eax
callq 0x2f5b
xorl %edi, %edi
callq 0x476d
movq 0x40(%rbx), %rsi
leaq 0x92b3(%rip), %rdi      # 0xc3bc
xorl %eax, %eax
popq %rbx
jmp 0x3002
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/emit.c
// Function: emit_lval
static void emit_lval(Node* node) {
  if (node->tag == NVAR) {
    emit_var(node);
  } else if (node->tag == NGVAR) {
    comment("start lval NGVAR");
    emit("lea rax, %s", node->name);
    push(AX);
    comment("end lval NGVAR");
  } else if (node->tag == NMEMBER) {
    comment("start lval NMEMBER");
    emit_lval(node->expr);
    size_t offset = field_offset(type_of(node->expr)->fields, node->name);
    pop(AX);
    emit("lea rax, %zu[rax]", offset);
    push(AX);
    comment("end lval NMEMBER");
  } else if (node->tag == NDEREF){
    comment("start lval NDEREF");
    emit_node(node->expr);
    comment("end lval NDEREF");
  } else {
    bad_token(node->token, "emit error: emit_lval");
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %eax
cmpl $0x1b, %eax
je 0x47e6
cmpl $0x2, %eax
je 0x483e
cmpl $0x1a, %eax
je 0x47c3
cmpl $0x1, %eax
jne 0x4874
movq %rbx, %rdi
popq %rbx
jmp 0x30cf
leaq 0x817e(%rip), %rdi      # 0xc948
xorl %eax, %eax
callq 0x3002
movq 0x38(%rbx), %rdi
callq 0x314a
leaq 0x8179(%rip), %rdi      # 0xc95a
jmp 0x486c
leaq 0x8125(%rip), %rdi      # 0xc912
xorl %eax, %eax
callq 0x3002
movq 0x38(%rbx), %rdi
callq 0x4798
movq 0x38(%rbx), %rdi
callq 0x76db
movq 0x30(%rax), %rdi
movq 0x40(%rbx), %rsi
callq 0x778e
movq %rax, %rbx
xorl %edi, %edi
callq 0x4884
leaq 0x8101(%rip), %rdi      # 0xc925
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2f5b
xorl %edi, %edi
callq 0x476d
leaq 0x80fb(%rip), %rdi      # 0xc937
jmp 0x486c
leaq 0x80a1(%rip), %rdi      # 0xc8e6
xorl %eax, %eax
callq 0x3002
movq 0x40(%rbx), %rsi
leaq 0x80a0(%rip), %rdi      # 0xc8f7
xorl %eax, %eax
callq 0x2f5b
xorl %edi, %edi
callq 0x476d
leaq 0x8097(%rip), %rdi      # 0xc903
xorl %eax, %eax
popq %rbx
jmp 0x3002
movq 0x8(%rbx), %rdi
leaq 0x80eb(%rip), %rsi      # 0xc96a
callq 0xa124
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/emit.c
// Function: load
static void load(Reg dst, size_t size) {
  if (size == 1) {
    // 8bitの値は自動では0拡張されないので、movzxを使う
    // 32bit整数との演算を行うので32bitレジスタにロードする
    emit("movsx %s, BYTE PTR [rax]", reg(dst, 4));
  } else {
   emit("mov %s, [rax]", reg(dst, size));
  }
}

// Assembly:
cmpq $0x1, %rdi
jne 0x48ba
leaq 0x80dd(%rip), %rdi      # 0xc989
leaq 0x7b52(%rip), %rsi      # 0xc405
xorl %eax, %eax
jmp 0x2f5b
cmpq $0x4, %rdi
leaq 0x7b40(%rip), %rax      # 0xc405
leaq 0x7d2b(%rip), %rsi      # 0xc5f7
cmoveq %rax, %rsi
leaq 0x80cb(%rip), %rdi      # 0xc9a2
xorl %eax, %eax
jmp 0x2f5b
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/emit.c
// Function: align_rsp
static void align_rsp(void) {
  comment("start align rsp");
  emit("mov r10, rsp");
  emit("and rsp, -16"); // 下位4bit(16で割ったあまり)を切り捨て
  comment("end align rsp");
}

// Assembly:
pushq %rax
leaq 0x8126(%rip), %rdi      # 0xca24
xorl %eax, %eax
callq 0x3002
leaq 0x8128(%rip), %rdi      # 0xca34
xorl %eax, %eax
callq 0x2f5b
leaq 0x8127(%rip), %rdi      # 0xca41
xorl %eax, %eax
callq 0x2f5b
leaq 0x8126(%rip), %rdi      # 0xca4e
xorl %eax, %eax
popq %rcx
jmp 0x3002
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/gen_ir.c
// Function: is_defined_proto
IFunc* is_defined_proto(Vector* funcs, char* name) {
  for (size_t i = 0; i < funcs->length; i++) {
    IFunc* func = funcs->ptr[i];
    if (streq(func->name, name) && !func->blocks) {
      return func;
    }
  }
  return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
cmpq 0x10(%r14), %r12
jae 0x4995
movq (%r14), %rax
movq (%rax,%r12,8), %r15
movq (%r15), %rdi
movq %rbx, %rsi
callq 0xaa3e
testl %eax, %eax
je 0x4990
cmpq $0x0, 0x18(%r15)
je 0x4998
incq %r12
jmp 0x496d
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/gen_ir.c
// Function: gen_ir
IProgram* gen_ir(Program* program) {
  IProgram* ip = calloc(1, sizeof(IProgram));
  ip->globals = program->globals;
  ip->ifuncs = new_vec();

  for (int i = 0; i < program->funcs->length; i++) {
    Function* func = program->funcs->ptr[i];
    IFunc* ifunc = emit_func(func);

    // プロトタイプ宣言を上書きする。
    // gen_x86ですべてのプロトタイプ宣言を外部関数だと解釈する
    IFunc* proto = is_defined_proto(ip->ifuncs, func->name);
    if (proto) {
      memcpy(proto, ifunc, sizeof(IFunc));
    } else {
      vec_push(ip->ifuncs, ifunc);
    }
  }

  return ip;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rdi
pushq $0x10
popq %rsi
callq 0x20f0
movq %rax, %r14
movq %rbx, 0x18(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%r14)
xorl %eax, %eax
callq 0x229c
movq %rax, %rbx
movq %r14, 0x8(%rsp)
movq %rax, (%r14)
xorl %r12d, %r12d
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rax
cmpq %r12, 0x10(%rax)
jbe 0x4bb5
movq (%rax), %rax
movq (%rax,%r12,8), %r15
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x20f0
movq %rax, %r14
movq (%r15), %rax
movq %rax, (%r14)
movb 0x28(%r15), %al
movb %al, 0x8(%r14)
movb 0x29(%r15), %al
movb %al, 0x9(%r14)
xorl %eax, %eax
callq 0x229c
movq %rax, 0x10(%r14)
cmpq $0x0, 0x10(%r15)
je 0x4b78
movq %rax, %r13
movq %r12, 0x20(%rsp)
xorl %eax, %eax
callq 0x229c
movq %rax, 0x18(%r14)
movq %rax, 0xd67b(%rip)      # 0x12120
leaq 0x8128(%rip), %rdi      # 0xcbd4
callq 0x4be6
movq %rax, 0x20(%r14)
movq %rax, %rdi
callq 0x4c06
xorl %ebp, %ebp
movq 0x18(%r15), %rax
cmpq %rbp, 0x10(%rax)
jbe 0x4b65
movq (%rax), %rax
movq (%rax,%rbp,8), %r12
movq %r12, %rdi
callq 0x76db
movq %rax, %rdi
callq 0x75fe
movl %eax, %edi
callq 0x4c5a
movq %rax, %rdi
callq 0x4c47
pushq $0x8
popq %rdi
callq 0x4c6a
movq %rax, %rbx
movl 0x48(%r12), %esi
movq %rax, %rdi
callq 0x4c91
movq %rax, %rdi
callq 0x4c47
movq 0x18(%r15), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %rdi
callq 0x76db
movq %rax, %rdi
callq 0x75fe
testq %rbx, %rbx
je 0x4bc9
movq %rax, %r12
pushq $0x14
popq %rdi
callq 0x6c44
movq %rbx, 0x18(%rax)
movl %ebp, 0x4(%rax)
movq %r12, 0x8(%rax)
movq %rax, %rdi
callq 0x4c47
movq %r13, %rdi
movq %rbx, %rsi
callq 0x22c6
incq %rbp
jmp 0x4abf
movq 0x10(%r15), %rdi
callq 0x4cb1
movq 0x10(%rsp), %rbx
movq 0x20(%rsp), %r12
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x495c
testq %rax, %rax
je 0x4ba2
movq 0x20(%r14), %rcx
movq %rcx, 0x20(%rax)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
jmp 0x4bad
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22c6
incq %r12
jmp 0x4a38
movq 0x8(%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8011(%rip), %rdi      # 0xcbe1
leaq 0x800e(%rip), %rsi      # 0xcbe5
leaq 0x8014(%rip), %rcx      # 0xcbf2
pushq $0x60
popq %rdx
callq 0x20c0
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/gen_ir.c
// Function: new_reg
static IReg* new_reg(size_t size) {
  IReg* new = calloc(1, sizeof(IReg));
  new->id = reg_id++;
  new->size = size;
  return new;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rdi
pushq $0x20
popq %rsi
callq 0x20f0
movl 0xd4b9(%rip), %ecx      # 0x12138
leal 0x1(%rcx), %edx
movl %edx, 0xd4b0(%rip)      # 0x12138
movl %ecx, 0x4(%rax)
movq %rbx, 0x8(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/gen_ir.c
// Function: address
static IR* address(IReg* addr, int offset) {
  IR* new = new_ir(IADDRESS);
  new->r0 = addr;
  new->imm_int = offset;
  return new;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
pushq $0x11
popq %rdi
callq 0x6c44
movq %r14, 0x10(%rax)
movl %ebx, 0x4(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/takoeight0821[P]hoc_nyan/src/gen_ir.c
// Function: branch
static IR* branch(IReg* cond, char* then_label, char* else_label) {
  IR* new = new_ir(IBR);
  new->r1 = cond;
  new->then = then_label;
  new->els = else_label;
  return new;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
pushq $0x18
popq %rdi
callq 0x6c44
movq %r15, 0x18(%rax)
movq %r14, 0x38(%rax)
movq %rbx, 0x40(%rax)
popq %rbx
popq %r14
popq %r15
retq