LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/jfbuild/src/mmulti.c
// Function: initmultiplayers_reset
static void initmultiplayers_reset(void)
{
	int i;

	initcrc16();
	memset(icnt0,0,sizeof(icnt0));
	memset(ocnt0,0,sizeof(ocnt0));
	memset(ocnt1,0,sizeof(ocnt1));
	memset(ipak,0,sizeof(ipak));
	//memset(opak,0,sizeof(opak)); //Don't need to init opak
	//memset(pakmem,0,sizeof(pakmem)); //Don't need to init pakmem
#if (SIMLAG > 1)
	memset(simlagcnt,0,sizeof(simlagcnt));
#endif

	lastsendtims[0] = GetTickCount();
	for(i=0;i<MAXPLAYERS;i++) {
		lastsendtims[i] = lastsendtims[0];
		lastrecvtims[i] = prevlastrecvtims[i] = 0;
		connectpoint2[i] = -1;
		playerslive[i] = 0;
	}
	connecthead = 0;
	numplayers = 1; myconnectindex = 0;

	memset(otherhost,0,sizeof(otherhost));
}

// Assembly:
xorl %eax, %eax
leaq 0xb583b9(%rip), %rcx    # 0xbb5e30
movl %eax, %edx
shll $0x8, %edx
movl $0xfffffff8, %esi       # imm = 0xFFFFFFF8
xorl %edi, %edi
movl %edi, %r8d
addl %edi, %r8d
movzwl %r8w, %r8d
movl %r8d, %r9d
xorl $0x1021, %r9d           # imm = 0x1021
movl %edx, %r10d
xorw %di, %r10w
movl %r9d, %edi
cmovnsl %r8d, %edi
addl %edx, %edx
andl $0xfe00, %edx           # imm = 0xFE00
incl %esi
jne 0x5da83
movl %edi, (%rcx,%rax,4)
incq %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x5da77
pushq %rbx
pxor %xmm0, %xmm0
movdqa %xmm0, 0x7482c4(%rip)   # 0x7a5d90
movdqa %xmm0, 0x7482ac(%rip)   # 0x7a5d80
movdqa %xmm0, 0x748294(%rip)   # 0x7a5d70
movdqa %xmm0, 0x74827c(%rip)   # 0x7a5d60
movdqa %xmm0, 0x7502b4(%rip)   # 0x7adda0
movdqa %xmm0, 0x7502bc(%rip)   # 0x7addb0
movdqa %xmm0, 0x7502c4(%rip)   # 0x7addc0
movdqa %xmm0, 0x7502cc(%rip)   # 0x7addd0
movdqa %xmm0, 0x7502d4(%rip)   # 0x7adde0
movdqa %xmm0, 0x7502dc(%rip)   # 0x7addf0
movdqa %xmm0, 0x7502e4(%rip)   # 0x7ade00
movdqa %xmm0, 0x7502ec(%rip)   # 0x7ade10
leaq 0x748275(%rip), %rdi    # 0x7a5da0
xorl %ebx, %ebx
movl $0x8000, %edx           # imm = 0x8000
xorl %esi, %esi
callq 0x8440
callq 0x5ee15
movl %eax, 0x7480dc(%rip)    # 0x7a5c20
pxor %xmm0, %xmm0
movdqa %xmm0, 0x748080(%rip)   # 0x7a5bd0
movdqa %xmm0, 0x748088(%rip)   # 0x7a5be0
movdqa %xmm0, 0x748090(%rip)   # 0x7a5bf0
movdqa %xmm0, 0x748098(%rip)   # 0x7a5c00
movdqa %xmm0, 0x748020(%rip)   # 0x7a5b90
movdqa %xmm0, 0x748028(%rip)   # 0x7a5ba0
movdqa %xmm0, 0x748030(%rip)   # 0x7a5bb0
movdqa %xmm0, 0x748038(%rip)   # 0x7a5bc0
xorps %xmm1, %xmm1
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x747fa9(%rip)   # 0x7a5b40
movdqa %xmm0, 0x747fb1(%rip)   # 0x7a5b50
movdqa %xmm0, 0x747fb9(%rip)   # 0x7a5b60
movdqa %xmm0, 0x747fc1(%rip)   # 0x7a5b70
movaps %xmm1, 0x74805a(%rip)   # 0x7a5c10
movd %eax, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
leaq 0x74805a(%rip), %rax    # 0x7a5c20
movdqa %xmm0, (%rbx,%rax)
addq $0x10, %rbx
cmpq $0x40, %rbx
jne 0x5dbc6
xorl %eax, %eax
movl %eax, 0x747f53(%rip)    # 0x7a5b30
movl $0x1, 0x747f45(%rip)    # 0x7a5b2c
movl %eax, 0x747f37(%rip)    # 0x7a5b24
leaq 0x74755c(%rip), %rdi    # 0x7a5150
movl $0x800, %edx            # imm = 0x800
xorl %esi, %esi
popq %rbx
jmp 0x8440
// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/jfbuild/src/mmulti.c
// Function: presentaddress
static const char *presentaddress(struct sockaddr *a) {
	static char str[128+32];
	char addr[128];
	int port;

	if (a->sa_family == AF_INET) {
		struct sockaddr_in *s = (struct sockaddr_in *)a;
		inet_ntop(AF_INET, &s->sin_addr, addr, sizeof(addr));
		port = ntohs(s->sin_port);
	} else if (a->sa_family == AF_INET6) {
		struct sockaddr_in6 *s = (struct sockaddr_in6 *)a;
		strcpy(addr, "[");
		inet_ntop(AF_INET6, &s->sin6_addr, addr+1, sizeof(addr)-2);
		strcat(addr, "]");
		port = ntohs(s->sin6_port);
	} else {
		return NULL;
	}

	strcpy(str, addr);
	sprintf(addr, ":%d", port);
	strcat(str, addr);

	return str;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
movzwl (%rdi), %eax
cmpl $0xa, %eax
je 0x5e34c
cmpl $0x2, %eax
jne 0x5e3b8
leaq 0x4(%rbx), %rsi
movq %rsp, %rdx
movl $0x2, %edi
movl $0x80, %ecx
callq 0x82c0
jmp 0x5e378
leaq 0x1(%rsp), %rdx
movw $0x5b, -0x1(%rdx)
leaq 0x8(%rbx), %rsi
movl $0xa, %edi
movl $0x7e, %ecx
callq 0x82c0
movq %rsp, %rdi
callq 0x85a0
movw $0x5d, (%rsp,%rax)
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ebp
leaq 0xb57ea6(%rip), %rbx    # 0xbb6230
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x85b0
leaq 0x48b1a(%rip), %rsi     # 0xa6eb9
movq %r14, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x8f20
movq %rbx, %rdi
movq %r14, %rsi
callq 0x89e0
jmp 0x5e3ba
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/jfbuild/src/mmulti.c
// Function: sendpacket
void sendpacket (int other, unsigned char *bufptr, int messleng)
{
	if (numplayers < 2) return;

	if (pakmemi+messleng+2 > (int)sizeof(pakmem)) pakmemi = 1;
	opak[other][ocnt1[other]&(FIFSIZ-1)] = pakmemi;
	*(short *)&pakmem[pakmemi] = messleng;
	memcpy(&pakmem[pakmemi+2],bufptr,messleng); pakmemi += messleng+2;
	ocnt1[other]++;

	dosendpackets(other);
}

// Assembly:
cmpl $0x2, 0x746a93(%rip)    # 0x7a5b2c
jge 0x5f09c
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x847c6(%rip), %eax     # 0xe3870
leal (%rax,%rdx), %ecx
cmpl $0x3fffff, %ecx         # imm = 0x3FFFFF
movl $0x1, %ecx
cmovll %eax, %ecx
movslq %edi, %rbx
leaq 0x74ed1b(%rip), %r15    # 0x7adde0
movl (%r15,%rbx,4), %ebp
movl %ebp, %eax
andl $0x1ff, %eax            # imm = 0x1FF
movq %rbx, %rdi
shlq $0xb, %rdi
leaq 0x74ed42(%rip), %r8     # 0x7ade20
addq %rdi, %r8
movl %ecx, (%r8,%rax,4)
movslq %ecx, %r12
leaq 0x756d31(%rip), %rax    # 0x7b5e20
leaq (%r12,%rax), %rdi
addq $0x2, %rdi
movw %dx, -0x2(%rdi)
movslq %edx, %r14
movq %r14, %rdx
callq 0x80e0
leal (%r14,%r12), %eax
addl $0x2, %eax
movl %eax, 0x8475d(%rip)     # 0xe3870
incl %ebp
movl %ebp, (%r15,%rbx,4)
movl %ebx, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x5ee6d
// File: /workspace/github_c_makefile_star2_O3/jonof[P]jftekwar/jfbuild/src/crc32.c
// Function: crc32once
unsigned int crc32once(unsigned char *blk, unsigned int len)
{
	unsigned int crc;
	
	crc32init(&crc);
	crc32block(&crc, blk, len);
	return crc32finish(&crc);
}

// Assembly:
testl %esi, %esi
je 0x83ff3
movl %esi, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %edx, %edx
leaq 0xc0d0f9(%rip), %rsi    # 0xc910d0
movb (%rdi,%rdx), %r8b
xorb %al, %r8b
movzbl %r8b, %r8d
shrl $0x8, %eax
xorl (%rsi,%r8,4), %eax
incq %rdx
cmpl %edx, %ecx
jne 0x83fd7
notl %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/test-dissect.c
// Function: r_symbol
static void r_symbol(unsigned mode, struct position *pos, struct symbol *sym)
{
	print_usage(pos, sym, mode);

	if (!sym->ident)
		sym->ident = built_in_ident("__asm__");

	printf("%c %c %-32.*s %s\n",
		symscope(sym), sym->kind, sym->ident->len, sym->ident->name,
		show_typename(sym->ctype.base_type));

	switch (sym->kind) {
	case 'd':
		break;
	case 's':
		if (sym->type == SYM_STRUCT || sym->type == SYM_UNION)
			break;
		goto err;
	case 't':
		break;
	case 'f':
		if (sym->type != SYM_BAD && sym->ctype.base_type->type != SYM_FN)
			goto err;
	case 'v':
		if (sym->type == SYM_NODE || sym->type == SYM_BAD)
			break;
		goto err;
	default:
		goto err;
	}

	return;
err:
	warning(*pos, "r_symbol bad sym type=%d kind=%d", sym->type, sym->kind);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %esi
movq %rbx, %rdi
callq 0xec47
cmpq $0x0, 0x18(%r14)
jne 0xea30
leaq 0x325dd(%rip), %rdi     # 0x41004
callq 0x2098f
movq %rax, 0x18(%r14)
movq %r14, %rdi
callq 0xed15
movzbl %al, %ebp
movsbl 0xd0(%r14), %r15d
movq 0x18(%r14), %r12
movq 0x60(%r14), %rdi
movzbl 0x10(%r12), %r13d
addq $0x12, %r12
callq 0x1bfb9
leaq 0x325ab(%rip), %rdi     # 0x4100c
movl %ebp, %esi
movl %r15d, %edx
movl %r13d, %ecx
movq %r12, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xe0f0
movzbl 0xd0(%r14), %eax
cmpl $0x72, %eax
jle 0xea98
cmpl $0x73, %eax
je 0xeac0
cmpl $0x74, %eax
je 0xeacc
cmpl $0x76, %eax
jne 0xeadb
movzbl (%r14), %edx
jmp 0xeab4
cmpl $0x64, %eax
je 0xeacc
cmpl $0x66, %eax
jne 0xeadb
movzbl (%r14), %edx
cmpl $0x10, %edx
je 0xeab4
movq 0x60(%r14), %rcx
cmpb $0x5, (%rcx)
jne 0xeadf
cmpl $0x3, %edx
je 0xeacc
cmpl $0x10, %edx
je 0xeacc
jmp 0xeadf
movzbl (%r14), %edx
leal -0x7(%rdx), %ecx
cmpl $0x2, %ecx
jae 0xeadf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl (%r14), %edx
movsbl %al, %ecx
movq (%rbx), %rdi
leaq 0x32532(%rip), %rsi     # 0x4101e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10324
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/test-dissect.c
// Function: r_member
static void r_member(unsigned mode, struct position *pos, struct symbol *sym, struct symbol *mem)
{
	struct ident *ni, *si, *mi;

	print_usage(pos, sym, mode);

	ni = built_in_ident("?");
	si = sym->ident ?: ni;
	/* mem == NULL means entire struct accessed */
	mi = mem ? (mem->ident ?: ni) : built_in_ident("*");

	printf("%c m %.*s.%-*.*s %s\n",
		symscope(sym), si->len, si->name,
		32-1 - si->len, mi->len, mi->name,
		show_typename(mem ? mem->ctype.base_type : sym));

	if (sym->ident && sym->kind != 's')
		warning(*pos, "r_member bad sym type=%d kind=%d", sym->type, sym->kind);
	if (mem && mem->kind != 'm')
		warning(*pos, "r_member bad mem->kind = %d", mem->kind);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rax
movl %edi, %esi
movq %rax, 0x10(%rsp)
movq %rax, %rdi
callq 0xec47
leaq 0x3c2ae(%rip), %rdi     # 0x4addc
callq 0x2098f
movq 0x18(%r15), %r12
testq %r12, %r12
cmoveq %rax, %r12
testq %r14, %r14
je 0xeb53
movq %rax, %r13
movq 0x18(%r14), %rax
testq %rax, %rax
cmovneq %rax, %r13
jmp 0xeb62
leaq 0x3c576(%rip), %rdi     # 0x4b0d0
callq 0x2098f
movq %rax, %r13
movq %r15, %rdi
callq 0xed15
movzbl 0x10(%r12), %ebp
addq $0x12, %r12
movl $0x1f, %ebx
subl %ebp, %ebx
leaq 0x12(%r13), %rcx
movq %rcx, 0x18(%rsp)
movzbl %al, %eax
movl %eax, 0xc(%rsp)
movzbl 0x10(%r13), %r13d
movq %r15, %rdi
testq %r14, %r14
je 0xeb9c
movq 0x60(%r14), %rdi
movq %r14, 0x20(%rsp)
callq 0x1bfb9
movq %rax, %r10
leaq 0x324c0(%rip), %rdi     # 0x41070
movl 0xc(%rsp), %esi
movl %ebp, %edx
movq %r12, %rcx
movl %ebx, %r8d
movl %r13d, %r9d
xorl %eax, %eax
pushq %r10
pushq 0x20(%rsp)
callq 0xe0f0
addq $0x10, %rsp
cmpq $0x0, 0x18(%r15)
je 0xebfe
movsbl 0xd0(%r15), %ecx
cmpl $0x73, %ecx
je 0xebfe
movzbl (%r15), %edx
movq 0x10(%rsp), %rax
movq (%rax), %rdi
leaq 0x3248e(%rip), %rsi     # 0x41085
xorl %eax, %eax
callq 0x10324
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xec14
movsbl 0xd0(%rax), %edx
cmpl $0x6d, %edx
jne 0xec23
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rax
movq (%rax), %rdi
leaq 0x32474(%rip), %rsi     # 0x410a6
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10324
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/test-dissect.c
// Function: print_usage
static void print_usage(struct position *pos, struct symbol *sym, unsigned mode)
{
	static unsigned curr_stream = -1;
	static struct ident null;
	struct ident *ctx = &null;

	if (curr_stream != pos->stream) {
		curr_stream = pos->stream;
		printf("\nFILE: %s\n\n", stream_name(curr_stream));
	}

	if (dissect_ctx)
		ctx = dissect_ctx->ident;

	printf("%4d:%-3d %-16.*s %s ",
		pos->line, pos->pos, ctx->len, ctx->name, show_mode(mode));

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl (%rdi), %edi
shrl $0x6, %edi
andl $0x3fff, %edi           # imm = 0x3FFF
cmpl %edi, 0x5255f(%rip)     # 0x611c0
je 0xec7f
movl %edi, 0x52557(%rip)     # 0x611c0
callq 0x1ff90
leaq 0x323ca(%rip), %rdi     # 0x4103f
movq %rax, %rsi
xorl %eax, %eax
callq 0xe0f0
leaq 0x5792a(%rip), %rax     # 0x665b0
movq (%rax), %rax
testq %rax, %rax
je 0xec94
movq 0x18(%rax), %r8
jmp 0xec9b
leaq 0x578ed(%rip), %r8      # 0x66588
movq (%r14), %rsi
movzbl 0x10(%r8), %ecx
cmpl $-0x1, %ebx
je 0xece6
movl %ebx, %eax
andl $0x3, %eax
leaq 0x323ac(%rip), %rdx     # 0x41060
movb (%rax,%rdx), %al
movb %al, 0x578e3(%rip)      # 0x665a0
leaq 0x578dc(%rip), %r9      # 0x665a0
movl %ebx, %eax
shrl $0x2, %eax
andl $0x3, %eax
movb (%rax,%rdx), %al
movb %al, 0x578cc(%rip)      # 0x665a1
shrl $0xa, %ebx
andl $0x3, %ebx
movb (%rbx,%rdx), %al
movb %al, 0x578be(%rip)      # 0x665a2
jmp 0xeced
leaq 0x33bbf(%rip), %r9      # 0x428ac
addq $0x12, %r8
movl %esi, %edx
shrl $0x16, %edx
shrq $0x20, %rsi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
leaq 0x32344(%rip), %rdi     # 0x4104b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xe0f0
// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/test-dissect.c
// Function: symscope
static char symscope(struct symbol *sym)
{
	if (sym_is_local(sym)) {
		if (!dissect_ctx)
			warning(sym->pos, "no context");
		return '.';
	}
	return ' ';
}

// Assembly:
pushq %rbx
movq 0x30(%rdi), %rax
leaq 0x55df7(%rip), %rcx     # 0x64b18
movb $0x20, %bl
cmpq %rax, (%rcx)
je 0xed55
leaq 0x55df1(%rip), %rcx     # 0x64b20
cmpq %rax, (%rcx)
je 0xed55
leaq 0x57875(%rip), %rax     # 0x665b0
movb $0x2e, %bl
cmpq $0x0, (%rax)
jne 0xed55
movq 0x4(%rdi), %rdi
leaq 0x32317(%rip), %rsi     # 0x41065
xorl %eax, %eax
callq 0x10324
movl %ebx, %eax
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]libcperciva/tests/parsenum/../../util/parsenum.h
// Function: parsenum_float
static inline double
parsenum_float(const char * s, double min, double max, int trailing)
{
	char * eptr;
	double val;

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

	val = strtod(s, &eptr);
	if (eptr == s || (!trailing && (*eptr != '\0')))
		errno = EINVAL;
	else if ((val < min) || (val > max))
		errno = ERANGE;
	return (val);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
testq %rdi, %rdi
je 0x39e4
movl %esi, %ebx
movq %rdi, %r14
leaq 0x10(%rsp), %r15
movq %r15, %rsi
callq 0x10a0
movq (%r15), %rax
movl $0x16, %ebp
cmpq %r14, %rax
je 0x39c8
testl %ebx, %ebx
je 0x39c3
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
movl $0x22, %ebp
ja 0x39c8
ucomisd 0x8(%rsp), %xmm0
jbe 0x39d9
jmp 0x39c8
cmpb $0x0, (%rax)
je 0x39a9
movsd %xmm0, (%rsp)
callq 0x1080
movsd (%rsp), %xmm0
movl %ebp, (%rax)
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1430(%rip), %rdi      # 0x4e1b
leaq 0x1433(%rip), %rsi      # 0x4e25
leaq 0x1442(%rip), %rcx      # 0x4e3b
movl $0x95, %edx
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]libcperciva/tests/parsenum/main.c
// Function: parsenum_equal
static int
parsenum_equal(double x, double y)
{

#if defined(__clang__)
	_Pragma("clang diagnostic push")
	_Pragma("clang diagnostic ignored \"-Wconversion\"")
	_Pragma("clang diagnostic ignored \"-Wdouble-promotion\"")
#endif

	/* Check special status. */
	if (fpclassify(x) != fpclassify(y))
		return (0);

	/* Deal with NANs. */
	if (isnan(x) && isnan(y))
		return (1);

	/* If signs do not match, the numbers are not equal. */
	if (signbit(x) != signbit(y))
		return (0);

	/* Deal with infinities. */
	if (isinf(x) && isinf(y))
		return (1);

	/* Deal with zeros. */
	if ((fpclassify(x) == FP_ZERO) && (fpclassify(y) == FP_ZERO))
		return (1);

#if defined(__clang__)
	_Pragma("clang diagnostic pop")
#endif

	/* Deal with real numbers. */
	if ((fabs(x - y) < 1) && (fabs(x - y) <= fabs(x + y) * 1e-6))
		return (1);

	/* Not equal. */
	return (0);
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movsd %xmm1, 0x8(%rsp)
movaps %xmm0, 0x10(%rsp)
callq 0x10c0
movl %eax, %ebx
movsd 0x8(%rsp), %xmm0
callq 0x10c0
cmpl %eax, %ebx
jne 0x3bf4
movapd 0x10(%rsp), %xmm2
ucomisd %xmm2, %xmm2
movl $0x1, %eax
movsd 0x8(%rsp), %xmm3
jnp 0x3b80
ucomisd %xmm3, %xmm3
jp 0x3bf6
movq %xmm2, %rcx
movq %xmm3, %rdx
movq %rdx, %rsi
xorq %rcx, %rsi
js 0x3bf4
btrq $0x3f, %rcx
movabsq $0x7ff0000000000000, %rsi # imm = 0x7FF0000000000000
xorq %rsi, %rcx
btrq $0x3f, %rdx
xorq %rsi, %rdx
orq %rcx, %rdx
sete %cl
cmpl $0x2, %ebx
sete %dl
orb %cl, %dl
jne 0x3bf6
movapd %xmm2, %xmm0
subsd %xmm3, %xmm0
andpd 0x554(%rip), %xmm0      # 0x4120
movsd 0x51c(%rip), %xmm1      # 0x40f0
ucomisd %xmm0, %xmm1
jbe 0x3bf4
addsd %xmm3, %xmm2
andpd 0x53a(%rip), %xmm2      # 0x4120
mulsd 0x50a(%rip), %xmm2      # 0x40f8
ucomisd %xmm0, %xmm2
jae 0x3bf6
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/bench/hotspot_read/main.c
// Function: hotspotread
static int
hotspotread(struct wire_requestqueue * Q, uint64_t N)
{
	struct hotspotread_state C;
	uint8_t buf[40];	/* dummy */

	/* Initialize. */
	C.Q = Q;
	C.Nip = 0;
	C.Xmax = N / 65536;
	C.X = 0;
	C.Y = 65536;
	C.failed = 0;
	C.done = 0;

	/* Allocate key structure. */
	memset(buf, 0, 40);
	if ((C.key = kvldskey_create(buf, 40)) == NULL)
		goto err0;

	/* Prepare benchmark time handling. */
	if ((C.B = bench_init(BENCHMARK_START, BENCHMARK_SECONDS)) == NULL) {
		warn0("bench_init");
		goto err1;
	}

	/* Send an initial batch of 4096 requests. */
	if (sendbatch(&C))
		goto err2;

	/* Wait until we've finished. */
	if (events_spin(&C.done) || C.failed) {
		warnp("SET request failed");
		goto err2;
	}

	/* Print median number of reads performed in a single second. */
	printf("%" PRIu64 "\n", bench_median(C.B));

	/* Free the key structure. */
	bench_free(C.B);
	kvldskey_free(C.key);

	/* Success! */
	return (0);

err2:
	bench_free(C.B);
err1:
	kvldskey_free(C.key);
err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x78, %rsp
movq %rdi, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
shrq $0x10, %rsi
movq %rsi, 0x30(%rsp)
movq $0x10000, 0x28(%rsp)    # imm = 0x10000
xorl %eax, %eax
movq %rax, 0x38(%rsp)
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps %xmm0, 0x10(%rdi)
movq %rax, 0x20(%rdi)
movl $0x28, %esi
callq 0x5808
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x277d
movq %rax, %rbx
movl $0x32, %edi
movl $0xa, %esi
callq 0x52a8
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x2784
leaq 0x8(%rsp), %rdi
callq 0x282a
testl %eax, %eax
je 0x27b3
movq 0x48(%rsp), %rdi
callq 0x55d8
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x40(%rsp), %rbx
jmp 0x27a2
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x27aa
leaq 0xa997(%rip), %rdi      # 0xd122
xorl %eax, %eax
callq 0x5183
callq 0x2090
movl $0x0, (%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x2040
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %rbp
retq
leaq 0x3c(%rsp), %rbx
movq %rbx, %rdi
callq 0x2bf9
orl -0x4(%rbx), %eax
je 0x27eb
callq 0x2090
cmpl $0x0, (%rax)
je 0x2817
movq %rax, %rbx
leaq 0xa954(%rip), %rdi      # 0xd12d
xorl %eax, %eax
callq 0x5064
movl $0x0, (%rbx)
jmp 0x2767
movq 0x48(%rsp), %rdi
callq 0x556d
leaq 0xa944(%rip), %rdi      # 0xd140
xorl %ebp, %ebp
movq %rax, %rsi
xorl %eax, %eax
callq 0x2130
movq 0x48(%rsp), %rdi
callq 0x55d8
jmp 0x2776
leaq 0xa90f(%rip), %rdi      # 0xd12d
xorl %eax, %eax
callq 0x5183
jmp 0x2767
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/bench/hotspot_read/main.c
// Function: sendbatch
static int
sendbatch(struct hotspotread_state * C)
{

	while (C->Nip < 4096) {
		/* Do we need to pick a new batch? */
		if (C->Y == 65536) {
			C->X = (size_t)random() % C->Xmax;
			C->Y = 0;
		}

		/* Generate a key. */
		mkkey(C->X, C->Y++, C->key->buf);

		/* Send the request. */
		if (proto_kvlds_request_get(C->Q, C->key,
		    callback_get, C))
			goto err0;
		C->Nip += 1;
	}

	/* Success! */
	return (0);

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

// Assembly:
cmpq $0xfff, 0x10(%rdi)      # imm = 0xFFF
ja 0x28aa
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x78(%rip), %r14        # 0x28ba
movq 0x20(%rbx), %rsi
cmpq $0x10000, %rsi          # imm = 0x10000
jne 0x2865
callq 0x2200
xorl %edx, %edx
divq 0x28(%rbx)
movq %rdx, %rdi
movq %rdx, 0x18(%rbx)
xorl %esi, %esi
jmp 0x2869
movq 0x18(%rbx), %rdi
leaq 0x1(%rsi), %rax
movq %rax, 0x20(%rbx)
movq 0x38(%rbx), %rdx
incq %rdx
callq 0x5600
movq (%rbx), %rdi
movq 0x38(%rbx), %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x635a
testl %eax, %eax
jne 0x28ad
movq 0x10(%rbx), %rax
incq %rax
movq %rax, 0x10(%rbx)
cmpq $0x1000, %rax           # imm = 0x1000
jb 0x2842
xorl %eax, %eax
jmp 0x28b2
xorl %eax, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/OhYee[P]computer_application_programming_experiment/pattern_match/ac_auto/ac_auto.c
// Function: compare
int compare(void *args, int i, int j) {
    char **        args_patterns = (char **)(((void **)args)[0]);
    ac_tree_node **args_nodes = (ac_tree_node **)(((void **)args)[1]);

    int res = args_nodes[j]->match_number - args_nodes[i]->match_number;
    if (res == 0) {
        res = compare_string(args_patterns[i], args_patterns[j]);
    }
    return res;
}

// Assembly:
movq 0x8(%rdi), %r8
movslq %edx, %rcx
movq (%r8,%rcx,8), %rax
movl 0x1c(%rax), %eax
movslq %esi, %rdx
movq (%r8,%rdx,8), %rsi
subl 0x1c(%rsi), %eax
je 0x33af
retq
movq (%rdi), %rax
movq (%rax,%rdx,8), %rdi
movq (%rax,%rcx,8), %rsi
jmp 0x2430
// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-trace.c
// Function: handle_kill
static void handle_kill(int sig) {
  _u32 i;
  shmctl(shmid, IPC_RMID, 0);
  if (orig_pid > 0) kill(orig_pid,SIGKILL);
  for (i=0;i<proc_cnt;i++) kill(procs[i].pid,SIGKILL);
  fflush(outfile);
  debug("--- Tracer exiting on signal %d ---\n",sig);
  exit(1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
movl 0x30c5(%rip), %edi      # 0x5128
xorl %esi, %esi
xorl %edx, %edx
callq 0x10c0
movl 0x30c6(%rip), %edi      # 0x5138
testl %edi, %edi
jle 0x2080
movl $0x9, %esi
callq 0x1160
cmpl $0x0, 0x30b5(%rip)      # 0x513c
je 0x20b6
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x30aa(%rip), %rax      # 0x5140
movl (%rax,%r14), %edi
movl $0x9, %esi
callq 0x1160
incq %r15
movl 0x308f(%rip), %eax      # 0x513c
addq $0x28, %r14
cmpq %rax, %r15
jb 0x208f
movq 0x3063(%rip), %rdi      # 0x5120
callq 0x1110
movq 0x2f17(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x113e(%rip), %rsi      # 0x3211
movl %ebx, %edx
xorl %eax, %eax
callq 0x1170
movl $0x1, %edi
callq 0x1140
// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-trace.c
// Function: report_kids
static _u8 report_kids(void) {
  _s32 rno;
  _u32 i;

  static _s32 pid;
  static _u32 st;

  if (pid >= 0) {
    pid = waitpid(orig_pid,&st,WNOHANG);
    /* Process still running or just done? */
    if (pid >= 0) return 0;
  }

  /* Process gone at least a round ago... */

  rno = get_procentry(orig_pid,0);

  if (rno < 0) {

    if (WIFEXITED(st))     
      outf("--- Untraced process %u exited (code=%u) ---\n",orig_pid,WEXITSTATUS(st));
    else 
      outf("--- Untraced process %u killed (signal %u) ---\n",orig_pid,WTERMSIG(st));

  } else {

    if (WIFEXITED(st)) 
      outf("--- Process %u exited (code=%u) ---\n",orig_pid,WEXITSTATUS(st));
    else 
      outf("--- Process %u killed (signal %u) ---\n",orig_pid,WTERMSIG(st));

  }

  if (shmreg->child_crash)
    outf("--- (Child process %u crashed) ---\n",shmreg->child_crash);

  for (i=0;i<proc_cnt;i++) kill(procs[i].pid,SIGKILL);
    
  return 1;
  
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpl $0x0, 0x2f53(%rip)      # 0x5148
js 0x221f
movl 0x2f3b(%rip), %edi      # 0x5138
leaq 0x2f48(%rip), %rsi      # 0x514c
movl $0x1, %edx
callq 0x1090
movl %eax, 0x2f34(%rip)      # 0x5148
testl %eax, %eax
js 0x221f
xorl %ebx, %ebx
jmp 0x22fb
movl 0x2f13(%rip), %edx      # 0x5138
movl 0x2f11(%rip), %eax      # 0x513c
testq %rax, %rax
je 0x2270
movq 0x2f09(%rip), %rsi      # 0x5140
xorl %ecx, %ecx
cmpl %edx, (%rsi)
je 0x224b
incq %rcx
addq $0x28, %rsi
cmpq %rcx, %rax
jne 0x2239
jmp 0x2270
testl %ecx, %ecx
js 0x2270
movl 0x2ef7(%rip), %eax      # 0x514c
movl %eax, %ecx
movq 0x2ec2(%rip), %rdi      # 0x5120
andl $0x7f, %ecx
je 0x2303
leaq 0x11ba(%rip), %rsi      # 0x3428
jmp 0x2297
movl 0x2ed6(%rip), %eax      # 0x514c
movl %eax, %ecx
movq 0x2ea1(%rip), %rdi      # 0x5120
andl $0x7f, %ecx
je 0x228d
leaq 0x1148(%rip), %rsi      # 0x33d3
jmp 0x2297
movzbl %ah, %ecx
leaq 0x110e(%rip), %rsi      # 0x33a5
xorl %eax, %eax
callq 0x1170
movq 0x2e8b(%rip), %rax      # 0x5130
cmpl $0x0, 0x10(%rax)
je 0x22c3
movq 0x2e6e(%rip), %rdi      # 0x5120
movl 0x10(%rax), %edx
leaq 0x1193(%rip), %rsi      # 0x344f
xorl %eax, %eax
callq 0x1170
movb $0x1, %bl
cmpl $0x0, 0x2e70(%rip)      # 0x513c
je 0x22fb
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x2e65(%rip), %rax      # 0x5140
movl (%rax,%r14), %edi
movl $0x9, %esi
callq 0x1160
incq %r15
movl 0x2e4a(%rip), %eax      # 0x513c
addq $0x28, %r14
cmpq %rax, %r15
jb 0x22d4
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
movzbl %ah, %ecx
leaq 0x10f6(%rip), %rsi      # 0x3403
jmp 0x2297
// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-trace.c
// Function: do_indent
static void do_indent(_u32 pid,_s32 level,_s8 cor) {
  _s32 i;

  if (level < 0) {  
    outf("[%05u] %+02d < ", pid,level);
  } else {
    outf("[%05u] %03d ", pid,level);
    for (i=0;i<level+cor;i++) outf("| ");
  }

}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %ebx
movl %edi, %edx
movq 0x2d62(%rip), %rdi      # 0x5120
testl %esi, %esi
js 0x2405
leaq 0x1144(%rip), %rsi      # 0x350d
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1170
movsbl %bpl, %ebp
addl %ebx, %ebp
jle 0x23fe
leaq 0x1139(%rip), %rbx      # 0x351a
movq 0x2d38(%rip), %rcx      # 0x5120
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x11e0
decl %ebp
jne 0x23e1
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x10f1(%rip), %rsi      # 0x34fd
movl %ebx, %ecx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1170
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/vm.c
// Function: runtimeError
static void runtimeError(bluVM* vm, const char* format, ...) {
	va_list args;
	va_start(args, format);
	vfprintf(stderr, format, args);
	va_end(args);
	fputs("\n", stderr);

	for (int i = vm->frameCount - 1; i >= 0; i--) {
		bluCallFrame* frame = &vm->frames[i];
		bluObjFunction* function = frame->closure->function;

		// -1 because the IP is sitting on the next instruction to be executed.
		size_t instruction = frame->ip - function->chunk.code.data - 1;

		fprintf(stderr, "[line %d] in ", function->chunk.lines.data[instruction]);
		fprintf(stderr, "%s\n", function->chunk.name);
	}

	resetStack(vm);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x23ac
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, %rdx
movq %rdi, 0x10(%rdx)
leaq 0x110(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq 0xcc25(%rip), %r12      # 0xeff8
movq (%r12), %rdi
callq 0x21d0
movq (%r12), %rsi
leaq 0x6c3c(%rip), %rdi      # 0x9023
callq 0x2110
movslq 0x101808(%rbx), %r13
testq %r13, %r13
jle 0x2460
imulq $0x18, %r13, %rax
incq %r13
leaq (%rax,%rbx), %rbp
addq $0xffff8, %rbp          # imm = 0xFFFF8
leaq 0x6d61(%rip), %r15      # 0x9172
movq -0x8(%rbp), %rax
movq (%rbp), %rcx
movq 0x20(%rax), %r14
movq 0x38(%r14), %rax
notq %rax
movq (%r12), %rdi
shlq $0x2, %rax
addq 0x48(%r14), %rax
movl (%rax,%rcx,4), %edx
leaq 0x8764(%rip), %rsi      # 0xab9e
xorl %eax, %eax
callq 0x2140
movq (%r12), %rdi
movq 0x30(%r14), %rdx
movq %r15, %rsi
xorl %eax, %eax
callq 0x2140
decq %r13
addq $-0x18, %rbp
cmpq $0x1, %r13
ja 0x2411
movq %rbx, 0x100000(%rbx)
andl $0x0, 0x101808(%rbx)
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/cmd/blu.c
// Function: main
int main(int argc, const char* argv[]) {
	if (argc == 1) {
		repl();
	} else if (argc == 2) {
		if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0) {
			help();
		} else if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-v") == 0) {
			version();
		} else {
			runFile(argv[1]);
		}
	} else {
		help();
		exit(64);
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
cmpl $0x2, %edi
je 0x2619
cmpl $0x1, %edi
jne 0x2782
xorl %eax, %eax
callq 0x75c1
movq %rax, %rbx
leaq 0x6a76(%rip), %rdi      # 0x9015
xorl %eax, %eax
callq 0x20f0
movq 0xca2b(%rip), %r13      # 0xefd8
movq (%r13), %rdx
movq %rsp, %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x2120
testq %rax, %rax
je 0x2602
leaq 0x6a4e(%rip), %r14      # 0x9018
movq %rsp, %r15
leaq 0x6a41(%rip), %r12      # 0x9015
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x76df
movq %r12, %rdi
xorl %eax, %eax
callq 0x20f0
movq (%r13), %rdx
movq %r15, %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x2120
testq %rax, %rax
jne 0x25d4
movl $0xa, %edi
callq 0x2040
movq %rbx, %rdi
callq 0x7659
jmp 0x276f
movq 0x8(%rsi), %rbx
leaq 0x69e0(%rip), %rsi      # 0x9004
movq %rbx, %rdi
callq 0x2130
testl %eax, %eax
je 0x267f
cmpb $0x2d, (%rbx)
jne 0x26ac
cmpb $0x68, 0x1(%rbx)
jne 0x2641
cmpb $0x0, 0x2(%rbx)
je 0x267f
leaq 0x69c3(%rip), %rsi      # 0x900b
movq %rbx, %rdi
callq 0x2130
testl %eax, %eax
je 0x2660
cmpb $0x76, 0x1(%rbx)
jne 0x26bf
cmpb $0x0, 0x2(%rbx)
jne 0x26bf
leaq 0x69c9(%rip), %rdi      # 0x9030
leaq 0x69bb(%rip), %rsi      # 0x9029
movl $0x1770, %edx           # imm = 0x1770
xorl %eax, %eax
callq 0x20f0
jmp 0x276f
leaq 0x6997(%rip), %rdi      # 0x901d
leaq 0x6998(%rip), %rsi      # 0x9025
leaq 0x6995(%rip), %rdx      # 0x9029
xorl %eax, %eax
callq 0x20f0
leaq 0x69f1(%rip), %rdi      # 0x9093
callq 0x2070
jmp 0x276f
leaq 0x6958(%rip), %rsi      # 0x900b
movq %rbx, %rdi
callq 0x2130
testl %eax, %eax
je 0x2660
xorl %eax, %eax
callq 0x75c1
movq %rax, %r14
leaq 0x6969(%rip), %rsi      # 0x9039
movq %rbx, %rdi
callq 0x21c0
testq %rax, %rax
je 0x2791
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x21a0
movq %r15, %rdi
callq 0x2150
movq %rax, %r13
movq %r15, %rdi
callq 0x2100
leaq 0x1(%r13), %rdi
callq 0x2170
testq %rax, %rax
je 0x2799
movq %rax, %r12
movl $0x1, %esi
movq %rax, %rdi
movq %r13, %rdx
movq %r15, %rcx
callq 0x2080
cmpq %r13, %rax
jb 0x27a1
movb $0x0, (%r12,%rax)
movq %r15, %rdi
callq 0x20d0
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x76df
movl %eax, %ebx
movq %r12, %rdi
callq 0x2030
movq %r14, %rdi
callq 0x7659
cmpl $0x3, %ebx
je 0x27a9
cmpl $0x2, %ebx
je 0x27b3
cmpl $0x1, %ebx
je 0x27bd
xorl %eax, %eax
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0x27c7
movl $0x40, %edi
callq 0x21f0
movq %rbx, %rdi
callq 0x2278
movq %rbx, %rdi
callq 0x2254
movq %rbx, %rdi
callq 0x2230
movl $0x4b, %edi
callq 0x21f0
movl $0x46, %edi
callq 0x21f0
movl $0x41, %edi
callq 0x21f0
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/chunk.c
// Function: bluChunkInit
void bluChunkInit(bluChunk* chunk) {
	chunk->file = NULL;
	chunk->name = NULL;

	ByteBufferInit(&chunk->code);
	IntBufferInit(&chunk->lines);
	IntBufferInit(&chunk->columns);

	bluValueBufferInit(&chunk->constants);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x10, %rdi
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
callq 0x27f4
leaq 0x20(%rbx), %rdi
callq 0x2886
leaq 0x30(%rbx), %rdi
callq 0x2886
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/chunk.c
// Function: bluChunkFree
void bluChunkFree(bluChunk* chunk) {
	ByteBufferFree(&chunk->code);
	IntBufferFree(&chunk->lines);
	IntBufferFree(&chunk->columns);

	bluValueBufferFree(&chunk->constants);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x10, %rdi
callq 0x27fb
leaq 0x20(%rbx), %rdi
callq 0x288d
leaq 0x30(%rbx), %rdi
callq 0x288d
movq 0x40(%rbx), %rdi
addq $0x40, %rbx
testq %rdi, %rdi
je 0x2a57
callq 0x2030
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: at
static void at(bluCompiler* compiler, bool canAssign) {
	if (compiler->classCompiler == NULL) {
		error(compiler, "Cannot use '@' outside of a class.");
		return;
	}

	variable(compiler, false);
	if (check(compiler, TOKEN_IDENTIFIER)) {
		dot(compiler, canAssign);
	}
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
addq $0x20, %rsi
cmpq $0x0, 0x18(%rdi)
je 0x2c4b
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3a54
movq 0x8(%rbx), %rax
cmpl $0x19, 0x40(%rax)
jne 0x2c60
movzbl %bpl, %esi
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %rbp
jmp 0x2f04
leaq 0x64c9(%rip), %rdx      # 0x911b
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %rbp
jmp 0x3a3b
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: binary
static void binary(bluCompiler* compiler, bool canAssign) {
	bluTokenType operatorType = compiler->parser->previous.type;

	ParseRule* rule = getRule(operatorType);
	parsePrecedence(compiler, (Precedence)(rule->precedence + 1));

	switch (operatorType) {
	case TOKEN_EQUAL_EQUAL: emitByte(compiler, OP_EQUAL); break;
	case TOKEN_BANG_EQUAL: emitByte(compiler, OP_NOT_EQUAL); break;
	case TOKEN_GREATER: emitByte(compiler, OP_GREATER); break;
	case TOKEN_GREATER_EQUAL: emitByte(compiler, OP_GREATER_EQUAL); break;
	case TOKEN_LESS: emitByte(compiler, OP_LESS); break;
	case TOKEN_LESS_EQUAL: emitByte(compiler, OP_LESS_EQUAL); break;
	case TOKEN_MINUS: emitByte(compiler, OP_SUBTRACT); break;
	case TOKEN_PERCENT: emitByte(compiler, OP_REMINDER); break;
	case TOKEN_PLUS: emitByte(compiler, OP_ADD); break;
	case TOKEN_SLASH: emitByte(compiler, OP_DIVIDE); break;
	case TOKEN_STAR: emitByte(compiler, OP_MULTIPLY); break;
	case TOKEN_CARET: emitByte(compiler, OP_POWER); break;
	default: return;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movl 0x20(%rax), %r14d
leaq (%r14,%r14,2), %rax
leaq 0xc26d(%rip), %rcx      # 0xf120
movl 0x10(%rcx,%rax,8), %esi
incl %esi
callq 0x404d
leal -0x1(%r14), %eax
cmpl $0x17, %eax
ja 0x2efc
movl $0xffa801, %ecx         # imm = 0xFFA801
btl %eax, %ecx
jae 0x2efc
movl %eax, %eax
leaq 0x6222(%rip), %rcx      # 0x90fc
movzbl (%rax,%rcx), %esi
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rdi
movl 0x54(%rax), %edx
movl 0x58(%rax), %ecx
addq $0x28, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2a5f
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: dot
static void dot(bluCompiler* compiler, bool canAssign) {
	consume(compiler, TOKEN_IDENTIFIER, "Expect property name after '.'.");
	uint16_t name = identifierConstant(compiler, &compiler->parser->previous);

	if (canAssign && match(compiler, TOKEN_EQUAL)) {
		expression(compiler);
		emitByte(compiler, OP_SET_PROPERTY);
		emitShort(compiler, name);
	} else if (match(compiler, TOKEN_LEFT_PAREN)) {
		uint8_t argCount = argumentList(compiler);
		emitBytes(compiler, OP_INVOKE, argCount);
		emitShort(compiler, name);
	} else {
		emitByte(compiler, OP_GET_PROPERTY);
		emitShort(compiler, name);
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x6501(%rip), %rdx      # 0x9416
movl $0x19, %esi
callq 0x3c36
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
movq 0x28(%rax), %rsi
movzbl 0x30(%rax), %edx
callq 0x6239
movq %rbx, %rdi
movl $0x3, %esi
movq %rax, %rdx
callq 0x3c03
movl %eax, %ebp
movq 0x8(%rbx), %rax
movl 0x40(%rax), %ecx
cmpl $0xf, %ecx
sete %dl
andb %r14b, %dl
cmpb $0x1, %dl
jne 0x2f83
movq %rbx, %rdi
callq 0x34a2
movq %rbx, %rdi
callq 0x3d56
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rdi
movl 0x54(%rax), %edx
movl 0x58(%rax), %ecx
addq $0x28, %rdi
movl $0xe, %esi
jmp 0x2fbd
cmpl $0x7, %ecx
jne 0x2faa
movq %rbx, %rdi
callq 0x34a2
movq %rbx, %rdi
callq 0x3b0f
movzbl %al, %edx
movq %rbx, %rdi
movl $0x13, %esi
callq 0x3b7f
jmp 0x2fc2
movq 0x28(%rbx), %rdi
movl 0x54(%rax), %edx
movl 0x58(%rax), %ecx
addq $0x28, %rdi
movl $0xd, %esi
callq 0x2a5f
movzwl %bp, %esi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3bbf
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: array
static void array(bluCompiler* compiler, bool canAssign) {
	uint16_t len = 0;

	consumeNewlines(compiler);

	while (!check(compiler, TOKEN_RIGHT_BRACKET) && !check(compiler, TOKEN_EOF)) {
		if (len > 0) {
			consume(compiler, TOKEN_COMMA, "Expect ',' between expressions.");
			consumeNewlines(compiler);
		}

		expression(compiler);
		consumeNewlines(compiler);

		len++;
	}

	consume(compiler, TOKEN_RIGHT_BRACKET, "Expect ']' after array.");

	emitByte(compiler, OP_ARRAY);
	emitShort(compiler, len);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x43b2
xorl %ebp, %ebp
leaq 0x6450(%rip), %r14      # 0x9436
movq 0x8(%rbx), %rax
movl 0x40(%rax), %eax
cmpl $0x9, %eax
je 0x3028
cmpl $0x2f, %eax
je 0x3028
testw %bp, %bp
je 0x3014
movq %rbx, %rdi
movl $0x3, %esi
movq %r14, %rdx
callq 0x3c36
movq %rbx, %rdi
callq 0x43b2
movq %rbx, %rdi
callq 0x3d56
movq %rbx, %rdi
callq 0x43b2
incl %ebp
jmp 0x2fe6
leaq 0x6427(%rip), %rdx      # 0x9456
movq %rbx, %rdi
movl $0x9, %esi
callq 0x3c36
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rdi
movl 0x54(%rax), %edx
movl 0x58(%rax), %ecx
addq $0x28, %rdi
movl $0x4, %esi
callq 0x2a5f
movzwl %bp, %esi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3bbf
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: subscript
static void subscript(bluCompiler* compiler, bool canAssign) {
	expression(compiler);
	consume(compiler, TOKEN_RIGHT_BRACKET, "Expect ']' after subscript operator.");

	if (canAssign && match(compiler, TOKEN_EQUAL)) {
		expression(compiler);
		emitByte(compiler, OP_SUBSCRIPT_SET);
	} else {
		emitByte(compiler, OP_SUBSCRIPT_GET);
	}
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0x3d56
leaq 0x63f3(%rip), %rdx      # 0x946e
movq %rbx, %rdi
movl $0x9, %esi
callq 0x3c36
movq 0x8(%rbx), %rcx
movb $0x10, %al
testl %ebp, %ebp
je 0x30ae
cmpl $0xf, 0x40(%rcx)
jne 0x30ae
movq %rbx, %rdi
callq 0x34a2
movq %rbx, %rdi
callq 0x3d56
movq 0x8(%rbx), %rcx
movb $0x11, %al
movq 0x28(%rbx), %rdi
movl 0x54(%rcx), %edx
movl 0x58(%rcx), %ecx
addq $0x28, %rdi
movzbl %al, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2a5f
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: and
static void and (bluCompiler * compiler, bool canAssign) {
	int32_t endJump = emitJump(compiler, OP_JUMP_IF_FALSE);
	emitByte(compiler, OP_POP);

	parsePrecedence(compiler, PREC_AND);

	patchJump(compiler, endJump);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x16, %esi
callq 0x4438
movl %eax, %ebp
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rdi
movl 0x54(%rax), %edx
movl 0x58(%rax), %ecx
addq $0x28, %rdi
movl $0x5, %esi
callq 0x2a5f
movq %rbx, %rdi
movl $0x3, %esi
callq 0x404d
movq 0x28(%rbx), %rcx
movl 0x40(%rcx), %eax
subl %ebp, %eax
addl $-0x2, %eax
movq 0x38(%rcx), %rdx
movslq %ebp, %rsi
movb %ah, (%rdx,%rsi)
movq 0x38(%rcx), %rcx
movb %al, 0x1(%rcx,%rsi)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: literal
static void literal(bluCompiler* compiler, bool canAssign) {
	switch (compiler->parser->previous.type) {
	case TOKEN_FALSE: emitByte(compiler, OP_FALSE); break;
	case TOKEN_NIL: emitByte(compiler, OP_NIL); break;
	case TOKEN_TRUE: emitByte(compiler, OP_TRUE); break;
	default: __builtin_unreachable();
	}
}

// Assembly:
movq 0x8(%rdi), %rcx
movq 0x28(%rdi), %rdi
movl 0x20(%rcx), %eax
movl 0x54(%rcx), %edx
movl 0x58(%rcx), %ecx
cmpl $0x22, %eax
je 0x3239
cmpl $0x2c, %eax
jne 0x323d
movb $0x3, %al
jmp 0x323f
movb $0x1, %al
jmp 0x323f
movb $0x2, %al
addq $0x28, %rdi
movzbl %al, %esi
jmp 0x2a5f
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: or
static void or (bluCompiler * compiler, bool canAssign) {
	int32_t endJump = emitJump(compiler, OP_JUMP_IF_TRUE);
	emitByte(compiler, OP_POP);

	parsePrecedence(compiler, PREC_OR);

	patchJump(compiler, endJump);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x17, %esi
callq 0x4438
movl %eax, %ebp
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rdi
movl 0x54(%rax), %edx
movl 0x58(%rax), %ecx
addq $0x28, %rdi
movl $0x5, %esi
callq 0x2a5f
movq %rbx, %rdi
movl $0x2, %esi
callq 0x404d
movq 0x28(%rbx), %rcx
movl 0x40(%rcx), %eax
subl %ebp, %eax
addl $-0x2, %eax
movq 0x38(%rcx), %rdx
movslq %ebp, %rsi
movb %ah, (%rdx,%rsi)
movq 0x38(%rcx), %rcx
movb %al, 0x1(%rcx,%rsi)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: bluCompile
bluObjFunction* bluCompile(bluVM* vm, const char* source, const char* file) {
	bluParser parser;
	bluParserInit(&parser, source);

	bluCompiler compiler;
	compiler.vm = vm;
	compiler.parser = &parser;
	compiler.classCompiler = NULL;
	compiler.file = file;
	initCompiler(&compiler, NULL, 0, TYPE_TOP_LEVEL);

	do {
		advance(&compiler);
	} while (check(&compiler, TOKEN_NEWLINE));

	while (!match(&compiler, TOKEN_EOF)) {
		declaration(&compiler);
	}

	bluObjFunction* function = endCompiler(&compiler);
	function->chunk.file = file;
	function->chunk.name = "__main";

#ifdef DEBUG_COMPILER_DISASSEMBLE
	bluDisassembleChunk(&function->chunk);
#endif

	freeCompiler(&compiler);

	return compiler.hadError ? NULL : function;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movq %rdi, %r15
leaq 0x60(%rsp), %r12
movq %r12, %rdi
callq 0x6800
movq %rsp, %r14
movq %r15, (%r14)
movq %r12, 0x8(%r14)
movq $0x0, 0x18(%r14)
movq %rbx, 0x20(%r14)
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x338b
movq %r14, %rdi
callq 0x34a2
movq 0x8(%rsp), %rax
cmpl $0x8, 0x20(%rax)
je 0x32f0
movl 0x40(%rax), %eax
cmpl $0x30, %eax
je 0x32f0
cmpl $0x2f, %eax
je 0x3326
movq %rsp, %r14
movq %r14, %rdi
callq 0x355f
movq 0x8(%rsp), %rax
cmpl $0x2f, 0x40(%rax)
jne 0x3313
movq %rsp, %r14
movq %r14, %rdi
callq 0x34a2
movq 0x28(%r14), %r14
movslq 0x40(%r14), %rax
testq %rax, %rax
je 0x3349
movq 0x38(%r14), %rcx
cmpb $0x30, -0x1(%rcx,%rax)
je 0x3358
movq %rsp, %r14
movq %r14, %rdi
callq 0x4b68
movq 0x28(%r14), %r14
movq %rbx, 0x28(%r14)
leaq 0x5db1(%rip), %rax      # 0x9114
movq %rax, 0x30(%r14)
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x39fb
xorl %eax, %eax
cmpb $0x0, 0x59(%rbx)
cmoveq %r14, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: initCompiler
static void initCompiler(bluCompiler* compiler, bluCompiler* enclosing, int8_t scopeDepth, bluFunctionType type) {
	if (enclosing != NULL) {
		compiler->vm = enclosing->vm;
		compiler->parser = enclosing->parser;

		compiler->classCompiler = enclosing->classCompiler;

		compiler->file = enclosing->file;
	}

	compiler->enclosing = enclosing;
	compiler->scopeDepth = scopeDepth;
	compiler->type = type;
	compiler->function = bluNewFunction(compiler->vm);

	compiler->hadError = false;
	compiler->panicMode = false;

	bluLocalBufferInit(&compiler->locals);
	bluUpvalueBufferInit(&compiler->upvalues);

	switch (type) {

	case TYPE_FUNCTION:
	case TYPE_METHOD:
	case TYPE_INITIALIZER: {
		bluToken previous = compiler->parser->previous;
		compiler->function->name = bluCopyString(compiler->vm, previous.start, previous.length);
		break;
	}

	case TYPE_ANONYMOUS:
	case TYPE_TOP_LEVEL: {
		compiler->function->name = NULL;
		break;
	}
	}

	bluLocal local;
	local.depth = compiler->scopeDepth;
	local.isUpvalue = false;

	if (type == TYPE_METHOD || type == TYPE_INITIALIZER) {
		// In a method, it holds the receiver, "@".
		local.name.start = "@";
		local.name.length = 1;
	} else {
		// In a function, it holds the function, but cannot be references, so has no name.
		local.name.start = "";
		local.name.length = 0;
	}

	bluLocalBufferWrite(&compiler->locals, local);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl %ecx, %ebp
movq %rdi, %rbx
testq %rsi, %rsi
je 0x33b5
movq (%rsi), %rdi
movq %rdi, (%rbx)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rbx)
movups 0x18(%rsi), %xmm0
movups %xmm0, 0x18(%rbx)
jmp 0x33b8
movq (%rbx), %rdi
movq %rsi, 0x10(%rbx)
movb %dl, 0x58(%rbx)
movl %ebp, 0x30(%rbx)
callq 0x64ac
movq %rax, 0x28(%rbx)
movw $0x0, 0x59(%rbx)
leaq 0x38(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x48(%rbx)
movl $0x1a, %ecx
btl %ebp, %ecx
jae 0x3423
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
movq 0x28(%rax), %rsi
movzbl 0x30(%rax), %edx
callq 0x6239
movq 0x28(%rbx), %rcx
movq %rax, 0x78(%rcx)
addl $-0x3, %ebp
cmpl $0x2, %ebp
setb %al
leaq 0x5db1(%rip), %rdx      # 0x91c7
leaq 0x5c07(%rip), %rcx      # 0x9024
cmovbq %rdx, %rcx
jmp 0x3434
movq $0x0, 0x78(%rax)
leaq 0x5bf2(%rip), %rcx      # 0x9024
xorl %eax, %eax
movb 0x58(%rbx), %dl
movq %rcx, 0x40(%rsp)
movb %al, 0x48(%rsp)
movq 0x61(%rsp), %rax
movq 0x68(%rsp), %rcx
movq %rax, 0x49(%rsp)
movq %rcx, 0x50(%rsp)
movb %dl, 0x58(%rsp)
movb $0x0, 0x59(%rsp)
movl 0x32(%rsp), %eax
movl %eax, 0x5a(%rsp)
movzwl 0x36(%rsp), %eax
movw %ax, 0x5e(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x38(%rsp), %xmm0
movups 0x48(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
movl $0x1, %esi
callq 0x2ab0
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/adamjedlicka[P]blu/src/vm/compiler/compiler.c
// Function: advance
static void advance(bluCompiler* compiler) {
	compiler->parser->previous = compiler->parser->current;

	while (true) {
		compiler->parser->current = bluParserNextToken(compiler->parser);
		if (compiler->parser->current.type != TOKEN_ERROR) break;

		errorAtCurrent(compiler, compiler->parser->current.start);
	}

	skipNewlines(compiler);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movups 0x40(%rax), %xmm0
movups 0x50(%rax), %xmm1
movups %xmm1, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movq 0x8(%rdi), %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6826
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x50(%r14)
movups %xmm0, 0x40(%r14)
movq 0x8(%rbx), %rax
cmpl $0x31, 0x40(%rax)
jne 0x3534
leaq 0x40(%rax), %rsi
movq %rsp, %r14
movq 0x48(%rax), %rdx
movq %rbx, %rdi
callq 0x3a3b
movq 0x8(%rbx), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x6826
movups (%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups %xmm1, 0x50(%r15)
movups %xmm0, 0x40(%r15)
movq 0x8(%rbx), %rax
leaq 0x40(%rax), %rsi
cmpl $0x31, 0x40(%rax)
je 0x34f8
movl 0x20(%rax), %eax
cmpq $0x30, %rax
ja 0x3555
movabsq $0x1000000000930, %rcx  # imm = 0x1000000000930
btq %rax, %rcx
jae 0x3555
movq %rbx, %rdi
callq 0x43b2
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq