LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newComparisonExpressionNode
TreeNode*
newComparisonExpressionNode(TreeNode *left_expression,
                            TreeNode *relop,
                            TreeNode *right_expression)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = ComparisonExpressionK;
      t->attr.cmpExpr.lexpr = left_expression;
      t->attr.cmpExpr.op = relop;
      t->attr.cmpExpr.rexpr = right_expression;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x4ea3
testq %rax, %rax
je 0x5128
movl $0xc, 0xc(%rax)
movq %r15, 0x20(%rax)
movq %r14, 0x28(%rax)
movq %rbx, 0x30(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newAdditiveExpressionNode
TreeNode*
newAdditiveExpressionNode(TreeNode *left_expression,
                          TreeNode *addop,
                          TreeNode *right_expression)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = AdditiveExpressionK;
      t->attr.addExpr.lexpr = left_expression;
      t->attr.addExpr.op = addop;
      t->attr.addExpr.rexpr = right_expression;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x4ea3
testq %rax, %rax
je 0x5163
movl $0xd, 0xc(%rax)
movq %r15, 0x20(%rax)
movq %r14, 0x28(%rax)
movq %rbx, 0x30(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newMultiplicativeExpressionNode
TreeNode*
newMultiplicativeExpressionNode(TreeNode *left_expression,
                                TreeNode *mulop,
                                TreeNode *right_expression)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = MultiplicativeExpressionK;
      t->attr.multExpr.lexpr = left_expression;
      t->attr.multExpr.op = mulop;
      t->attr.multExpr.rexpr = right_expression;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x4ea3
testq %rax, %rax
je 0x519e
movl $0xe, 0xc(%rax)
movq %r15, 0x20(%rax)
movq %r14, 0x28(%rax)
movq %rbx, 0x30(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newArrayNode
TreeNode *
newArrayNode(TreeNode *_var,
             TreeNode *expression)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = ArrayK;
      t->attr.arr._var = _var;
      t->attr.arr.arr_expr = expression;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4ea3
testq %rax, %rax
je 0x51cf
movl $0x10, 0xc(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x28(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newCallNode
TreeNode*
newCallNode(TreeNode *_var,
            TreeNode *args) // nullable
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = CallK;
      t->attr.call._var = _var;
      t->attr.call.expr_list = args;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4ea3
testq %rax, %rax
je 0x51fa
movl $0x11, 0xc(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x28(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newVariableNode
TreeNode *
newVariableNode(char *_ID)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = VariableK;
      t->attr.ID = copyString(_ID);
    }
  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x4ea3
movq %rax, %rbx
testq %rax, %rax
je 0x5229
movl $0xf, 0xc(%rbx)
movq %r14, %rdi
callq 0x5231
movq %rax, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: copyString
char*
copyString(char * s)
{
  size_t n;
  char * t;
  if (s==NULL) return NULL;
  n = strlen(s)+1;
  MALLOC(t, n);
  strcpy(t,s);
  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x5263
movq %rdi, %rbx
callq 0x10b0
leaq 0x1(%rax), %rdi
callq 0x1160
testq %rax, %rax
je 0x526c
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1060
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x5f8d(%rip), %rax      # 0xb200
movq (%rax), %rdi
leaq 0x1134(%rip), %rsi      # 0x63b1
leaq 0x2a07(%rip), %rbx      # 0x7c8b
leaq 0x2a07(%rip), %r8       # 0x7c92
movq %rbx, %rdx
movl $0x1df, %ecx            # imm = 0x1DF
xorl %eax, %eax
callq 0x1120
leaq 0x113f(%rip), %rdi      # 0x63e0
leaq 0x29f5(%rip), %rcx      # 0x7c9d
movq %rbx, %rsi
movl $0x1df, %edx            # imm = 0x1DF
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newConstantNode
TreeNode *
newConstantNode(char *_NUM)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = ConstantK;
      t->attr.NUM = atoi(_NUM);
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x4ea3
movq %rax, %rbx
testq %rax, %rax
je 0x52de
movl $0x12, 0xc(%rbx)
movq %r14, %rdi
callq 0x11a0
movl %eax, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newTokenTypeNode
TreeNode *
newTokenTypeNode(TokenType token)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = TokenTypeK;
      t->attr.TOK = token;
    }

  return t;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
callq 0x4ea3
testq %rax, %rax
je 0x5302
movl $0x13, 0xc(%rax)
movl %ebx, 0x20(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/cl_scan.c
// Function: citrusleaf_scan
extern cl_rv
citrusleaf_scan(cl_cluster *asc, char *ns, char *set, cl_bin *bins, int n_bins, bool get_key, citrusleaf_get_many_cb cb, void *udata, bool nobindata)
{
	if (n_bins != 0) {
		cf_error("citrusleaf get many: does not yet support bin-specific requests");
	}

	uint info=0;
	if (nobindata == true) {
		info = (CL_MSG_INFO1_READ | CL_MSG_INFO1_NOBINDATA);
	} else {
		info = CL_MSG_INFO1_READ; 
	}

	return( do_scan_monte( asc, NULL, info, 0, ns, set, bins,n_bins, 100, cb, udata, NULL ) );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movb 0x60(%rsp), %bpl
movq 0x58(%rsp), %r13
movq 0x50(%rsp), %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testl %r8d, %r8d
je 0xc83a
movq 0xd7aa(%rip), %rax      # 0x19fc8
cmpl $0x0, (%rax)
js 0xc83a
movq 0xd776(%rip), %rax      # 0x19fa0
leaq 0x725b(%rip), %rsi      # 0x13a8c
xorl %edi, %edi
movq (%rax), %rcx
xorl %eax, %eax
callq *%rcx
andq $0x0, 0x10(%rsp)
movzbl %bpl, %edx
movq %r13, 0x8(%rsp)
movq %r12, (%rsp)
shll $0x5, %edx
incl %edx
pushq $0x64
popq %r9
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rcx
movq %rbx, %r8
callq 0xc875
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/cl_scan.c
// Function: citrusleaf_scan_node
extern cl_rv
citrusleaf_scan_node (cl_cluster *asc, char *node_name, char *ns, char *set, cl_bin *bins, int n_bins, bool nobindata, uint8_t scan_pct,
		citrusleaf_get_many_cb cb, void *udata, cl_scan_parameters *scan_param)
{

	if (n_bins != 0) {
		cf_error("citrusleaf get many: does not yet support bin-specific requests");
	}

	uint info=0;
	if (nobindata == true) {
		info = (CL_MSG_INFO1_READ | CL_MSG_INFO1_NOBINDATA);
	} else {
		info = CL_MSG_INFO1_READ; 
	}

	cl_scan_parameters default_scan_param;
	if (scan_param == NULL) {
		cl_scan_parameters_set_default(&default_scan_param);
		scan_param = &default_scan_param;
	}
		
	return( do_scan_monte( asc, node_name, info, 0, ns, set, bins, n_bins, scan_pct, cb, udata, scan_param ) ); 
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq 0x60(%rsp), %r13
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
testl %r9d, %r9d
je 0xceaa
movq 0xd13a(%rip), %rax      # 0x19fc8
cmpl $0x0, (%rax)
js 0xceaa
movq 0xd106(%rip), %rax      # 0x19fa0
leaq 0x6beb(%rip), %rsi      # 0x13a8c
xorl %edi, %edi
movq (%rax), %rcx
xorl %eax, %eax
callq *%rcx
movq 0x58(%rsp), %r10
movq 0x50(%rsp), %rax
movb 0x48(%rsp), %cl
movb 0x40(%rsp), %dl
testq %r13, %r13
jne 0xced7
leaq 0x4(%rsp), %r13
movb $0x0, (%r13)
movw $0x100, 0x8(%r13)       # imm = 0x100
andl $0x0, 0x4(%r13)
movzbl %dl, %edx
shll $0x5, %edx
incl %edx
subq $0x8, %rsp
movzbl %cl, %r9d
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rcx
movq %rbx, %r8
pushq %r13
pushq %r10
pushq %rax
callq 0xc875
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/cf_average.c
// Function: cf_average_calculate
double
cf_average_calculate(cf_average *a, bool clear)
{

	
	if (a->n_points == 0) {
		return(0.0);
	}
	
	double avg = ((double)a->points_sum) / ((double)a->n_points);

	if (clear) 	{
		a->n_points = 0;
		a->points_sum = 0;
	}
	
	return(avg);
}

// Assembly:
movl 0x4(%rdi), %eax
testl %eax, %eax
je 0xeee6
movsd 0x8(%rdi), %xmm0
movl %eax, %eax
testb %sil, %sil
cvtsi2sd %rax, %xmm1
unpcklps 0x5376(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x537e(%rip), %xmm0     # 0x14250
haddpd %xmm0, %xmm0
divsd %xmm1, %xmm0
je 0xeeea
andl $0x0, 0x4(%rdi)
andq $0x0, 0x8(%rdi)
retq
xorpd %xmm0, %xmm0
retq
nop
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/cf_hist.c
// Function: cf_bits_find_last_set
int
cf_bits_find_last_set(uint32_t v)
{

	int r;
	uint32_t t, tt;
	
	if ((tt = v >> 16))
		r = (t = tt >> 8) ? (24 + cf_LogTable256[t]) : (16 + cf_LogTable256[tt]);
	else
		r = (t = v >> 8) ? (8 + cf_LogTable256[t]) : cf_LogTable256[v];
	return (r);
}

// Assembly:
cmpl $0x10000, %edi          # imm = 0x10000
jae 0xf042
cmpl $0x100, %edi            # imm = 0x100
jae 0xf05c
movl %edi, %eax
leaq 0x5263(%rip), %rcx      # 0x142a0
movsbl (%rax,%rcx), %eax
retq
cmpl $0x1000000, %edi        # imm = 0x1000000
jae 0xf06e
shrl $0x10, %edi
leaq 0x524c(%rip), %rax      # 0x142a0
movsbl (%rdi,%rax), %eax
addl $0x10, %eax
retq
shrl $0x8, %edi
leaq 0x523a(%rip), %rax      # 0x142a0
movsbl (%rdi,%rax), %eax
addl $0x8, %eax
retq
shrl $0x18, %edi
leaq 0x5228(%rip), %rax      # 0x142a0
movsbl (%rdi,%rax), %eax
addl $0x18, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/cf_hist.c
// Function: cf_histogram_create
cf_histogram * 
cf_histogram_create(char *name)
{
	cf_histogram * h = (cf_histogram*)malloc(sizeof(cf_histogram));
	if (!h)	return(0);
	if (strlen(name) >= sizeof(h->name)-1) { free(h); return(0); }
	strcpy(h->name, name);
	h->n_counts = 0;
	memset((void*)&h->count, 0, sizeof(h->count));
	return(h);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x248, %edi            # imm = 0x248
callq 0x6700
testq %rax, %rax
je 0xf0ca
movq %r14, %rdi
movq %rax, %rbx
callq 0x6280
cmpq $0x3f, %rax
jb 0xf0ce
movq %rbx, %rdi
callq 0x6070
xorl %ebx, %ebx
jmp 0xf0f4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x60e0
movq %rbx, %rdi
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
movq $0x0, 0x40(%rbx)
addq $0x48, %rdi
callq 0x63e0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/cf_hist.c
// Function: cf_histogram_insert_data_point
void 
cf_histogram_insert_data_point( cf_histogram *h, uint64_t start)
{
    cf_atomic_int_incr(&h->n_counts);
	
    uint64_t end = cf_getms(); 
    uint64_t delta = end - start;
	
	int index = cf_bits_find_last_set_64(delta);
	if (index < 0) index = 0;   
	if (start > end)
	{
	    // Need to investigate why in some cases start is a couple of ms greater than end
		// Could it be rounding error (usually the difference is 1 but sometimes I have seen 2
		index = 0;
	}   
       
	cf_atomic_int_incr( &h->count[ index ] );
	
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x1
popq %r12
movq %r12, %rax
lock
xaddq %rax, 0x40(%rdi)
pushq $0x1
popq %rdi
movq %rsp, %r15
movq %r15, %rsi
callq 0x61b0
movq 0x8(%r15), %rax
movl $0xf4240, %ecx          # imm = 0xF4240
xorl %edx, %edx
xorl %r13d, %r13d
divq %rcx
imulq $0x3e8, (%r15), %r15    # imm = 0x3E8
addq %rax, %r15
movq %r15, %rdi
subq %r14, %rdi
callq 0x61a0
testl %eax, %eax
movl $0x0, %ecx
cmovgl %eax, %ecx
cmpq %r14, %r15
cmovbq %r13, %rcx
lock
xaddq %r12, 0x48(%rbx,%rcx,8)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/cf_service.c
// Function: cf_process_privsep
void
cf_process_privsep(uid_t uid, gid_t gid)
{
    if ((0 != getuid() || ((uid == getuid()) && (gid == getgid()))))
        return;

    /* Drop all auxiliary groups */
    if (0 > setgroups(0, (const gid_t *)0)){
        cf_error("Could not set groups: %s", strerror(errno));
//        cf_crash(CF_MISC, CF_GLOBAL, CF_CRITICAL, "setgroups: %s", cf_strerror(errno));
        exit(-1);
    }

    /* Change privileges */
    if (0 > setgid(gid)){
    	cf_error("Could not set gid: %s", strerror(errno));
//        cf_crash(CF_MISC, CF_GLOBAL, CF_CRITICAL, "setgid: %s", cf_strerror(errno));
        exit(-2);
    }
    if (0 > setuid(uid)){
    	cf_error("Could not set uid: %s", strerror(errno));
//        cf_crash(CF_MISC, CF_GLOBAL, CF_CRITICAL, "setuid: %s", cf_strerror(errno));
        exit(-2);
    }

    return;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movl %edi, %ebx
callq 0x62b0
testl %eax, %eax
jne 0x103b5
callq 0x62b0
cmpl %ebx, %eax
jne 0x10392
callq 0x6650
cmpl %ebp, %eax
je 0x103b5
xorl %edi, %edi
xorl %esi, %esi
callq 0x6470
testl %eax, %eax
js 0x103bc
movl %ebp, %edi
callq 0x6930
testl %eax, %eax
js 0x103f2
movl %ebx, %edi
callq 0x6b30
testl %eax, %eax
js 0x1041d
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x9c05(%rip), %rax      # 0x19fc8
cmpl $0x0, (%rax)
js 0x103ee
movq 0x9bd1(%rip), %rax      # 0x19fa0
movq (%rax), %rbx
callq 0x60a0
movl (%rax), %edi
callq 0x6bb0
movq %rax, %rdx
leaq 0x4048(%rip), %rsi      # 0x14430
xorl %edi, %edi
xorl %eax, %eax
callq *%rbx
pushq $-0x1
jmp 0x10451
movq 0x9bcf(%rip), %rax      # 0x19fc8
cmpl $0x0, (%rax)
js 0x1044f
movq 0x9b9b(%rip), %rax      # 0x19fa0
movq (%rax), %rbx
callq 0x60a0
movl (%rax), %edi
callq 0x6bb0
leaq 0x402e(%rip), %rsi      # 0x14449
jmp 0x10446
movq 0x9ba4(%rip), %rax      # 0x19fc8
cmpl $0x0, (%rax)
js 0x1044f
movq 0x9b70(%rip), %rax      # 0x19fa0
movq (%rax), %rbx
callq 0x60a0
movl (%rax), %edi
callq 0x6bb0
leaq 0x4019(%rip), %rsi      # 0x1445f
movq %rax, %rdx
xorl %edi, %edi
xorl %eax, %eax
callq *%rbx
pushq $-0x2
popq %rdi
callq 0x6ac0
// File: /workspace/github_c_makefile_star2_O2/giometti[P]mastering_UNIX_programming/chapter_08/argv.c
// Function: main
int main(int argc, char *argv[])
{
	int n;

	for (n = 0; n < argc; n++)
		printf("argv[%d]=\"%s\"\n", n, argv[n]);

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r14d
xorl %eax, %eax
testl %edi, %edi
cmovlel %eax, %r14d
leaq 0xeab(%rip), %r15       # 0x2004
xorl %r12d, %r12d
cmpq %r12, %r14
je 0x1177
movq (%rbx,%r12,8), %rdx
movq %r15, %rdi
movl %r12d, %esi
xorl %eax, %eax
callq 0x1030
incq %r12
jmp 0x115c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/c0stya[P]fslib/src/fsshort.c
// Function: main
int main(int argc, char * argv[]) {
    struct _fst * fst = fst_create(); 
    struct _fst * path = fst_create(); 

    const char * ifilename = NULL; 
    const char * ofilename = NULL;

    FILE * fin = stdin;
    FILE * fout = stdout;

    if (argc > 1)
        ifilename = argv[1];
    if (argc > 2)
        ofilename = argv[2];
    
    if (ifilename) {
        if (( fin = fopen(ifilename, "rb")) == NULL ) {
            fprintf(stderr, "Error opening file: %s", ifilename);
            exit(EXIT_FAILURE);
        }
    }

    if (ofilename) {
        if (( fout = fopen(ofilename, "w")) == NULL ) {
            fprintf(stderr, "Error opening file: %s", ofilename);
            exit(EXIT_FAILURE);
        }
    }

    fst_read(fst, fin);
    fst_shortest(fst, path);
    fst_write(path, fout);

    fst_remove(fst);
    fst_remove(path);
    
    if (fin != stdout) {
        fclose(fin);
    }
    if (fout != stdout) {
        fclose(fout);
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movl %edi, %ebx
xorl %eax, %eax
callq 0x1fa0
movq %rax, %r15
xorl %eax, %eax
callq 0x1fa0
movq %rax, %r12
movq 0x31c6(%rip), %rax      # 0x7fd8
movq (%rax), %r14
movq 0x31b4(%rip), %rax      # 0x7fd0
movq (%rax), %rax
cmpl $0x2, %ebx
jl 0x4e2f
movq 0x8(%r13), %rdi
jne 0x4e34
xorl %r13d, %r13d
jmp 0x4e38
movq %rax, %rbx
jmp 0x4e7a
movq 0x10(%r13), %r13
movq %rax, %rbx
testq %rdi, %rdi
je 0x4e5e
leaq 0x287(%rip), %rsi       # 0x50ce
movq %rdi, %r14
callq 0x1180
movq %r14, %rdx
movq %rax, %r14
testq %rax, %rax
je 0x4ee0
testq %r13, %r13
je 0x4e7a
leaq 0x90c(%rip), %rsi       # 0x5776
movq %r13, %rdi
callq 0x1180
movq %rax, %rbx
testq %rax, %rax
je 0x4ef3
movq %r15, %rdi
movq %r14, %rsi
callq 0x2238
movq %r15, %rdi
movq %r12, %rsi
callq 0x39c8
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2129
movq %r15, %rdi
callq 0x20a0
movq %r12, %rdi
callq 0x20a0
movq 0x311e(%rip), %r15      # 0x7fd0
cmpq (%r15), %r14
je 0x4ec2
movq %r14, %rdi
callq 0x1090
movq (%r15), %r14
cmpq %r14, %rbx
je 0x4ecf
movq %rbx, %rdi
callq 0x1090
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3111(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
leaq 0x1c6(%rip), %rsi       # 0x50b7
jmp 0x4f07
movq 0x30fe(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
leaq 0x1b3(%rip), %rsi       # 0x50b7
movq %r13, %rdx
xorl %eax, %eax
callq 0x1120
pushq $0x1
popq %rdi
callq 0x11b0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: new_string
static int _new_string(
	ASMGeneratorGas32Context *ctx,
	ResizableString *name,
	const char *str,
	size_t len
) {
	assert(ctx);
	assert(str);

	// .section __TEXT,__cstring,cstring_literals
	// _STR.[X]
	// .asciz [STRING]

	size_t no = _next_no(ctx);

	if (name != NULL) {
		rstr_appendf(name, "_STR.%zu", no);
	}
	
	ResizableString unescaped_str;
	rstr_init(&unescaped_str);

	be_lexer_unescape_string(
		ctx->psrctx->lexctx,
		&unescaped_str,
		str, len
	);
	int unescaped_str_len = RSTR_LEN(&unescaped_str);

	// rstr_append_with_cstr(
	// 	ctx->head,
	// 	".section __TEXT,__cstring,cstring_literals\n"
	// );
	rstr_append_with_cstr(
		ctx->head,
		".text\n"
	);

	rstr_appendf(
		ctx->head,
		"_STR.%zu:\n",
		no
	);

	rstr_append_with_cstr(
		ctx->head,
		".asciz \""
	);
	for (int i = 0; i < unescaped_str_len; i++) {
		char chr = RSTR_CHAR(&unescaped_str, i);
		if (isprint(chr)) {
			rstr_append_with_char(ctx->head, chr);
		} else {
			rstr_appendf(ctx->head, "\\%03o", chr);
		}
	}
	rstr_append_with_cstr(
		ctx->head,
		"\"\n\n"
	);

	rstr_free(&unescaped_str);

	return unescaped_str_len + 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdx, %rdx
je 0xbf3b
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
movq 0x50(%rdi), %r14
leaq 0x1(%r14), %rax
movq %rax, 0x50(%rdi)
testq %rsi, %rsi
je 0xbe49
leaq 0x31bc5(%rip), %rax     # 0x3d9fe
movq %rsi, %rdi
movq %rax, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x739a
leaq -0x38(%rbp), %r13
movq %r13, %rdi
callq 0x6e1c
movq (%rbx), %rax
movq (%rax), %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x1e126
movl 0x4(%r13), %r15d
movq 0x18(%rbx), %rdi
leaq 0x31b8f(%rip), %rsi     # 0x3da07
callq 0x6e99
movq 0x18(%rbx), %rdi
leaq 0x31b86(%rip), %rsi     # 0x3da0e
xorl %r12d, %r12d
movq %r14, %rdx
xorl %eax, %eax
callq 0x739a
movq 0x18(%rbx), %rdi
leaq 0x31b79(%rip), %rsi     # 0x3da19
callq 0x6e99
testl %r15d, %r15d
cmovlel %r12d, %r15d
leaq 0x31b6f(%rip), %r14     # 0x3da22
xorl %r13d, %r13d
cmpq %r13, %r15
je 0xbf13
movslq -0x34(%rbp), %rax
movb $-0x1, %r12b
cmpq %rax, %r13
jge 0xbedd
movq -0x30(%rbp), %rax
testq %rax, %rax
leaq 0x31b56(%rip), %rcx     # 0x3da2b
cmoveq %rcx, %rax
movb (%rax,%r13), %r12b
callq 0x3180
movq (%rax), %rax
movsbq %r12b, %rcx
testb $0x40, 0x1(%rax,%rcx,2)
movsbl %cl, %edx
jne 0xbf03
movq 0x18(%rbx), %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x739a
jmp 0xbf0e
movq 0x18(%rbx), %rdi
movl %edx, %esi
callq 0x6f81
incq %r13
jmp 0xbeb6
movq 0x18(%rbx), %rdi
leaq 0x31b0a(%rip), %rsi     # 0x3da28
callq 0x6e99
leaq -0x38(%rbp), %rdi
callq 0x72b9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2fb59(%rip), %rdi     # 0x3ba9b
leaq 0x314ff(%rip), %rsi     # 0x3d448
leaq 0x31a59(%rip), %rcx     # 0x3d9a9
pushq $0x46
popq %rdx
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: _out_label
static void __out_label(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	const char *prefix,
	const char *label
) {
	assert(ctx);
	assert(rstr);
	assert(label);

	ParserSymbol *func_symbol = ctx->func_symbol;
	assert(func_symbol);
	ParserASTNode *func_name_node = BE_FUNC_SYMBOL_GET_FUNC_NAME_NODE(func_symbol);
	assert(func_name_node);

	rstr_append_with_cstr(rstr, "_LABEL.");
	rstr_append_with_raw(rstr, func_name_node->token->content, func_name_node->token->len);
	rstr_append_with_char(rstr, '.');
	if (prefix != NULL) {
		rstr_appendf(rstr, "%s.", prefix);
	}
	rstr_append_with_cstr(rstr, label);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0xbff2
movq %rcx, %rbx
testq %rcx, %rcx
je 0xc011
movq 0x58(%rdi), %rax
testq %rax, %rax
je 0xc030
movq 0x58(%rax), %r12
testq %r12, %r12
je 0xc04f
movq %rdx, %r15
movq %rsi, %r14
leaq 0x35429(%rip), %rsi     # 0x413c8
movq %r14, %rdi
callq 0x6e99
movq 0x10(%r12), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
movq %r14, %rdi
callq 0x700f
pushq $0x2e
popq %rsi
movq %r14, %rdi
callq 0x6f81
testq %r15, %r15
je 0xbfdf
leaq 0x353fe(%rip), %rsi     # 0x413d0
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x739a
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x6e99
leaq 0x2fa37(%rip), %rdi     # 0x3ba30
leaq 0x31448(%rip), %rsi     # 0x3d448
leaq 0x3535f(%rip), %rcx     # 0x41366
movl $0x25a, %edx            # imm = 0x25A
callq 0x30a0
leaq 0x353aa(%rip), %rdi     # 0x413c2
leaq 0x31429(%rip), %rsi     # 0x3d448
leaq 0x35340(%rip), %rcx     # 0x41366
movl $0x25b, %edx            # imm = 0x25B
callq 0x30a0
leaq 0x31a9c(%rip), %rdi     # 0x3dad3
leaq 0x3140a(%rip), %rsi     # 0x3d448
leaq 0x35321(%rip), %rcx     # 0x41366
movl $0x25e, %edx            # imm = 0x25E
callq 0x30a0
leaq 0x31eaa(%rip), %rdi     # 0x3df00
leaq 0x313eb(%rip), %rsi     # 0x3d448
leaq 0x35302(%rip), %rcx     # 0x41366
movl $0x260, %edx            # imm = 0x260
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: get_var_symbol_by_id_node
static ParserSymbol * _get_var_symbol_by_id_node(
	ASMGeneratorGas32Context *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);
	assert(node->type == BE_NODE_IDENTIFIER);

	ParserSymbol *symbol = parser_get_symbol_from_node(
		ctx->psrctx, node, BE_SYM_VAR, node->token
	);
	if (symbol == NULL) {
		assert(0);
	}

	return symbol;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rsi, %rsi
je 0x128e1
cmpl $0x200, (%rsi)          # imm = 0x200
jne 0x12900
movq (%rdi), %rdi
movq 0x10(%rsi), %rcx
pushq $0x1
popq %rdx
callq 0x6779
testq %rax, %rax
je 0x1291f
popq %rbp
retq
leaq 0x2b622(%rip), %rdi     # 0x3df0a
leaq 0x2ab59(%rip), %rsi     # 0x3d448
leaq 0x2b4a7(%rip), %rcx     # 0x3dd9d
movl $0xe7b, %edx            # imm = 0xE7B
callq 0x30a0
leaq 0x2b4ec(%rip), %rdi     # 0x3ddf3
leaq 0x2ab3a(%rip), %rsi     # 0x3d448
leaq 0x2b488(%rip), %rcx     # 0x3dd9d
movl $0xe7c, %edx            # imm = 0xE7C
callq 0x30a0
leaq 0x28a43(%rip), %rdi     # 0x3b369
leaq 0x2ab1b(%rip), %rsi     # 0x3d448
leaq 0x2b469(%rip), %rcx     # 0x3dd9d
movl $0xe82, %edx            # imm = 0xE82
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: get_symbol_by_id_node
static ParserSymbol * _get_symbol_by_id_node(
	ASMGeneratorGas32Context *ctx,
	ParserASTNode *node
) {
	assert(ctx);
	assert(node);
	assert(node->type == BE_NODE_IDENTIFIER);

	ParserSymbol *symbol = parser_get_symbol_from_node(
		ctx->psrctx, node, 0, node->token
	);
	if (symbol == NULL) {
		assert(0);
	}

	return symbol;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rsi, %rsi
je 0x12964
cmpl $0x200, (%rsi)          # imm = 0x200
jne 0x12983
movq (%rdi), %rdi
movq 0x10(%rsi), %rcx
xorl %edx, %edx
callq 0x6779
testq %rax, %rax
je 0x129a2
popq %rbp
retq
leaq 0x2b59f(%rip), %rdi     # 0x3df0a
leaq 0x2aad6(%rip), %rsi     # 0x3d448
leaq 0x2b49b(%rip), %rcx     # 0x3de14
movl $0xe8d, %edx            # imm = 0xE8D
callq 0x30a0
leaq 0x2b469(%rip), %rdi     # 0x3ddf3
leaq 0x2aab7(%rip), %rsi     # 0x3d448
leaq 0x2b47c(%rip), %rcx     # 0x3de14
movl $0xe8e, %edx            # imm = 0xE8E
callq 0x30a0
leaq 0x289c0(%rip), %rdi     # 0x3b369
leaq 0x2aa98(%rip), %rsi     # 0x3d448
leaq 0x2b45d(%rip), %rcx     # 0x3de14
movl $0xe94, %edx            # imm = 0xE94
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_mov_sym_sym
static void _asm_inst_mov_sym_sym(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	ParserSymbol *target,
	ParserSymbol *source
) {
	assert(ctx);
	assert(rstr);
	assert(target);
	assert(source);
	assert(BE_VAR_SYMBOL_GET_TYPE_SIZE(target) == BE_VAR_SYMBOL_GET_TYPE_SIZE(source));

	const char *reg = "";
	switch (BE_VAR_SYMBOL_GET_TYPE_SIZE(target)) {
		case 1: {
			reg = _ASM_REG_NAME_AL;
			break;
		}
		case 2: {
			reg = _ASM_REG_NAME_AX;
			break;
		}
		case 4:
		case 8: {
			reg = _ASM_REG_NAME_EAX;
			break;
		}
		default: {
			assert(0);
			break;
		}
	}

	_asm_inst_mov_x_sym(ctx, rstr, reg, source);
	_asm_inst_mov_sym_x(ctx, rstr, target, reg);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x12c0b
movq %rsi, %rbx
testq %rsi, %rsi
je 0x12c2a
testq %rdx, %rdx
je 0x12c49
movq 0x70(%rbx), %rax
cmpq 0x70(%rdx), %rax
jne 0x12c68
leaq -0x1(%rax), %rcx
cmpq $0x8, %rcx
jae 0x12bec
movl $0x8b, %esi
btl %ecx, %esi
jae 0x12bec
movq %rdi, %r14
leaq 0x43bb9(%rip), %rcx     # 0x56780
movq -0x8(%rcx,%rax,8), %r15
movq %r15, %rsi
callq 0x13709
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x12eba
leaq 0x28776(%rip), %rdi     # 0x3b369
leaq 0x2a84e(%rip), %rsi     # 0x3d448
leaq 0x2b3d0(%rip), %rcx     # 0x3dfd1
movl $0x326, %edx            # imm = 0x326
callq 0x30a0
leaq 0x28e1e(%rip), %rdi     # 0x3ba30
leaq 0x2a82f(%rip), %rsi     # 0x3d448
leaq 0x2b3b1(%rip), %rcx     # 0x3dfd1
movl $0x311, %edx            # imm = 0x311
callq 0x30a0
leaq 0x32e80(%rip), %rdi     # 0x45ab1
leaq 0x2a810(%rip), %rsi     # 0x3d448
leaq 0x2b392(%rip), %rcx     # 0x3dfd1
movl $0x312, %edx            # imm = 0x312
callq 0x30a0
leaq 0x2feea(%rip), %rdi     # 0x42b3a
leaq 0x2a7f1(%rip), %rsi     # 0x3d448
leaq 0x2b373(%rip), %rcx     # 0x3dfd1
movl $0x313, %edx            # imm = 0x313
callq 0x30a0
leaq 0x2b3cc(%rip), %rdi     # 0x3e03b
leaq 0x2a7d2(%rip), %rsi     # 0x3d448
leaq 0x2b354(%rip), %rcx     # 0x3dfd1
movl $0x314, %edx            # imm = 0x314
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_mov_sym_x
static void _asm_inst_mov_sym_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	ParserSymbol *target,
	const char *source
) {
	assert(ctx);
	assert(rstr);
	assert(target);
	assert(source);

	_asm_inst_mov_x_x(
		ctx,
		rstr,
		BE_VAR_SYMBOL_GET_TYPE(target),
		RSTR_CSTR(BE_VAR_SYMBOL_GET_CODE_GEN_NAME(target)),
		source
	);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x12eee
testq %rsi, %rsi
je 0x12f0d
movq %rdx, %rcx
testq %rdx, %rdx
je 0x12f2c
movzbl 0x30(%rsi), %eax
movq 0x58(%rsi), %rsi
testq %rsi, %rsi
leaq 0x2ab49(%rip), %rdx     # 0x3da2b
cmovneq %rsi, %rdx
movl %eax, %esi
popq %rbp
jmp 0x135c7
leaq 0x28b3b(%rip), %rdi     # 0x3ba30
leaq 0x2a54c(%rip), %rsi     # 0x3d448
leaq 0x2b321(%rip), %rcx     # 0x3e224
movl $0x2de, %edx            # imm = 0x2DE
callq 0x30a0
leaq 0x32b9d(%rip), %rdi     # 0x45ab1
leaq 0x2a52d(%rip), %rsi     # 0x3d448
leaq 0x2b302(%rip), %rcx     # 0x3e224
movl $0x2df, %edx            # imm = 0x2DF
callq 0x30a0
leaq 0x2fc07(%rip), %rdi     # 0x42b3a
leaq 0x2a50e(%rip), %rsi     # 0x3d448
leaq 0x2b2e3(%rip), %rcx     # 0x3e224
movl $0x2e0, %edx            # imm = 0x2E0
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_get_ip
static void _asm_get_ip(
	ASMGeneratorGas32Context *ctx
) {
	ResizableString rstr_memref;
	rstr_init(&rstr_memref);
	_asm_inst_memref_base_disp(
		ctx,
		&rstr_memref,
		_ASM_REG_NAME_EBP,
		_FUNC_IP_STACK_OFFSET_STR
	);

	_asm_inst_mov_x_x(
		ctx,
		ctx->body,
		BE_TYPE_UINT32,
		_ASM_IP_REG,
		RSTR_CSTR(&rstr_memref)
	);

	rstr_free(&rstr_memref);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq -0x20(%rbp), %rbx
movq %rbx, %rdi
callq 0x6e1c
leaq 0x2a512(%rip), %rsi     # 0x3da8b
leaq 0x2a994(%rip), %rdx     # 0x3df14
leaq 0x2a988(%rip), %rcx     # 0x3df0f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x739a
movq 0x20(%r14), %rdi
movq 0x8(%rbx), %rax
testq %rax, %rax
leaq 0x2a488(%rip), %rcx     # 0x3da2b
cmovneq %rax, %rcx
leaq 0x2a687(%rip), %rdx     # 0x3dc35
pushq $0x8
popq %rsi
callq 0x135c7
movq %rbx, %rdi
callq 0x72b9
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_mov_x_x
static void _asm_inst_mov_x_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	uint8_t type,
	const char *target,
	const char *source
) {
	assert(ctx);
	assert(rstr);
	assert(target);
	assert(source);

	ResizableString rstr_mnemonic;
	rstr_init_with_cstr(&rstr_mnemonic, "mov");
	rstr_append_with_char(
		&rstr_mnemonic,
		_asm_inst_type_suffix(ctx, type)
	);

	_asm_inst2(
		ctx,
		rstr,
		RSTR_CSTR(&rstr_mnemonic),
		source,
		target
	);

	rstr_free(&rstr_mnemonic);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x13667
movq %rdx, %rbx
testq %rdx, %rdx
je 0x13686
movq %rcx, %r14
testq %rcx, %rcx
je 0x136a5
movl %esi, %r13d
movq %rdi, %r15
leaq 0x2a97c(%rip), %rsi     # 0x3df82
leaq -0x38(%rbp), %r12
movq %r12, %rdi
callq 0x6e49
movzbl %r13b, %edi
callq 0x136c4
movsbl %al, %esi
movq %r12, %rdi
callq 0x6f81
movq 0x8(%r12), %rax
testq %rax, %rax
leaq 0x2a3f6(%rip), %rdx     # 0x3da2b
cmovneq %rax, %rdx
leaq 0x2a986(%rip), %rsi     # 0x3dfc6
movq %r15, %rdi
movq %r14, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x739a
movq %r12, %rdi
callq 0x72b9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x283c2(%rip), %rdi     # 0x3ba30
leaq 0x29dd3(%rip), %rsi     # 0x3d448
leaq 0x2a89b(%rip), %rcx     # 0x3df17
movl $0x2c1, %edx            # imm = 0x2C1
callq 0x30a0
leaq 0x32424(%rip), %rdi     # 0x45ab1
leaq 0x29db4(%rip), %rsi     # 0x3d448
leaq 0x2a87c(%rip), %rcx     # 0x3df17
movl $0x2c2, %edx            # imm = 0x2C2
callq 0x30a0
leaq 0x2f48e(%rip), %rdi     # 0x42b3a
leaq 0x29d95(%rip), %rsi     # 0x3d448
leaq 0x2a85d(%rip), %rcx     # 0x3df17
movl $0x2c3, %edx            # imm = 0x2C3
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_mov_x_sym
static void _asm_inst_mov_x_sym(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	const char *target,
	ParserSymbol *source
) {
	assert(ctx);
	assert(rstr);
	assert(target);
	assert(source);

	_asm_inst_mov_x_x(
		ctx,
		rstr,
		BE_VAR_SYMBOL_GET_TYPE(source),
		target,
		RSTR_CSTR(BE_VAR_SYMBOL_GET_CODE_GEN_NAME(source))
	);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x1373e
movq %rsi, %rax
testq %rsi, %rsi
je 0x1375d
testq %rdx, %rdx
je 0x1377c
movzbl 0x30(%rdx), %esi
movq 0x58(%rdx), %rdx
testq %rdx, %rdx
leaq 0x2a2fa(%rip), %rcx     # 0x3da2b
cmovneq %rdx, %rcx
movq %rax, %rdx
popq %rbp
jmp 0x135c7
leaq 0x282eb(%rip), %rdi     # 0x3ba30
leaq 0x29cfc(%rip), %rsi     # 0x3d448
leaq 0x2a93b(%rip), %rcx     # 0x3e08e
movl $0x2f2, %edx            # imm = 0x2F2
callq 0x30a0
leaq 0x3234d(%rip), %rdi     # 0x45ab1
leaq 0x29cdd(%rip), %rsi     # 0x3d448
leaq 0x2a91c(%rip), %rcx     # 0x3e08e
movl $0x2f3, %edx            # imm = 0x2F3
callq 0x30a0
leaq 0x2f3b7(%rip), %rdi     # 0x42b3a
leaq 0x29cbe(%rip), %rsi     # 0x3d448
leaq 0x2a8fd(%rip), %rcx     # 0x3e08e
movl $0x2f4, %edx            # imm = 0x2F4
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_lea_x_x
static void _asm_inst_lea_x_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	const char *target,
	const char *source
) {
	assert(ctx);
	assert(rstr);
	assert(target);
	assert(source);

	const char *mnemonic = "leal";

	_asm_inst2(
		ctx,
		rstr,
		mnemonic,
		source,
		target
	);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x137ca
movq %rsi, %r8
testq %rsi, %rsi
je 0x137e9
movq %rdx, %rcx
testq %rdx, %rdx
je 0x13808
leaq 0x2a80b(%rip), %rsi     # 0x3dfc6
leaq 0x2aa5d(%rip), %rdx     # 0x3e21f
xorl %eax, %eax
popq %rbp
jmp 0x739a
leaq 0x2825f(%rip), %rdi     # 0x3ba30
leaq 0x29c70(%rip), %rsi     # 0x3d448
leaq 0x2a9de(%rip), %rcx     # 0x3e1bd
movl $0x33a, %edx            # imm = 0x33A
callq 0x30a0
leaq 0x322c1(%rip), %rdi     # 0x45ab1
leaq 0x29c51(%rip), %rsi     # 0x3d448
leaq 0x2a9bf(%rip), %rcx     # 0x3e1bd
movl $0x33b, %edx            # imm = 0x33B
callq 0x30a0
leaq 0x2f32b(%rip), %rdi     # 0x42b3a
leaq 0x29c32(%rip), %rsi     # 0x3d448
leaq 0x2a9a0(%rip), %rcx     # 0x3e1bd
movl $0x33c, %edx            # imm = 0x33C
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: out_literal_string
static void _out_literal_string(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	ParserASTNode *node
) {
	assert(ctx);
	assert(rstr);
	assert(node);
	assert(node->type == BE_NODE_LITERAL_STRING);
	
	ResizableString unescaped_str;
	rstr_init(&unescaped_str);
	be_lexer_unescape_string(
		ctx->psrctx->lexctx,
		&unescaped_str,
		node->token->content + 1,
		node->token->len - 2
	);

	rstr_append_with_cstr(
		rstr,
		RSTR_CSTR(&unescaped_str)
	);

	rstr_free(&unescaped_str);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rsi, %rsi
je 0x13d8b
movq %rdx, %r15
testq %rdx, %rdx
je 0x13daa
cmpl $0x303, (%r15)          # imm = 0x303
jne 0x13dc9
movq %rsi, %rbx
movq %rdi, %r12
leaq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x6e1c
movq (%r12), %rax
movq (%rax), %rdi
movq 0x10(%r15), %rax
movq 0x8(%rax), %rdx
incq %rdx
movslq 0x4(%rax), %rcx
addq $-0x2, %rcx
movq %r14, %rsi
callq 0x1e126
movq 0x8(%r14), %rax
testq %rax, %rax
leaq 0x29cc1(%rip), %rsi     # 0x3da2b
cmovneq %rax, %rsi
movq %rbx, %rdi
callq 0x6e99
movq %r14, %rdi
callq 0x72b9
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27c9e(%rip), %rdi     # 0x3ba30
leaq 0x296af(%rip), %rsi     # 0x3d448
leaq 0x2a780(%rip), %rcx     # 0x3e520
movl $0x111c, %edx           # imm = 0x111C
callq 0x30a0
leaq 0x2a159(%rip), %rdi     # 0x3df0a
leaq 0x29690(%rip), %rsi     # 0x3d448
leaq 0x2a761(%rip), %rcx     # 0x3e520
movl $0x111d, %edx           # imm = 0x111D
callq 0x30a0
leaq 0x2a7a9(%rip), %rdi     # 0x3e579
leaq 0x29671(%rip), %rsi     # 0x3d448
leaq 0x2a742(%rip), %rcx     # 0x3e520
movl $0x111e, %edx           # imm = 0x111E
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_push_x
static void _asm_inst_push_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	uint8_t type,
	const char *source
) {
	assert(ctx);
	assert(rstr);
	assert(source);

	ResizableString rstr_mnemonic;
	rstr_init_with_cstr(&rstr_mnemonic, "push");
	rstr_append_with_char(
		&rstr_mnemonic,
		_asm_inst_type_suffix(ctx, type)
	);

	_asm_inst1(
		ctx,
		rstr,
		RSTR_CSTR(&rstr_mnemonic),
		source
	);

	rstr_free(&rstr_mnemonic);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x13eb4
movq %rsi, %rbx
testq %rsi, %rsi
je 0x13ed3
movq %rdi, %r14
leaq 0x2a841(%rip), %rsi     # 0x3e6a5
leaq -0x28(%rbp), %r15
movq %r15, %rdi
callq 0x6e49
pushq $0x6c
popq %rsi
movq %r15, %rdi
callq 0x6f81
movq 0x8(%r15), %rax
testq %rax, %rax
leaq 0x29ba2(%rip), %rdx     # 0x3da2b
cmovneq %rax, %rdx
leaq 0x2a816(%rip), %rsi     # 0x3e6aa
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x739a
movq %r15, %rdi
callq 0x72b9
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27b75(%rip), %rdi     # 0x3ba30
leaq 0x29586(%rip), %rsi     # 0x3d448
leaq 0x2a780(%rip), %rcx     # 0x3e649
movl $0x70e, %edx            # imm = 0x70E
callq 0x30a0
leaq 0x2ec60(%rip), %rdi     # 0x42b3a
leaq 0x29567(%rip), %rsi     # 0x3d448
leaq 0x2a761(%rip), %rcx     # 0x3e649
movl $0x70f, %edx            # imm = 0x70F
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: out_label
static void _out_label(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	const char *prefix,
	ParserASTNode *node_id
) {
	assert(ctx);
	assert(rstr);
	assert(node_id);

	ResizableString rstr_id;
	rstr_init_with_raw(&rstr_id, node_id->token->content, node_id->token->len);
	__out_label(ctx, rstr, prefix, RSTR_CSTR(&rstr_id));
	rstr_free(&rstr_id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
testq %rsi, %rsi
je 0x13f58
testq %rdx, %rdx
je 0x13f77
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdx), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
leaq -0x28(%rbp), %r15
movq %r15, %rdi
callq 0x6fa2
movq 0x8(%r15), %rax
testq %rax, %rax
leaq 0x29af7(%rip), %rcx     # 0x3da2b
cmovneq %rax, %rcx
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xbf58
movq %r15, %rdi
callq 0x72b9
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27ad1(%rip), %rdi     # 0x3ba30
leaq 0x294e2(%rip), %rsi     # 0x3d448
leaq 0x2a87d(%rip), %rcx     # 0x3e7ea
movl $0x272, %edx            # imm = 0x272
callq 0x30a0
leaq 0x2a8ca(%rip), %rdi     # 0x3e848
leaq 0x294c3(%rip), %rsi     # 0x3d448
leaq 0x2a85e(%rip), %rcx     # 0x3e7ea
movl $0x273, %edx            # imm = 0x273
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_jmp_x
static void _asm_inst_jmp_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	const char *target
) {
	assert(ctx);
	assert(rstr);
	assert(target);

	const char *mnemonic = "jmp";

	_asm_inst1(ctx, rstr, mnemonic, target);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x13fbd
movq %rsi, %rcx
testq %rsi, %rsi
je 0x13fdc
leaq 0x2a6fc(%rip), %rsi     # 0x3e6aa
leaq 0x2a92c(%rip), %rdx     # 0x3e8e1
xorl %eax, %eax
popq %rbp
jmp 0x739a
leaq 0x27a6c(%rip), %rdi     # 0x3ba30
leaq 0x2947d(%rip), %rsi     # 0x3d448
leaq 0x2a8bd(%rip), %rcx     # 0x3e88f
movl $0x3fe, %edx            # imm = 0x3FE
callq 0x30a0
leaq 0x31ace(%rip), %rdi     # 0x45ab1
leaq 0x2945e(%rip), %rsi     # 0x3d448
leaq 0x2a89e(%rip), %rcx     # 0x3e88f
movl $0x3ff, %edx            # imm = 0x3FF
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_movsx_x_x
static void _asm_inst_movsx_x_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	uint8_t target_type,
	const char *target,
	uint8_t source_type,
	const char *source
) {
	assert(ctx);
	assert(rstr);
	assert(target);
	assert(source);

	ResizableString rstr_mnemonic;
	rstr_init_with_cstr(&rstr_mnemonic, "movs");
	rstr_append_with_char(
		&rstr_mnemonic,
		_asm_inst_type_suffix(ctx, source_type)
	);
	rstr_append_with_char(
		&rstr_mnemonic,
		_asm_inst_type_suffix(ctx, target_type)
	);

	_asm_inst2(
		ctx,
		rstr,
		RSTR_CSTR(&rstr_mnemonic),
		source,
		target
	);

	rstr_free(&rstr_mnemonic);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x142b9
movq %rdx, %r14
testq %rdx, %rdx
je 0x142d8
testq %r8, %r8
movq %r8, -0x30(%rbp)
je 0x142f7
movl %ecx, %r13d
movq %rdi, %r15
movl %esi, %ebx
leaq 0x2aca2(%rip), %rsi     # 0x3eee6
leaq -0x40(%rbp), %r12
movq %r12, %rdi
callq 0x6e49
movzbl %r13b, %edi
callq 0x136c4
movsbl %al, %esi
movq %r12, %rdi
callq 0x6f81
movzbl %bl, %edi
callq 0x136c4
movsbl %al, %esi
movq %r12, %rdi
callq 0x6f81
movq 0x8(%r12), %rax
testq %rax, %rax
leaq 0x297a5(%rip), %rdx     # 0x3da2b
cmovneq %rax, %rdx
leaq 0x29d35(%rip), %rsi     # 0x3dfc6
movq %r15, %rdi
movq -0x30(%rbp), %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x739a
movq %r12, %rdi
callq 0x72b9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27770(%rip), %rdi     # 0x3ba30
leaq 0x29181(%rip), %rsi     # 0x3d448
leaq 0x2aba2(%rip), %rcx     # 0x3ee70
movl $0x48f, %edx            # imm = 0x48F
callq 0x30a0
leaq 0x317d2(%rip), %rdi     # 0x45ab1
leaq 0x29162(%rip), %rsi     # 0x3d448
leaq 0x2ab83(%rip), %rcx     # 0x3ee70
movl $0x490, %edx            # imm = 0x490
callq 0x30a0
leaq 0x2e83c(%rip), %rdi     # 0x42b3a
leaq 0x29143(%rip), %rsi     # 0x3d448
leaq 0x2ab64(%rip), %rcx     # 0x3ee70
movl $0x491, %edx            # imm = 0x491
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_xor_x_x
static void _asm_inst_xor_x_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	uint8_t type,
	const char *target,
	const char *source
) {
	assert(ctx);
	assert(rstr);
	assert(target);
	assert(source);

	ResizableString rstr_mnemonic;
	rstr_init_with_cstr(&rstr_mnemonic, "xor");
	rstr_append_with_char(
		&rstr_mnemonic,
		_asm_inst_type_suffix(ctx, type)
	);

	_asm_inst2(
		ctx,
		rstr,
		RSTR_CSTR(&rstr_mnemonic),
		source,
		target
	);

	rstr_free(&rstr_mnemonic);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x1448b
movq %rsi, %rbx
testq %rsi, %rsi
je 0x144aa
movq %rdx, %r14
testq %rdx, %rdx
je 0x144c9
movq %rdi, %r15
leaq 0x30c17(%rip), %rsi     # 0x4504c
leaq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x6e49
pushq $0x6c
popq %rsi
movq %r12, %rdi
callq 0x6f81
movq 0x8(%r12), %rax
testq %rax, %rax
leaq 0x295d0(%rip), %rdx     # 0x3da2b
cmovneq %rax, %rdx
leaq 0x29b60(%rip), %rsi     # 0x3dfc6
movq %r15, %rdi
movq %r14, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x739a
movq %r12, %rdi
callq 0x72b9
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2759e(%rip), %rdi     # 0x3ba30
leaq 0x28faf(%rip), %rsi     # 0x3d448
leaq 0x2ab0b(%rip), %rcx     # 0x3efab
movl $0x899, %edx            # imm = 0x899
callq 0x30a0
leaq 0x31600(%rip), %rdi     # 0x45ab1
leaq 0x28f90(%rip), %rsi     # 0x3d448
leaq 0x2aaec(%rip), %rcx     # 0x3efab
movl $0x89a, %edx            # imm = 0x89A
callq 0x30a0
leaq 0x2e66a(%rip), %rdi     # 0x42b3a
leaq 0x28f71(%rip), %rsi     # 0x3d448
leaq 0x2aacd(%rip), %rcx     # 0x3efab
movl $0x89b, %edx            # imm = 0x89B
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_cvtsi2ss_x_x
static void _asm_inst_cvtsi2ss_x_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	uint8_t type,
	const char *target,
	const char *source
) {
	assert(ctx);
	assert(rstr);
	assert(type == BE_TYPE_INT32 || type == BE_TYPE_INT64);
	assert(target);
	assert(source);

	ResizableString rstr_mnemonic;
	rstr_init_with_cstr(&rstr_mnemonic, "cvtsi2ss");
	rstr_append_with_char(
		&rstr_mnemonic,
		_asm_inst_type_suffix(ctx, type)
	);

	_asm_inst2(
		ctx,
		rstr,
		RSTR_CSTR(&rstr_mnemonic),
		source,
		target
	);

	rstr_free(&rstr_mnemonic);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x14588
movl %esi, %r12d
movl %r12d, %eax
andb $-0x2, %al
cmpb $0x4, %al
jne 0x145a7
movq %rdx, %rbx
testq %rdx, %rdx
je 0x145c6
movq %rdi, %r14
leaq 0x2ab8f(%rip), %rsi     # 0x3f0b5
leaq -0x30(%rbp), %r15
movq %r15, %rdi
callq 0x6e49
movzbl %r12b, %edi
callq 0x136c4
movsbl %al, %esi
movq %r15, %rdi
callq 0x6f81
movq 0x8(%r15), %rax
testq %rax, %rax
leaq 0x294d7(%rip), %rdx     # 0x3da2b
cmovneq %rax, %rdx
leaq 0x29a67(%rip), %rsi     # 0x3dfc6
leaq 0x2aa3c(%rip), %r8      # 0x3efa2
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x739a
movq %r15, %rdi
callq 0x72b9
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x274a1(%rip), %rdi     # 0x3ba30
leaq 0x28eb2(%rip), %rsi     # 0x3d448
leaq 0x2aa79(%rip), %rcx     # 0x3f016
movl $0x4dc, %edx            # imm = 0x4DC
callq 0x30a0
leaq 0x2aad8(%rip), %rdi     # 0x3f086
leaq 0x28e93(%rip), %rsi     # 0x3d448
leaq 0x2aa5a(%rip), %rcx     # 0x3f016
movl $0x4dd, %edx            # imm = 0x4DD
callq 0x30a0
leaq 0x2e56d(%rip), %rdi     # 0x42b3a
leaq 0x28e74(%rip), %rsi     # 0x3d448
leaq 0x2aa3b(%rip), %rcx     # 0x3f016
movl $0x4df, %edx            # imm = 0x4DF
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: asm_inst_movss_sym_x
static void _asm_inst_movss_sym_x(
	ASMGeneratorGas32Context *ctx,
	ResizableString *rstr,
	ParserSymbol *target,
	const char *source
) {
	assert(ctx);
	assert(rstr);
	assert(target);
	assert(source);

	_asm_inst_movss_x_x(
		ctx,
		rstr,
		RSTR_CSTR(BE_VAR_SYMBOL_GET_CODE_GEN_NAME(target)),
		source
	);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x14612
testq %rsi, %rsi
je 0x14631
movq 0x58(%rsi), %rax
testq %rax, %rax
leaq 0x2942a(%rip), %rsi     # 0x3da2b
cmovneq %rax, %rsi
leaq 0x2a996(%rip), %rdx     # 0x3efa2
popq %rbp
jmp 0x147b8
leaq 0x27417(%rip), %rdi     # 0x3ba30
leaq 0x28e28(%rip), %rsi     # 0x3d448
leaq 0x2aa97(%rip), %rcx     # 0x3f0be
movl $0x537, %edx            # imm = 0x537
callq 0x30a0
leaq 0x31479(%rip), %rdi     # 0x45ab1
leaq 0x28e09(%rip), %rsi     # 0x3d448
leaq 0x2aa78(%rip), %rcx     # 0x3f0be
movl $0x538, %edx            # imm = 0x538
callq 0x30a0