LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_expression.c
// Function: parse_relational_expression
static struct UntypedExpr
parse_relational_expression(const struct Token **ptr_tokvec)
{
	const struct Token *tokvec = *ptr_tokvec;

	struct UntypedExpr expr = parse_shift_expression(&tokvec);

	while (1) {
		enum TokenKind kind = tokvec[0].kind;
		if (kind != OP_GT && kind != OP_GT_EQ && kind != OP_LT &&
		    kind != OP_LT_EQ) {
			break;
		}
		++tokvec;

		struct UntypedExpr expr2 = parse_shift_expression(&tokvec);
		expr = binary_op_untyped(&expr, &expr2, kind);
	}
	*ptr_tokvec = tokvec;
	return expr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, %r14
movq %rsi, -0x38(%rbp)
movq (%rsi), %rax
leaq -0x30(%rbp), %rsi
movq %rax, (%rsi)
callq 0x7eae
movl $0x1b000, %r15d         # imm = 0x1B000
leaq -0x178(%rbp), %r12
leaq -0xd8(%rbp), %r13
movq -0x30(%rbp), %rax
movl (%rax), %ebx
cmpl $0x10, %ebx
ja 0x7e92
btl %ebx, %r15d
jae 0x7e92
addq $0x20, %rax
movq %rax, -0x30(%rbp)
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x7eae
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x7114
movl $0xa0, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x1100
jmp 0x7e4b
movq -0x38(%rbp), %rcx
movq %rax, (%rcx)
movq %r14, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_expression.c
// Function: parse_shift_expression
static struct UntypedExpr
parse_shift_expression(const struct Token **ptr_tokvec)
{
	const struct Token *tokvec = *ptr_tokvec;
	struct UntypedExpr expr = parse_additive_expression(&tokvec);

	while (1) {
		enum TokenKind kind = tokvec[0].kind;
		if (kind != OP_LSHIFT && kind != OP_RSHIFT) {
			break;
		}
		++tokvec;

		struct UntypedExpr expr2 = parse_additive_expression(&tokvec);
		expr = binary_op_untyped(&expr, &expr2, kind);
	}
	*ptr_tokvec = tokvec;
	return expr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, %r14
movq %rsi, -0x38(%rbp)
movq (%rsi), %rax
leaq -0x30(%rbp), %r15
movq %rax, (%r15)
movq %r15, %rsi
callq 0x7f4a
leaq -0x178(%rbp), %r12
leaq -0xd8(%rbp), %r13
movq -0x30(%rbp), %rax
movl (%rax), %ebx
cmpl $0xe, %ebx
je 0x7ef9
cmpl $0xb, %ebx
jne 0x7f2e
addq $0x20, %rax
movq %rax, -0x30(%rbp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x7f4a
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x7114
movl $0xa0, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x1100
jmp 0x7ee9
movq -0x38(%rbp), %rcx
movq %rax, (%rcx)
movq %r14, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_expression.c
// Function: parse_additive_expression
static struct UntypedExpr
parse_additive_expression(const struct Token **ptr_tokvec)
{
	const struct Token *tokvec = *ptr_tokvec;
	struct UntypedExpr expr = parse_multiplicative_expression(&tokvec);

	while (1) {
		enum TokenKind kind = tokvec[0].kind;
		if (kind != OP_PLUS && kind != OP_MINUS) {
			break;
		}
		++tokvec;

		struct UntypedExpr expr2 = parse_multiplicative_expression(&tokvec);
		expr = binary_op_untyped(&expr, &expr2, kind);
	}
	*ptr_tokvec = tokvec;
	return expr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, %r14
movq %rsi, -0x38(%rbp)
movq (%rsi), %rax
leaq -0x30(%rbp), %r15
movq %rax, (%r15)
movq %r15, %rsi
callq 0x7fe1
leaq -0x178(%rbp), %r12
leaq -0xd8(%rbp), %r13
movq -0x30(%rbp), %rax
movl (%rax), %ebx
cmpl $0x1, %ebx
ja 0x7fc5
addq $0x20, %rax
movq %rax, -0x30(%rbp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x7fe1
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x7114
movl $0xa0, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x1100
jmp 0x7f85
movq -0x38(%rbp), %rcx
movq %rax, (%rcx)
movq %r14, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_expression.c
// Function: parse_multiplicative_expression
static struct UntypedExpr
parse_multiplicative_expression(const struct Token **ptr_tokvec)
{
	const struct Token *tokvec = *ptr_tokvec;
	struct UntypedExpr expr = parse_cast_expression(&tokvec);

	while (1) {
		enum TokenKind kind = tokvec[0].kind;
		if (kind != OP_ASTERISK && kind != OP_SLASH && kind != OP_PERCENT) {
			break;
		}
		++tokvec;

		struct UntypedExpr expr2 = parse_cast_expression(&tokvec);

		expr = binary_op_untyped(&expr, &expr2, kind);
	}
	*ptr_tokvec = tokvec;
	return expr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, %r14
movq %rsi, -0x38(%rbp)
movq (%rsi), %rax
leaq -0x30(%rbp), %rsi
movq %rax, (%rsi)
callq 0x725d
movl $0x320, %r15d           # imm = 0x320
leaq -0x178(%rbp), %r12
leaq -0xd8(%rbp), %r13
movq -0x30(%rbp), %rax
movl (%rax), %ebx
cmpl $0x9, %ebx
ja 0x8066
btl %ebx, %r15d
jae 0x8066
addq $0x20, %rax
movq %rax, -0x30(%rbp)
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x725d
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
movl %ebx, %ecx
callq 0x7114
movl $0xa0, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x1100
jmp 0x801f
movq -0x38(%rbp), %rcx
movq %rax, (%rcx)
movq %r14, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/error.c
// Function: error_unexpected_token
_Noreturn void error_unexpected_token(const struct Token *tokvec,
                                      const char *str)
{
	fprintf(stderr, "Unexpected token: `");
	print_token_at(tokvec);
	fprintf(stderr, "` while expecting %s. \n", str);
	fprintf(stderr, "Next token: `");
	print_token_at(tokvec + 1);
	fprintf(stderr, "`\n");
	fprintf(stderr, "Previous token: `");
	print_token_at(tokvec - 1);
	/* it does not fail if tokvec[0] was the
	   first token, since there always is at least one token (BEGINNING) */
	fprintf(stderr, "`\n");
	exit(EXIT_FAILURE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq 0xdf59(%rip), %r13      # 0x15ff8
movq (%r13), %rcx
leaq 0x711e(%rip), %rdi      # 0xf1c8
pushq $0x13
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x1180
movq %r14, %rdi
callq 0xb0ce
movq (%r13), %rdi
leaq 0x7111(%rip), %rsi      # 0xf1dc
movq %r15, %rdx
xorl %eax, %eax
callq 0x10f0
movq (%r13), %rcx
leaq 0x7114(%rip), %rdi      # 0xf1f4
pushq $0xd
popq %rsi
movq %rbx, %rdx
callq 0x1180
leaq 0x20(%r14), %rdi
callq 0xb0ce
movq (%r13), %rcx
leaq 0x5de6(%rip), %r15      # 0xdee5
pushq $0x2
popq %r12
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x1180
movq (%r13), %rcx
leaq 0x70e6(%rip), %rdi      # 0xf202
pushq $0x11
popq %rsi
movq %rbx, %rdx
callq 0x1180
addq $-0x20, %r14
movq %r14, %rdi
callq 0xb0ce
movq (%r13), %rcx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x1180
pushq $0x1
popq %rdi
callq 0x1170
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/error.c
// Function: expect_and_consume
void expect_and_consume(const struct Token **ptr_tokvec, enum TokenKind kind,
                        const char *str)
{
	const struct Token *tokvec = *ptr_tokvec;

	if (tokvec[0].kind != kind) {
		error_unexpected_token(tokvec, str);
	}
	++tokvec;
	*ptr_tokvec = tokvec;
}

// Assembly:
movq %rdi, %rax
movq (%rdi), %rdi
cmpl %esi, (%rdi)
jne 0x817a
addq $0x20, %rdi
movq %rdi, (%rax)
retq
pushq %rbp
movq %rsp, %rbp
movq %rdx, %rsi
callq 0x8084
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/type.c
// Function: size_of_basic
int size_of_basic(const struct Type *ref_type, const char *msg)
{
	switch (ref_type->type_category) {
	case INT_:
	case ENUM_:
		return 4;
	case PTR_:
		return 8;
	case CHAR_:
		return 1;
	case ARRAY:
	case FN:
	case STRUCT_NOT_UNION:
	case UNION:
		fprintf(
		    stderr,
		    "array, function, struct, or union type is not a basic type.\n");
		fprintf(stderr, "context: %s\n", msg);
		exit(EXIT_FAILURE);
	case VOID_:
		fprintf(stderr, "size of `void` is never known\n");
		fprintf(stderr, "context: %s\n", msg);
		exit(EXIT_FAILURE);
	}

	fprintf(stderr,
	        "****************************\n"
	        "* INTERNAL COMPILER ERROR @ %s\n"
	        "* Unexpected value of TypeCategory: `ref_type->type_category` is `%d`\n"
	        "****************************\n",
	        __func__, ref_type->type_category);
	exit(EXIT_FAILURE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl (%rdi), %ecx
cmpq $0x8, %rcx
ja 0x8248
movq %rsi, %rbx
leaq 0x7031(%rip), %rax      # 0xf228
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
pushq $0x4
jmp 0x820a
pushq $0x8
jmp 0x820a
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
movq 0xdde1(%rip), %r14      # 0x15ff8
movq (%r14), %rcx
leaq 0x704f(%rip), %rdi      # 0xf270
pushq $0x3c
popq %rsi
pushq $0x1
popq %rdx
callq 0x1180
movq (%r14), %rdi
leaq 0x650d(%rip), %rsi      # 0xe743
movq %rbx, %rdx
xorl %eax, %eax
callq 0x10f0
pushq $0x1
popq %rdi
callq 0x1170
movq 0xdda9(%rip), %rax      # 0x15ff8
movq (%rax), %rdi
leaq 0x54cd(%rip), %rsi      # 0xd726
leaq 0x706c(%rip), %rdx      # 0xf2cc
xorl %eax, %eax
callq 0x10f0
jmp 0x8240
movq 0xdd88(%rip), %r14      # 0x15ff8
movq (%r14), %rcx
leaq 0x7033(%rip), %rdi      # 0xf2ad
pushq $0x1e
jmp 0x8223
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/type.c
// Function: deref_type
struct Type deref_type(const struct Type *ref_type)
{
	if (ref_type->type_category == PTR_) {
		return *ref_type->derived_from;
	}

	fprintf(stderr, "Unmatched type: expected a pointer, but got `");
	debug_print_type(ref_type);
	fprintf(stderr, "`.\n");
	exit(EXIT_FAILURE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpl $0x1, (%rsi)
jne 0x85d7
movq %rdi, %rax
movq 0x8(%rbx), %rsi
pushq $0xa
popq %rcx
rep  movsq (%rsi), %es:(%rdi)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0xda1a(%rip), %r15      # 0x15ff8
movq (%r15), %rcx
leaq 0x6d96(%rip), %rdi      # 0xf37e
pushq $0x2d
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x1180
movq %rbx, %rdi
callq 0x827e
movq (%r15), %rcx
leaq 0x90d4(%rip), %rdi      # 0x116dd
pushq $0x3
popq %rsi
movq %r14, %rdx
callq 0x1180
pushq $0x1
popq %rdi
callq 0x1170
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/type.c
// Function: ptr_to_type
struct Type ptr_to_type(const struct Type *ref_type)
{
	struct Type *ptr_type = calloc(1, sizeof(struct Type));
	*ptr_type = *ref_type;
	struct Type type;
	type.type_category = PTR_;
	type.derived_from = ptr_type;
	return type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %rdi
pushq $0x50
popq %rsi
callq 0x10d0
pushq $0xa
popq %rcx
movq %rax, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x1, (%r14)
movq %rax, 0x8(%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/type.c
// Function: arr_of_type
struct Type arr_of_type(const struct Type *ref_type, int length)
{
	struct Type *ptr_type = calloc(1, sizeof(struct Type));
	*ptr_type = *ref_type;

	struct Type type;
	type.type_category = ARRAY;
	type.derived_from = ptr_type;
	type.array_length = length;
	return type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
pushq $0x1
popq %rdi
pushq $0x50
popq %rsi
callq 0x10d0
pushq $0xa
popq %rcx
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x2, (%r15)
movq %rax, 0x8(%r15)
movl %ebx, 0x10(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: parse_parameter_declaration
struct TypeAndIdent *
parse_parameter_declaration(const struct Token **ptr_tokvec)
{
	const char *ident_str = 0; /* null when abstract */
	struct TypeAndIdent *ptr_param_info =
	    calloc(1, sizeof(struct TypeAndIdent));

	struct Type type;
	{
		struct Type *ptr_base_type = parse_type_specifier(ptr_tokvec);
		struct Vector /*<struct TypeNode>*/ *ptr_vec = init_vector_();
		if ((*ptr_tokvec)[0].kind == OP_COMMA ||
		    (*ptr_tokvec)[0].kind == RIGHT_PAREN) {
			/* comma or right paren signifies the immediate end of
			 * parameter_declaration */
		} else {
			parse_declarator(ptr_tokvec, &ident_str, ptr_vec);
			if ((0)) {
				unsupported("abstract-declarator inside parameter declaration");
			}
		}
		push_vector(ptr_vec, ptr_base_type);
		type = from_type3_to_type(ptr_vec->vector);
	}

	if (type.type_category == FN) {
		/* shall be adjusted to `pointer to func`, according to the spec */
		ptr_param_info->type = ptr_to_type(&type);
	} else {
		/* convert to pointer */
		if (type.type_category == ARRAY) {
			type.type_category = PTR_;
		}
		ptr_param_info->type = type;
	}
	ptr_param_info->ident_str = ident_str;
	return ptr_param_info;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movq %rdi, %r14
andq $0x0, -0x28(%rbp)
pushq $0x1
popq %rdi
pushq $0x58
popq %rsi
callq 0x10d0
movq %rax, %rbx
movq %r14, %rdi
callq 0x8786
movq %rax, %r15
callq 0x49f5
movq %rax, %r12
movq (%r14), %rax
movl (%rax), %eax
cmpl $0x7, %eax
je 0x8705
cmpl $0xa, %eax
je 0x8705
leaq -0x28(%rbp), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x89b8
movq %r12, %rdi
movq %r15, %rsi
callq 0x4a57
movq 0x8(%r12), %rsi
leaq -0xc8(%rbp), %r14
movq %r14, %rdi
callq 0x8ab7
pushq $0xa
popq %rcx
leaq -0x78(%rbp), %rax
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl (%rax), %eax
cmpl $0x2, %eax
je 0x8757
cmpl $0x3, %eax
jne 0x875e
leaq -0x78(%rbp), %rsi
movq %r14, %rdi
callq 0x862d
pushq $0xa
popq %rcx
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x8768
movl $0x1, -0x78(%rbp)
pushq $0xa
popq %rcx
leaq -0x78(%rbp), %rsi
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq -0x28(%rbp), %rax
movq %rax, 0x50(%rbx)
movq %rbx, %rax
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: parse_declarator
static void parse_declarator(const struct Token **ptr_tokvec,
                             const char **ptr_to_ident_str,
                             struct Vector /*<struct TypeNode>*/ *ptr_vec)
{
	int asterisk_num = 0;
	for (; (*ptr_tokvec)[0].kind == OP_ASTERISK;
	     ++*ptr_tokvec, skip_consts_or_noreturns(ptr_tokvec)) {
		asterisk_num++;
	}

	parse_direct_declarator(ptr_tokvec, ptr_to_ident_str, ptr_vec);

	while (asterisk_num-- > 0) {
		struct TypeNode *ptr = calloc(1, sizeof(struct TypeNode));
		ptr->type_category = PTR_;
		push_vector(ptr_vec, ptr);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
xorl %r13d, %r13d
movq (%r14), %rdi
movl (%rdi), %eax
cmpl $0x5, %eax
jne 0x89f3
incl %r13d
addq $0x20, %rdi
movq %rdi, (%r14)
movq %r14, %rdi
callq 0x8c0b
jmp 0x89d5
movups (%rbx), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x18, %eax
je 0x8a3e
cmpl $0x6, %eax
jne 0x8aab
addq $0x20, %rdi
leaq -0x30(%rbp), %r12
movq %rdi, (%r12)
leaq -0x40(%rbp), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x89b8
leaq 0x6c02(%rip), %rdx      # 0xf62c
pushq $0x7
popq %rsi
movq %r12, %rdi
callq 0x8168
movq (%r12), %rax
movq %rax, (%r14)
jmp 0x8a4d
movq 0x8(%rdi), %rax
movq %rax, (%r15)
addq $0x20, %rdi
movq %rdi, -0x30(%rbp)
leaq -0x30(%rbp), %r15
leaq -0x40(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x8f3a
movq (%r15), %rax
movq %rax, (%r14)
movaps (%r12), %xmm0
movups %xmm0, (%rbx)
pushq $0x1
popq %r14
pushq $0x50
popq %r15
testl %r13d, %r13d
jle 0x8a9c
decl %r13d
movq %r14, %rdi
movq %r15, %rsi
callq 0x10d0
movl $0x1, (%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4a57
jmp 0x8a76
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6ba7(%rip), %rsi      # 0xf659
callq 0x8084
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: from_type3_to_type
static struct Type from_type3_to_type(const void **type3)
{
	struct Type type;
	const struct TypeNode *ptr_elem = type3[0];
	struct TypeNode elem = *ptr_elem;
	type = elem;
	switch (elem.type_category) {
	case INT_:
	case CHAR_:
	case STRUCT_NOT_UNION:
	case UNION:
	case VOID_:
	case ENUM_:
		return type;

	case PTR_:
	case ARRAY:
	case FN: {
		struct Type *ptr_to_current_type = calloc(1, sizeof(struct Type));
		*ptr_to_current_type = from_type3_to_type(type3 + 1);

		type.derived_from = ptr_to_current_type;

		if (type.type_category == ARRAY &&
		    type.derived_from->type_category == FN) {
			fprintf(stderr, "It is illegal to declare an array of functions\n");
			exit(EXIT_FAILURE);
		} else if (type.type_category == FN &&
		           type.derived_from->type_category == FN) {
			fprintf(stderr,
			        "It is illegal for a function to return a function type\n");
			exit(EXIT_FAILURE);
		} else if (type.type_category == FN &&
		           type.derived_from->type_category == ARRAY) {
			fprintf(stderr,
			        "It is illegal for a function to return an array type\n");
			exit(EXIT_FAILURE);
		}
		return type;
	}
	}
	fprintf(stderr,
	        "****************************\n"
	        "* INTERNAL COMPILER ERROR @ %s\n"
	        "* Unexpected value of TypeCategory: `elem.type_category` is `%d`\n"
	        "****************************\n",
	        __func__, elem.type_category);
	exit(EXIT_FAILURE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rsi
movl (%rsi), %r14d
addq $0x4, %rsi
addq $0x4, %rdi
pushq $0x13
popq %rcx
rep  movsl (%rsi), %es:(%rdi)
movl %r14d, (%rbx)
cmpl $0x8, %r14d
ja 0x8ba5
movl $0x1f1, %eax            # imm = 0x1F1
btl %r14d, %eax
jae 0x8b0b
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rdi
pushq $0x50
popq %rsi
callq 0x10d0
movq %rax, %r12
addq $0x8, %r15
leaq -0x78(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x8ab7
pushq $0xa
popq %rcx
movq %r12, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r12, 0x8(%rbx)
cmpl $0x3, %r14d
je 0x8b64
cmpl $0x2, %r14d
jne 0x8af9
cmpl $0x3, (%r12)
jne 0x8af9
movq 0xd4a2(%rip), %rax      # 0x15ff8
movq (%rax), %rcx
leaq 0x6980(%rip), %rdi      # 0xf4e0
pushq $0x2f
jmp 0x8b9a
movl (%r12), %eax
cmpl $0x2, %eax
je 0x8b87
cmpl $0x3, %eax
jne 0x8af9
movq 0xd47f(%rip), %rax      # 0x15ff8
movq (%rax), %rcx
leaq 0x698d(%rip), %rdi      # 0xf510
pushq $0x37
jmp 0x8b9a
movq 0xd46a(%rip), %rax      # 0x15ff8
movq (%rax), %rcx
leaq 0x69b0(%rip), %rdi      # 0xf548
pushq $0x35
popq %rsi
pushq $0x1
popq %rdx
callq 0x1180
jmp 0x8bc7
movq 0xd44c(%rip), %rax      # 0x15ff8
movq (%rax), %rdi
leaq 0x69c8(%rip), %rsi      # 0xf57e
leaq 0x6a5c(%rip), %rdx      # 0xf619
movl %r14d, %ecx
xorl %eax, %eax
callq 0x10f0
pushq $0x1
popq %rdi
callq 0x1170
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: try_parse_type_specifier_and_semicolon
struct Type *
try_parse_type_specifier_and_semicolon(const struct Token **ptr_tokvec)
{
	const struct Token *tokvec3 = *ptr_tokvec;
	struct Type *ptr_type = parse_type_specifier(&tokvec3);
	if (tokvec3[0].kind != SEMICOLON) {
		return 0;
	}
	++tokvec3;
	*ptr_tokvec = tokvec3;
	return ptr_type;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
leaq -0x18(%rbp), %r14
movq %rax, (%r14)
movq %r14, %rdi
callq 0x8786
movq (%r14), %rcx
cmpl $0x1a, (%rcx)
jne 0x8c00
addq $0x20, %rcx
movq %rcx, (%rbx)
jmp 0x8c02
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: parse_struct_declaration
struct Type parse_struct_declaration(const struct Token **ptr_tokvec,
                                     const char **ptr_to_ident_str)
{
	struct Type *ptr_base_type = parse_type_specifier(ptr_tokvec);
	struct Vector /*<struct TypeNode>*/ *ptr_vec = init_vector_();
	parse_declarator(ptr_tokvec, ptr_to_ident_str, ptr_vec);
	push_vector(ptr_vec, ptr_base_type);
	return from_type3_to_type(ptr_vec->vector);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x8786
movq %rax, %r12
callq 0x49f5
movq %rax, %r13
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x89b8
movq %r13, %rdi
movq %r12, %rsi
callq 0x4a57
movq 0x8(%r13), %rsi
movq %r15, %rdi
callq 0x8ab7
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: parse_init_declarator
struct UntypedExpr *
parse_init_declarator(const struct Token **ptr_tokvec,
                      const char **ptr_to_ident_str,
                      struct Vector /*<struct TypeNode>*/ *ptr_vec)
{
	struct UntypedExpr *ptr_expr = 0;
	parse_declarator(ptr_tokvec, ptr_to_ident_str, ptr_vec);
	if ((*ptr_tokvec)[0].kind == OP_EQ) {
		++*ptr_tokvec;
		ptr_expr = calloc(1, sizeof(struct UntypedExpr));
		*ptr_expr = parse_assignment_expression(ptr_tokvec);
	}
	return ptr_expr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
callq 0x89b8
movq (%rbx), %rax
cmpl $0x17, (%rax)
jne 0x8ce6
addq $0x20, %rax
movq %rax, (%rbx)
pushq $0x1
popq %rdi
movl $0xa0, %esi
callq 0x10d0
movq %rax, %r14
leaq -0xb8(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x719a
movl $0xa0, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1100
jmp 0x8ce9
xorl %r14d, %r14d
movq %r14, %rax
addq $0xa8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: can_start_a_type
int can_start_a_type(const struct Token *tokvec)
{
	return tokvec[0].kind == RES_INT || tokvec[0].kind == RES_CHAR ||
	       tokvec[0].kind == RES_STRUCT || tokvec[0].kind == RES_VOID ||
	       tokvec[0].kind == RES_ENUM || tokvec[0].kind == RES_CONST ||
	       tokvec[0].kind == RES_NORETURN || tokvec[0].kind == RES_UNION;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl (%rdi), %ecx
leal -0x35(%rcx), %eax
cmpl $0x11, %eax
jae 0x8d19
movl $0x1c229, %edx          # imm = 0x1C229
btl %eax, %edx
jae 0x8d19
movl $0x1, %eax
jmp 0x8d21
xorl %eax, %eax
cmpl $0x4a, %ecx
sete %al
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: parse_declaration
struct Type parse_declaration(const struct Token **ptr_tokvec,
                              const char **ptr_to_ident_str,
                              struct UntypedExpr **ptr_ptr_uexpr)
{
	struct Type *ptr_base_type = parse_type_specifier(ptr_tokvec);
	struct Vector /*<struct TypeNode>*/ *ptr_vec = init_vector_();
	struct UntypedExpr *ptr_uexpr = parse_init_declarator(
	    ptr_tokvec, ptr_to_ident_str, ptr_vec); /* nullable */
	*ptr_ptr_uexpr = ptr_uexpr;
	push_vector(ptr_vec, ptr_base_type);
	expect_and_consume(
	    ptr_tokvec, SEMICOLON,
	    "semicolon at the end of variable definition/declaration");
	return from_type3_to_type(ptr_vec->vector);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, -0x30(%rbp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x8786
movq %rax, %r13
callq 0x49f5
movq %rax, %r14
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x8c8b
movq -0x30(%rbp), %rcx
movq %rax, (%rcx)
movq %r14, %rdi
movq %r13, %rsi
callq 0x4a57
leaq 0x6730(%rip), %rdx      # 0xf4a8
pushq $0x1a
popq %rsi
movq %r12, %rdi
callq 0x8168
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x8ab7
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_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: parse_type_name
struct Type parse_type_name(const struct Token **ptr_tokvec)
{
	struct Type *ptr_base_type = parse_type_specifier(ptr_tokvec);
	struct Vector /*<struct TypeNode>*/ *ptr_vec = init_vector_();

	const struct Token *tokvec = *ptr_tokvec;

	/* optional */
	if (tokvec[0].kind == OP_ASTERISK || tokvec[0].kind == LEFT_PAREN ||
	    tokvec[0].kind == LEFT_BRACKET) {
		parse_abstract_declarator(&tokvec, ptr_vec);
	}
	push_vector(ptr_vec, ptr_base_type);

	*ptr_tokvec = tokvec;
	return from_type3_to_type(ptr_vec->vector);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x8786
movq %rax, %r15
callq 0x49f5
movq %rax, %r12
movq (%r14), %r13
movq %r13, -0x30(%rbp)
movl (%r13), %eax
cmpq $0x36, %rax
ja 0x8e5d
movabsq $0x40000000000060, %rcx # imm = 0x40000000000060
btq %rax, %rcx
jae 0x8e5d
leaq -0x30(%rbp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x8e8a
movq (%r13), %r13
movq %r12, %rdi
movq %r15, %rsi
callq 0x4a57
movq %r13, (%r14)
movq 0x8(%r12), %rsi
movq %rbx, %rdi
callq 0x8ab7
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_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: parse_abstract_declarator
static void
parse_abstract_declarator(const struct Token **ptr_tokvec,
                          struct Vector /*<struct TypeNode>*/ *ptr_vec)
{
	const struct Token *tokvec = *ptr_tokvec;

	if (tokvec[0].kind != OP_ASTERISK) {
		parse_direct_abstract_declarator(&tokvec, ptr_vec);
		*ptr_tokvec = tokvec;
		return;
	}

	int asterisk_num = 0;
	for (; tokvec[0].kind == OP_ASTERISK;
	     ++tokvec, skip_consts_or_noreturns(&tokvec)) {
		asterisk_num++;
	}

	/* optional */
	if (tokvec[0].kind == LEFT_PAREN || tokvec[0].kind == LEFT_BRACKET) {
		parse_direct_abstract_declarator(&tokvec, ptr_vec);
	}

	while (asterisk_num-- > 0) {
		struct TypeNode *ptr = calloc(1, sizeof(struct TypeNode));
		ptr->type_category = PTR_;
		push_vector(ptr_vec, ptr);
	}

	*ptr_tokvec = tokvec;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
movq %rax, -0x30(%rbp)
cmpl $0x5, (%rax)
jne 0x8f18
xorl %r13d, %r13d
pushq $0x5
popq %rcx
leaq -0x30(%rbp), %r15
cmpl $0x5, %ecx
jne 0x8ed4
incl %r13d
addq $0x20, %rax
movq %rax, -0x30(%rbp)
movq %r15, %rdi
callq 0x8c0b
movq -0x30(%rbp), %rax
movl (%rax), %ecx
jmp 0x8eb4
cmpl $0x6, %ecx
je 0x8ede
cmpl $0x36, %ecx
jne 0x8eea
leaq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x91b5
pushq $0x1
popq %r15
pushq $0x50
popq %r12
testl %r13d, %r13d
jle 0x8f24
decl %r13d
movq %r15, %rdi
movq %r12, %rsi
callq 0x10d0
movl $0x1, (%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x4a57
jmp 0x8ef2
leaq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x91b5
movq -0x30(%rbp), %rax
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/parse_type.c
// Function: parse_direct_abstract_declarator
static void
parse_direct_abstract_declarator(const struct Token **ptr_tokvec,
                                 struct Vector /*<struct TypeNode>*/ *ptr_vec)
{
	const struct Token *tokvec = *ptr_tokvec;

	struct Vector vec = *ptr_vec;
	if (tokvec[0].kind == LEFT_PAREN && !can_start_a_type(&tokvec[1]) &&
	    tokvec[1].kind !=
	        RIGHT_PAREN) { /* an empty parenthesis must be of a function */
		++tokvec;
		parse_abstract_declarator(&tokvec, &vec);
		expect_and_consume(&tokvec, RIGHT_PAREN,
		                   "closing parenthesis inside direct declarator");
	}

	parse_dcl_postfixes(&tokvec, &vec);

	*ptr_tokvec = tokvec;
	*ptr_vec = vec;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq %rax, -0x28(%rbp)
movups (%rsi), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x6, (%rax)
jne 0x91f2
movl 0x20(%rax), %ecx
leal -0x35(%rcx), %edx
cmpl $0x15, %edx
ja 0x9220
movl $0x21c229, %esi         # imm = 0x21C229
btl %edx, %esi
jae 0x9220
leaq -0x28(%rbp), %r15
leaq -0x40(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x8f3a
movq (%r15), %rax
movq %rax, (%r14)
movaps (%r12), %xmm0
movups %xmm0, (%rbx)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x7, %ecx
je 0x91f2
addq $0x20, %rax
leaq -0x28(%rbp), %r15
movq %rax, (%r15)
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x8e8a
leaq 0x63e9(%rip), %rdx      # 0xf62c
pushq $0x7
popq %rsi
movq %r15, %rdi
callq 0x8168
jmp 0x91f2
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/map.c
// Function: insert
void insert(struct Map2 *map, const char *key, void *value)
{
	struct _mapchip a;
	a.ptr = key;
	a.value = value;
	if (map->_alloc < map->_length + 1) {

		map->_vec =
		    realloc(map->_vec, map->_alloc * 2 * sizeof(struct _mapchip));

		map->_alloc *= 2;
	}

	map->_vec[map->_length] = a;
	++(map->_length);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movslq 0x4(%rdi), %rsi
movl (%rdi), %ecx
movq 0x8(%rdi), %rax
cmpl %ecx, %esi
jg 0x9286
shlq $0x5, %rsi
movq %rax, %rdi
callq 0x1120
movq %rax, 0x8(%rbx)
shll 0x4(%rbx)
movl (%rbx), %ecx
movslq %ecx, %rcx
movq %rcx, %rdx
shlq $0x4, %rdx
movq %r15, (%rax,%rdx)
movq %r14, 0x8(%rax,%rdx)
incl %ecx
movl %ecx, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/map.c
// Function: lookup
void *lookup(const struct Map2 *m, const char *key)
{
	for (int i = (m->_length) - 1; i >= 0; --i) {
		if (strcmp(m->_vec[i].ptr, key) == 0) {
			return m->_vec[i].value;
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl (%rdi), %r12d
leal 0x1(%r12), %r13d
shlq $0x4, %r12
orq $0x8, %r12
decl %r13d
testl %r13d, %r13d
jle 0x92f3
movq 0x8(%r14), %r15
movq -0x18(%r15,%r12), %rdi
addq $-0x10, %r12
movq %rbx, %rsi
callq 0x10e0
testl %eax, %eax
jne 0x92cc
movq (%r15,%r12), %rax
jmp 0x92f5
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/map.c
// Function: init_map
struct Map2 *init_map(void)
{
	struct Map2 *res;
	res = calloc(1, sizeof(struct Map2));
	res->_length = 0;
	res->_alloc = 256;
	res->_vec = calloc(res->_alloc, sizeof(struct _mapchip));
	return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
pushq $0x1
popq %rdi
pushq $0x10
popq %rbx
movq %rbx, %rsi
callq 0x10d0
movq %rax, %r14
movl $0x100, 0x4(%rax)       # imm = 0x100
movl $0x100, %edi            # imm = 0x100
movq %rbx, %rsi
callq 0x10d0
movq %rax, 0x8(%r14)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_prologue
void gen_prologue(int alloc_size, const char *fname)
{
	memo2(__func__, "%d, \"%s\"", alloc_size, fname);
	printf(".global " PREFIX "%s\n" PREFIX "%s:\n"
	       "  pushq %%rbp\n"
	       "  movq %%rsp, %%rbp\n",
	       fname, fname);
	if (alloc_size) {
		printf("  subq $%d, %%rsp\n", alloc_size);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl %edi, %ebx
leaq 0x6405(%rip), %rdi      # 0xf789
leaq 0x640b(%rip), %rsi      # 0xf796
movl %ebx, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x93c8
leaq 0x6401(%rip), %rdi      # 0xf79f
movq %r14, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1070
testl %ebx, %ebx
je 0x93c3
leaq 0x641b(%rip), %rdi      # 0xf7d1
movl %ebx, %esi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x1070
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: memo2
static void memo2(const char *funcname, const char *fmt, ...)
{
	printf("//%s(", funcname);

#ifdef __STDC__
	va_list ap;
#endif
#ifndef __STDC__
	struct va_list_tag ap[1];
#endif

	va_start(ap, fmt);
	vprintf(fmt, ap);
	va_end(ap);

	printf(");\n");

	if (global_ir) {
		fprintf(global_ir, "%s(", funcname);
		va_start(ap, fmt);
		vfprintf(global_ir, fmt, ap);
		va_end(ap);

		fprintf(global_ir, ");\n");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xf0(%rbp), %r15
movq %rdx, 0x10(%r15)
movq %rcx, 0x18(%r15)
movq %r8, 0x20(%r15)
movq %r9, 0x28(%r15)
testb %al, %al
je 0x9429
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
leaq 0x71cd(%rip), %rdi      # 0x105fd
movq %r14, %rsi
xorl %eax, %eax
callq 0x1070
leaq -0x40(%rbp), %rsi
movq %r15, 0x10(%rsi)
leaq 0x10(%rbp), %r12
movq %r12, 0x8(%rsi)
movabsq $0x3000000010, %r13     # imm = 0x3000000010
movq %r13, (%rsi)
movq %rbx, %rdi
callq 0x1110
leaq 0x7420(%rip), %rdi      # 0x10886
callq 0x1050
movq 0xcc6e(%rip), %rdi      # 0x160e0
testq %rdi, %rdi
je 0x94bf
leaq 0x7181(%rip), %rsi      # 0x105ff
movq %r14, %rdx
xorl %eax, %eax
callq 0x10f0
leaq -0x40(%rbp), %rdx
movq %r13, (%rdx)
movq %r12, 0x8(%rdx)
movq %r15, 0x10(%rdx)
movq 0xcc42(%rip), %rdi      # 0x160e0
movq %rbx, %rsi
callq 0x1140
movq 0xcc33(%rip), %rcx      # 0x160e0
leaq 0x714f(%rip), %rdi      # 0x10603
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
callq 0x1180
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_prologue_static
void gen_prologue_static(int alloc_size, const char *fname)
{
	memo2(__func__, "%d, \"%s\"", alloc_size, fname);
	printf(PREFIX "%s:\n"
	              "  pushq %%rbp\n"
	              "  movq %%rsp, %%rbp\n",
	       fname);
	if (alloc_size) {
		printf("  subq $%d, %%rsp\n", alloc_size);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl %edi, %ebx
leaq 0x6300(%rip), %rdi      # 0xf7e4
leaq 0x62ab(%rip), %rsi      # 0xf796
movl %ebx, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x93c8
leaq 0x62ac(%rip), %rdi      # 0xf7aa
movq %r14, %rsi
xorl %eax, %eax
callq 0x1070
testl %ebx, %ebx
je 0x9520
leaq 0x62be(%rip), %rdi      # 0xf7d1
movl %ebx, %esi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x1070
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_epilogue_nbyte
void gen_epilogue_nbyte(int n, int label_name)
{
	memo2(__func__, "%d, %d", n, label_name);
	switch (n) {
	case 1:
	case 4:
		gen_epilogue(label_name);
		break;
	case 8:
		gen_epilogue_8byte(label_name);
		break;
	default:
		poison_and_die("Unsupported width; cannot happen");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %r14d
leaq 0x62c0(%rip), %rdi      # 0xf7f8
leaq 0x6dc0(%rip), %rsi      # 0x102ff
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x93c8
cmpl $0x1, %r14d
je 0x955d
cmpl $0x8, %r14d
je 0x9568
cmpl $0x4, %r14d
jne 0x9573
movl %ebx, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0xab0e
movl %ebx, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0xab3c
leaq 0x6291(%rip), %rdi      # 0xf80b
callq 0x9354
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_epilogue_returning_integerclass_struct_or_union
void gen_epilogue_returning_integerclass_struct_or_union(int size, int label)
{
	memo2(__func__, "%d, %d", size, label);
	printf(".L%d:", label);

	puts("  movq (%rsp), %rcx");

	if (size > 8) {
		printf("  movq (%%rcx), %%rax\n"
		       "  addq $8, %%rcx\n");
		copy_to_8byte_reg(size - 8, "edx", "rdx");
	} else {
		copy_to_8byte_reg(size, "eax", "rax");
	}
	printf("  leave\n"
	       "  ret\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movl %edi, %ebx
leaq 0x629a(%rip), %rdi      # 0xf82c
leaq 0x6d66(%rip), %rsi      # 0x102ff
movl %ebx, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x93c8
leaq 0x62b4(%rip), %rdi      # 0xf860
movl %r14d, %esi
xorl %eax, %eax
callq 0x1070
leaq 0x62a9(%rip), %rdi      # 0xf866
callq 0x1050
cmpl $0x9, %ebx
jl 0x95e8
leaq 0x62ac(%rip), %rdi      # 0xf87a
xorl %eax, %eax
callq 0x1070
addl $-0x8, %ebx
leaq 0x62c3(%rip), %rsi      # 0xf8a2
leaq 0x62c0(%rip), %rdx      # 0xf8a6
jmp 0x95f6
leaq 0x62bb(%rip), %rsi      # 0xf8aa
leaq 0x682a(%rip), %rdx      # 0xfe20
movl %ebx, %edi
callq 0x960d
leaq 0x7285(%rip), %rdi      # 0x10889
popq %rbx
popq %r14
popq %rbp
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: copy_to_8byte_reg
static void copy_to_8byte_reg(int size, const char *reg_4byte,
                              const char *reg_8byte)
{
	if (size == 8) {
		printf("  movq (%%rcx), %%%s\n", reg_8byte);
		return;
	}
	if (size >= 4) {
		printf("  movl (%%rcx), %%%s\n", reg_4byte);
		if (size == 4) {
			return;
		}

		if (size == 7) {
			puts("  movzwl 4(%rcx), %edi\n"
			     "  movzbl 6(%rcx), %esi\n"
			     "  shll $16, %esi\n"
			     "  orl %esi,  %edi\n"
			     "  shlq $32, %rdi");
		} else if (size == 6) {
			puts("  movzwl 4(%rcx), %edi\n"
			     "  shlq $32, %rdi");
		} else if (size == 5) {
			puts("  movzbl 4(%rcx), %edi\n"
			     "  shlq $32, %rdi");
		}
		printf("  orq %%rdi, %%%s\n", reg_8byte);
	} else if (size == 3) {
		printf("  movzwl (%%rcx), %%%s\n"
		       "  movzbl 2(%%rcx), %%edi\n"
		       "  shll $16, %%edi\n"
		       "  orl %%edi, %%%s\n",
		       reg_4byte, reg_4byte);
	} else if (size == 2) {
		printf("  movzwl (%%rcx), %%%s\n", reg_4byte);
	} else if (size == 1) {
		printf("  movzbl (%%rcx), %%%s\n", reg_4byte);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
cmpl $0x8, %edi
jne 0x9628
leaq 0x6fe4(%rip), %rdi      # 0x10607
jmp 0x96bb
movl %edi, %r14d
cmpl $0x4, %edi
jl 0x9661
leaq 0x6fe6(%rip), %rdi      # 0x1061d
xorl %eax, %eax
callq 0x1070
addl $-0x4, %r14d
cmpl $0x3, %r14d
ja 0x96b4
leaq 0x60c5(%rip), %rax      # 0xf714
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x705e(%rip), %rdi      # 0x106bd
jmp 0x96af
cmpl $0x1, %r14d
je 0x9696
cmpl $0x2, %r14d
je 0x968d
cmpl $0x3, %r14d
jne 0x9688
leaq 0x707e(%rip), %rdi      # 0x106f8
movq %rsi, %rdx
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x1070
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x70b9(%rip), %rdi      # 0x1074d
jmp 0x96be
leaq 0x70c8(%rip), %rdi      # 0x10765
jmp 0x96be
leaq 0x6fef(%rip), %rdi      # 0x10695
jmp 0x96af
leaq 0x6f84(%rip), %rdi      # 0x10633
callq 0x1050
leaq 0x702a(%rip), %rdi      # 0x106e5
movq %rbx, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x1070
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_push_from_local_nbyte
void gen_push_from_local_nbyte(int n, int offset)
{
	memo2(__func__, "%d", n, offset);
	switch (n) {
	case 1:
		gen_push_from_local_1byte(offset);
		break;
	case 4:
		gen_push_from_local_4byte(offset);
		break;
	case 8:
		gen_push_from_local_8byte(offset);
		break;
	default:
		poison_and_die("Unsupported width; cannot happen");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %r14d
leaq 0x621e(%rip), %rdi      # 0xf9cd
leaq 0x69e2(%rip), %rsi      # 0x10198
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x93c8
cmpl $0x8, %r14d
je 0x97ea
cmpl $0x4, %r14d
je 0x97df
cmpl $0x1, %r14d
jne 0x97f5
movl %ebx, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0xa88e
movl %ebx, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0xa76e
movl %ebx, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0xa856
leaq 0x600f(%rip), %rdi      # 0xf80b
callq 0x9354
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_push_address_of_global
void gen_push_address_of_global(const char *ident)
{
	memo2(__func__, "\"%s\"", ident);
	printf("  subq $8, %%rsp\n");
#ifdef OSX
	printf("  movq " PREFIX "%s@GOTPCREL(%%rip), %%rax\n", ident);
#endif
#ifndef OSX
	printf("  leaq " PREFIX "%s(%%rip), %%rax\n", ident);
#endif
	printf("  movq %%rax, (%%rsp)\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x61d6(%rip), %rdi      # 0xf9e7
leaq 0x5f82(%rip), %rsi      # 0xf79a
movq %rbx, %rdx
xorl %eax, %eax
callq 0x93c8
leaq 0x61d9(%rip), %rdi      # 0xfa02
xorl %eax, %eax
callq 0x1070
leaq 0x61dd(%rip), %rdi      # 0xfa14
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1070
leaq 0x76e9(%rip), %rdi      # 0x10f31
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1070
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_push_ret_of_nbyte
void gen_push_ret_of_nbyte(int n, const char *ident_str, int arg_stacksize)
{
	memo2(__func__, "%d, \"%s\"", n, ident_str);

	switch (n) {
	case 1:
		gen_push_ret_of_1byte(ident_str, arg_stacksize);
		break;
	case 4:
		gen_push_ret_of_4byte(ident_str, arg_stacksize);
		break;
	case 8:
		gen_push_ret_of_8byte(ident_str, arg_stacksize);
		break;
	default:
		poison_and_die("Unsupported width; cannot happen");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movl %edi, %r15d
leaq 0x61bf(%rip), %rdi      # 0xfa2d
leaq 0x5f21(%rip), %rsi      # 0xf796
movl %r15d, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x93c8
cmpl $0x8, %r15d
je 0x98bc
cmpl $0x4, %r15d
je 0x98a8
cmpl $0x1, %r15d
jne 0x98d0
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xa8e5
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xa980
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xa9c5
leaq 0x5f34(%rip), %rdi      # 0xf80b
callq 0x9354
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_call_reg_and_push_ret_of_nbyte
void gen_call_reg_and_push_ret_of_nbyte(int n, const char *reg)
{
	memo2(__func__, "%d, \"%s\"", n, reg);

	switch (n) {
	case 1:
		gen_call_reg_and_push_ret_of_1byte(reg);
		break;
	case 4:
		gen_call_reg_and_push_ret_of_4byte(reg);
		break;
	case 8:
		gen_call_reg_and_push_ret_of_8byte(reg);
		break;
	default:
		poison_and_die("Unsupported width; cannot happen");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %r14d
leaq 0x6161(%rip), %rdi      # 0xfa79
leaq 0x5e77(%rip), %rsi      # 0xf796
movl %r14d, %edx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x93c8
cmpl $0x8, %r14d
je 0x9956
cmpl $0x4, %r14d
je 0x994a
cmpl $0x1, %r14d
jne 0x9962
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0xaa0a
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0xaa58
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0xaa9a
leaq 0x5ea2(%rip), %rdi      # 0xf80b
callq 0x9354
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_peek_deref_push_nbyte
void gen_peek_deref_push_nbyte(int n)
{
	memo2(__func__, "%d", n);
	switch (n) {
	case 1:
		gen_peek_deref_push_1byte();
		break;
	case 4:
		gen_peek_deref_push_4byte();
		break;
	case 8:
		gen_peek_deref_push_8byte();
		break;
	default:
		poison_and_die("Unsupported width; cannot happen");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x611f(%rip), %rdi      # 0xfa9c
leaq 0x6814(%rip), %rsi      # 0x10198
movl %ebx, %edx
xorl %eax, %eax
callq 0x93c8
cmpl $0x8, %ebx
je 0x99b2
cmpl $0x4, %ebx
je 0x99a7
cmpl $0x1, %ebx
jne 0x99bd
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xa839
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xa7a6
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xa7fd
leaq 0x5e47(%rip), %rdi      # 0xf80b
callq 0x9354
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_compare_ptrs
void gen_compare_ptrs(const char *str)
{
	memo2(__func__, "\"%s\"", str);
	puts("  movq 8(%rsp), %rax\n"
	     "  cmpq (%rsp), %rax");
	printf("  %s %%al\n", str);
	puts("  movzbl %al, %eax\n"
	     "  movl %eax, 8(%rsp)\n"
	     "  addq $8, %rsp");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x60e0(%rip), %rdi      # 0xfdea
leaq 0x5a89(%rip), %rsi      # 0xf79a
movq %rbx, %rdx
xorl %eax, %eax
callq 0x93c8
leaq 0x60d9(%rip), %rdi      # 0xfdfb
callq 0x1050
leaq 0x60f6(%rip), %rdi      # 0xfe24
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1070
leaq 0x60f0(%rip), %rdi      # 0xfe2f
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_assign_nbyte
void gen_assign_nbyte(int n)
{
	memo2(__func__, "%d", n);
	switch (n) {
	case 1:
		gen_assign_1byte();
		break;
	case 4:
		gen_assign_4byte();
		break;
	case 8:
		gen_assign_8byte();
		break;
	default:
		poison_and_die("Unsupported width; cannot happen");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x610e(%rip), %rdi      # 0xfe67
leaq 0x6438(%rip), %rsi      # 0x10198
movl %ebx, %edx
xorl %eax, %eax
callq 0x93c8
cmpl $0x8, %ebx
je 0x9d8e
cmpl $0x4, %ebx
je 0x9d83
cmpl $0x1, %ebx
jne 0x9d99
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xabe0
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xaba5
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xab6a
leaq 0x5a6b(%rip), %rdi      # 0xf80b
callq 0x9354
// File: /workspace/github_c_makefile_star2_O2/hsjoihs[P]c-compiler/print_x86_64.c
// Function: gen_mul_by_const
void gen_mul_by_const(int mul)
{
	memo2(__func__, "%d", mul);
	printf("  movq (%%rsp), %%rax\n");
	printf((mul == 1 || mul == 2 || mul == 4 || mul == 8)
	           ? "  leaq 0(,%%rax,%d), %%rdx\n"
	           : "  imulq $%d, %%rax, %%rdx\n",
	       mul);

	printf("  movq %%rdx, (%%rsp)\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x6117(%rip), %rdi      # 0xffb3
leaq 0x62f5(%rip), %rsi      # 0x10198
movl %ebx, %edx
xorl %eax, %eax
callq 0x93c8
leaq 0x6111(%rip), %rdi      # 0xffc4
xorl %eax, %eax
callq 0x1070
cmpl $0x4, %ebx
ja 0x9ed0
pushq $0x16
popq %rax
btl %ebx, %eax
jae 0x9ed0
leaq 0x610d(%rip), %rdi      # 0xffdb
jmp 0x9ee5
cmpl $0x8, %ebx
leaq 0x6101(%rip), %rax      # 0xffdb
leaq 0x6116(%rip), %rdi      # 0xfff7
cmoveq %rax, %rdi
movl %ebx, %esi
xorl %eax, %eax
callq 0x1070
leaq 0x611d(%rip), %rdi      # 0x10012
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1070