LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/hsjoihs[P]c-compiler/lexer.c
// Function: read_all_tokens
struct Tokvec read_all_tokens(const char *str)
{
	struct Token tok;
	int tok_num;
	{
		const char *str2 = str;
		tok_num = count_all_tokens(str2);
	}

	/* 1 additional for extra NEWLINE */
	struct Token *tokvec = calloc(tok_num + 1, sizeof(struct Token));

	tok.kind = BEGINNING;
	tok.ident_str = 0;
	tok.token_begins_here = str;

	tokvec[0] = tok;

	for (int i = 1;; ++i) {
		tok = get_token(&str);
		tokvec[i] = tok;

		if (tok.kind == END) {
			tokvec[i + 1] = tok;
			tokvec[i].kind = NEWLINE;
			break;
		}
	}

	struct Tokvec t;
	t.tok_num = tok_num + 1;
	t.v = tokvec;
	return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r15
movq %rdi, -0x30(%rbp)
leaq -0x58(%rbp), %r14
movq %rdi, (%r14)
movl $0x2, %ebx
leaq -0x50(%rbp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0xc427
incq %rbx
cmpl $0x2, -0x50(%rbp)
jne 0xc37c
movl $0x20, %esi
movq %rbx, %rdi
callq 0x10d0
movq %rax, %r14
movl $0x3, (%rax)
movq %r15, 0x18(%rax)
movq %rax, %r13
addq $0x38, %r13
leaq -0x50(%rbp), %r15
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xc427
movl -0x50(%rbp), %edi
movl -0x4c(%rbp), %eax
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rsi
movl %edi, -0x18(%r13)
movl %eax, -0x14(%r13)
movq %rcx, -0x10(%r13)
movq %rdx, -0x8(%r13)
movq %rsi, (%r13)
addq $0x20, %r13
cmpl $0x2, %edi
jne 0xc3b9
movl $0x2, -0x18(%r13)
movl %eax, -0x14(%r13)
movq %rcx, -0x10(%r13)
movq %rdx, -0x8(%r13)
movq %rsi, (%r13)
movl $0x4c, -0x38(%r13)
movl %ebx, %eax
movq %r14, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/hsjoihs[P]c-compiler/codegen_switch.c
// Function: collect_labels_visible_from_switch
static struct Vector /*<SourceLabel>*/
collect_labels_visible_from_switch(const struct Statement *ptr_sta)
{
	struct Statement sta = *ptr_sta;
	struct Vector /*<SourceLabel>*/ ans = init_vector();
	concat_vector(&ans, &sta.labels);
	switch (sta.category) {
	case RETURN_STATEMENT:
	case BREAK_STATEMENT:
	case CONTINUE_STATEMENT:
	case GOTO_STATEMENT:
	case EXPRESSION_STATEMENT:
	case DECLARATION_STATEMENT:
		/* nothing */
		break;
	case SWITCH_STATEMENT:
		/* do nothing; don't peek labels */
		break;

	case IF_STATEMENT:
	case FOR_STATEMENT:
	case WHILE_STATEMENT:
	case DO_WHILE_STATEMENT: {
		const struct Vector /*<SourceLabel>*/ inner_vec =
		    collect_labels_visible_from_switch(sta.inner_statement);
		concat_vector(&ans, &inner_vec);
		break;
	}

	case COMPOUND_STATEMENT:
	case IF_ELSE_STATEMENT: {
		struct Vector /*<Statement>*/ statement_vec = sta.statement_vector;
		for (int counter = 0; counter != statement_vec.length; ++counter) {
			const struct Statement *ptr_ith = statement_vec.vector[counter];
			const struct Vector /*<SourceLabel>*/ inner_vec =
			    collect_labels_visible_from_switch(ptr_ith);
			concat_vector(&ans, &inner_vec);
		}
		break;
	}
	}
	return ans;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3b8, %rsp            # imm = 0x3B8
movq %rdi, %rsi
leaq -0x3d8(%rbp), %rbx
movl $0x390, %edx            # imm = 0x390
movq %rbx, %rdi
callq 0x1100
callq 0x5cf8
leaq -0x38(%rbp), %rdi
movq %rax, (%rdi)
movq %rdx, 0x8(%rdi)
leaq -0x60(%rbp), %rsi
callq 0x5df4
movl (%rbx), %eax
cmpl $0x5, %eax
ja 0xd221
movl $0x3a, %ecx
btl %eax, %ecx
jae 0xd1df
movq -0xc0(%rbp), %rdi
callq 0xd168
leaq -0x48(%rbp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
leaq -0x38(%rbp), %rdi
callq 0x5df4
jmp 0xd221
movl -0x3d0(%rbp), %r15d
testq %r15, %r15
je 0xd221
movq -0x3c8(%rbp), %r12
xorl %r13d, %r13d
leaq -0x38(%rbp), %rbx
leaq -0x48(%rbp), %r14
movq (%r12,%r13,8), %rdi
callq 0xd168
movq %rax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5df4
incq %r13
cmpq %r13, %r15
jne 0xd1fd
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rdx
addq $0x3b8, %rsp            # imm = 0x3B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/hsjoihs[P]c-compiler/file_io.c
// Function: read_from_file
char *read_from_file(struct __FILE *fp)
{
	int size = 1;
	int capacity = 50000;
	char *str = calloc(capacity, sizeof(char));
	char buffer[1024];

	while (fgets(buffer, 1024, fp)) {
		size += strlen(buffer);
		if (size > capacity) {
			capacity *= 2;
			str = realloc(str, capacity);
		}
		strcat(str, buffer);
	}

	return str;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, %rbx
movl $0x1, %r12d
movl $0xc350, %edi           # imm = 0xC350
movl $0x1, %esi
callq 0x10d0
movq %rax, %r14
leaq -0x430(%rbp), %rdi
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdx
callq 0x10c0
testq %rax, %rax
je 0xd2d5
movl $0xc350, %r13d          # imm = 0xC350
leaq -0x430(%rbp), %r15
movq %r15, %rdi
callq 0x1060
movslq %r12d, %r12
addq %rax, %r12
cmpl %r12d, %r13d
jge 0xd2b5
addl %r13d, %r13d
movslq %r13d, %rsi
movq %r14, %rdi
callq 0x1120
movq %rax, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x1150
movq %r15, %rdi
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdx
callq 0x10c0
testq %rax, %rax
jne 0xd291
movq %r14, %rax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/hsjoihs[P]c-compiler/cpp.c
// Function: replace_recursively
static void
replace_recursively(const struct Map2 /*<struct Vector<struct Token>*/ *def_map,
                    struct Map2 *used_map, const struct Token *src,
                    struct Token *ptr_dst)
{
	if (src[0].kind == IDENT_OR_RESERVED && isElem(def_map, src[0].ident_str) &&
	    !isElem(used_map, src[0].ident_str)) {
		struct Vector /*<struct Token>*/ *p = lookup(def_map, src[0].ident_str);

#ifdef __STDC__
#warning only one token
#endif

		const struct Token *replace_with = p->vector[0];

		int u;
		insert(used_map, src[0].ident_str,
		       &u /* this can be any arbitrary non-null pointer*/);

		replace_recursively(def_map, used_map, replace_with, ptr_dst);

	} else {
		*ptr_dst = src[0];
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
cmpl $0x18, (%rdx)
jne 0xd97a
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%r12), %rsi
callq 0xa3f8
testl %eax, %eax
je 0xd97a
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0xa3f8
testl %eax, %eax
je 0xd99b
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r12), %rsi
movq %r15, %rdi
callq 0xa39c
movq 0x8(%rax), %rax
movq (%rax), %r13
movq 0x8(%r12), %rsi
leaq -0x2c(%rbp), %rdx
movq %r14, %rdi
callq 0xa344
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0xd93c
jmp 0xd98c
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: ufat_cache_evict
int ufat_cache_evict(struct ufat *uf, ufat_block_t start, ufat_block_t count)
{
	unsigned int i;

	for (i = 0; i < uf->cache_size; i++) {
		struct ufat_cache_desc *d = &uf->cache_desc[i];

		if ((d->flags & UFAT_CACHE_FLAG_PRESENT) &&
		    d->index >= start && d->index < start + count) {
			int err = cache_flush(uf, i);

			if (err < 0)
				return err;

			d->flags = 0;
		}
	}

	return 0;
}

// Assembly:
movl 0x74(%rdi), %eax
testl %eax, %eax
je 0x197a
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x80(%rdi), %r13
addq %rsi, %rbx
xorl %r12d, %r12d
testb $0x2, (%r13)
je 0x1968
movq 0x8(%r13), %rcx
cmpq %r14, %rcx
setb %dl
cmpq %rbx, %rcx
setae %cl
orb %dl, %cl
jne 0x1968
movq %r15, %rdi
movl %r12d, %esi
callq 0x198c
testl %eax, %eax
js 0x197d
movl $0x0, (%r13)
movl 0x74(%r15), %eax
incq %r12
movl %eax, %ecx
addq $0x10, %r13
cmpq %rcx, %r12
jb 0x1932
xorl %eax, %eax
jmp 0x1982
xorl %eax, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: cache_flush
static int cache_flush(struct ufat *uf, unsigned int cache_index)
{
	struct ufat_cache_desc *d = &uf->cache_desc[cache_index];

	if (!(d->flags & UFAT_CACHE_FLAG_DIRTY) ||
	    !(d->flags & UFAT_CACHE_FLAG_PRESENT))
		return 0;

	if (uf->dev->write(uf->dev, d->index, 1,
			   ufat_cache_data(uf, cache_index)) < 0)
		return -UFAT_ERR_IO;

	uf->stat.cache_flush++;
	uf->stat.write++;
	uf->stat.write_blocks++;

	/* If this block is part of the FAT, mirror it to the other FATs. Not
	 * a fatal error if this fails.
	 */
	if (d->index >= uf->bpb.fat_start &&
	    d->index < uf->bpb.fat_start + uf->bpb.fat_size) {
		unsigned int i;
		ufat_block_t b = d->index;

		for (i = 1; i < uf->bpb.fat_count; i++) {
			b += uf->bpb.fat_size;
			uf->dev->write(uf->dev, b, 1,
				       ufat_cache_data(uf, cache_index));

			uf->stat.write++;
			uf->stat.write_blocks++;
		}
	}

	d->flags &= ~UFAT_CACHE_FLAG_DIRTY;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %eax
shlq $0x4, %rax
movl 0x80(%rdi,%rax), %ecx
notl %ecx
xorl %ebx, %ebx
testb $0x3, %cl
jne 0x1a5c
movl %esi, %ebp
movq %rdi, %r14
leaq (%rdi,%rax), %r15
addq $0x80, %r15
movq (%rdi), %rdi
movq 0x8(%r15), %rsi
movb (%rdi), %cl
movl %ebp, %eax
shll %cl, %eax
leaq (%r14,%rax), %rcx
addq $0x180, %rcx            # imm = 0x180
movl $0x1, %edx
callq *0x10(%rdi)
testl %eax, %eax
js 0x1a57
incl 0x24(%r14)
incl 0xc(%r14)
incl 0x14(%r14)
movq %r15, (%rsp)
movq 0x8(%r15), %r15
movq 0x30(%r14), %rax
cmpq %rax, %r15
jb 0x1a4e
addq 0x38(%r14), %rax
cmpq %rax, %r15
jae 0x1a4e
cmpl $0x2, 0x40(%r14)
jb 0x1a4e
leaq 0x180(%r14), %r13
movl $0x1, %r12d
addq 0x38(%r14), %r15
movq (%r14), %rdi
movb (%rdi), %cl
movl %ebp, %eax
shll %cl, %eax
addq %r13, %rax
movl $0x1, %edx
movq %r15, %rsi
movq %rax, %rcx
callq *0x10(%rdi)
incl 0xc(%r14)
incl 0x14(%r14)
incl %r12d
cmpl 0x40(%r14), %r12d
jb 0x1a1f
movq (%rsp), %rax
andb $-0x2, (%rax)
jmp 0x1a5c
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: ufat_cache_invalidate
void ufat_cache_invalidate(struct ufat *uf, ufat_block_t start,
			   ufat_block_t count)
{
	unsigned int i;

	for (i = 0; i < uf->cache_size; i++) {
		struct ufat_cache_desc *d = &uf->cache_desc[i];

		if ((d->flags & UFAT_CACHE_FLAG_PRESENT) &&
		    d->index >= start && d->index < start + count)
			d->flags = 0;
	}
}

// Assembly:
movl 0x74(%rdi), %eax
testq %rax, %rax
je 0x1ab7
addq %rsi, %rdx
shlq $0x4, %rax
xorl %ecx, %ecx
testb $0x2, 0x80(%rdi,%rcx)
je 0x1aae
movq 0x88(%rdi,%rcx), %r8
cmpq %rsi, %r8
setb %r9b
cmpq %rdx, %r8
setae %r8b
orb %r9b, %r8b
jne 0x1aae
movl $0x0, 0x80(%rdi,%rcx)
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0x1a7e
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: ufat_sync
int ufat_sync(struct ufat *uf)
{
	unsigned int i;
	int ret = 0;

	for (i = 0; i < uf->cache_size; i++) {
		int err = cache_flush(uf, i);

		if (err)
			ret = err;
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
cmpl $0x0, 0x74(%rdi)
je 0x1e9e
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x198c
testl %eax, %eax
cmovnel %eax, %ebp
incl %r14d
cmpl 0x74(%rbx), %r14d
jb 0x1e83
jmp 0x1ea0
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: ufat_count_free_clusters
int ufat_count_free_clusters(struct ufat *uf, ufat_cluster_t *free_clusters)
{
	ufat_cluster_t idx;
	ufat_cluster_t local_free_clusters = 0;
	const ufat_cluster_t total = uf->bpb.num_clusters;

	/* Skip first two "special" clusters */
	for (idx = 2; idx < total; idx++) {
		ufat_cluster_t c;
		int err;

		/* Never use this cluster index in a FAT12 system */
		if (idx == 0xff0 && uf->bpb.type == UFAT_TYPE_FAT12)
			continue;

		err = ufat_read_fat(uf, idx, &c);
		if (err < 0)
			return err;

		if (c == UFAT_CLUSTER_FREE)
			local_free_clusters++;
	}

	*free_clusters = local_free_clusters;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, 0x10(%rsp)
movl 0x50(%rdi), %r13d
xorl %ebx, %ebx
movl $0x0, %r14d
cmpl $0x3, %r13d
jb 0x1f16
movq %rdi, %r15
xorl %r14d, %r14d
movl $0x2, %ebp
leaq 0xc(%rsp), %r12
cmpl $0xff0, %ebp            # imm = 0xFF0
jne 0x1ef5
cmpl $0xc, 0x28(%r15)
je 0x1f0f
movq %r15, %rdi
movl $0xff0, %esi            # imm = 0xFF0
jmp 0x1efa
movq %r15, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x1f33
testl %eax, %eax
js 0x1f20
cmpl $0x1, 0xc(%rsp)
adcl $0x0, %r14d
incl %ebp
cmpl %ebp, %r13d
jne 0x1edc
movq 0x10(%rsp), %rax
movl %r14d, (%rax)
jmp 0x1f22
movl %eax, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: ufat_read_fat
int ufat_read_fat(struct ufat *uf, ufat_cluster_t index,
		  ufat_cluster_t *out)
{
	if (index >= uf->bpb.num_clusters)
		return -UFAT_ERR_INVALID_CLUSTER;

	switch (uf->bpb.type) {
	case UFAT_TYPE_FAT12: return read_fat12(uf, index, out);
	case UFAT_TYPE_FAT16: return read_fat16(uf, index, out);
	case UFAT_TYPE_FAT32: return read_fat32(uf, index, out);
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl $0xfffffffb, %ebp       # imm = 0xFFFFFFFB
cmpl %esi, 0x50(%rdi)
jbe 0x20ee
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
movl 0x28(%rdi), %eax
cmpl $0x20, %eax
je 0x2030
cmpl $0x10, %eax
je 0x1fcb
xorl %ebp, %ebp
cmpl $0xc, %eax
jne 0x20ee
movl %r15d, %r12d
shrl %r12d
leal (%r12,%r12,2), %esi
incl %esi
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
callq 0x23f2
testl %eax, %eax
js 0x20ec
leal (%r12,%r12,2), %esi
testb $0x1, %r15b
jne 0x209e
leaq 0xe(%rsp), %rdx
movq %r14, %rdi
callq 0x23f2
testl %eax, %eax
js 0x20ec
movzbl 0xe(%rsp), %ecx
movzbl 0xf(%rsp), %eax
andl $0xf, %eax
shll $0x8, %eax
jmp 0x20c2
movq (%r14), %rax
movl (%rax), %r12d
decl %r12d
movl %r15d, %esi
movl %r12d, %ecx
shrl %cl, %esi
addq 0x30(%r14), %rsi
xorl %ebp, %ebp
movq %r14, %rdi
xorl %edx, %edx
callq 0x1ab8
testl %eax, %eax
js 0x209a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r12d, %ecx
shll %cl, %edx
notl %edx
movq (%r14), %rcx
movb (%rcx), %cl
shll %cl, %eax
andl %r15d, %edx
addq %r14, %rax
movzwl 0x180(%rax,%rdx,2), %eax
cmpl $0xfff7, %eax           # imm = 0xFFF7
movl $0xffffff7, %ecx        # imm = 0xFFFFFF7
cmovnel %eax, %ecx
cmpw $-0x8, %ax
movl $0xffffff8, %eax        # imm = 0xFFFFFF8
cmovbl %ecx, %eax
jmp 0x2096
movq (%r14), %rax
movl (%rax), %r12d
addl $-0x2, %r12d
movl %r15d, %esi
movl %r12d, %ecx
shrl %cl, %esi
addq 0x30(%r14), %rsi
xorl %ebp, %ebp
movq %r14, %rdi
xorl %edx, %edx
callq 0x1ab8
testl %eax, %eax
js 0x209a
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r12d, %ecx
shll %cl, %edx
notl %edx
andl %r15d, %edx
movq (%r14), %rcx
movb (%rcx), %cl
shll %cl, %eax
addq %r14, %rax
shll $0x2, %edx
movzwl 0x180(%rdx,%rax), %ecx
movzwl 0x182(%rdx,%rax), %eax
shll $0x10, %eax
andl $0xfff0000, %eax        # imm = 0xFFF0000
orl %ecx, %eax
movl $0xffffff8, %ecx        # imm = 0xFFFFFF8
cmpl %ecx, %eax
cmovael %ecx, %eax
movl %eax, (%rbx)
jmp 0x20ee
movl %eax, %ebp
jmp 0x20ee
addl $0x2, %esi
leaq 0xe(%rsp), %rdx
movq %r14, %rdi
callq 0x23f2
testl %eax, %eax
js 0x20ec
movzbl 0xe(%rsp), %ecx
shll $0x4, %ecx
movzbl 0xf(%rsp), %eax
shrl $0x4, %eax
orl %ecx, %eax
cmpl $0xff7, %eax            # imm = 0xFF7
movl $0xffffff7, %ecx        # imm = 0xFFFFFF7
cmovnel %eax, %ecx
cmpl $0xff0, %eax            # imm = 0xFF0
movl $0xffffff8, %edx        # imm = 0xFFFFFF8
cmovel %edx, %ecx
cmpl $0xff8, %eax            # imm = 0xFF8
cmovael %edx, %ecx
movl %ecx, (%rbx)
xorl %ebp, %ebp
jmp 0x20ee
movl %eax, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: ufat_write_fat
int ufat_write_fat(struct ufat *uf, ufat_cluster_t index,
		   ufat_cluster_t in)
{
	if (index >= uf->bpb.num_clusters)
		return -UFAT_ERR_INVALID_CLUSTER;

	switch (uf->bpb.type) {
	case UFAT_TYPE_FAT12: return write_fat12(uf, index, in);
	case UFAT_TYPE_FAT16: return write_fat16(uf, index, in);
	case UFAT_TYPE_FAT32: return write_fat32(uf, index, in);
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl $0xfffffffb, %r15d      # imm = 0xFFFFFFFB
cmpl %esi, 0x50(%rdi)
jbe 0x22b0
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movl 0x28(%rdi), %eax
cmpl $0x20, %eax
je 0x220b
cmpl $0x10, %eax
je 0x21aa
xorl %r15d, %r15d
cmpl $0xc, %eax
jne 0x22b0
movl %ebp, %eax
shrl %eax
leal (%rax,%rax,2), %r12d
testb $0x1, %bpl
jne 0x226d
movzbl %bl, %edx
movq %r14, %rdi
movl %r12d, %esi
movl $0xff, %ecx
callq 0x2452
testl %eax, %eax
js 0x22ad
incl %r12d
shrl $0x8, %ebx
andl $0xf, %ebx
movq %r14, %rdi
movl %r12d, %esi
movl %ebx, %edx
movl $0xf, %ecx
jmp 0x22a0
movq (%r14), %rax
movl (%rax), %r12d
decl %r12d
movl %ebp, %esi
movl %r12d, %ecx
shrl %cl, %esi
addq 0x30(%r14), %rsi
xorl %r15d, %r15d
movq %r14, %rdi
xorl %edx, %edx
callq 0x1ab8
testl %eax, %eax
js 0x2268
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r12d, %ecx
shll %cl, %edx
incl 0x20(%r14)
movl %eax, %ecx
shlq $0x4, %rcx
orb $0x1, 0x80(%r14,%rcx)
movq (%r14), %rcx
movb (%rcx), %cl
shll %cl, %eax
notl %edx
andl %ebp, %edx
addq %r14, %rax
movw %bx, 0x180(%rax,%rdx,2)
jmp 0x22b0
movq (%r14), %rax
movl (%rax), %r12d
addl $-0x2, %r12d
movl %ebp, %esi
movl %r12d, %ecx
shrl %cl, %esi
addq 0x30(%r14), %rsi
xorl %r15d, %r15d
movq %r14, %rdi
xorl %edx, %edx
callq 0x1ab8
testl %eax, %eax
js 0x2268
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r12d, %ecx
shll %cl, %edx
incl 0x20(%r14)
movl %eax, %ecx
shlq $0x4, %rcx
orb $0x1, 0x80(%r14,%rcx)
notl %edx
movq (%r14), %rcx
movb (%rcx), %cl
shll %cl, %eax
andl %ebp, %edx
addq %r14, %rax
shll $0x2, %edx
movl %ebx, 0x180(%rdx,%rax)
jmp 0x22b0
movl %eax, %r15d
jmp 0x22b0
leal 0x1(%r12), %esi
movl %ebx, %eax
shlb $0x4, %al
movzbl %al, %edx
movq %r14, %rdi
movl $0xf0, %ecx
callq 0x2452
testl %eax, %eax
js 0x22ad
addl $0x2, %r12d
shrl $0x4, %ebx
movzbl %bl, %edx
movq %r14, %rdi
movl %r12d, %esi
movl $0xff, %ecx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2452
movl %eax, %r15d
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: ufat_free_chain
int ufat_free_chain(struct ufat *uf, ufat_cluster_t c)
{
	while (UFAT_CLUSTER_IS_PTR(c)) {
		ufat_cluster_t next;
		int i = ufat_read_fat(uf, c, &next);

		if (i < 0)
			return i;

		i = ufat_write_fat(uf, c, UFAT_CLUSTER_FREE);
		if (i < 0)
			return i;

		c = next;
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %r15d
leal -0x2(%r15), %eax
cmpl $0xfffffed, %eax        # imm = 0xFFFFFED
ja 0x230e
movq %rdi, %rbx
leaq 0xc(%rsp), %r14
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x1f33
testl %eax, %eax
js 0x2310
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x2127
testl %eax, %eax
js 0x2310
movl 0xc(%rsp), %r15d
leal -0x2(%r15), %eax
cmpl $0xfffffee, %eax        # imm = 0xFFFFFEE
jb 0x22db
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: ufat_alloc_chain
int ufat_alloc_chain(struct ufat *uf, unsigned int count, ufat_cluster_t *out)
{
	ufat_cluster_t chain = UFAT_CLUSTER_EOC;

	while (count) {
		int err = alloc_cluster(uf, &chain, chain);

		if (err < 0) {
			ufat_free_chain(uf, chain);
			return err;
		}

		count--;
	}

	*out = chain;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
testl %esi, %esi
je 0x23cc
movq %rdi, %rbx
movl $0xffffff8, %r14d       # imm = 0xFFFFFF8
leaq 0xc(%rsp), %r12
movl 0x50(%rbx), %r15d
movl $0xfffffff1, %r13d      # imm = 0xFFFFFFF1
addl $-0x2, %r15d
je 0x23bf
movl %esi, 0x8(%rsp)
movl %r14d, 0x4(%rsp)
movl %r15d, %r14d
movl 0x78(%rbx), %eax
leal 0x2(%rax), %ebp
incl %eax
xorl %edx, %edx
divl %r15d
movl %edx, 0x78(%rbx)
cmpl $0xff0, %ebp            # imm = 0xFF0
jne 0x237d
cmpl $0xc, 0x28(%rbx)
je 0x2390
movq %rbx, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x1f33
orl 0xc(%rsp), %eax
je 0x2397
decl %r14d
jne 0x235f
jmp 0x23ba
movq %rbx, %rdi
movl %ebp, %esi
movl 0x4(%rsp), %r14d
movl %r14d, %edx
callq 0x2127
testl %eax, %eax
js 0x23ed
movl %ebp, %r14d
movl 0x8(%rsp), %esi
decl %esi
jne 0x2343
jmp 0x23d1
movl 0x4(%rsp), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x22bc
jmp 0x23db
movl $0xffffff8, %ebp        # imm = 0xFFFFFF8
movq 0x10(%rsp), %rax
movl %ebp, (%rax)
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %r13d
jmp 0x23bf
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat.c
// Function: read_fat_byte
static int read_fat_byte(struct ufat *uf, unsigned int offset, uint8_t *out)
{
	ufat_block_t b = offset >> uf->dev->log2_block_size;
	unsigned int r = offset & ((1 << uf->dev->log2_block_size) - 1);
	int idx;

	idx = ufat_cache_open(uf, uf->bpb.fat_start + b, 0);
	if (idx < 0)
		return idx;

	*out = ufat_cache_data(uf, idx)[r];
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %rax
movl (%rax), %r12d
movl %r12d, %ecx
shrl %cl, %esi
movq %rdx, %r15
addq 0x30(%rdi), %rsi
xorl %r14d, %r14d
xorl %edx, %edx
callq 0x1ab8
testl %eax, %eax
js 0x2443
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r12d, %ecx
shll %cl, %edx
notl %edx
movq (%rbx), %rcx
movb (%rcx), %cl
shll %cl, %eax
andl %ebp, %edx
addq %rbx, %rax
movb 0x180(%rdx,%rax), %al
movb %al, (%r15)
jmp 0x2446
movl %eax, %r14d
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_open_root
void ufat_open_root(struct ufat *uf, struct ufat_directory *dir)
{
	if (uf->bpb.root_cluster)
		dir->start = cluster_to_block(&uf->bpb, uf->bpb.root_cluster);
	else
		dir->start = uf->bpb.root_start;

	dir->uf = uf;
	dir->cur_block = dir->start;
	dir->cur_pos = 0;
}

// Assembly:
movl 0x68(%rdi), %eax
testl %eax, %eax
je 0x24f5
movb 0x2c(%rdi), %cl
addl $-0x2, %eax
shll %cl, %eax
addq 0x48(%rdi), %rax
jmp 0x24f9
movq 0x58(%rdi), %rax
movq %rax, 0x18(%rsi)
movq %rdi, (%rsi)
movq %rax, 0x10(%rsi)
movl $0x0, 0x8(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_open_subdir
int ufat_open_subdir(struct ufat *uf, struct ufat_directory *dir,
		     const struct ufat_dirent *ent)
{
	if (!(ent->attributes & UFAT_ATTR_DIRECTORY))
		return -UFAT_ERR_NOT_DIRECTORY;

	if (ent->dirent_block == UFAT_BLOCK_NONE || !ent->first_cluster) {
		ufat_open_root(uf, dir);
		return 0;
	}

	dir->uf = uf;
	dir->start = cluster_to_block(&uf->bpb, ent->first_cluster);
	dir->cur_block = dir->start;
	dir->cur_pos = 0;

	return 0;
}

// Assembly:
movl $0xfffffff9, %eax       # imm = 0xFFFFFFF9
testb $0x10, 0x2c(%rdx)
je 0x2566
cmpq $-0x1, (%rdx)
je 0x2539
movl 0x3c(%rdx), %eax
testl %eax, %eax
je 0x2539
movq %rdi, (%rsi)
movb 0x2c(%rdi), %cl
addl $-0x2, %eax
shll %cl, %eax
addq 0x48(%rdi), %rax
movq %rax, 0x18(%rsi)
jmp 0x2559
movl 0x68(%rdi), %eax
testl %eax, %eax
je 0x254e
movb 0x2c(%rdi), %cl
addl $-0x2, %eax
shll %cl, %eax
addq 0x48(%rdi), %rax
jmp 0x2552
movq 0x58(%rdi), %rax
movq %rax, 0x18(%rsi)
movq %rdi, (%rsi)
movq %rax, 0x10(%rsi)
movl $0x0, 0x8(%rsi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_dir_read
int ufat_dir_read(struct ufat_directory *dir, struct ufat_dirent *inf,
		  char *lfn_buf, int max_len)
{
	struct ufat_lfn_parser lfn;

	ufat_lfn_reset(&lfn);

	for (;;) {
		uint8_t data[UFAT_DIRENT_SIZE];
		int err;

		inf->dirent_block = dir->cur_block;
		inf->dirent_pos = dir->cur_pos;

		err = ufat_read_raw_dirent(dir, data);
		if (err)
			return err;

		err = ufat_advance_raw_dirent(dir, 0);
		if (err)
			return err;

		if (data[0x0b] == 0x0f && data[0] != 0xe5) {
			ufat_lfn_parse(&lfn, data,
				       inf->dirent_block, inf->dirent_pos);
		} else if (data[0] && data[0] != 0xe5) {
			ufat_parse_dirent(dir->uf->bpb.type, data, inf);

			if (ufat_short_checksum(inf->short_name,
						inf->short_ext) !=
			    lfn.short_checksum)
				ufat_lfn_reset(&lfn);

			if (inf->attributes & 0x08) {
				ufat_lfn_reset(&lfn);
				continue;
			}

			if (ufat_lfn_ok(&lfn)) {
				inf->lfn_block = lfn.start_block;
				inf->lfn_pos = lfn.start_pos;
			} else {
				inf->lfn_block = UFAT_BLOCK_NONE;
				inf->lfn_pos = 0;
			}

			if (lfn_buf)
				return format_name(&lfn, inf, lfn_buf, max_len);

			return 0;
		} else {
			ufat_lfn_reset(&lfn);
		}
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
movq 0x10(%rdi), %rax
movq %rax, (%rsi)
movl 0x8(%rdi), %eax
movl %eax, 0x8(%rsi)
leaq 0x10(%rsp), %rsi
callq 0x37d4
testl %eax, %eax
jne 0x267f
movq %r14, 0x8(%rsp)
movl %ebx, 0x4(%rsp)
leaq 0x1c(%r15), %r13
leaq 0x25(%r15), %rbp
leaq 0x30(%rsp), %rbx
leaq 0x10(%rsp), %r14
movq %r12, %rdi
xorl %esi, %esi
callq 0x369f
testl %eax, %eax
jne 0x267f
movb 0x10(%rsp), %al
cmpb $0xf, 0x1b(%rsp)
sete %cl
cmpb $-0x1b, %al
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x2613
movq (%r15), %rdx
movl 0x8(%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3e36
jmp 0x265b
movzbl %al, %eax
testl %eax, %eax
je 0x2653
cmpl $0xe5, %eax
je 0x2653
movq (%r12), %rax
movl 0x28(%rax), %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x398c
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3fe1
cmpb 0x3c(%rsp), %al
je 0x264c
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
testb $0x8, 0x2c(%r15)
je 0x2691
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
movq 0x10(%r12), %rax
movq %rax, (%r15)
movl 0x8(%r12), %eax
movl %eax, 0x8(%r15)
movq %r12, %rdi
movq %r14, %rsi
callq 0x37d4
testl %eax, %eax
je 0x25d5
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x44(%rsp), %esi
xorl %eax, %eax
movl %esi, %ecx
negl %ecx
movl $0x0, %ecx
sbbq %rcx, %rcx
orq 0x30(%rsp), %rcx
movl $0x0, %edx
testl %esi, %esi
jne 0x26b5
movl 0x38(%rsp), %edx
movq %rcx, 0x10(%r15)
movl %edx, 0x18(%r15)
movq 0x8(%rsp), %rdx
testq %rdx, %rdx
movl 0x4(%rsp), %ecx
je 0x267f
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x26da
jmp 0x267f
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_dir_delete
int ufat_dir_delete(struct ufat *uf, struct ufat_dirent *ent)
{
	int err;

	if (ent->dirent_block == UFAT_BLOCK_NONE || ent->short_name[0] == '.')
		return -UFAT_ERR_IMMUTABLE;

	if (ent->attributes & UFAT_ATTR_DIRECTORY) {
		err = verify_empty_dir(uf, ent);
		if (err < 0)
			return err;
	}

	err = delete_entry(uf, ent);
	if (err < 0)
		return err;

	return ufat_free_chain(uf, ent->first_cluster);
}

// Assembly:
movl $0xfffffff7, %eax       # imm = 0xFFFFFFF7
cmpq $-0x1, (%rsi)
je 0x27a2
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
cmpb $0x2e, 0x1c(%rsi)
je 0x2797
movq %rdi, %rbx
testb $0x10, 0x2c(%r14)
jne 0x2743
movq %rbx, %rdi
movq %r14, %rsi
callq 0x27a3
testl %eax, %eax
js 0x2797
movl 0x3c(%r14), %esi
movq %rbx, %rdi
callq 0x22bc
jmp 0x2797
movq %rsp, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x250c
testl %eax, %eax
js 0x2797
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2577
testl %eax, %eax
js 0x2797
movq %rsp, %r15
leaq 0x20(%rsp), %r12
testl %eax, %eax
jne 0x2726
cmpb $0x2e, 0x3c(%rsp)
jne 0x2792
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2577
testl %eax, %eax
jns 0x2772
jmp 0x2797
movl $0xfffffff6, %eax       # imm = 0xFFFFFFF6
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: delete_entry
static int delete_entry(struct ufat *uf, struct ufat_dirent *ent)
{
	static const uint8_t del_marker = 0xe5;
	struct ufat_directory dir;

	dir.uf = uf;

	if (ent->lfn_block == UFAT_BLOCK_NONE) {
		dir.cur_block = ent->dirent_block;
		dir.cur_pos = ent->dirent_pos;
	} else {
		dir.cur_block = ent->lfn_block;
		dir.cur_pos = ent->lfn_pos;
	}

	for (;;) {
		int err;

		err = ufat_write_raw_dirent(&dir, &del_marker, 1);
		if (err < 0)
			return err;

		if (dir.cur_block == ent->dirent_block &&
		    dir.cur_pos == ent->dirent_pos)
			break;

		err = ufat_advance_raw_dirent(&dir, 0);
		if (err < 0)
			return err;
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, (%rsp)
movq 0x10(%rsi), %rax
movl $0x18, %ecx
cmpq $-0x1, %rax
jne 0x27ca
movq (%rbx), %rax
movl $0x8, %ecx
movl (%rbx,%rcx), %ecx
movq %rsp, %r14
movq %rax, 0x10(%r14)
movl %ecx, 0x8(%r14)
leaq 0x49a2(%rip), %r15      # 0x7181
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3624
testl %eax, %eax
js 0x2818
movq 0x10(%rsp), %rax
cmpq (%rbx), %rax
jne 0x2806
movl 0x8(%rsp), %eax
cmpl 0x8(%rbx), %eax
je 0x2816
movq %r14, %rdi
xorl %esi, %esi
callq 0x369f
testl %eax, %eax
jns 0x27df
jmp 0x2818
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_dir_create
int ufat_dir_create(struct ufat_directory *dir, struct ufat_dirent *ent,
		    const char *name)
{
	struct ufat_dirent check;
	int err;

	if (!ufat_lfn_is_legal(name))
		return -UFAT_ERR_ILLEGAL_NAME;

	if (!ufat_dir_find(dir, name, &check))
		return -UFAT_ERR_FILE_EXISTS;

	err = create_empty_dir(dir, &ent->first_cluster, ent);
	if (err < 0)
		return err;

	ent->file_size = 0;
	ent->attributes = (ent->attributes & UFAT_ATTR_USER) |
		UFAT_ATTR_DIRECTORY;

	err = insert_dirent(dir, ent, name);
	if (err < 0) {
		ufat_free_chain(dir->uf, ent->first_cluster);
		return err;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x3ad6
testl %eax, %eax
je 0x29a7
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x29e2
testl %eax, %eax
je 0x29af
movq (%r14), %rdi
leaq 0x4(%rsp), %rdx
movl $0x1, %esi
callq 0x231a
testl %eax, %eax
js 0x29b7
movq (%r14), %rdi
movl 0x4(%rsp), %esi
callq 0x38e2
movq (%r14), %rdi
movl 0x4(%rsp), %esi
testl %eax, %eax
js 0x29bc
movb 0x2c(%rdi), %cl
addl $-0x2, %esi
shll %cl, %esi
addq 0x48(%rdi), %rsi
xorl %ebp, %ebp
xorl %edx, %edx
callq 0x1ab8
movl %eax, %r12d
movq (%r14), %rax
testl %r12d, %r12d
js 0x29c1
incl 0x20(%rax)
movl %r12d, %ecx
shlq $0x4, %rcx
orb $0x1, 0x80(%rax,%rcx)
leaq 0x8(%rsp), %r13
movl $0x9, %ecx
movq %r13, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movw $0x2e, %cx
movw %cx, 0x1c(%r13)
movb $0x0, 0x25(%r13)
movl $0x10, 0x2c(%r13)
movl 0x4(%rsp), %ecx
movl %ecx, 0x3c(%r13)
movl $0x0, 0x40(%r13)
movq (%rax), %rcx
movb (%rcx), %cl
movl %r12d, %edx
shll %cl, %edx
leaq (%rax,%rdx), %rsi
addq $0x180, %rsi            # imm = 0x180
movq %r13, %rdi
callq 0x3a1d
movw $0x2e, %ax
movw %ax, 0x1d(%r13)
movq (%r14), %rax
movq 0x18(%r14), %rdx
subq 0x48(%rax), %rdx
jb 0x2946
movb 0x2c(%rax), %cl
shrq %cl, %rdx
addl $0x2, %edx
movl %edx, %ebp
leaq 0x8(%rsp), %rdi
movl %ebp, 0x3c(%rdi)
movq (%rax), %rcx
movb (%rcx), %cl
shll %cl, %r12d
leaq (%rax,%r12), %rsi
addq $0x1a0, %rsi            # imm = 0x1A0
callq 0x3a1d
movl 0x4(%rsp), %eax
movl %eax, 0x3c(%rbx)
movl $0x0, 0x40(%rbx)
movl 0x2c(%rbx), %eax
andl $0x27, %eax
orl $0x10, %eax
movl %eax, 0x2c(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2a5e
xorl %r12d, %r12d
testl %eax, %eax
jns 0x29cd
movl %eax, %ebp
movq (%r14), %rdi
movl 0x3c(%rbx), %esi
callq 0x22bc
movl %ebp, %r12d
jmp 0x29cd
movl $0xfffffff5, %r12d      # imm = 0xFFFFFFF5
jmp 0x29cd
movl $0xfffffff4, %r12d      # imm = 0xFFFFFFF4
jmp 0x29cd
movl %eax, %r12d
jmp 0x29cd
movl %eax, %r12d
jmp 0x29c8
movl 0x4(%rsp), %esi
movq %rax, %rdi
callq 0x22bc
movl %r12d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_dir_find
int ufat_dir_find(struct ufat_directory *dir,
		  const char *target, struct ufat_dirent *inf)
{
	ufat_dir_rewind(dir);

	for (;;) {
		char name[UFAT_LFN_MAX_UTF8];
		int err = ufat_dir_read(dir, inf, name, sizeof(name));

		if (err)
			return err;

		if (ufat_compare_name(target, name, 0) >= 0)
			break;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x300, %rsp            # imm = 0x300
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x18(%rdi), %rax
movq %rax, 0x10(%rdi)
movl $0x0, 0x8(%rdi)
movq %rsp, %rdx
movq %rbx, %rsi
movl $0x300, %ecx            # imm = 0x300
callq 0x2577
testl %eax, %eax
jne 0x2a4a
movq %rsp, %r12
xorl %ebp, %ebp
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x3dd3
testl %eax, %eax
jns 0x2a4c
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movl $0x300, %ecx            # imm = 0x300
callq 0x2577
testl %eax, %eax
je 0x2a20
movl %eax, %ebp
movl %ebp, %eax
addq $0x300, %rsp            # imm = 0x300
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_dir_mkfile
int ufat_dir_mkfile(struct ufat_directory *dir, struct ufat_dirent *ent,
		    const char *name)
{
	struct ufat_dirent check;
	int err;

	if (!ufat_lfn_is_legal(name))
		return -UFAT_ERR_ILLEGAL_NAME;

	if (!ufat_dir_find(dir, name, &check))
		return -UFAT_ERR_FILE_EXISTS;

	ent->file_size = 0;
	ent->first_cluster = 0;
	ent->attributes &= UFAT_ATTR_USER;

	err = insert_dirent(dir, ent, name);
	if (err < 0)
		return err;

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rdi
callq 0x3ad6
testl %eax, %eax
je 0x2c29
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x29e2
testl %eax, %eax
je 0x2c30
movq $0x0, 0x3c(%r14)
andl $0x27, 0x2c(%r14)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2a5e
movl %eax, %ecx
sarl $0x1f, %eax
andl %ecx, %eax
jmp 0x2c35
movl $0xfffffff5, %eax       # imm = 0xFFFFFFF5
jmp 0x2c35
movl $0xfffffff4, %eax       # imm = 0xFFFFFFF4
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_dir_find_path
int ufat_dir_find_path(struct ufat_directory *dir,
		       const char *path, struct ufat_dirent *ent,
		       const char **path_out)
{
	int at_root = 1;

	ufat_dir_rewind(dir);

	while (*path) {
		int len = 0;

		/* Ignore blank components */
		if (*path == '/' || *path == '\\') {
			path++;
			continue;
		}

		/* Descend if necessary */
		if (!at_root) {
			int err = ufat_open_subdir(dir->uf, dir, ent);

			if (err < 0)
				return err;
		}

		/* Search for this component */
		for (;;) {
			char name[UFAT_LFN_MAX_UTF8];
			int err = ufat_dir_read(dir, ent,
						name, sizeof(name));

			if (err < 0)
				return err;

			if (err) {
				if (path_out)
					*path_out = path;
				return 1;
			}

			len = ufat_compare_name(path, name, 1);
			if (len >= 0)
				break;
		}

		/* Skip over this component */
		path += len;
		if (*path)
			path++;
		at_root = 0;
	}

	if (at_root) {
		/* Pseudo-dirent for root directory */
		memset(ent, 0, sizeof(*ent));
		ent->dirent_block = UFAT_BLOCK_NONE;
		ent->attributes = UFAT_ATTR_DIRECTORY;
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x300, %rsp            # imm = 0x300
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq 0x18(%rdi), %rax
movq %rax, 0x10(%rdi)
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rsp, %r13
movzbl (%r15), %eax
cmpl $0x2f, %eax
je 0x2c7d
cmpl $0x5c, %eax
jne 0x2c82
incq %r15
jmp 0x2c6f
testl %eax, %eax
je 0x2cdf
testb $0x1, %cl
je 0x2c9e
movq (%r12), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x250c
testl %eax, %eax
js 0x2d16
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movl $0x300, %ecx            # imm = 0x300
callq 0x2577
testl %eax, %eax
js 0x2d16
testl %eax, %eax
jne 0x2d09
movq %r15, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x3dd3
testl %eax, %eax
js 0x2c9e
movl %eax, %eax
cmpb $0x1, (%r15,%rax)
sbbq $-0x1, %rax
addq %rax, %r15
movb $0x1, %cl
jmp 0x2c6f
xorl %eax, %eax
testb $0x1, %cl
jne 0x2d16
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x18(%rbx)
movups %xmm0, 0x8(%rbx)
movq $-0x1, (%rbx)
movl $0x10, 0x2c(%rbx)
jmp 0x2d16
movl $0x1, %eax
testq %r14, %r14
je 0x2d16
movq %r15, (%r14)
addq $0x300, %rsp            # imm = 0x300
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_get_filename
int ufat_get_filename(struct ufat *uf,
		      const struct ufat_dirent *ent,
		      char *name_buf, int max_len)
{
	struct ufat_lfn_parser lfn;

	ufat_lfn_reset(&lfn);

	if (ent->lfn_block != UFAT_BLOCK_NONE) {
		struct ufat_directory dir;

		dir.uf = uf;
		dir.cur_block = ent->lfn_block;
		dir.cur_pos = ent->lfn_pos;

		while (!(dir.cur_block == ent->dirent_block &&
			 dir.cur_pos == ent->dirent_pos) &&
		       dir.cur_block != UFAT_BLOCK_NONE) {
			uint8_t data[UFAT_DIRENT_SIZE];
			int err;

			err = ufat_read_raw_dirent(&dir, data);
			if (err < 0)
				return err;

			err = ufat_advance_raw_dirent(&dir, 0);
			if (err < 0)
				return err;

			ufat_lfn_parse(&lfn, data,
				       dir.cur_block, dir.cur_pos);
		}
	}

	return format_name(&lfn, ent, name_buf, max_len);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
movq 0x10(%rsi), %rax
cmpq $-0x1, %rax
je 0x2dc6
movq %rsp, %r12
movq %rdi, (%r12)
movq %rax, 0x10(%r12)
movl 0x18(%r15), %ecx
movl %ecx, 0x8(%r12)
leaq 0x20(%rsp), %r13
leaq 0x40(%rsp), %rbp
cmpq (%r15), %rax
jne 0x2d88
cmpq $-0x1, %rax
je 0x2dc6
movl 0x8(%r15), %eax
cmpl %eax, 0x8(%rsp)
jne 0x2d8e
jmp 0x2dc6
cmpq $-0x1, %rax
je 0x2dc6
movq %r12, %rdi
movq %r13, %rsi
callq 0x37d4
testl %eax, %eax
js 0x2dd8
movq %r12, %rdi
xorl %esi, %esi
callq 0x369f
testl %eax, %eax
js 0x2dd8
movq 0x10(%rsp), %rdx
movl 0x8(%rsp), %ecx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3e36
movq 0x10(%rsp), %rax
jmp 0x2d71
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x26da
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_dir.c
// Function: ufat_move
int ufat_move(struct ufat_dirent *ent, struct ufat_directory *dst,
	      const char *new_name)
{
	struct ufat_dirent new_ent;
	int err;

	if (!ufat_lfn_is_legal(new_name))
		return -UFAT_ERR_ILLEGAL_NAME;

	if (!ufat_dir_find(dst, new_name, &new_ent))
		return -UFAT_ERR_FILE_EXISTS;

	if (ent->short_name[0] == '.' || ent->dirent_block == UFAT_BLOCK_NONE)
		return -UFAT_ERR_IMMUTABLE;

	memcpy(&new_ent, ent, sizeof(new_ent));
	err = insert_dirent(dst, &new_ent, new_name);
	if (err < 0)
		return err;

	err = delete_entry(dst->uf, ent);
	if (err < 0) {
		delete_entry(dst->uf, &new_ent);
		return err;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x3ad6
testl %eax, %eax
je 0x2e72
movq %rsp, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x29e2
testl %eax, %eax
je 0x2e79
movl $0xfffffff7, %eax       # imm = 0xFFFFFFF7
cmpb $0x2e, 0x1c(%r14)
je 0x2e7e
cmpq $-0x1, (%r14)
je 0x2e7e
movq %rsp, %rax
movl $0x9, %ecx
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x2a5e
testl %eax, %eax
js 0x2e7e
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x27a3
movl %eax, %ebp
xorl %eax, %eax
testl %ebp, %ebp
jns 0x2e7e
movq (%rbx), %rdi
movq %rsp, %rsi
callq 0x27a3
movl %ebp, %eax
jmp 0x2e7e
movl $0xfffffff5, %eax       # imm = 0xFFFFFFF5
jmp 0x2e7e
movl $0xfffffff4, %eax       # imm = 0xFFFFFFF4
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_file.c
// Function: ufat_open_file
int ufat_open_file(struct ufat *uf, struct ufat_file *f,
		   const struct ufat_dirent *ent)
{
	if (ent->attributes & UFAT_ATTR_DIRECTORY)
		return -UFAT_ERR_NOT_FILE;

	f->uf = uf;
	f->dirent_block = ent->dirent_block;
	f->dirent_pos = ent->dirent_pos;
	f->start = ent->first_cluster;
	f->file_size = ent->file_size;
	f->prev_cluster = 0;
	f->cur_cluster = f->start;
	f->cur_pos = 0;

	return 0;
}

// Assembly:
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
testb $0x10, 0x2c(%rdx)
jne 0x2ebe
movq %rdi, (%rsi)
movq (%rdx), %rax
movq %rax, 0x8(%rsi)
movl 0x8(%rdx), %eax
movl %eax, 0x10(%rsi)
movl 0x3c(%rdx), %ecx
movl %ecx, 0x14(%rsi)
movl 0x40(%rdx), %eax
movl %eax, 0x18(%rsi)
xorl %eax, %eax
movl %eax, 0x1c(%rsi)
movl %ecx, 0x20(%rsi)
movl %eax, 0x24(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_file.c
// Function: advance_ptr
static int advance_ptr(struct ufat_file *f, ufat_size_t nbytes)
{
	const unsigned int log2_cluster_size =
		f->uf->dev->log2_block_size +
		f->uf->bpb.log2_blocks_per_cluster;
	ufat_size_t end_pos;
	unsigned int nclusters;
	ufat_cluster_t c = f->cur_cluster;
	ufat_cluster_t prev = f->prev_cluster;

	end_pos = f->cur_pos + nbytes;

	nclusters = (end_pos >> log2_cluster_size) -
		(f->cur_pos >> log2_cluster_size);

	while (nclusters) {
		ufat_cluster_t next;
		int i;

		i = ufat_read_fat(f->uf, c, &next);
		if (i < 0)
			return i;

		prev = c;
		c = next;
		nclusters--;
	}

	f->prev_cluster = prev;
	f->cur_cluster = c;
	f->cur_pos += nbytes;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %r14d
movq %rdi, %rbx
movq (%rdi), %rax
movq (%rax), %rdx
movl 0x2c(%rax), %ecx
addl (%rdx), %ecx
movl 0x20(%rdi), %eax
movl 0x24(%rdi), %r12d
leal (%r12,%r14), %edx
movl %edx, %esi
shrl %cl, %esi
shrl %cl, %r12d
cmpl %r12d, %esi
je 0x2f3c
subl %esi, %r12d
leaq 0xc(%rsp), %r15
movl %eax, %ebp
movq (%rbx), %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x1f33
testl %eax, %eax
js 0x2f4a
movl 0xc(%rsp), %eax
incl %r12d
jne 0x2f17
addl 0x24(%rbx), %r14d
movl %r14d, %edx
jmp 0x2f3f
movl 0x1c(%rbx), %ebp
movl %ebp, 0x1c(%rbx)
movl %eax, 0x20(%rbx)
movl %edx, 0x24(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_file.c
// Function: ufat_file_read
int ufat_file_read(struct ufat_file *f, void *buf, ufat_size_t size)
{
	ufat_size_t total;
	int len;

	if (size > f->file_size - f->cur_pos)
		size = f->file_size - f->cur_pos;
	total = size;

	/* Read partial block ends */
	len = read_block_fragment(f, buf, size);
	if (len < 0)
		return len;

	buf = (char*)buf + len;
	size -= len;

	/* Read contiguous blocks within a cluster */
	for (;;) {
		len = read_blocks(f, buf, size);

		if (len < 0)
			return len;

		if (!len)
			break;

		buf = (char*)buf + len;
		size -= len;
	}

	/* Read remaining block fragment */
	len = read_block_fragment(f, buf, size);
	if (len < 0)
		return len;

	return total;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbp
movl 0x18(%rdi), %ebx
subl 0x24(%rdi), %ebx
movq %rsi, %r15
cmpl %edx, %ebx
cmovael %edx, %ebx
movl %ebx, %edx
callq 0x309f
movl %eax, %r12d
testl %eax, %eax
js 0x308d
movl %r12d, %eax
addq %rax, %r15
movl %ebx, 0x10(%rsp)
subl %r12d, %ebx
movq (%rbp), %r13
movq (%r13), %rax
movl (%rax), %r8d
movl 0x2c(%r13), %eax
movl $0x1, %esi
movl %eax, %ecx
shll %cl, %esi
movl 0x24(%rbp), %edi
movl %r8d, %ecx
shrl %cl, %edi
leal -0x1(%rsi), %edx
andl %edi, %edx
subl %edx, %esi
movl %ebx, %r12d
shrl %cl, %r12d
cmpl %esi, %r12d
cmovael %esi, %r12d
testl %r12d, %r12d
je 0x3075
movl 0x20(%rbp), %esi
addl $-0x2, %esi
cmpl $0xfffffed, %esi        # imm = 0xFFFFFED
ja 0x305c
movl %r8d, 0x14(%rsp)
movl %ebx, 0xc(%rsp)
movq %r15, %rbx
movl %eax, %ecx
shll %cl, %esi
movl %edx, %r14d
addq %rsi, %r14
addq 0x48(%r13), %r14
movl %r12d, %r15d
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x190c
testl %eax, %eax
js 0x3064
movq (%r13), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %r15
movq %rbx, %rcx
callq *0x8(%rdi)
testl %eax, %eax
js 0x3069
incl 0x8(%r13)
addl %r12d, 0x10(%r13)
movl 0x14(%rsp), %ecx
shll %cl, %r12d
movq %rbp, %rdi
movl %r12d, %esi
callq 0x2edb
testl %eax, %eax
cmovsl %eax, %r12d
testl %r12d, %r12d
js 0x308d
je 0x3071
movl %r12d, %eax
addq %rax, %r15
movl 0xc(%rsp), %ebx
jmp 0x2f92
movl $0xfffffffb, %r12d      # imm = 0xFFFFFFFB
jmp 0x308d
movl %eax, %r12d
jmp 0x308d
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x308d
movl 0xc(%rsp), %ebx
movq %rbp, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x309f
testl %eax, %eax
movl 0x10(%rsp), %r12d
cmovsl %eax, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dlbeer[P]ufat/ufat_file.c
// Function: read_block_fragment
static int read_block_fragment(struct ufat_file *f, char *buf, ufat_size_t size)
{
	const struct ufat_bpb *bpb = &f->uf->bpb;
	const unsigned int log2_block_size = f->uf->dev->log2_block_size;
	const unsigned int block_size = 1 << log2_block_size;
	const unsigned int offset = f->cur_pos & (block_size - 1);
	const unsigned int remainder = block_size - offset;
	const ufat_block_t cur_block =
		cluster_to_block(bpb, f->cur_cluster) +
		((f->cur_pos >> log2_block_size) &
		 ((1 << bpb->log2_blocks_per_cluster) - 1));
	int i;

	if (size > remainder)
		size = remainder;
	size &= (block_size - 1);
	if (!size)
		return 0;

	if (!UFAT_CLUSTER_IS_PTR(f->cur_cluster))
		return -UFAT_ERR_INVALID_CLUSTER;

	i = ufat_cache_open(f->uf, cur_block, 0);
	if (i < 0)
		return i;

	memcpy(buf, ufat_cache_data(f->uf, i) + offset, size);
	i = advance_ptr(f, size);
	if (i < 0)
		return i;

	return size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq (%rdi), %rax
movb (%rax), %al
movl $0x1, %ebx
movl %eax, %ecx
shll %cl, %ebx
movq %rsi, %r15
movl 0x24(%r14), %esi
leal -0x1(%rbx), %r12d
movl %r12d, %ebp
andl %esi, %ebp
subl %ebp, %ebx
movl 0x20(%r14), %r10d
movb 0x2c(%rdi), %r8b
addl $-0x2, %r10d
movl %r10d, %r9d
movl %r8d, %ecx
shll %cl, %r9d
movl %eax, %ecx
shrl %cl, %esi
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movl %r8d, %ecx
shll %cl, %r11d
cmpl %edx, %ebx
cmovael %edx, %ebx
andl %r12d, %ebx
je 0x3159
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
cmpl $0xfffffed, %r10d       # imm = 0xFFFFFED
ja 0x315b
addq 0x48(%rdi), %r9
notl %r11d
andl %r11d, %esi
addq %r9, %rsi
xorl %edx, %edx
callq 0x1ab8
testl %eax, %eax
js 0x315b
movq (%r14), %rdx
movq (%rdx), %rcx
movb (%rcx), %cl
shll %cl, %eax
addq %rdx, %rax
movl %ebp, %ecx
leaq (%rcx,%rax), %rsi
addq $0x180, %rsi            # imm = 0x180
movl %ebx, %edx
movq %r15, %rdi
callq 0x1160
movq %r14, %rdi
movl %ebx, %esi
callq 0x2edb
testl %eax, %eax
cmovsl %eax, %ebx
movl %ebx, %eax
jmp 0x315b
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq