LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newArrayDeclarationNode
TreeNode*
newArrayDeclarationNode(TreeNode *type_specifier,
                        TreeNode *_var,
                        TreeNode *_num)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = ArrayDeclarationK;
      t->attr.arrDecl.type_spec = type_specifier;
      t->attr.arrDecl._var = _var;
      t->attr.arrDecl._num = _num;

    }

  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 0x54fd
testq %rax, %rax
je 0x55b5
movl $0x2, 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_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newFunctionDeclarationNode
TreeNode*
newFunctionDeclarationNode(TreeNode *type_specifier,
                           TreeNode *_var,
                           TreeNode *params,
                           TreeNode *compound_stmt)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = FunctionDeclarationK;
      t->attr.funcDecl.type_spec = type_specifier;
      t->attr.funcDecl._var = _var;
      t->attr.funcDecl.params = params;
      t->attr.funcDecl.cmpd_stmt = compound_stmt;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x54fd
testq %rax, %rax
je 0x55f8
movl $0x3, 0xc(%rax)
movq %r12, 0x20(%rax)
movq %r15, 0x28(%rax)
movq %r14, 0x30(%rax)
movq %rbx, 0x38(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newVariableParameterNode
TreeNode*
newVariableParameterNode(TreeNode *type_specifier,
                         TreeNode *_var)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = VariableParameterK;
      t->attr.varParam.type_spec = type_specifier;
      t->attr.varParam._var = _var;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x54fd
testq %rax, %rax
je 0x5627
movl $0x4, 0xc(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x28(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newArrayParameterNode
TreeNode*
newArrayParameterNode(TreeNode *type_specifier,
                      TreeNode *_var)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = ArrayParameterK;
      t->attr.arrParam.type_spec = type_specifier;
      t->attr.arrParam._var = _var;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x54fd
testq %rax, %rax
je 0x5652
movl $0x5, 0xc(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x28(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newCompoundStatementNode
TreeNode*
newCompoundStatementNode(TreeNode *local_declarations, // nullable
                         TreeNode *statement_list) // nullable
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = CompoundStatementK;
      t->attr.cmpdStmt.local_decl = local_declarations;
      t->attr.cmpdStmt.stmt_list = statement_list;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x54fd
testq %rax, %rax
je 0x567d
movl $0x6, 0xc(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x28(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newExpressionStatementNode
TreeNode*
newExpressionStatementNode(TreeNode *expression) // nullable
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = ExpressionStatementK;
      t->attr.exprStmt.expr = expression;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x54fd
testq %rax, %rax
je 0x56a0
movl $0x7, 0xc(%rax)
movq %rbx, 0x20(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newSelectionStatementNode
TreeNode*
newSelectionStatementNode(TreeNode *expression, // nullable
                          TreeNode *if_statement,
                          TreeNode *else_statement) // nullable
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = SelectionStatementK;
      t->attr.selectStmt.expr = expression;
      t->attr.selectStmt.if_stmt = if_statement;
      t->attr.selectStmt.else_stmt = else_statement;
    }

  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 0x54fd
testq %rax, %rax
je 0x56d7
movl $0x8, 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_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newIterationStatementNode
TreeNode*
newIterationStatementNode(TreeNode *expression,
                          TreeNode *statement) // nullable
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = IterationStatementK;
      t->attr.iterStmt.expr = expression;
      t->attr.iterStmt.loop_stmt = statement;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x54fd
testq %rax, %rax
je 0x5708
movl $0x9, 0xc(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x28(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newReturnStatementNode
TreeNode*
newReturnStatementNode(TreeNode *expression) // nullable
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = ReturnStatementK;
      t->attr.retStmt.expr = expression;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x54fd
testq %rax, %rax
je 0x572b
movl $0xa, 0xc(%rax)
movq %rbx, 0x20(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/taeguk[P]Compiler-Proj-Cminus/src/util.c
// Function: newAssignExpressionNode
TreeNode*
newAssignExpressionNode(TreeNode *var,
                        TreeNode *expression)
{
  TreeNode * t = allocateTreeNode();
  if (t != NULL)
    {
      t->nodeKind = AssignExpressionK;
      t->attr.assignStmt._var = var;
      t->attr.assignStmt.expr = expression;
    }

  return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x54fd
testq %rax, %rax
je 0x5758
movl $0xb, 0xc(%rax)
movq %r14, 0x28(%rax)
movq %rbx, 0x20(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x54fd
testq %rax, %rax
je 0x578d
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_O1/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 0x54fd
testq %rax, %rax
je 0x57c8
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_O1/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 0x54fd
testq %rax, %rax
je 0x5803
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_O1/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 0x54fd
testq %rax, %rax
je 0x5834
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_O1/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 0x54fd
testq %rax, %rax
je 0x585f
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_O1/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 0x54fd
movq %rax, %rbx
testq %rax, %rax
je 0x588e
movl $0xf, 0xc(%rbx)
movq %r14, %rdi
callq 0x5896
movq %rax, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x58c8
movq %rdi, %rbx
callq 0x10b0
leaq 0x1(%rax), %rdi
callq 0x1160
testq %rax, %rax
je 0x58d1
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 0x5928(%rip), %rax      # 0xb200
movq (%rax), %rdi
leaq 0xacf(%rip), %rsi       # 0x63b1
leaq 0x23a2(%rip), %rbx      # 0x7c8b
leaq 0x23a2(%rip), %r8       # 0x7c92
movq %rbx, %rdx
movl $0x1df, %ecx            # imm = 0x1DF
xorl %eax, %eax
callq 0x1120
leaq 0xada(%rip), %rdi       # 0x63e0
leaq 0x2390(%rip), %rcx      # 0x7c9d
movq %rbx, %rsi
movl $0x1df, %edx            # imm = 0x1DF
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O1/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 0x54fd
movq %rax, %rbx
testq %rax, %rax
je 0x5943
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_O1/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 0x54fd
testq %rax, %rax
je 0x5967
movl $0x13, 0xc(%rax)
movl %ebx, 0x20(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x60(%rsp), %r13
testl %r9d, %r9d
je 0xd6f0
movq 0xd8f4(%rip), %rax      # 0x1afc8
cmpl $0x0, (%rax)
js 0xd6f0
movq 0xd8c0(%rip), %rax      # 0x1afa0
movq (%rax), %rcx
leaq 0x7372(%rip), %rsi      # 0x14a5c
xorl %edi, %edi
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 0xd720
leaq 0x4(%rsp), %r13
movb $0x0, (%r13)
movw $0x100, 0x8(%r13)       # imm = 0x100
movl $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 0xd08b
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sharpyfox[P]citrusleaf-client/src/cf_average.c
// Function: cf_average_create
cf_average *
cf_average_create(uint32_t initial_size, uint32_t flags)
{
	cf_average *a;

	a = (cf_average*)malloc(sizeof(cf_average) + (sizeof(uint64_t) * initial_size) );
	if (!a)	return(0);
	
	a->flags = flags;
	a->n_points = 0;
	a->points_sum = 0;

	return(a);
}

// Assembly:
pushq %rbx
movl %esi, %ebx
movl %edi, %eax
leaq 0x10(,%rax,8), %rdi
callq 0x66c0
testq %rax, %rax
je 0xfab6
movl %ebx, (%rax)
movl $0x0, 0x4(%rax)
movq $0x0, 0x8(%rax)
jmp 0xfab8
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xfb18
movsd 0x8(%rdi), %xmm0
unpcklps 0x5724(%rip), %xmm0     # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x572c(%rip), %xmm0     # 0x15220
haddpd %xmm0, %xmm0
movl %eax, %eax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
testb %sil, %sil
je 0xfb1c
movl $0x0, 0x4(%rdi)
movq $0x0, 0x8(%rdi)
retq
xorpd %xmm0, %xmm0
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0xfc7a
cmpl $0x100, %edi            # imm = 0x100
jae 0xfc94
movl %edi, %eax
leaq 0x55fb(%rip), %rcx      # 0x15270
movsbl (%rax,%rcx), %eax
retq
cmpl $0x1000000, %edi        # imm = 0x1000000
jae 0xfca6
shrl $0x10, %edi
leaq 0x55e4(%rip), %rax      # 0x15270
movsbl (%rdi,%rax), %eax
addl $0x10, %eax
retq
shrl $0x8, %edi
leaq 0x55d2(%rip), %rax      # 0x15270
movsbl (%rdi,%rax), %eax
addl $0x8, %eax
retq
shrl $0x18, %edi
leaq 0x55c0(%rip), %rax      # 0x15270
movsbl (%rdi,%rax), %eax
addl $0x18, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/sharpyfox[P]citrusleaf-client/src/cf_hist.c
// Function: cf_bits_find_last_set_64
int
cf_bits_find_last_set_64(uint64_t v)
{
	uint64_t t;
	if ((t = v >> 32))
		return( cf_bits_find_last_set((uint32_t)t) + 32 );
	else
		return( cf_bits_find_last_set((uint32_t)v) );
}

// Assembly:
movq %rdi, %rax
shrq $0x20, %rax
jne 0xfcdf
cmpq $0x10000, %rdi          # imm = 0x10000
jae 0xfcfb
cmpq $0x100, %rdi            # imm = 0x100
jae 0xfd2d
leaq 0x5596(%rip), %rax      # 0x15270
movsbl (%rdi,%rax), %eax
retq
movq %rdi, %rcx
shrq $0x30, %rcx
jne 0xfd17
shrq $0x28, %rdi
jne 0xfd40
leaq 0x557b(%rip), %rcx      # 0x15270
movsbl (%rax,%rcx), %eax
jmp 0xfd6a
cmpq $0x1000000, %rdi        # imm = 0x1000000
jae 0xfd50
shrq $0x10, %rdi
leaq 0x5561(%rip), %rax      # 0x15270
movsbl (%rdi,%rax), %eax
addl $0x10, %eax
retq
leaq 0x5552(%rip), %rax      # 0x15270
shrq $0x38, %rdi
jne 0xfd63
movsbl (%rcx,%rax), %eax
addl $0x10, %eax
jmp 0xfd6a
shrq $0x8, %rdi
leaq 0x5538(%rip), %rax      # 0x15270
movsbl (%rdi,%rax), %eax
addl $0x8, %eax
retq
leaq 0x5529(%rip), %rax      # 0x15270
movsbl (%rdi,%rax), %eax
addl $0x8, %eax
jmp 0xfd6a
shrq $0x18, %rdi
leaq 0x5515(%rip), %rax      # 0x15270
movsbl (%rdi,%rax), %eax
addl $0x18, %eax
retq
movsbl (%rdi,%rax), %eax
addl $0x18, %eax
addl $0x20, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x66c0
testq %rax, %rax
je 0xfd9d
movq %rax, %rbx
movq %r14, %rdi
callq 0x6270
cmpq $0x3f, %rax
jb 0xfda1
movq %rbx, %rdi
callq 0x6070
xorl %ebx, %ebx
jmp 0xfdc7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x60e0
movq $0x0, 0x40(%rbx)
movq %rbx, %rdi
addq $0x48, %rdi
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x63b0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x1, %r12d
movl $0x1, %eax
lock
xaddq %rax, 0x40(%rdi)
leaq 0x8(%rsp), %r15
movl $0x1, %edi
movq %r15, %rsi
callq 0x61b0
movabsq $0x431bde82d7b634db, %rax # imm = 0x431BDE82D7B634DB
mulq 0x8(%r15)
shrq $0x12, %rdx
imulq $0x3e8, (%r15), %r15    # imm = 0x3E8
addq %rdx, %r15
movq %r15, %rdi
subq %r14, %rdi
callq 0x61a0
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpq %r14, %r15
cmovaeq %rax, %rcx
lock
xaddq %r12, 0x48(%rbx,%rcx,8)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6290
testl %eax, %eax
jne 0x1118d
callq 0x6290
cmpl %ebx, %eax
jne 0x1116a
callq 0x6620
cmpl %ebp, %eax
je 0x1118d
xorl %edi, %edi
xorl %esi, %esi
callq 0x6440
testl %eax, %eax
js 0x11194
movl %ebp, %edi
callq 0x68e0
testl %eax, %eax
js 0x111d0
movl %ebx, %edi
callq 0x6aa0
testl %eax, %eax
js 0x111fb
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x9e2d(%rip), %rax      # 0x1afc8
cmpl $0x0, (%rax)
js 0x111c6
movq 0x9df9(%rip), %rax      # 0x1afa0
movq (%rax), %rbx
callq 0x60a0
movl (%rax), %edi
callq 0x6b20
leaq 0x4243(%rip), %rsi      # 0x15400
xorl %edi, %edi
movq %rax, %rdx
xorl %eax, %eax
callq *%rbx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x6a40
movq 0x9df1(%rip), %rax      # 0x1afc8
cmpl $0x0, (%rax)
js 0x1122d
movq 0x9dbd(%rip), %rax      # 0x1afa0
movq (%rax), %rbx
callq 0x60a0
movl (%rax), %edi
callq 0x6b20
leaq 0x4220(%rip), %rsi      # 0x15419
jmp 0x11224
movq 0x9dc6(%rip), %rax      # 0x1afc8
cmpl $0x0, (%rax)
js 0x1122d
movq 0x9d92(%rip), %rax      # 0x1afa0
movq (%rax), %rbx
callq 0x60a0
movl (%rax), %edi
callq 0x6b20
leaq 0x420b(%rip), %rsi      # 0x1542f
xorl %edi, %edi
movq %rax, %rdx
xorl %eax, %eax
callq *%rbx
movl $0xfffffffe, %edi       # imm = 0xFFFFFFFE
callq 0x6a40
// File: /workspace/github_c_makefile_star2_O1/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:
testl %edi, %edi
jle 0x117c
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r12d
leaq 0xeaf(%rip), %r14       # 0x2004
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x1030
incq %r15
cmpq %r15, %r12
jne 0x1158
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movl %edi, %r15d
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x20e4
movq %rax, -0x30(%rbp)
xorl %eax, %eax
callq 0x20e4
movq %rax, %r14
cmpl $0x2, %r15d
jl 0x526a
movq 0x8(%rbx), %r13
movq 0x3d5f(%rip), %rax      # 0x8fd0
cmpl $0x3, %r15d
jl 0x527d
movq 0x10(%rbx), %rbx
jmp 0x527f
xorl %ebx, %ebx
movq (%rax), %r15
testq %r13, %r13
je 0x52a6
leaq 0xe40(%rip), %rsi       # 0x60ce
movq %r13, %rdi
callq 0x1180
movq %rax, %r12
testq %rax, %rax
jne 0x52b0
movq %r13, %rdi
callq 0x12bd
movq 0x3d2b(%rip), %rax      # 0x8fd8
movq (%rax), %r12
testq %rbx, %rbx
je 0x52cc
leaq 0x14ba(%rip), %rsi      # 0x6776
movq %rbx, %rdi
callq 0x1180
movq %rax, %r15
testq %rax, %rax
je 0x533a
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x239d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3c74
movq %r14, %rdi
movq %r15, %rsi
callq 0x2282
movq %rbx, %rdi
callq 0x21e2
movq %r14, %rdi
callq 0x21e2
movq 0x3cc8(%rip), %rax      # 0x8fd0
cmpq (%rax), %r12
je 0x531c
movq %r12, %rdi
callq 0x1090
movq 0x3cb4(%rip), %rax      # 0x8fd0
cmpq (%rax), %r15
je 0x5329
movq %r15, %rdi
callq 0x1090
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x12e4
// File: /workspace/github_c_makefile_star2_O1/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: be_asmgen_gas32_new_context
ASMGeneratorGas32Context * be_asmgen_gas32_new_context(
	ParserContext *psrctx,
	FILE *out,
	int platform
) {
	assert(psrctx);
	assert(psrctx->ast);
	assert(out);
	assert(
		platform == BE_ASMGEN_PLATFORM_WINDOWS
			|| platform == BE_ASMGEN_PLATFORM_SYSTEM_V
			|| platform == BE_ASMGEN_PLATFORM_ISYSTEM
	);
	
	ASMGeneratorGas32Context *ctx = (ASMGeneratorGas32Context *)malloc(sizeof(ASMGeneratorGas32Context));
	if (ctx == NULL) {
		_error("cannot allocate memory for a new context!");
	}

	ctx->psrctx = psrctx;
	ctx->out = out;

	ctx->global = rstr_new();
	ctx->head = rstr_new();
	ctx->body = rstr_new();
	ctx->foot = rstr_new();
	ctx->local_var_defs = NULL;

	ctx->local_var_address_counter = 0;
	ctx->local_var_size = 0;

	rstr_init(ctx->global);
	rstr_init(ctx->head);
	rstr_init(ctx->body);
	rstr_init(ctx->foot);

	ctx->counter = 0;
	ctx->func_symbol = NULL;

	ctx->platform = platform;

	size_t reg_alloc_table_count = sizeof(ctx->_reg_alloc_table) / sizeof(ctx->_reg_alloc_table[0]);
	for (int i = 0; i < reg_alloc_table_count; i++) {
		ctx->_reg_alloc_table[i] = false;
	}

	return ctx;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xc20b
movq %rdi, %r12
cmpq $0x0, 0x8(%rdi)
je 0xc22a
movq %rsi, %r15
testq %rsi, %rsi
je 0xc249
leal -0x1(%rdx), %eax
cmpl $0x3, %eax
jae 0xc268
movq %rdx, -0x30(%rbp)
movl $0x68, %edi
callq 0x3110
testq %rax, %rax
je 0xc287
movq %rax, %r14
movq %r12, (%rax)
movq %r15, 0x8(%rax)
callq 0x78ea
movq %rax, %r15
movq %rax, 0x10(%r14)
callq 0x78ea
movq %rax, %r12
movq %rax, 0x18(%r14)
callq 0x78ea
movq %rax, %r13
movq %rax, 0x20(%r14)
callq 0x78ea
movq %rax, %rbx
movq %rax, 0x28(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r14)
movq $0x0, 0x40(%r14)
movq %r15, %rdi
callq 0x7508
movq %r12, %rdi
callq 0x7508
movq %r13, %rdi
callq 0x7508
movq %rbx, %rdi
callq 0x7508
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%r14)
movq -0x30(%rbp), %rax
movl %eax, 0x60(%r14)
movl $0x0, 0x64(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x362c5(%rip), %rdi     # 0x424d7
leaq 0x3625f(%rip), %rsi     # 0x42478
leaq 0x36301(%rip), %rcx     # 0x42521
movl $0x2cca, %edx           # imm = 0x2CCA
callq 0x30a0
leaq 0x362b2(%rip), %rdi     # 0x424e3
leaq 0x36240(%rip), %rsi     # 0x42478
leaq 0x362e2(%rip), %rcx     # 0x42521
movl $0x2ccb, %edx           # imm = 0x2CCB
callq 0x30a0
leaq 0x362cd(%rip), %rdi     # 0x4251d
leaq 0x36221(%rip), %rsi     # 0x42478
leaq 0x362c3(%rip), %rcx     # 0x42521
movl $0x2ccc, %edx           # imm = 0x2CCC
callq 0x30a0
leaq 0x36306(%rip), %rdi     # 0x42575
leaq 0x36202(%rip), %rsi     # 0x42478
leaq 0x362a4(%rip), %rcx     # 0x42521
movl $0x2cd1, %edx           # imm = 0x2CD1
callq 0x30a0
callq 0x31a0
// File: /workspace/github_c_makefile_star2_O1/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 0xcc5c
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 0xcb6f
leaq 0x35ecf(%rip), %rax     # 0x42a2e
movq %rsi, %rdi
movq %rax, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x7af1
leaq -0x38(%rbp), %r13
movq %r13, %rdi
callq 0x7508
movq (%rbx), %rax
movq (%rax), %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x20452
movslq 0x4(%r13), %r12
movq 0x18(%rbx), %rdi
leaq 0x35e99(%rip), %rsi     # 0x42a37
callq 0x758f
movq 0x18(%rbx), %rdi
leaq 0x35e90(%rip), %rsi     # 0x42a3e
movq %r14, %rdx
xorl %eax, %eax
callq 0x7af1
movq 0x18(%rbx), %rdi
leaq 0x35e86(%rip), %rsi     # 0x42a49
callq 0x758f
testq %r12, %r12
jle 0xcc34
callq 0x3180
movq %rax, %r14
leaq 0x35e76(%rip), %r15     # 0x42a52
xorl %r13d, %r13d
movslq -0x34(%rbp), %rcx
movb $-0x1, %al
cmpq %rcx, %r13
jge 0xcc00
movq -0x30(%rbp), %rax
testq %rax, %rax
leaq 0x35e63(%rip), %rcx     # 0x42a5b
cmoveq %rcx, %rax
movb (%rax,%r13), %al
movq (%r14), %rcx
movsbq %al, %rax
testb $0x40, 0x1(%rcx,%rax,2)
movsbl %al, %edx
jne 0xcc21
movq 0x18(%rbx), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x7af1
jmp 0xcc2c
movq 0x18(%rbx), %rdi
movl %edx, %esi
callq 0x768b
incq %r13
cmpq %r13, %r12
jne 0xcbdf
movq 0x18(%rbx), %rdi
leaq 0x35e19(%rip), %rsi     # 0x42a58
callq 0x758f
leaq -0x38(%rbp), %rdi
callq 0x79f8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x33e58(%rip), %rdi     # 0x40abb
leaq 0x3580e(%rip), %rsi     # 0x42478
leaq 0x35d68(%rip), %rcx     # 0x429d9
movl $0x46, %edx
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 0x144e9
movq %rcx, %rbx
testq %rcx, %rcx
je 0x14508
movq 0x58(%rdi), %rax
testq %rax, %rax
je 0x14527
movq 0x58(%rax), %r12
testq %r12, %r12
je 0x14546
movq %rdx, %r15
movq %rsi, %r14
leaq 0x31f42(%rip), %rsi     # 0x463d6
movq %r14, %rdi
callq 0x758f
movq 0x10(%r12), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
movq %r14, %rdi
callq 0x7728
movq %r14, %rdi
movl $0x2e, %esi
callq 0x768b
testq %r15, %r15
je 0x144d6
leaq 0x31f15(%rip), %rsi     # 0x463de
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x7af1
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x758f
leaq 0x2c560(%rip), %rdi     # 0x40a50
leaq 0x2df81(%rip), %rsi     # 0x42478
leaq 0x31e76(%rip), %rcx     # 0x46374
movl $0x25a, %edx            # imm = 0x25A
callq 0x30a0
leaq 0x31ec1(%rip), %rdi     # 0x463d0
leaq 0x2df62(%rip), %rsi     # 0x42478
leaq 0x31e57(%rip), %rcx     # 0x46374
movl $0x25b, %edx            # imm = 0x25B
callq 0x30a0
leaq 0x2e5d5(%rip), %rdi     # 0x42b03
leaq 0x2df43(%rip), %rsi     # 0x42478
leaq 0x31e38(%rip), %rcx     # 0x46374
movl $0x25e, %edx            # imm = 0x25E
callq 0x30a0
leaq 0x2e9f4(%rip), %rdi     # 0x42f41
leaq 0x2df24(%rip), %rsi     # 0x42478
leaq 0x31e19(%rip), %rcx     # 0x46374
movl $0x260, %edx            # imm = 0x260
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 0x1458e
cmpl $0x200, (%rsi)          # imm = 0x200
jne 0x145ad
movq (%rdi), %rdi
movq 0x10(%rsi), %rcx
movl $0x1, %edx
callq 0x6d79
testq %rax, %rax
je 0x145cc
popq %rbp
retq
leaq 0x2e9b6(%rip), %rdi     # 0x42f4b
leaq 0x2dedc(%rip), %rsi     # 0x42478
leaq 0x2e83b(%rip), %rcx     # 0x42dde
movl $0xe7b, %edx            # imm = 0xE7B
callq 0x30a0
leaq 0x2e880(%rip), %rdi     # 0x42e34
leaq 0x2debd(%rip), %rsi     # 0x42478
leaq 0x2e81c(%rip), %rcx     # 0x42dde
movl $0xe7c, %edx            # imm = 0xE7C
callq 0x30a0
leaq 0x2bdba(%rip), %rdi     # 0x4038d
leaq 0x2de9e(%rip), %rsi     # 0x42478
leaq 0x2e7fd(%rip), %rcx     # 0x42dde
movl $0xe82, %edx            # imm = 0xE82
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 0x14611
cmpl $0x200, (%rsi)          # imm = 0x200
jne 0x14630
movq (%rdi), %rdi
movq 0x10(%rsi), %rcx
xorl %edx, %edx
callq 0x6d79
testq %rax, %rax
je 0x1464f
popq %rbp
retq
leaq 0x2e933(%rip), %rdi     # 0x42f4b
leaq 0x2de59(%rip), %rsi     # 0x42478
leaq 0x2e82f(%rip), %rcx     # 0x42e55
movl $0xe8d, %edx            # imm = 0xE8D
callq 0x30a0
leaq 0x2e7fd(%rip), %rdi     # 0x42e34
leaq 0x2de3a(%rip), %rsi     # 0x42478
leaq 0x2e810(%rip), %rcx     # 0x42e55
movl $0xe8e, %edx            # imm = 0xE8E
callq 0x30a0
leaq 0x2bd37(%rip), %rdi     # 0x4038d
leaq 0x2de1b(%rip), %rsi     # 0x42478
leaq 0x2e7f1(%rip), %rcx     # 0x42e55
movl $0xe94, %edx            # imm = 0xE94
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
testq %rdi, %rdi
je 0x148da
movq %rsi, %r14
testq %rsi, %rsi
je 0x148f9
testq %rdx, %rdx
je 0x14918
movq 0x70(%r14), %rax
cmpq 0x70(%rdx), %rax
jne 0x14937
leaq -0x1(%rax), %rcx
cmpq $0x8, %rcx
jae 0x148bb
movl $0x8b, %esi
btl %ecx, %esi
jae 0x148bb
movq %rdi, %rbx
leaq 0x46f0b(%rip), %rcx     # 0x5b780
movq -0x8(%rcx,%rax,8), %r15
movzbl 0x30(%rdx), %esi
movq 0x58(%rdx), %rcx
testq %rcx, %rcx
leaq 0x2e1cf(%rip), %r12     # 0x42a5b
cmoveq %r12, %rcx
movq %r15, %rdx
callq 0x15262
movzbl 0x30(%r14), %esi
movq 0x58(%r14), %rdx
testq %rdx, %rdx
cmoveq %r12, %rdx
movq %rbx, %rdi
movq %r15, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x15262
leaq 0x2bacb(%rip), %rdi     # 0x4038d
leaq 0x2dbaf(%rip), %rsi     # 0x42478
leaq 0x2e742(%rip), %rcx     # 0x43012
movl $0x326, %edx            # imm = 0x326
callq 0x30a0
leaq 0x2c16f(%rip), %rdi     # 0x40a50
leaq 0x2db90(%rip), %rsi     # 0x42478
leaq 0x2e723(%rip), %rcx     # 0x43012
movl $0x311, %edx            # imm = 0x311
callq 0x30a0
leaq 0x361c1(%rip), %rdi     # 0x4aac1
leaq 0x2db71(%rip), %rsi     # 0x42478
leaq 0x2e704(%rip), %rcx     # 0x43012
movl $0x312, %edx            # imm = 0x312
callq 0x30a0
leaq 0x3322b(%rip), %rdi     # 0x47b4a
leaq 0x2db52(%rip), %rsi     # 0x42478
leaq 0x2e6e5(%rip), %rcx     # 0x43012
movl $0x313, %edx            # imm = 0x313
callq 0x30a0
leaq 0x2e73e(%rip), %rdi     # 0x4307c
leaq 0x2db33(%rip), %rsi     # 0x42478
leaq 0x2e6c6(%rip), %rcx     # 0x43012
movl $0x314, %edx            # imm = 0x314
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 0x14bce
testq %rsi, %rsi
je 0x14bed
movq %rdx, %rcx
testq %rdx, %rdx
je 0x14c0c
movzbl 0x30(%rsi), %eax
movq 0x58(%rsi), %rsi
testq %rsi, %rsi
leaq 0x2de99(%rip), %rdx     # 0x42a5b
cmovneq %rsi, %rdx
movl %eax, %esi
popq %rbp
jmp 0x15262
leaq 0x2be7b(%rip), %rdi     # 0x40a50
leaq 0x2d89c(%rip), %rsi     # 0x42478
leaq 0x2e682(%rip), %rcx     # 0x43265
movl $0x2de, %edx            # imm = 0x2DE
callq 0x30a0
leaq 0x35ecd(%rip), %rdi     # 0x4aac1
leaq 0x2d87d(%rip), %rsi     # 0x42478
leaq 0x2e663(%rip), %rcx     # 0x43265
movl $0x2df, %edx            # imm = 0x2DF
callq 0x30a0
leaq 0x32f37(%rip), %rdi     # 0x47b4a
leaq 0x2d85e(%rip), %rsi     # 0x42478
leaq 0x2e644(%rip), %rcx     # 0x43265
movl $0x2e0, %edx            # imm = 0x2E0
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 0x7508
leaq 0x2d8a9(%rip), %rsi     # 0x42abb
leaq 0x2dd3c(%rip), %rdx     # 0x42f55
leaq 0x2dd30(%rip), %rcx     # 0x42f50
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7af1
movq 0x20(%r14), %rdi
movq 0x8(%rbx), %rax
testq %rax, %rax
leaq 0x2d81f(%rip), %rcx     # 0x42a5b
cmovneq %rax, %rcx
leaq 0x2da1e(%rip), %rdx     # 0x42c65
movl $0x8, %esi
callq 0x15262
movq %rbx, %rdi
callq 0x79f8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x15334
movq %rdx, %rbx
testq %rdx, %rdx
je 0x15353
movq %rcx, %r14
testq %rcx, %rcx
je 0x15372
movl %esi, %r12d
movq %rdi, %r15
leaq 0x2dd24(%rip), %rsi     # 0x42fc3
leaq -0x30(%rbp), %rdi
callq 0x7537
decb %r12b
cmpb $0x10, %r12b
jae 0x15315
movzbl %r12b, %eax
movl $0x87ff, %ecx           # imm = 0x87FF
btl %eax, %ecx
jae 0x15315
leaq 0x2cf0a(%rip), %rcx     # 0x421d0
movsbl (%rax,%rcx), %esi
leaq -0x30(%rbp), %r12
movq %r12, %rdi
callq 0x768b
movq 0x8(%r12), %rax
testq %rax, %rax
leaq 0x2d776(%rip), %rdx     # 0x42a5b
cmovneq %rax, %rdx
leaq 0x2dd17(%rip), %rsi     # 0x43007
movq %r15, %rdi
movq %r14, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x7af1
movq %r12, %rdi
callq 0x79f8
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b071(%rip), %rdi     # 0x4038d
leaq 0x2d155(%rip), %rsi     # 0x42478
leaq 0x2dc9d(%rip), %rcx     # 0x42fc7
movl $0x147, %edx            # imm = 0x147
callq 0x30a0
leaq 0x2b715(%rip), %rdi     # 0x40a50
leaq 0x2d136(%rip), %rsi     # 0x42478
leaq 0x2dc0f(%rip), %rcx     # 0x42f58
movl $0x2c1, %edx            # imm = 0x2C1
callq 0x30a0
leaq 0x35767(%rip), %rdi     # 0x4aac1
leaq 0x2d117(%rip), %rsi     # 0x42478
leaq 0x2dbf0(%rip), %rcx     # 0x42f58
movl $0x2c2, %edx            # imm = 0x2C2
callq 0x30a0
leaq 0x327d1(%rip), %rdi     # 0x47b4a
leaq 0x2d0f8(%rip), %rsi     # 0x42478
leaq 0x2dbd1(%rip), %rcx     # 0x42f58
movl $0x2c3, %edx            # imm = 0x2C3
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 0x153c6
movq %rsi, %rax
testq %rsi, %rsi
je 0x153e5
testq %rdx, %rdx
je 0x15404
movzbl 0x30(%rdx), %esi
movq 0x58(%rdx), %rdx
testq %rdx, %rdx
leaq 0x2d6a2(%rip), %rcx     # 0x42a5b
cmovneq %rdx, %rcx
movq %rax, %rdx
popq %rbp
jmp 0x15262
leaq 0x2b683(%rip), %rdi     # 0x40a50
leaq 0x2d0a4(%rip), %rsi     # 0x42478
leaq 0x2dcf4(%rip), %rcx     # 0x430cf
movl $0x2f2, %edx            # imm = 0x2F2
callq 0x30a0
leaq 0x356d5(%rip), %rdi     # 0x4aac1
leaq 0x2d085(%rip), %rsi     # 0x42478
leaq 0x2dcd5(%rip), %rcx     # 0x430cf
movl $0x2f3, %edx            # imm = 0x2F3
callq 0x30a0
leaq 0x3273f(%rip), %rdi     # 0x47b4a
leaq 0x2d066(%rip), %rsi     # 0x42478
leaq 0x2dcb6(%rip), %rcx     # 0x430cf
movl $0x2f4, %edx            # imm = 0x2F4
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 0x15452
movq %rsi, %r8
testq %rsi, %rsi
je 0x15471
movq %rdx, %rcx
testq %rdx, %rdx
je 0x15490
leaq 0x2dbc4(%rip), %rsi     # 0x43007
leaq 0x2de16(%rip), %rdx     # 0x43260
xorl %eax, %eax
popq %rbp
jmp 0x7af1
leaq 0x2b5f7(%rip), %rdi     # 0x40a50
leaq 0x2d018(%rip), %rsi     # 0x42478
leaq 0x2dd97(%rip), %rcx     # 0x431fe
movl $0x33a, %edx            # imm = 0x33A
callq 0x30a0
leaq 0x35649(%rip), %rdi     # 0x4aac1
leaq 0x2cff9(%rip), %rsi     # 0x42478
leaq 0x2dd78(%rip), %rcx     # 0x431fe
movl $0x33b, %edx            # imm = 0x33B
callq 0x30a0
leaq 0x326b3(%rip), %rdi     # 0x47b4a
leaq 0x2cfda(%rip), %rsi     # 0x42478
leaq 0x2dd59(%rip), %rcx     # 0x431fe
movl $0x33c, %edx            # imm = 0x33C
callq 0x30a0
// File: /workspace/github_c_makefile_star2_O1/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 0x15a47
movq %rdx, %r15
testq %rdx, %rdx
je 0x15a66
cmpl $0x303, (%r15)          # imm = 0x303
jne 0x15a85
movq %rsi, %rbx
movq %rdi, %r12
leaq -0x30(%rbp), %r14
movq %r14, %rdi
callq 0x7508
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 0x20452
movq 0x8(%r14), %rax
testq %rax, %rax
leaq 0x2d035(%rip), %rsi     # 0x42a5b
cmovneq %rax, %rsi
movq %rbx, %rdi
callq 0x758f
movq %r14, %rdi
callq 0x79f8
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b002(%rip), %rdi     # 0x40a50
leaq 0x2ca23(%rip), %rsi     # 0x42478
leaq 0x2db05(%rip), %rcx     # 0x43561
movl $0x111c, %edx           # imm = 0x111C
callq 0x30a0
leaq 0x2d4de(%rip), %rdi     # 0x42f4b
leaq 0x2ca04(%rip), %rsi     # 0x42478
leaq 0x2dae6(%rip), %rcx     # 0x43561
movl $0x111d, %edx           # imm = 0x111D
callq 0x30a0
leaq 0x2db2e(%rip), %rdi     # 0x435ba
leaq 0x2c9e5(%rip), %rsi     # 0x42478
leaq 0x2dac7(%rip), %rcx     # 0x43561
movl $0x111e, %edx           # imm = 0x111E
callq 0x30a0