LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: x86_preop
static struct storage *x86_preop(struct expression *expr)
{
	/*
	 * '*' is an lvalue access, and is fundamentally different
	 * from an arithmetic operation. Maybe it should have an
	 * expression type of its own..
	 */
	if (expr->op == '*')
		return x86_access(expr);
	if (expr->op == SPECIAL_INCREMENT || expr->op == SPECIAL_DECREMENT)
		return emit_inc_dec(expr, 0);
	return emit_regular_preop(expr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl 0x4(%rdi), %eax
cmpl $0x103, %eax            # imm = 0x103
je 0x431b3
cmpl $0x101, %eax            # imm = 0x101
je 0x431b3
cmpl $0x2a, %eax
jne 0x431c6
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4380b
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x43940
movq 0x20(%rbx), %rdi
callq 0x41d4f
movq %rax, %r15
movl $0x4, %edi
callq 0x427bd
movq %rax, %r14
movl 0x4(%rbx), %eax
cmpl $0x7e, %eax
je 0x43282
cmpl $0x2d, %eax
je 0x43279
cmpl $0x21, %eax
jne 0x432d6
movl $0x4, %edi
callq 0x42575
movq $0x2, 0x8(%rax)
leaq 0x285ea(%rip), %r12     # 0x6b800
movq %rax, %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4263e
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rdx
leaq 0x2859c(%rip), %r13     # 0x6b7d0
movq %r15, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x4263e
leaq 0xcaf0(%rip), %rdi      # 0x4fd38
movq %r13, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x4259e
leaq 0xd006(%rip), %rdi      # 0x50262
leaq 0x2829d(%rip), %rsi     # 0x6b500
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4259e
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rdx
movq %r12, %rdi
jmp 0x432bf
leaq 0xad68(%rip), %r12      # 0x4dfe8
jmp 0x43289
leaq 0x6396(%rip), %r12      # 0x4961f
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rdx
leaq 0x28538(%rip), %r13     # 0x6b7d0
movq %r15, %rdi
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x4263e
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4259e
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rdx
movq %r13, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x4263e
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x5bb4(%rip), %rdi      # 0x48e91
leaq 0xc758(%rip), %rsi      # 0x4fa3c
leaq 0xcf7c(%rip), %rcx      # 0x50267
movl $0x6a2, %edx            # imm = 0x6A2
callq 0xe140
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: emit_symbol_expr_init
static struct storage *emit_symbol_expr_init(struct symbol *sym)
{
	struct expression *expr = sym->initializer;
	struct symbol_private *priv = sym->aux;

	if (priv == NULL) {
		priv = calloc(1, sizeof(*priv));
		sym->aux = priv;

		if (expr == NULL) {
			struct storage *new = stack_alloc(4);
			fprintf(stderr, "FIXME! no value for symbol %s.  creating pseudo %d (stack offset %d)\n",
				show_ident(sym->ident),
				new->pseudo, new->pseudo * 4);
			priv->addr = new;
		} else {
			priv->addr = x86_expression(expr);
		}
	}

	return priv->addr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0xd0(%rdi), %rbx
testq %rbx, %rbx
jne 0x4333d
movq %rdi, %r14
movq 0xb0(%rdi), %r15
movl $0x1, %edi
movl $0x8, %esi
callq 0xe1e0
movq %rax, %rbx
movq %rax, 0xd0(%r14)
testq %r15, %r15
je 0x4334a
movq %r15, %rdi
callq 0x41d4f
movq %rax, (%rbx)
movq (%rbx), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xe993
movq (%r15), %rax
jmp 0x4333a
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: emit_string_expr
static struct storage *emit_string_expr(struct expression *expr)
{
	struct function *f = current_func;
	int label = new_label();
	struct storage *new;

	push_cstring(f, expr->string, label);

	new = new_storage(STOR_LABEL);
	new->label = label;
	new->flags = STOR_LABEL_VAL | STOR_WANTS_FREE;
	return new;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x5566e(%rip), %rbx     # 0x989d8
movl 0x55670(%rip), %ebp     # 0x989e0
incl %ebp
movl %ebp, 0x55668(%rip)     # 0x989e0
movq 0x28(%rdi), %r14
movl $0x2, %edi
callq 0x42ad1
movq %r14, 0x8(%rax)
movl %ebp, 0x10(%rax)
addq $0x18, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1c78f
movl $0x5, %edi
callq 0x42575
movl %ebp, 0x20(%rax)
movq $0x3, 0x8(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: x86_initializer_expr
static void x86_initializer_expr(struct expression *expr, struct symbol *ctype)
{
	struct expression *entry;

	FOR_EACH_PTR(expr->expr_list, entry) {
		// Nested initializers have their positions already
		// recursively calculated - just output them too
		if (entry->type == EXPR_INITIALIZER) {
			x86_initializer_expr(entry, ctype);
			continue;
		}

		// Ignore initializer indexes and identifiers - the
		// evaluator has taken them into account
		if (entry->type == EXPR_IDENTIFIER || entry->type == EXPR_INDEX)
			continue;
		if (entry->type == EXPR_POS) {
			x86_position_expr(entry, ctype);
			continue;
		}
		x86_initialization(ctype, entry);
	} END_FOR_EACH_PTR(entry);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x10(%rsp)
movq 0x20(%rdi), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x4358e
movq 0x20(%rsp), %rbx
movzwl (%rbx), %eax
testb %al, %al
jle 0x4357f
xorl %r13d, %r13d
movq 0x18(%rbx,%r13,8), %r12
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x43406
testq %r12, %r12
je 0x4356d
movzbl (%r12), %eax
leal -0x19(%rax), %ecx
cmpl $0x2, %ecx
jb 0x4356d
cmpl $0x1b, %eax
je 0x43433
cmpl $0x18, %eax
jne 0x4347f
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x433b6
jmp 0x4356d
movq 0x28(%r12), %rdi
callq 0x41d4f
movq 0x28(%r12), %rcx
movq 0x10(%rcx), %rcx
movl 0x20(%rax), %ebp
movl 0x20(%r12), %r14d
movzbl 0x54(%rcx), %r15d
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x21d75
leaq 0x624d(%rip), %rdi      # 0x496b5
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
movq %rax, %r8
xorl %eax, %eax
callq 0xe110
jmp 0x4356d
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x4356d
movl 0x50(%rax), %r15d
movq %r12, %rdi
callq 0x41d4f
movq %rax, %r12
movl $0x4, %edi
callq 0x427bd
movq %rax, %rbp
movq 0x10(%rsp), %rcx
movq 0x68(%rcx), %rax
testb $0x1c, %al
je 0x434ef
leaq 0x26f0f(%rip), %rax     # 0x6a3cc
movl (%rax), %r14d
movq %r12, 0x8(%rsp)
movl %r15d, %r12d
movl 0x20(%rbp), %r15d
movq 0x18(%rcx), %rdi
callq 0x21d75
leaq 0x6054(%rip), %rdi      # 0x49530
movl %r14d, %esi
movl %r15d, %edx
movl %r12d, %r15d
movq 0x8(%rsp), %r12
movq %rax, %rcx
jmp 0x4354d
btl $0x8, %eax
leaq 0x26ed2(%rip), %rax     # 0x6a3cc
movl (%rax), %r14d
movl 0x20(%rbp), %edx
jb 0x43541
movq 0x18(%rcx), %rdi
movq %r12, 0x8(%rsp)
movl %r15d, 0x1c(%rsp)
movq %rcx, %r15
movl %edx, %r12d
callq 0x21d75
leaq 0x603a(%rip), %rdi      # 0x4955c
movl %r14d, %esi
movl %r12d, %edx
movq %rax, %rcx
movq %r15, %r8
movl 0x1c(%rsp), %r15d
movq 0x8(%rsp), %r12
xorl %eax, %eax
callq 0xe110
jmp 0x43554
leaq 0x5ffb(%rip), %rdi      # 0x49543
movl %r14d, %esi
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xe110
movl 0x20(%r12), %edx
movl 0x20(%rbp), %ecx
leaq 0x5f62(%rip), %rdi      # 0x494c5
movl %r15d, %esi
xorl %eax, %eax
callq 0xe110
incq %r13
movl (%rbx), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jl 0x433ee
movq 0x10(%rbx), %rbx
cmpq 0x20(%rsp), %rbx
jne 0x433e0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: emit_select_expr
static struct storage *emit_select_expr(struct expression *expr)
{
	struct storage *cond = x86_expression(expr->conditional);
	struct storage *stot = x86_expression(expr->cond_true);
	struct storage *stof = x86_expression(expr->cond_false);
	struct storage *reg_cond, *reg_true, *reg_false;
	struct storage *new = stack_alloc(4);

	emit_comment("begin SELECT");
	reg_cond = get_reg_value(cond, get_regclass(expr->conditional));
	reg_true = get_reg_value(stot, get_regclass(expr));
	reg_false = get_reg_value(stof, get_regclass(expr));

	/*
	 * Do the actual select: check the conditional for zero,
	 * move false over true if zero
	 */ 
	insn("test", reg_cond, reg_cond, NULL);
	insn("cmovz", reg_false, reg_true, NULL);

	/* Store it back */
	emit_move(reg_true, new, expr->ctype, NULL);
	put_reg(reg_cond);
	put_reg(reg_true);
	put_reg(reg_false);
	emit_comment("end SELECT");
	return new;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x20(%rdi), %rdi
callq 0x41d4f
movq %rax, %r12
movq 0x28(%r14), %rdi
callq 0x41d4f
movq %rax, %rbp
movq 0x30(%r14), %rdi
callq 0x41d4f
movq %rax, %r15
movl $0x4, %edi
callq 0x427bd
movq %rax, %rbx
leaq 0xcd1e(%rip), %rdi      # 0x50301
xorl %eax, %eax
callq 0x4291c
movq 0x20(%r14), %rax
movq 0x10(%rax), %rax
movl 0x50(%rax), %eax
leaq 0x287f4(%rip), %r13     # 0x6bdf0
movq %r13, %rsi
cmpl $0x8, %eax
je 0x43627
cmpl $0x40, %eax
je 0x43617
cmpl $0x10, %eax
jne 0x43620
leaq 0x28803(%rip), %rsi     # 0x6be18
jmp 0x43627
leaq 0x28822(%rip), %rsi     # 0x6be40
jmp 0x43627
leaq 0x287a1(%rip), %rsi     # 0x6bdc8
movq %r12, %rdi
callq 0x429d7
movq %rax, %r12
movq 0x10(%r14), %rax
movl 0x50(%rax), %eax
movq %r13, %rsi
cmpl $0x8, %eax
je 0x43664
cmpl $0x40, %eax
je 0x43654
cmpl $0x10, %eax
jne 0x4365d
leaq 0x287c6(%rip), %rsi     # 0x6be18
jmp 0x43664
leaq 0x287e5(%rip), %rsi     # 0x6be40
jmp 0x43664
leaq 0x28764(%rip), %rsi     # 0x6bdc8
movq %rbp, %rdi
callq 0x429d7
movq %rax, %rbp
movq 0x10(%r14), %rax
movl 0x50(%rax), %eax
cmpl $0x8, %eax
je 0x4369e
cmpl $0x40, %eax
je 0x4368e
cmpl $0x10, %eax
jne 0x43697
leaq 0x2878c(%rip), %r13     # 0x6be18
jmp 0x4369e
leaq 0x287ab(%rip), %r13     # 0x6be40
jmp 0x4369e
leaq 0x2872a(%rip), %r13     # 0x6bdc8
movq %r15, %rdi
movq %r13, %rsi
callq 0x429d7
movq %rax, %r15
leaq 0xc685(%rip), %rdi      # 0x4fd38
movq %r12, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x4259e
leaq 0xcc47(%rip), %rdi      # 0x5030e
movq %r15, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x4259e
movq 0x10(%r14), %rdx
movq %rbp, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x4263e
movq %r12, %rdi
callq 0x42a58
movq %rbp, %rdi
callq 0x42a58
movq %r15, %rdi
callq 0x42a58
leaq 0xcc10(%rip), %rdi      # 0x50314
xorl %eax, %eax
callq 0x4291c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: emit_conditional_expr
static struct storage *emit_conditional_expr(struct expression *expr)
{
	struct storage *cond, *stot = NULL, *stof = NULL;
	struct storage *new = stack_alloc(expr->ctype->bit_size / 8);
	int target_false, cond_end;

	/* evaluate conditional */
	cond = x86_expression(expr->conditional);
	target_false = emit_conditional_test(cond);

	/* handle if-true part of the expression */
	stot = x86_expression(expr->cond_true);

	emit_copy(new, stot, expr->ctype);

	cond_end = emit_conditional_end(target_false);

	/* handle if-false part of the expression */
	stof = x86_expression(expr->cond_false);

	emit_copy(new, stof, expr->ctype);

	/* end of conditional; jump target for if-true branch */
	emit_label(cond_end, "end conditional");

	return new;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
movq 0x10(%rdi), %rax
movl 0x50(%rax), %eax
leal 0x7(%rax), %edi
testl %eax, %eax
cmovnsl %eax, %edi
sarl $0x3, %edi
callq 0x427bd
movq %rax, %rbx
movq 0x20(%r14), %rdi
callq 0x41d4f
movq %rax, %rdi
callq 0x4282b
movl %eax, %ebp
movq 0x28(%r14), %rdi
callq 0x41d4f
movq 0x10(%r14), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x43899
movl %ebp, %edi
callq 0x428a5
movl %eax, %ebp
movq 0x30(%r14), %rdi
callq 0x41d4f
movq 0x10(%r14), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x43899
movq 0x55241(%rip), %r14     # 0x989d8
leaq 0xc645(%rip), %rsi      # 0x4fde3
leaq 0xcb7a(%rip), %rcx      # 0x5031f
movq %rsp, %r15
movq %r15, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe2f0
movq %r14, %rdi
movq %r15, %rsi
callq 0x42a90
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: x86_address_gen
static struct storage *x86_address_gen(struct expression *expr)
{
	struct function *f = current_func;
	struct storage *addr;
	struct storage *new;
	char s[32];

	addr = x86_expression(expr->unop);
	if (expr->unop->type == EXPR_SYMBOL)
		return addr;

	emit_move(addr, REG_EAX, NULL, "begin deref ..");

	/* FIXME: operand size */
	strcpy(s, "\tmovl\t(%eax), %ecx\n");
	push_text_atom(f, s);

	new = stack_alloc(4);
	emit_move(REG_ECX, new, NULL, ".... end deref");

	return new;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r15
movq 0x551ba(%rip), %rbx     # 0x989d8
movq 0x20(%rdi), %rdi
callq 0x41d4f
movq %rax, %r14
movq 0x20(%r15), %rax
cmpb $0x3, (%rax)
je 0x4388c
leaq 0x27f96(%rip), %rsi     # 0x6b7d0
leaq 0xc864(%rip), %rcx      # 0x500a5
movq %r14, %rdi
xorl %edx, %edx
callq 0x4263e
movaps 0xcaee(%rip), %xmm0     # 0x50340
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movl $0xa7863, 0x10(%rsi)    # imm = 0xA7863
movq %rbx, %rdi
callq 0x42a90
movl $0x4, %edi
callq 0x427bd
movq %rax, %r14
leaq 0x27fb5(%rip), %rdi     # 0x6b830
leaq 0xc832(%rip), %rcx      # 0x500b4
movq %rax, %rsi
xorl %edx, %edx
callq 0x4263e
movq %r14, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: emit_copy
static void emit_copy(struct storage *dest, struct storage *src,
		      struct symbol *ctype)
{
	struct storage *reg = NULL;
	unsigned int bit_size;

	/* FIXME: Bitfield copy! */

	bit_size = src->size * 8;
	if (!bit_size)
		bit_size = 32;
	if ((src->type == STOR_ARG) && (bit_size < 32))
		bit_size = 32;

	reg = temp_from_bits(bit_size);
	emit_move(src, reg, ctype, "begin copy ..");

	bit_size = dest->size * 8;
	if (!bit_size)
		bit_size = 32;
	if ((dest->type == STOR_ARG) && (bit_size < 32))
		bit_size = 32;

	emit_move(reg, dest, ctype, ".... end copy");
	put_reg(reg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl 0x28(%rsi), %eax
leal (,%rax,8), %ecx
testl %eax, %eax
movl $0x20, %eax
cmovel %eax, %ecx
cmpl $0x21, %ecx
cmovael %ecx, %eax
cmpl $0x1, (%rsi)
movq %rdi, %r15
cmovnel %ecx, %eax
cmpl $0x8, %eax
je 0x438eb
cmpl $0x40, %eax
je 0x438e2
cmpl $0x10, %eax
jne 0x438f4
leaq 0x28538(%rip), %rdi     # 0x6be18
jmp 0x438fb
leaq 0x28557(%rip), %rdi     # 0x6be40
jmp 0x438fb
leaq 0x284fe(%rip), %rdi     # 0x6bdf0
jmp 0x438fb
leaq 0x284cd(%rip), %rdi     # 0x6bdc8
callq 0x42b78
movq %rax, %r12
leaq 0xc7b9(%rip), %rcx      # 0x500c3
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x4263e
leaq 0xc7b2(%rip), %rcx      # 0x500d1
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4263e
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x42a58
// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/compile-i386.c
// Function: emit_inc_dec
static struct storage *emit_inc_dec(struct expression *expr, int postop)
{
	struct storage *addr = x86_address_gen(expr->unop);
	struct storage *retval;
	char opname[16];

	strcpy(opname, opbits(expr->op == SPECIAL_INCREMENT ? "inc" : "dec",
			      expr->ctype->bit_size));

	if (postop) {
		struct storage *new = stack_alloc(4);

		emit_copy(new, addr, expr->unop->ctype);

		retval = new;
	} else
		retval = addr;

	insn(opname, addr, NULL, NULL);

	return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebp
movq %rdi, %r14
movq 0x20(%rdi), %rdi
callq 0x4380b
movq %rax, %rbx
cmpl $0x101, 0x4(%r14)       # imm = 0x101
leaq 0x1462(%rip), %rax      # 0x44dcc
leaq 0xc8ed(%rip), %rdi      # 0x5025e
cmoveq %rax, %rdi
movq 0x10(%r14), %rax
movl 0x50(%rax), %esi
callq 0x4277e
leaq 0x55068(%rip), %rsi     # 0x989f0
movq %rsp, %rdi
callq 0xe0a0
movq %rbx, %r15
testl %ebp, %ebp
je 0x439b7
movl $0x4, %edi
callq 0x427bd
movq %rax, %r15
movq 0x20(%r14), %rax
movq 0x10(%rax), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x43899
movq %rsp, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4259e
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/omdsha256k256n104tau160v2/ref/encrypt.c
// Function: crypto_aead_encrypt
int crypto_aead_encrypt(
			unsigned char *c,unsigned long long *clen,
			const unsigned char *m,unsigned long long mlen,
			const unsigned char *ad,unsigned long long adlen,
			const unsigned char *nsec,
			const unsigned char *npub,
			const unsigned char *k
			) {
   (void)nsec;

   int res = omdsha256_process(c, k, m, mlen, ad, adlen, npub, OMD_ENCRYPT);

   if (res != -1)
      *clen = mlen + CRYPTO_ABYTES;

   return res;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r14
movq 0x30(%rsp), %rsi
pushq $0x0
pushq 0x30(%rsp)
callq 0x10e0
addq $0x10, %rsp
cmpl $-0x1, %eax
je 0x1216
addq $0x14, %rbx
movq %rbx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/omdsha256k256n104tau160v2/ref/encrypt.c
// Function: crypto_aead_decrypt
int crypto_aead_decrypt(
			unsigned char *m,unsigned long long *mlen,
			unsigned char *nsec,
			const unsigned char *c,unsigned long long clen,
			const unsigned char *ad,unsigned long long adlen,
			const unsigned char *npub,
			const unsigned char *k
			) {
   (void)nsec;

   int res = omdsha256_process(m, k, c, clen, ad, adlen, npub, OMD_DECRYPT);

   if (res != -1)
      *mlen = clen - CRYPTO_ABYTES;

   return res;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %rax
movq %r8, %rbx
movq %rsi, %r14
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %r9
movq %rcx, %rdx
movq %r8, %rcx
movq %rax, %r8
pushq $0x1
pushq 0x30(%rsp)
callq 0x10e0
addq $0x10, %rsp
cmpl $-0x1, %eax
je 0x1259
addq $-0x14, %rbx
movq %rbx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/omdsha256k256n104tau160v2/ref/omdsha256.c
// Function: double_block
void
double_block (hashblock res, const hashblock in)
{
    unsigned int i;
    /* create bitmask from msb using signed shift */
    unsigned char carry = in[0] & 0x80;

    for (i = 0; i < OMD_n-1; i++)
       {
	  /* shift with carry from next block */
	  res[i] = (in[i] << 1) | (in[i+1] >> 7);
       }

    res[OMD_n -1] = (in[OMD_n -1] << 1);

	if(carry) {
    	/* xor P(x) if msb */
    	res[OMD_n -2] = res[OMD_n -2] ^ 0x04;
    	/* shift and xor P(x) if msb */
    	res[OMD_n -1] = res[OMD_n -1] ^ 0x25;
    }
}

// Assembly:
movb (%rsi), %al
xorl %ecx, %ecx
movb (%rsi,%rcx), %dl
movb 0x1(%rsi,%rcx), %r8b
shrb $0x7, %r8b
addb %dl, %dl
orb %r8b, %dl
movb %dl, (%rdi,%rcx)
leaq 0x1(%rcx), %rdx
movq %rdx, %rcx
cmpq $0x1f, %rdx
jne 0x127d
movb 0x1f(%rsi), %cl
addb %cl, %cl
movb %cl, 0x1f(%rdi)
testb %al, %al
js 0x12ab
retq
xorb $0x4, 0x1e(%rdi)
xorb $0x25, %cl
movb %cl, 0x1f(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/omdsha256k256n104tau160v2/ref/omdsha256.c
// Function: triple_block
void
triple_block (hashblock res, const hashblock in)
{
    unsigned int i;
    /* create bitmask from msb using signed shift */
    unsigned char carry = in[0] & 0x80;

    for (i = 0; i < OMD_n -1; i++)
       {
	  /* shift and xor */
	  res[i] = in[i] ^ ((in[i] << 1) | (in[i+1] >> 7));
       }

    res[OMD_n -1] = in[OMD_n -1] ^ (in[OMD_n -1] << 1);
	
	/* xor P(x) if msb */
	if(carry) {
    	res[OMD_n -2] = res[OMD_n -2] ^ 0x04;
	    res[OMD_n -1] = res[OMD_n -1] ^ 0x25;
    }
}

// Assembly:
movb (%rsi), %al
xorl %ecx, %ecx
movb (%rsi,%rcx), %dl
movb 0x1(%rsi,%rcx), %r8b
shrb $0x7, %r8b
leal (%rdx,%rdx), %r9d
orb %r8b, %r9b
xorb %dl, %r9b
movb %r9b, (%rdi,%rcx)
leaq 0x1(%rcx), %rdx
movq %rdx, %rcx
cmpq $0x1f, %rdx
jne 0x12ba
movb 0x1f(%rsi), %dl
leal (%rdx,%rdx), %ecx
xorb %dl, %cl
movb %cl, 0x1f(%rdi)
testb %al, %al
js 0x12f1
retq
xorb $0x4, 0x1e(%rdi)
xorb $0x25, %cl
movb %cl, 0x1f(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/omdsha256k256n104tau160v2/ref/omdsha256.c
// Function: calc_L_i
void
calc_L_i (hashblock l, const hashblock lzero, unsigned int i)
{
   /* i==0 => l=lzero */
   if (i == 0)
      {
	 memcpy(l, lzero, OMD_n );
	 return;
      }

   double_block(l,lzero);

   /* L[i]=2.L[i-1] */
   while (--i)
      {
	 double_block(l,l);
      }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %edx, %edx
je 0x1366
movl %edx, %ebp
movq %rbx, %rdi
callq 0x1070
decl %ebp
je 0x136e
movq %rbx, %rdi
movq %rbx, %rsi
jmp 0x1355
vmovups (%rsi), %ymm0
vmovups %ymm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/omdsha256k256n104tau160v2/ref/omdsha256.c
// Function: increment_masking_message
void
increment_masking_message (hashblock delta_n, const hashblock delta_o,
			   const hashblock lzero, int i)
{
   hashblock l;

   if (i < 1)
      {
	 return;
      }

   /* \delta_{N, i, 0} = \delta_{N, i-1, 0} ^ L[ntz(i)]  */
   calc_L_i(l, lzero, ntz(i));
   xor_block(delta_n, delta_o, l);

}

// Assembly:
testl %ecx, %ecx
jle 0x13e1
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
blsmskl %ecx, %ecx
xorl %eax, %eax
cmpl $0x1, %ecx
je 0x13b8
xorl %eax, %eax
sarl %ecx
incl %eax
cmpl $0x1, %ecx
ja 0x13af
movq %rsp, %rdi
movq %rdx, %rsi
movl %eax, %edx
callq 0x10b0
xorl %eax, %eax
movb (%rsp,%rax), %cl
xorb (%rbx,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
cmpq $0x20, %rax
jne 0x13c7
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/omdsha256k256n104tau160v2/ref/omdsha256.c
// Function: final_masking_message
void
final_masking_message (hashblock delta_n, const hashblock delta_o,
		       const hashblock lstar, int j)
{
   hashblock l;

   switch (j)
      {
      case 1:
	 /* \delta_{N, i, 1} = \delta_{N, i, 0} ^ 2*L_*  */
	 double_block (l, lstar);
	 xor_block (delta_n, delta_o, l);
	 break;

      case 2:
	 /* \delta_{N, i, 2} = \delta_{N, i, 0} ^ 3*L_*  */
	 triple_block (l, lstar);
	 xor_block (delta_n, delta_o, l);
	 break;
      }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x2, %ecx
je 0x141b
cmpl $0x1, %ecx
jne 0x143b
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x1070
xorl %eax, %eax
movb (%rsp,%rax), %cl
xorb (%rbx,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
cmpq $0x20, %rax
jne 0x1406
jmp 0x143b
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x10c0
xorl %eax, %eax
movb (%rsp,%rax), %cl
xorb (%rbx,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
cmpq $0x20, %rax
jne 0x1428
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-ctrl.c
// Function: main.cold.2
static void usage(int exitcode)
{
  fprintf(stderr, "Control a libvterm-based terminal\n"
      "\n"
      "Options:\n");

  for(char **p = helptext; *p; p++)
    fprintf(stderr, "  %s\n", *p);

  exit(exitcode);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x2ea0(%rip), %r14      # 0x3ff0
movq (%r14), %rcx
leaq 0xfb4(%rip), %rdi       # 0x210e
pushq $0x2c
popq %rsi
pushq $0x1
popq %rdx
callq 0x10f0
leaq 0xea8(%rip), %rdx       # 0x2014
leaq 0x2bd5(%rip), %r15      # 0x3d48
leaq 0xfc1(%rip), %rbx       # 0x213b
movq (%r14), %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1090
movq (%r15), %rdx
addq $0x8, %r15
testq %rdx, %rdx
jne 0x117a
xorl %edi, %edi
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-ctrl.c
// Function: seticanon
static bool seticanon(bool icanon, bool echo)
{
  struct termios termios;

  tcgetattr(0, &termios);

  bool ret = (termios.c_lflag & ICANON);

  if(icanon) termios.c_lflag |=  ICANON;
  else       termios.c_lflag &= ~ICANON;

  if(echo) termios.c_lflag |=  ECHO;
  else     termios.c_lflag &= ~ECHO;

  tcsetattr(0, TCSANOW, &termios);

  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebx
movl %edi, %r14d
leaq 0xc(%rsp), %r15
xorl %edi, %edi
movq %r15, %rsi
callq 0x10b0
movl 0xc(%r15), %ebp
movl %ebp, %eax
andl $-0xb, %eax
addl %r14d, %r14d
leal (%r14,%rbx,8), %ecx
orl %eax, %ecx
movl %ecx, 0xc(%r15)
andl $0x2, %ebp
shrl %ebp
xorl %edi, %edi
xorl %esi, %esi
movq %r15, %rdx
callq 0x10c0
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-ctrl.c
// Function: getchoice
static int getchoice(int *argip, int argc, char *argv[], const char *options[])
{
  const char *arg = getvalue(argip, argc, argv);

  int value = -1;
  while(options[++value])
    if(streq(arg, options[value]))
      return value;

  fprintf(stderr, "Unrecognised option value %s\n", arg);
  exit(1);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %rbx
callq 0x1a66
movq %rax, %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x18fd
movq %r14, %rdi
callq 0x1070
incl %ebp
addq $0x8, %rbx
testl %eax, %eax
jne 0x18dc
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %r14, %rdi
callq 0x119a
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-ctrl.c
// Function: do_dec_mode
static void do_dec_mode(int mode, BoolQuery val, const char *name)
{
  switch(val) {
    case OFF:
    case ON:
      printf("\x1b[?%d%c", mode, val == ON ? 'h' : 'l');
      break;

    case QUERY:
      if(query_dec_mode(mode))
        printf("%s on\n", name);
      else
        printf("%s off\n", name);
      break;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edi, %ebp
cmpl $0x2, %esi
jae 0x1947
xorl %eax, %eax
cmpl $0x1, %esi
setne %al
leal 0x68(,%rax,4), %edx
leaq 0x92c(%rip), %rdi       # 0x225c
movl %ebp, %esi
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1060
jne 0x1a57
movq %rdx, 0x8(%rsp)
leaq 0x91a(%rip), %rdi       # 0x2273
movl %ebp, %esi
xorl %eax, %eax
callq 0x1060
leaq 0x10(%rsp), %r14
leaq 0x3(%rsp), %r13
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x197b
movq %rbx, %rdi
callq 0x1030
movl $0x9b, %edi
callq 0x1a7d
xorl %ebx, %ebx
callq 0x1080
movb %al, 0x10(%rsp,%rbx)
movsbl %al, %eax
addl $-0x40, %eax
cmpl $0x3f, %eax
jb 0x19a9
incq %rbx
cmpq $0x1f, %rbx
jne 0x1987
movl $0x1f, %ebx
incl %ebx
movb $0x0, 0x10(%rsp,%rbx)
movq %r14, %rdi
callq 0x1100
movq %rax, %rbx
movq %rax, %rdi
leaq 0x8b6(%rip), %rsi       # 0x227b
movq %r14, %rdx
leaq 0x4(%rsp), %rcx
movq %r13, %r8
xorl %eax, %eax
callq 0x10a0
cmpl $0x3, %eax
setl %al
cmpb $0x79, 0x3(%rsp)
setne %cl
cmpl %ebp, 0x10(%rsp)
setne %r12b
orb %cl, %r12b
orb %al, %r12b
jne 0x1a2c
movq %rbx, %rdi
callq 0x1030
movl 0x4(%rsp), %esi
movl %esi, %eax
andl $-0x3, %eax
movb $0x1, %r15b
cmpl $0x1, %eax
je 0x1a2c
xorl %r15d, %r15d
cmpl $0x2, %esi
je 0x1a2c
cmpl $0x4, %esi
je 0x1a2c
xorl %r15d, %r15d
leaq 0x860(%rip), %rdi       # 0x2285
xorl %eax, %eax
callq 0x1060
testb %r12b, %r12b
jne 0x196e
testb $0x1, %r15b
movq 0x8(%rsp), %rsi
je 0x1a49
leaq 0x81d(%rip), %rdi       # 0x2264
jmp 0x1a50
leaq 0x81b(%rip), %rdi       # 0x226b
xorl %eax, %eax
callq 0x1060
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/neovim[P]libvterm/bin/vterm-ctrl.c
// Function: await_c1
static void await_c1(unsigned char c1)
{
  unsigned char c;

  /* await CSI - 8bit or 2byte 7bit form */
  bool in_esc = false;
  while((c = getchar())) {
    if(c == c1)
      break;
    if(in_esc && c == (char)(c1 - 0x40))
      break;
    if(!in_esc && c == 0x1b)
      in_esc = true;
    else
      in_esc = false;
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
callq 0x1080
movl %eax, %ecx
andl $0xff, %ecx
je 0x1ac3
leal -0x40(%rbx), %ebp
xorl %r14d, %r14d
cmpb %al, %bpl
sete %dl
cmpb %bl, %al
je 0x1ac3
andb %r14b, %dl
jne 0x1ac3
xorb $0x1, %r14b
cmpl $0x1b, %ecx
sete %al
andb %al, %r14b
callq 0x1080
movl %eax, %ecx
andl $0xff, %ecx
jne 0x1a98
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O1/nilyang[P]redis-tdd-annotation/src/redis-check-aof.c
// Function: consumeNewline
int consumeNewline(char *buf) {
    if (strncmp(buf,"\r\n",2) != 0) {
        ERROR("Expected \\r\\n, got: %02x%02x",buf[0],buf[1]);
        return 0;
    }
    return 1;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, %rbx
leaq 0xd84(%rip), %rsi       # 0x2004
movl $0x2, %edx
callq 0x1050
testl %eax, %eax
je 0x12cc
movsbl (%rbx), %edx
movsbl 0x1(%rbx), %ecx
leaq 0xd6b(%rip), %rsi       # 0x2007
xorl %ebx, %ebx
movq %rsp, %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x1140
movq 0x322e(%rip), %rdx      # 0x44e0
leaq 0x2e27(%rip), %rdi      # 0x40e0
leaq 0xd64(%rip), %rsi       # 0x2024
movq %r14, %rcx
xorl %eax, %eax
callq 0x1140
jmp 0x12d1
movl $0x1, %ebx
movl %ebx, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/nilyang[P]redis-tdd-annotation/src/redis-check-aof.c
// Function: readLong
int readLong(FILE *fp, char prefix, long *target) {
    char buf[128], *eptr;

    epos = ftello(fp);

    // 读入行
    if (fgets(buf,sizeof(buf),fp) == NULL) {
        return 0;
    }

    // 确保前缀相同
    if (buf[0] != prefix) {
        ERROR("Expected prefix '%c', got: '%c'",buf[0],prefix);
        return 0;
    }

    // 将字符串转换成 long 值
    *target = strtol(buf+1,&eptr,10);

    return consumeNewline(eptr);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x480, %rsp            # imm = 0x480
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x10a0
movq %rax, 0x31e3(%rip)      # 0x44e0
movq %rsp, %rdi
movl $0x80, %esi
movq %r14, %rdx
callq 0x10b0
testq %rax, %rax
je 0x1344
movsbl (%rsp), %edx
cmpb %bpl, %dl
jne 0x1348
leaq 0x1(%rsp), %rdi
leaq 0x80(%rsp), %r14
movq %r14, %rsi
movl $0xa, %edx
callq 0x10f0
movq %rax, (%rbx)
movq (%r14), %rdi
callq 0x126c
movl %eax, %ebx
jmp 0x1386
xorl %ebx, %ebx
jmp 0x1386
movsbl %bpl, %ecx
leaq 0xcde(%rip), %rsi       # 0x2031
xorl %ebx, %ebx
leaq 0x80(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x1140
movq 0x3172(%rip), %rdx      # 0x44e0
leaq 0x2d6b(%rip), %rdi      # 0x40e0
leaq 0xca8(%rip), %rsi       # 0x2024
movq %r14, %rcx
xorl %eax, %eax
callq 0x1140
movl %ebx, %eax
addq $0x480, %rsp            # imm = 0x480
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/nilyang[P]redis-tdd-annotation/src/redis-check-aof.c
// Function: readBytes
int readBytes(FILE *fp, char *target, long length) {
    long real;

    epos = ftello(fp);

    real = fread(target,1,length,fp);
    if (real != length) {
        ERROR("Expected to read %ld bytes, got %ld bytes",length,real);
        return 0;
    }

    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x10a0
movq %rax, 0x312a(%rip)      # 0x44e0
movl $0x1, %esi
movq %r14, %rdi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x1070
movl $0x1, %ebp
cmpq %rbx, %rax
je 0x140e
leaq 0xc77(%rip), %rsi       # 0x2051
xorl %ebp, %ebp
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1140
movq 0x30ea(%rip), %rdx      # 0x44e0
leaq 0x2ce3(%rip), %rdi      # 0x40e0
leaq 0xc20(%rip), %rsi       # 0x2024
movq %r14, %rcx
xorl %eax, %eax
callq 0x1140
movl %ebp, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/nilyang[P]redis-tdd-annotation/src/redis-check-aof.c
// Function: readString
int readString(FILE *fp, char** target) {

    // 读取字符串的长度
    long len;
    *target = NULL;
    if (!readLong(fp,'$',&len)) {
        return 0;
    }

    /* Increase length to also consume \r\n */
    len += 2;

    // 为字符串分配空间
    *target = (char*)malloc(len);

    // 读取内容
    if (!readBytes(fp,*target,len)) {
        return 0;
    }

    // 确认 \r\n
    if (!consumeNewline(*target+len-2)) {
        return 0;
    }

    (*target)[len-2] = '\0';

    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movq $0x0, (%rsi)
movq %rsp, %rdx
movl $0x24, %esi
callq 0x12de
xorl %ebp, %ebp
testl %eax, %eax
je 0x1490
movq (%rsp), %r14
addq $0x2, %r14
movq %r14, (%rsp)
movq %r14, %rdi
callq 0x1110
movq %rax, (%rbx)
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x1394
testl %eax, %eax
je 0x1490
movq (%rbx), %rax
leaq (%rax,%r14), %rdi
addq $-0x2, %rdi
callq 0x126c
testl %eax, %eax
je 0x1490
movq (%rbx), %rax
movb $0x0, -0x2(%rax,%r14)
movl $0x1, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/CSerxzm[P]WindowstoLinuxInterface/src/CD.c
// Function: main
int main(int argc, char *argv[])
{
    char lines[argc+1][255];
    char cwd[100];
    predealLine(argc, argv, lines);
    if(argc!=2)
    {
		printf("参数数目不正确.\n");
		return 0; 
    }
    if(!chdir(lines[1]))
    {
		printf("当前工作文件夹改变到：");
        if(getcwd(cwd,sizeof(cwd)) != NULL)
	{
		puts(cwd);  
	}
	else
	{
		perror("getcwd");
	}
    }
    else
    {
		perror("chdir"); 
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl %edi, %r14d
leal 0x1(%r14), %eax
movq %rax, %rcx
shlq $0x8, %rcx
subq %rax, %rcx
addq $0xf, %rcx
movabsq $0x1fffffffff0, %rax    # imm = 0x1FFFFFFFFF0
andq %rcx, %rax
movq %rsp, %rbx
subq %rax, %rbx
movq %rbx, %rsp
movq %rbx, %rdx
callq 0x11ac
cmpl $0x2, %r14d
jne 0x1327
addq $0xff, %rbx
movq %rbx, %rdi
callq 0x1050
testl %eax, %eax
jne 0x133e
leaq 0xcfd(%rip), %rdi       # 0x2004
xorl %eax, %eax
callq 0x1060
leaq -0x80(%rbp), %rdi
movl $0x64, %esi
callq 0x1070
testq %rax, %rax
je 0x1347
leaq -0x80(%rbp), %rdi
jmp 0x132e
leaq 0xd05(%rip), %rdi       # 0x2033
callq 0x1030
xorl %eax, %eax
leaq -0x10(%rbp), %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0xce8(%rip), %rdi       # 0x202d
jmp 0x134e
leaq 0xcd8(%rip), %rdi       # 0x2026
callq 0x1080
jmp 0x1333
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/server/worker.c
// Function: start_worker
int start_worker(struct server_worker_data *data)
{
	pthread_attr_t attr;
	int ret;

	ret = pthread_attr_init(&attr);
	if (ret)
		return -ret;
	ret = pthread_attr_setstacksize(&attr, WORKER_STACK_SIZE);
	if (ret)
		return -ret;
	ret = pthread_create(&data->tid, &attr, worker_main, data);

	pthread_attr_destroy(&attr);
	return -ret;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x10f0
testl %eax, %eax
jne 0x1ca0
leaq 0x8(%rsp), %rdi
movl $0x4000, %esi           # imm = 0x4000
callq 0x1240
testl %eax, %eax
je 0x1caf
movl %eax, %ebp
negl %ebp
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x28(%rbx), %rdi
leaq 0x1c(%rip), %rdx        # 0x1cd6
leaq 0x8(%rsp), %r14
movq %r14, %rsi
movq %rbx, %rcx
callq 0x1150
movl %eax, %ebp
movq %r14, %rdi
callq 0x11b0
jmp 0x1ca2
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/server/worker.c
// Function: worker_main
static void *worker_main(void *_data)
{
	struct server_worker_data *data = _data;
	bool do_write = data->reply;
	bool eof = false;
	int ret;

	pthread_cleanup_push(cleanup_close, data);

	while (!eof) {
		ret = recv_msg(data, &eof);
		if (ret < 0 || eof)
			break;
		if (do_write) {
			ret = send_msg(data);
			if (ret < 0)
				break;
		}
	}

	pthread_cleanup_pop(1);

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movb 0x18(%rdi), %r12b
movq %rsp, %rdi
xorl %esi, %esi
callq 0x1200
testl %eax, %eax
jne 0x1e14
movq %rsp, %rdi
callq 0x11e0
xorl %ebp, %ebp
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x1d4d
movq 0x10(%rbx), %r15
movl 0x4(%rbx), %edi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x1030
testq %rax, %rax
jns 0x1d37
callq 0x1040
movl (%rax), %eax
cmpl $0x4, %eax
je 0x1d14
jmp 0x1d58
je 0x1de9
incq 0x38(%rbx)
addq %rax, %r15
addq %rax, 0x40(%rbx)
subq %rax, %r14
jne 0x1d14
incq 0x30(%rbx)
xorl %eax, %eax
movl %eax, %r13d
jmp 0x1d69
movl %eax, %ecx
negl %ecx
movl %ecx, 0x60(%rbx)
testl %eax, %eax
setg %al
xorl %ecx, %ecx
movl %ecx, %r13d
testb %al, %al
jne 0x1df3
testb %r13b, %r13b
jne 0x1df3
testb %r12b, %r12b
je 0x1dbf
movq 0x20(%rbx), %r14
testq %r14, %r14
je 0x1dbb
movq 0x10(%rbx), %r15
movl 0x4(%rbx), %edi
movq %r15, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x10a0
testq %rax, %rax
jns 0x1dab
callq 0x1040
movl (%rax), %ecx
cmpl $0x4, %ecx
je 0x1d88
jmp 0x1dca
incq 0x50(%rbx)
addq %rax, %r15
addq %rax, 0x58(%rbx)
subq %rax, %r14
jne 0x1d88
incq 0x48(%rbx)
testb %r13b, %r13b
je 0x1d07
jmp 0x1df3
cmpl $0x20, %ecx
jne 0x1dd3
xorl %ecx, %ecx
jmp 0x1dd5
negl %ecx
movl %ecx, 0x60(%rbx)
cmpl $0x0, (%rax)
setg %al
orb %r13b, %al
je 0x1d07
jmp 0x1df3
movb $0x1, %r13b
xorl %eax, %eax
jmp 0x1d69
movq %rsp, %rdi
callq 0x10c0
movl 0x4(%rbx), %edi
callq 0x10e0
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x1e24
movq %rsp, %rdi
callq 0x1120
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/common.c
// Function: parse_ulong_delim
int parse_ulong_delim(const char *name, const char *str, unsigned long *val,
		      char delimiter, const char **next)
{
	unsigned long factor = 1;
	char *eptr;
	char c;

	if (!*str)
		goto invalid;
	*val = strtoul(str, &eptr, 10);

	c = *eptr++;
	switch(c) {
	case '\0':
		eptr--;
		break;
	case 'k':
		factor = 1000UL;
		break;
	case 'K':
		factor = 1UL << 10;
		break;
	case 'm':
		factor = 1000000UL;
		break;
	case 'M':
		factor = 1UL << 20;
		break;
	case 'g':
		factor = 1000000000UL;
		break;
	case 'G':
		factor = 1UL << 30;
		break;
	case 't':
		factor = 1000000000000UL;
		break;
	case 'T':
		factor = 1UL << 40;
		break;
	default:
		eptr--;
		break;
	}
	if (*eptr) {
	       if (*eptr != delimiter)
		       goto invalid;
	}

	if (*val > ULONG_MAX / factor) {
		fprintf(stderr, "value '%s' of %s too large\n", str, name);
		return -EINVAL;
	}
	*val *= factor;
	if (next)
		*next = eptr;
	return 0;

invalid:
	fprintf(stderr, "invalid value '%s' of %s\n", str, name);
	return -EINVAL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x0, (%rsi)
je 0x1f2e
movq %r8, %r15
movl %ecx, %ebp
movq %rdx, %r12
movq %rsp, %r13
movq %r14, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x11a0
movq %rax, %rcx
movq %rax, (%r12)
movq (%r13), %rax
leaq 0x1(%rax), %rdx
movq %rdx, (%r13)
movzbl (%rax), %edx
cmpl $0x53, %edx
jle 0x1e9c
cmpl $0x6a, %edx
jle 0x1ec2
cmpl $0x6b, %edx
je 0x1ee5
cmpl $0x6d, %edx
je 0x1ef8
cmpl $0x74, %edx
jne 0x1ed3
movabsq $0xe8d4a51000, %rsi     # imm = 0xE8D4A51000
jmp 0x1efd
cmpl $0x4a, %edx
jg 0x1eb1
testl %edx, %edx
je 0x1ed3
cmpl $0x47, %edx
jne 0x1ed3
movl $0x40000000, %esi       # imm = 0x40000000
jmp 0x1efd
cmpl $0x4b, %edx
je 0x1ede
cmpl $0x4d, %edx
jne 0x1ed3
movl $0x100000, %esi         # imm = 0x100000
jmp 0x1efd
cmpl $0x54, %edx
je 0x1eec
cmpl $0x67, %edx
jne 0x1ed3
movl $0x3b9aca00, %esi       # imm = 0x3B9ACA00
jmp 0x1efd
movq %rax, (%rsp)
movl $0x1, %esi
jmp 0x1efd
movl $0x400, %esi            # imm = 0x400
jmp 0x1efd
movl $0x3e8, %esi            # imm = 0x3E8
jmp 0x1efd
movabsq $0x10000000000, %rsi    # imm = 0x10000000000
jmp 0x1efd
movl $0xf4240, %esi          # imm = 0xF4240
movq (%rsp), %rdi
movb (%rdi), %al
testb %al, %al
setne %dl
cmpb %bpl, %al
setne %al
testb %al, %dl
jne 0x1f2e
movq %rsi, %rax
mulq %rcx
jo 0x1f41
imulq %rcx, %rsi
movq %rsi, (%r12)
xorl %eax, %eax
testq %r15, %r15
je 0x1f64
movq %rdi, (%r15)
jmp 0x1f64
movq 0x30c3(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1462(%rip), %rsi      # 0x33a1
jmp 0x1f52
movq 0x30b0(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1433(%rip), %rsi      # 0x3385
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1100
movl $0xffffffea, %eax       # imm = 0xFFFFFFEA
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/common.c
// Function: parse_ulong_range_delim
int parse_ulong_range_delim(const char *name, const char *str,
			    unsigned long *val, unsigned long min_val,
			    unsigned long max_val, char delimiter,
			    const char **next)
{
	int ret;

	ret = parse_ulong_delim(name, str, val, delimiter, next);
	if (ret < 0)
		return ret;
	if (*val < min_val) {
		fprintf(stderr, "value %lu of %s is lower than %lu\n",
			*val, name, min_val);
		return -EINVAL;
	}
	if (*val > max_val) {
		fprintf(stderr, "value %lu of %s is higher than %lu\n",
			*val, name, max_val);
		return -EINVAL;
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
movq 0x30(%rsp), %r8
movl %r9d, %ecx
callq 0x1e2c
testl %eax, %eax
js 0x1fb2
movq (%r12), %rdx
cmpq %r15, %rdx
jb 0x1fbe
xorl %eax, %eax
cmpq %r14, %rdx
ja 0x1fd7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x3033(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x13ec(%rip), %rsi      # 0x33bb
movq %rbx, %rcx
movq %r15, %r8
jmp 0x1fee
movq 0x301a(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x13f6(%rip), %rsi      # 0x33de
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x1100
movl $0xffffffea, %eax       # imm = 0xFFFFFFEA
jmp 0x1fb2
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/common.c
// Function: parse_double_delim
int parse_double_delim(const char *name, const char *str, double *val,
		       char delimiter, const char **next)
{
	char *eptr;

	if (!*str)
		goto invalid;
	*val = strtod(str, &eptr);

	if (*eptr) {
	       if (*eptr != delimiter)
		       goto invalid;
	}

	if (next)
		*next = eptr;
	return 0;

invalid:
	fprintf(stderr, "invalid value '%s' of %s\n", str, name);
	return -EINVAL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x0, (%rsi)
je 0x206f
movq %r8, %r15
movl %ecx, %ebp
movq %rdx, %r12
movq %rsp, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x1060
movsd %xmm0, (%r12)
movq (%r13), %rcx
movb (%rcx), %al
testb %al, %al
setne %dl
cmpb %bpl, %al
setne %al
testb %al, %dl
jne 0x206f
xorl %eax, %eax
testq %r15, %r15
je 0x2060
movq %rcx, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2f82(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1321(%rip), %rsi      # 0x33a1
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1100
movl $0xffffffea, %eax       # imm = 0xFFFFFFEA
jmp 0x2060
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/common.c
// Function: parse_double_range_delim
int parse_double_range_delim(const char *name, const char *str,
			     double *val, double min_val,
			     double max_val, char delimiter,
			     const char **next)
{
	int ret;

	ret = parse_double_delim(name, str, val, delimiter, next);
	if (ret < 0)
		return ret;
	if (*val < min_val) {
		fprintf(stderr, "value '%s' of %s is lower than %g\n",
			str, name, min_val);
		return -EINVAL;
	}
	if (*val > max_val) {
		fprintf(stderr, "value '%s' of %s is higher than %g\n",
			str, name, max_val);
		return -EINVAL;
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movsd %xmm1, (%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0x200f
testl %eax, %eax
js 0x20e2
movsd (%r15), %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm1, %xmm0
ja 0x20ec
xorl %eax, %eax
movsd (%rsp), %xmm0
ucomisd %xmm0, %xmm1
ja 0x20ff
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x2f05(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1305(%rip), %rsi      # 0x3402
jmp 0x2110
movq 0x2ef2(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1315(%rip), %rsi      # 0x3425
movq %r14, %rdx
movq %rbx, %rcx
movb $0x1, %al
callq 0x1100
movl $0xffffffea, %eax       # imm = 0xFFFFFFEA
jmp 0x20e2
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/common.c
// Function: ignore_signal
int ignore_signal(int signum)
{
	struct sigaction action;
	int ret;

	ret = sigaction(signum, NULL, &action);
	if (ret < 0)
		return -errno;
	action.sa_handler = SIG_IGN;
	ret = sigaction(signum, &action, NULL);
	if (ret < 0)
		return -errno;

	return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x98, %rsp
movl %edi, %ebp
xorl %ebx, %ebx
movq %rsp, %rdx
xorl %esi, %esi
callq 0x1050
testl %eax, %eax
js 0x2160
movq %rsp, %rsi
movq $0x1, (%rsi)
movl %ebp, %edi
xorl %edx, %edx
callq 0x1050
testl %eax, %eax
jns 0x2169
callq 0x1040
xorl %ebx, %ebx
subl (%rax), %ebx
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/common.c
// Function: send_block
int send_block(int sd, const void *buff, unsigned int length)
{
	const unsigned char *bp = buff;
	unsigned int rest = length;
	ssize_t chunk;

	while (rest > 0) {
		chunk = send(sd, bp, rest, 0);
		if (chunk < 0) {
			if (errno == EINTR)
				continue;
			return -errno;
		}

		bp += chunk;
		rest -= chunk;
	}

	return 0;
}

// Assembly:
testl %edx, %edx
je 0x21ba
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movl %edi, %ebp
movl %ebx, %ebx
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x10a0
testq %rax, %rax
jns 0x21a8
callq 0x1040
movl (%rax), %eax
cmpl $0x4, %eax
je 0x2186
jmp 0x21b3
addq %rax, %r14
subl %eax, %ebx
jne 0x2184
xorl %eax, %eax
jmp 0x21b5
negl %eax
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/mkubecek[P]nperf/common.c
// Function: recv_block
int recv_block(int sd, void *buff, unsigned int length)
{
	unsigned int rest = length;
	unsigned char *bp = buff;
	ssize_t chunk;

	while (rest > 0) {
		chunk = recv(sd, bp, rest, MSG_WAITALL);
		if (chunk < 0) {
			if (errno == EINTR)
				continue;
			return -errno;
		}
		if (!chunk)
			return -EINVAL;

		bp += chunk;
		rest -= chunk;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
testl %edx, %edx
je 0x220a
movl %edx, %r14d
movq %rsi, %r15
movl %edi, %ebp
movl %r14d, %r14d
movl %ebp, %edi
movq %r15, %rsi
movq %r14, %rdx
movl $0x100, %ecx            # imm = 0x100
callq 0x1030
testq %rax, %rax
jns 0x21fa
callq 0x1040
movl (%rax), %eax
cmpl $0x4, %eax
je 0x21d5
jmp 0x2206
je 0x2217
addq %rax, %r15
subl %eax, %r14d
jne 0x21d2
jmp 0x220a
negl %eax
movl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffea, %ebx       # imm = 0xFFFFFFEA
jmp 0x220a