LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_div_const
static subtilis_exp_t *prv_div_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/*
	 * Oddly, a2 may not be const as we don't currently swap operands
	 * for integer division as the ARM backend has no implementation
	 * for rdiv.  Some day we'll have to as some CPUs have native
	 * support for integer division, but for the time being we'll have to
	 * handle the unusual case of having to deal with a variable here.
	 * a2 is at least guaranteed to be an integer.
	 */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		if (a2->exp.ir_op.integer == 0) {
			subtilis_error_set_divide_by_zero(
			    err, p->l->stream->name, p->l->line);
			goto on_error;
		}
		a1->exp.ir_op.integer /= a2->exp.ir_op.integer;
		break;
	case SUBTILIS_TYPE_BYTE:
		a2 = subtilis_type_if_to_int(p, a2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	case SUBTILIS_TYPE_INTEGER:
		prv_div_mod_const_var(p, a1, a2, SUBTILIS_OP_INSTR_DIV_I32,
				      err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:

	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x37f3c
cmpl $0x5, %eax
je 0x37f53
cmpl $0x1, %eax
jne 0x37f92
movl 0x148(%r14), %ecx
testl %ecx, %ecx
je 0x37f6f
movl 0x148(%rbx), %eax
cltd
idivl %ecx
movl %eax, 0x148(%rbx)
jmp 0x37f9c
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x347d5
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x37f92
pushq $0x6
popq %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %r8
callq 0x39609
cmpl $0x0, (%r15)
jne 0x37f92
jmp 0x37f9c
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x3750e(%rip), %r8      # 0x6f48f
pushq $0x1a
popq %rsi
movq %r15, %rdi
movl $0x20d, %r9d            # imm = 0x20D
callq 0x142c0
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_pow_const
static subtilis_exp_t *prv_pow_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, bool swapped,
				     subtilis_error_t *err)
{
	int32_t accum;
	int32_t i = 0;
	/* a2 must be const */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		if (a2->exp.ir_op.integer == 0) {
			a1->exp.ir_op.integer = 1;
		} else if (a2->exp.ir_op.integer < 0) {
			a1->exp.ir_op.real =
			    pow(a1->exp.ir_op.integer, a2->exp.ir_op.integer);
			a1->type.type = SUBTILIS_TYPE_CONST_REAL;
		} else {
			accum = a1->exp.ir_op.integer;
			for (i = 1; i < a2->exp.ir_op.integer; i++)
				accum *= a1->exp.ir_op.integer;
			a1->exp.ir_op.integer = accum;
		}
		break;
	case SUBTILIS_TYPE_CONST_REAL:
		if (a2->exp.ir_op.real == 0) {
			a1->exp.ir_op.real = 1;
		} else if (a2->exp.ir_op.real != 1) {
			a1->exp.ir_op.real =
			    pow(a1->exp.ir_op.integer, a2->exp.ir_op.real);
			a1->type.type = SUBTILIS_TYPE_CONST_REAL;
		}
		break;
	default:
		subtilis_exp_delete(a1);
		subtilis_exp_delete(a2);
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		return NULL;
	}

	subtilis_exp_delete(a2);
	return a1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl (%rdx), %eax
testl %eax, %eax
je 0x38365
cmpl $0x1, %eax
jne 0x3838d
movl 0x148(%r14), %eax
testl %eax, %eax
je 0x383d2
movl 0x148(%rbx), %ecx
js 0x383f4
decl %eax
movl %ecx, %edx
subl $0x1, %eax
jb 0x383ca
imull %ecx, %edx
jmp 0x3835b
movsd 0x148(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x383de
jp 0x383de
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x148(%rbx)
jmp 0x3840c
movq %r8, %r15
movq %rdi, %r12
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x370da(%rip), %r8      # 0x6f48f
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x2ef, %r9d            # imm = 0x2EF
callq 0x142c0
xorl %ebx, %ebx
jmp 0x38414
movl %edx, 0x148(%rbx)
jmp 0x3840c
movl $0x1, 0x148(%rbx)
jmp 0x3840c
ucomisd 0x36ffa(%rip), %xmm1    # 0x6f3e0
jne 0x383ea
jnp 0x3840c
cvtsi2sdl 0x148(%rbx), %xmm0
jmp 0x383fc
cvtsi2sd %ecx, %xmm0
cvtsi2sd %eax, %xmm1
callq 0x120d0
movsd %xmm0, 0x148(%rbx)
andl $0x0, (%rbx)
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_lsl_const
static subtilis_exp_t *prv_lsl_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 may not be const as we don't order the arguments */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer = a1->exp.ir_op.integer
					<< (a2->exp.ir_op.integer & 63);
		break;
	case SUBTILIS_TYPE_BYTE:
		a2 = subtilis_type_if_to_int(p, a2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	case SUBTILIS_TYPE_INTEGER:
		prv_shift_const_var(p, a1, a2, SUBTILIS_OP_INSTR_LSL_I32, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:
	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x38457
cmpl $0x5, %eax
je 0x3846e
cmpl $0x1, %eax
jne 0x3848a
movb 0x148(%r14), %cl
shll %cl, 0x148(%rbx)
jmp 0x384b7
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x347d5
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x384ad
pushq $0x4b
popq %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %r8
callq 0x39823
cmpl $0x0, (%r15)
jne 0x384ad
jmp 0x384b7
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x36ff3(%rip), %r8      # 0x6f48f
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x320, %r9d            # imm = 0x320
callq 0x142c0
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_lsr_const
static subtilis_exp_t *prv_lsr_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 may not be const as we don't order the arguments */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer =
		    (int32_t)((uint32_t)a1->exp.ir_op.integer >>
			      ((uint32_t)a2->exp.ir_op.integer & 63));
		break;
	case SUBTILIS_TYPE_BYTE:
		a2 = subtilis_type_if_to_int(p, a2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	case SUBTILIS_TYPE_INTEGER:
		prv_shift_const_var(p, a1, a2, SUBTILIS_OP_INSTR_LSR_I32, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:
	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x38502
cmpl $0x5, %eax
je 0x38519
cmpl $0x1, %eax
jne 0x38535
movb 0x148(%r14), %cl
shrl %cl, 0x148(%rbx)
jmp 0x38562
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x347d5
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x38558
pushq $0x4d
popq %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %r8
callq 0x39823
cmpl $0x0, (%r15)
jne 0x38558
jmp 0x38562
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x36f48(%rip), %r8      # 0x6f48f
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x343, %r9d            # imm = 0x343
callq 0x142c0
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_asr_const
static subtilis_exp_t *prv_asr_const(subtilis_parser_t *p, subtilis_exp_t *a1,
				     subtilis_exp_t *a2, subtilis_error_t *err)
{
	/* a2 may not be const as we don't order the arguments */

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		a1->exp.ir_op.integer =
		    a1->exp.ir_op.integer >> (a2->exp.ir_op.integer & 63);
		break;
	case SUBTILIS_TYPE_BYTE:
		a2 = subtilis_type_if_to_int(p, a2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	case SUBTILIS_TYPE_INTEGER:
		prv_shift_const_var(p, a1, a2, SUBTILIS_OP_INSTR_ASR_I32, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:
	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x385ad
cmpl $0x5, %eax
je 0x385c4
cmpl $0x1, %eax
jne 0x385e0
movb 0x148(%r14), %cl
sarl %cl, 0x148(%rbx)
jmp 0x3860d
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x347d5
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x38603
pushq $0x4f
popq %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %r8
callq 0x39823
cmpl $0x0, (%r15)
jne 0x38603
jmp 0x3860d
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x36e9d(%rip), %r8      # 0x6f48f
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x365, %r9d            # imm = 0x365
callq 0x142c0
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_zero
static subtilis_exp_t *prv_zero(subtilis_parser_t *p,
				const subtilis_type_t *type,
				subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	size_t reg_num;

	op1.integer = 0;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_int32_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
movq 0x48(%rdi), %rdi
pushq $0x1b
popq %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
je 0x38686
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2a336
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_top_bit
static subtilis_exp_t *prv_top_bit(subtilis_parser_t *p, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	size_t reg_num;

	op1.integer = (int32_t)0x80000000;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_int32_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
pushq $0x1b
popq %rsi
movl $0x80000000, %edx       # imm = 0x80000000
movq %rbx, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
je 0x386b2
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2a336
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_copy_var
static subtilis_exp_t *prv_copy_var(subtilis_parser_t *p, subtilis_exp_t *e,
				    subtilis_error_t *err)
{
	size_t reg;
	subtilis_exp_t *e2;

	reg = subtilis_ir_section_add_instr2(p->current, SUBTILIS_OP_INSTR_MOV,
					     e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e2 = subtilis_exp_new_int32_var(reg, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	subtilis_exp_delete(e);
	return e2;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
pushq $0x1d
popq %rsi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
jne 0x38717
movl %eax, %edi
movq %r14, %rsi
callq 0x2a336
cmpl $0x0, (%r14)
je 0x3872b
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x29d88
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
jmp 0x3871a
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_to_float64
static subtilis_exp_t *prv_to_float64(subtilis_parser_t *p, subtilis_exp_t *e,
				      subtilis_error_t *err)
{
	size_t reg;

	reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOV_I32_FP, e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e->type.type = SUBTILIS_TYPE_REAL;
	e->exp.ir_op.reg = reg;

	return e;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
pushq $0x51
popq %rsi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
je 0x387e7
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x387f4
movl $0x4, (%rbx)
movq %rax, 0x148(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_coerce_type
static subtilis_exp_t *prv_coerce_type(subtilis_parser_t *p, subtilis_exp_t *e,
				       const subtilis_type_t *type,
				       subtilis_error_t *err)
{
	switch (type->type) {
	case SUBTILIS_TYPE_CONST_REAL:
		e->type.type = SUBTILIS_TYPE_CONST_INTEGER;
		e->exp.ir_op.integer = (int32_t)e->exp.ir_op.real;
		e = subtilis_type_if_exp_to_var(p, e, err);
		break;
	case SUBTILIS_TYPE_CONST_INTEGER:
		e = subtilis_type_if_exp_to_var(p, e, err);
		break;
	case SUBTILIS_TYPE_REAL:
		e = subtilis_type_if_to_float64(p, e, err);
		break;
	case SUBTILIS_TYPE_BYTE:
		e->type.type = SUBTILIS_TYPE_BYTE;
		break;
	case SUBTILIS_TYPE_INTEGER:
		break;
	default:
		subtilis_error_set_bad_conversion(
		    err, subtilis_type_name(&e->type), subtilis_type_name(type),
		    p->l->stream->name, p->l->line);
		subtilis_exp_delete(e);
		return NULL;
	}

	return e;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x38885
leaq 0x36be7(%rip), %rcx     # 0x6f438
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, (%rbx)
cvttsd2si 0x148(%rbx), %eax
movl %eax, 0x148(%rbx)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3415f
movq %rbx, %rdi
callq 0x2dcbb
movq %rax, %r13
movq %r12, %rdi
callq 0x2dcbb
movq (%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x36be5(%rip), %r10     # 0x6f48f
pushq $0x45
popq %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %rax, %rcx
pushq $0x4e9                  # imm = 0x4E9
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x388ed
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x34916
movl $0x6, (%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_unary_minus
static subtilis_exp_t *prv_unary_minus(subtilis_parser_t *p, subtilis_exp_t *e,
				       subtilis_error_t *err)
{
	size_t reg;
	subtilis_ir_operand_t operand;

	operand.integer = 0;
	reg = subtilis_ir_section_add_instr(p->current,
					    SUBTILIS_OP_INSTR_RSUBI_I32,
					    e->exp.ir_op, operand, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e->exp.ir_op.reg = reg;
	return e;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
pushq $0x21
popq %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
je 0x3892e
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x38935
movq %rax, 0x148(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_and
static subtilis_exp_t *prv_and(subtilis_parser_t *p, subtilis_exp_t *a1,
			       subtilis_exp_t *a2, subtilis_error_t *err)
{
	a2 = subtilis_type_if_to_int(p, a2, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return NULL;
	}

	/* last two parameters are not used. */

	return prv_commutative(
	    p, a1, a2, SUBTILIS_OP_INSTR_ANDI_I32, SUBTILIS_OP_INSTR_AND_I32,
	    SUBTILIS_OP_INSTR_ANDI_I32, SUBTILIS_OP_INSTR_AND_I32, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x347d5
cmpl $0x0, (%rbx)
je 0x3899f
movq %r14, %rdi
callq 0x29d88
xorl %eax, %eax
jmp 0x389bc
pushq $0x24
popq %r8
pushq $0x25
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl %ecx, %r9d
pushq %rbx
pushq $0x24
callq 0x399d5
popq %rcx
popq %rdx
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_or
static subtilis_exp_t *prv_or(subtilis_parser_t *p, subtilis_exp_t *a1,
			      subtilis_exp_t *a2, subtilis_error_t *err)
{
	a2 = subtilis_type_if_to_int(p, a2, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return NULL;
	}

	/* last two parameters are not used. */

	return prv_commutative(
	    p, a1, a2, SUBTILIS_OP_INSTR_ORI_I32, SUBTILIS_OP_INSTR_OR_I32,
	    SUBTILIS_OP_INSTR_ORI_I32, SUBTILIS_OP_INSTR_OR_I32, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x347d5
cmpl $0x0, (%rbx)
je 0x389ec
movq %r14, %rdi
callq 0x29d88
xorl %eax, %eax
jmp 0x38a09
pushq $0x26
popq %r8
pushq $0x27
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl %ecx, %r9d
pushq %rbx
pushq $0x26
callq 0x399d5
popq %rcx
popq %rdx
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_not
static subtilis_exp_t *prv_not(subtilis_parser_t *p, subtilis_exp_t *e,
			       subtilis_error_t *err)
{
	size_t reg;
	subtilis_ir_operand_t operand;

	operand.integer = 0;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_NOT_I32, e->exp.ir_op, operand, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e->exp.ir_op.reg = reg;
	return e;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
pushq $0x2a
popq %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
je 0x38a43
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x38a4a
movq %rax, 0x148(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_eor
static subtilis_exp_t *prv_eor(subtilis_parser_t *p, subtilis_exp_t *a1,
			       subtilis_exp_t *a2, subtilis_error_t *err)
{
	a2 = subtilis_type_if_to_int(p, a2, err);
	if (err->type != SUBTILIS_ERROR_OK) {
		subtilis_exp_delete(a1);
		return NULL;
	}

	/* last two parameters are not used. */

	return prv_commutative(
	    p, a1, a2, SUBTILIS_OP_INSTR_EORI_I32, SUBTILIS_OP_INSTR_EOR_I32,
	    SUBTILIS_OP_INSTR_EORI_I32, SUBTILIS_OP_INSTR_EOR_I32, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x347d5
cmpl $0x0, (%rbx)
je 0x38a7f
movq %r14, %rdi
callq 0x29d88
xorl %eax, %eax
jmp 0x38a9c
pushq $0x28
popq %r8
pushq $0x29
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl %ecx, %r9d
pushq %rbx
pushq $0x28
callq 0x399d5
popq %rcx
popq %rdx
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_abs
static subtilis_exp_t *prv_abs(subtilis_parser_t *p, subtilis_exp_t *e,
			       subtilis_error_t *err)
{
	size_t reg;
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;

	op2.integer = 31;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_ASRI_I32, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	op2.reg = reg;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_ADD_I32, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	op1.reg = reg;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_EOR_I32, op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	e->exp.ir_op.reg = reg;

	return e;

cleanup:

	subtilis_exp_delete(e);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
pushq $0x50
popq %rsi
pushq $0x1f
popq %rcx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x39281
movq %rax, %r12
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
xorl %esi, %esi
movq %rax, %rcx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x39281
movq 0x48(%r15), %rdi
pushq $0x28
popq %rsi
movq %rax, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
je 0x3929a
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, 0x148(%rbx)
jmp 0x3928b
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_sgn
static subtilis_exp_t *prv_sgn(subtilis_parser_t *p, subtilis_exp_t *e,
			       subtilis_error_t *err)
{
	subtilis_ir_operand_t less_zero;
	subtilis_ir_operand_t gte_zero;
	size_t reg;
	size_t reg2;
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;

	less_zero.label = subtilis_ir_section_new_label(p->current);
	gte_zero.label = subtilis_ir_section_new_label(p->current);

	op2.integer = 0;
	reg = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_LTI_I32, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op1.reg = reg;
	subtilis_ir_section_add_instr_reg(p->current, SUBTILIS_OP_INSTR_JMPC,
					  op1, less_zero, gte_zero, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(p->current, gte_zero.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	reg2 = subtilis_ir_section_add_instr(
	    p->current, SUBTILIS_OP_INSTR_GTI_I32, e->exp.ir_op, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	e->exp.ir_op.reg = reg2;
	e = prv_abs(p, e, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	prv_assign_to_reg(p, reg, e, err);
	e = NULL;
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	subtilis_ir_section_add_label(p->current, less_zero.label, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	return subtilis_exp_new_int32_var(reg, err);

cleanup:

	subtilis_exp_delete(e);

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x48(%rdi), %rdi
callq 0x2b774
movq %rax, %r12
movq 0x48(%r15), %rdi
callq 0x2b774
movq %rax, %rbp
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
pushq $0x3d
popq %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x39391
movq %rax, %r13
movq 0x48(%r15), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq %r12, %rcx
movq %rbp, %r8
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x39391
movq 0x48(%r15), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x39391
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
pushq $0x35
popq %rsi
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x39391
movq %rax, 0x148(%rbx)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x39215
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x39391
movq %r15, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x38730
cmpl $0x0, (%r14)
jne 0x3938f
movq 0x48(%r15), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
je 0x393aa
xorl %ebx, %ebx
movq %rbx, %rdi
callq 0x29d88
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r13d, %edi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a336
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_print
static void prv_print(subtilis_parser_t *p, subtilis_exp_t *e,
		      subtilis_error_t *err)
{
	const subtilis_symbol_t *s;
	subtilis_exp_t *sizee;
	size_t ptr;
	size_t size_reg;
	subtilis_ir_operand_t op0;
	subtilis_ir_operand_t op1;

	s = subtilis_symbol_table_create_named_local_buf(
	    p->local_st, "32_int_print_buf", 16, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	ptr = subtilis_reference_get_pointer(p, SUBTILIS_IR_REG_LOCAL, s->loc,
					     err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	op0.reg = ptr;
	if (p->backend.caps & SUBTILIS_BACKEND_HAVE_I32_TO_DEC) {
		size_reg = subtilis_ir_section_add_instr(
		    p->current, SUBTILIS_OP_INSTR_I32TODEC, e->exp.ir_op, op0,
		    err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
	} else {
		sizee = subtilis_builtin_ir_call_dec_to_str(p, e->exp.ir_op.reg,
							    op0.reg, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
		size_reg = sizee->exp.ir_op.reg;
		subtilis_exp_delete(sizee);
	}

	op1.reg = size_reg;
	subtilis_ir_section_add_instr_no_reg2(
	    p->current, SUBTILIS_OP_INSTR_PRINT_STR, op0, op1, err);

cleanup:

	subtilis_exp_delete(e);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x68(%rdi), %rdi
leaq 0x3603e(%rip), %rsi     # 0x6f4ab
pushq $0x10
popq %rdx
movq %r14, %rcx
callq 0x2ce99
cmpl $0x0, (%r14)
jne 0x39495
movq (%rax), %rdx
pushq $0x2
popq %rsi
movq %r15, %rdi
movq %r14, %rcx
callq 0x4ab28
cmpl $0x0, (%r14)
je 0x394a6
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x29d88
movq %rax, %r12
testb $0x4, 0x8(%r15)
jne 0x394dc
movq 0x148(%rbx), %rsi
movq %r15, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x3011f
cmpl $0x0, (%r14)
jne 0x39495
movq 0x148(%rax), %r13
movq %rax, %rdi
callq 0x29d88
jmp 0x39500
movq 0x48(%r15), %rdi
movq 0x148(%rbx), %rdx
movl $0x84, %esi
movq %r12, %rcx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x39495
movq %rax, %r13
movq 0x48(%r15), %rdi
pushq $0x1f
popq %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %r14, %r8
callq 0x2a9a4
jmp 0x39495
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_swap_reg_reg
static void prv_swap_reg_reg(subtilis_parser_t *p, const subtilis_type_t *type,
			     size_t reg1, size_t reg2, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;
	subtilis_ir_operand_t tmp;

	op1.reg = reg1;
	op2.reg = reg2;

	tmp.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOV, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_no_reg2(p->current, SUBTILIS_OP_INSTR_MOV,
					      op1, op2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_no_reg2(p->current, SUBTILIS_OP_INSTR_MOV,
					      op2, tmp, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r13
movq %rdi, %r15
movq 0x48(%rdi), %rdi
pushq $0x1d
popq %rsi
movq %r8, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
jne 0x39560
movq %rax, %r12
movq 0x48(%r15), %rdi
pushq $0x1d
popq %rsi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x2a9a4
cmpl $0x0, (%rbx)
je 0x3956a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x48(%r15), %rdi
pushq $0x1d
popq %rsi
movq %r14, %rdx
movq %r12, %rcx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2a9a4
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_swap_reg_mem
static void prv_swap_reg_mem(subtilis_parser_t *p, const subtilis_type_t *type,
			     size_t reg1, size_t reg2, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	subtilis_ir_operand_t op2;
	subtilis_ir_operand_t zero;
	subtilis_ir_operand_t tmp;

	op1.reg = reg1;
	op2.reg = reg2;
	zero.integer = 0;

	tmp.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOV, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_reg(
	    p->current, SUBTILIS_OP_INSTR_LOADO_I32, op1, op2, zero, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	subtilis_ir_section_add_instr_reg(
	    p->current, SUBTILIS_OP_INSTR_STOREO_I32, tmp, op2, zero, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r13
movq %rdi, %r15
movq 0x48(%rdi), %rdi
pushq $0x1d
popq %rsi
movq %r8, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
jne 0x395d1
movq %rax, %r12
movq 0x48(%r15), %rdi
pushq $0x12
popq %rsi
movq %r13, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
je 0x395db
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x48(%r15), %rdi
pushq $0x17
popq %rsi
movq %r12, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
movq %rbx, %r9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2a8c1
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_div_mod_const_var
static void prv_div_mod_const_var(subtilis_parser_t *p, subtilis_exp_t *a1,
				  subtilis_exp_t *a2,
				  subtilis_op_instr_type_t type,
				  subtilis_error_t *err)
{
	a1->type.type = SUBTILIS_TYPE_INTEGER;
	a1->exp.ir_op.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, a1->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	a1->exp.ir_op.reg =
	    prv_div_mod_vars(p, a1->exp.ir_op, a2->exp.ir_op, type, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movl $0x5, (%rsi)
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
pushq $0x1b
popq %rsi
movq %r8, %rcx
callq 0x2a981
movq %rax, 0x148(%rbx)
cmpl $0x0, (%r14)
jne 0x39667
movq 0x148(%r12), %rdx
movq %r15, %rdi
movq %rax, %rsi
movl %ebp, %ecx
movq %r14, %r8
callq 0x39670
movq %rax, 0x148(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_shift_const_var
static void prv_shift_const_var(subtilis_parser_t *p, subtilis_exp_t *a1,
				subtilis_exp_t *a2,
				subtilis_op_instr_type_t op_type,
				subtilis_error_t *err)
{
	subtilis_ir_operand_t op;
	size_t reg;

	op.reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, a1->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	reg = subtilis_ir_section_add_instr(p->current, op_type, op,
					    a2->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	a1->exp.ir_op.reg = reg;
	a1->type.type = SUBTILIS_TYPE_INTEGER;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
pushq $0x1b
popq %rsi
movq %r8, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
jne 0x39881
movq 0x48(%r12), %rdi
movq 0x148(%r15), %rcx
movl %ebp, %esi
movq %rax, %rdx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x39881
movq %rax, 0x148(%rbx)
movl $0x5, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_commutative
static subtilis_exp_t *prv_commutative(subtilis_parser_t *p, subtilis_exp_t *a1,
				       subtilis_exp_t *a2,
				       subtilis_op_instr_type_t in_var_imm,
				       subtilis_op_instr_type_t in_var_var,
				       subtilis_op_instr_type_t real_var_imm,
				       subtilis_op_instr_type_t real_var_var,
				       subtilis_error_t *err)
{
	size_t reg;

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		reg = subtilis_ir_section_add_instr(
		    p->current, in_var_imm, a1->exp.ir_op, a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		break;
	case SUBTILIS_TYPE_CONST_REAL:
		prv_commutative_const_real(p, a1, a2, real_var_imm,
					   &subtilis_type_real, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	case SUBTILIS_TYPE_BYTE:
		a2 = subtilis_type_if_to_int(p, a2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	case SUBTILIS_TYPE_INTEGER:
		reg = subtilis_ir_section_add_instr(
		    p->current, in_var_var, a1->exp.ir_op, a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		break;
	case SUBTILIS_TYPE_REAL:
		prv_commutative_real(p, a1, a2, real_var_var,
				     &subtilis_type_real, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:
	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movq 0x38(%rsp), %r15
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x39a23
movl %r8d, %ebp
leaq 0x35a57(%rip), %rdx     # 0x6f454
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
leaq 0x34d73(%rip), %r8      # 0x6e780
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl %r9d, %ecx
movq %r15, %r9
callq 0x39aef
jmp 0x39a64
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x35a5a(%rip), %r8      # 0x6f48f
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x55f, %r9d            # imm = 0x55F
callq 0x142c0
jmp 0x39ac0
movl 0x30(%rsp), %ecx
leaq 0x34d2d(%rip), %r8      # 0x6e780
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %r9
callq 0x39b7e
cmpl $0x0, (%r15)
jne 0x39ac0
jmp 0x39adb
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movq 0x148(%r14), %rax
movl %ecx, %esi
movq %rax, %rcx
jmp 0x39ab2
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x347d5
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x39ac0
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movq 0x148(%r14), %rcx
movl %ebp, %esi
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
je 0x39ad4
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x39ae3
movq %rax, 0x148(%rbx)
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_commutative_const_real
static void prv_commutative_const_real(subtilis_parser_t *p, subtilis_exp_t *a1,
				       subtilis_exp_t *a2,
				       subtilis_op_instr_type_t real_var_imm,
				       const subtilis_type_t *result_type,
				       subtilis_error_t *err)
{
	size_t reg;

	reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOV_I32_FP, a1->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	subtilis_type_copy(&a1->type, result_type, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	a1->exp.ir_op.reg = reg;
	reg = subtilis_ir_section_add_instr(p->current, real_var_imm,
					    a1->exp.ir_op, a2->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;
	a1->exp.ir_op.reg = reg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %rbp
movl %ecx, 0x4(%rsp)
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
pushq $0x51
popq %rsi
movq %r9, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
jne 0x39b6f
movq %rax, %r13
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2de8a
cmpl $0x0, (%r14)
jne 0x39b6f
movq %r13, 0x148(%rbx)
movq 0x48(%r12), %rdi
movq 0x148(%r15), %rcx
movl 0x4(%rsp), %esi
movq %r13, %rdx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x39b6f
movq %rax, 0x148(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_commutative_logical
static subtilis_exp_t *prv_commutative_logical(
	subtilis_parser_t *p, subtilis_exp_t *a1, subtilis_exp_t *a2,
	subtilis_op_instr_type_t in_var_imm,
	subtilis_op_instr_type_t in_var_var,
	subtilis_op_instr_type_t real_var_imm,
	subtilis_op_instr_type_t real_var_var, subtilis_error_t *err)

/* clang-format on */
{
	size_t reg;

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		reg = subtilis_ir_section_add_instr(
		    p->current, in_var_imm, a1->exp.ir_op, a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		break;
	case SUBTILIS_TYPE_CONST_REAL:
		prv_commutative_const_real(p, a1, a2, real_var_imm,
					   &subtilis_type_integer, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	case SUBTILIS_TYPE_BYTE:
		a2 = subtilis_type_if_to_int(p, a2, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	case SUBTILIS_TYPE_INTEGER:
		reg = subtilis_ir_section_add_instr(
		    p->current, in_var_var, a1->exp.ir_op, a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		break;
	case SUBTILIS_TYPE_REAL:
		prv_commutative_real(p, a1, a2, real_var_var,
				     &subtilis_type_integer, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		break;
	default:
		subtilis_error_set_bad_expression(err, p->l->stream->name,
						  p->l->line);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:
	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movq 0x38(%rsp), %r15
movl (%rdx), %eax
cmpq $0x6, %rax
ja 0x39c5b
movl %r8d, %ebp
leaq 0x3583b(%rip), %rdx     # 0x6f470
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
leaq 0x34c83(%rip), %r8      # 0x6e8c8
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl %r9d, %ecx
movq %r15, %r9
callq 0x39aef
jmp 0x39c9c
movq (%r12), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x35822(%rip), %r8      # 0x6f48f
pushq $0x19
popq %rsi
movq %r15, %rdi
movl $0x599, %r9d            # imm = 0x599
callq 0x142c0
jmp 0x39cf8
movl 0x30(%rsp), %ecx
leaq 0x34c3d(%rip), %r8      # 0x6e8c8
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %r9
callq 0x39b7e
cmpl $0x0, (%r15)
jne 0x39cf8
jmp 0x39d13
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movq 0x148(%r14), %rax
movl %ecx, %esi
movq %rax, %rcx
jmp 0x39cea
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x347d5
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x39cf8
movq 0x48(%r12), %rdi
movq 0x148(%rbx), %rdx
movq 0x148(%r14), %rcx
movl %ebp, %esi
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
je 0x39d0c
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x39d1b
movq %rax, 0x148(%rbx)
movq %r14, %rdi
callq 0x29d88
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/int32_type.c
// Function: prv_shift
static subtilis_exp_t *prv_shift(subtilis_parser_t *p, subtilis_exp_t *a1,
				 subtilis_exp_t *a2,
				 subtilis_op_instr_type_t op_type,
				 subtilis_op_instr_type_t opi_type,
				 subtilis_error_t *err)
{
	size_t reg;

	switch (a2->type.type) {
	case SUBTILIS_TYPE_CONST_INTEGER:
		reg = subtilis_ir_section_add_instr(
		    p->current, opi_type, a1->exp.ir_op, a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		break;
	case SUBTILIS_TYPE_BYTE:
		a2->type.type = SUBTILIS_TYPE_INTEGER;
	case SUBTILIS_TYPE_INTEGER:
		reg = subtilis_ir_section_add_instr(
		    p->current, op_type, a1->exp.ir_op, a2->exp.ir_op, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
		a1->exp.ir_op.reg = reg;
		break;
	default:
		subtilis_error_set_assertion_failed(err);
		goto on_error;
	}

	subtilis_exp_delete(a2);
	return a1;

on_error:
	subtilis_exp_delete(a1);
	subtilis_exp_delete(a2);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %r15
movq %rdx, %rbx
movq %rsi, %r14
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x39d5d
cmpl $0x5, %eax
je 0x39d63
cmpl $0x1, %eax
jne 0x39d91
movq 0x48(%rdi), %rdi
movq 0x148(%r14), %rdx
movq 0x148(%rbx), %rcx
movl %r8d, %esi
jmp 0x39d7a
movl $0x5, (%rbx)
movq 0x48(%rdi), %rdi
movq 0x148(%r14), %rdx
movq 0x148(%rbx), %rax
movl %ecx, %esi
movq %rax, %rcx
movq %r15, %r8
callq 0x2a819
cmpl $0x0, (%r15)
jne 0x39da8
movq %rax, 0x148(%r14)
jmp 0x39db3
leaq 0x356f7(%rip), %rdx     # 0x6f48f
pushq $0xf
popq %rsi
movq %r15, %rdi
movl $0x7c0, %ecx            # imm = 0x7C0
callq 0x1429e
movq %r14, %rdi
callq 0x29d88
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x29d88
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_zero
static subtilis_exp_t *prv_zero(subtilis_parser_t *p,
				const subtilis_type_t *type,
				subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	size_t reg_num;

	op1.integer = 0;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_byte_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
movq 0x48(%rdi), %rdi
pushq $0x1b
popq %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
je 0x39de6
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2a347
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_top_bit
static subtilis_exp_t *prv_top_bit(subtilis_parser_t *p, subtilis_error_t *err)
{
	subtilis_ir_operand_t op1;
	size_t reg_num;

	op1.integer = (int32_t)0x80;
	reg_num = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOVI_I32, op1, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;
	return subtilis_exp_new_byte_var(reg_num, err);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
pushq $0x1b
popq %rsi
movl $0x80, %edx
movq %rbx, %rcx
callq 0x2a981
cmpl $0x0, (%rbx)
je 0x39e12
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
movq %rbx, %rsi
popq %rbx
jmp 0x2a347
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_to_int32
static subtilis_exp_t *prv_to_int32(subtilis_parser_t *p, subtilis_exp_t *e,
				    subtilis_error_t *err)
{
	size_t reg;

	reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_SIGNX_8_TO_32, e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e->type.type = SUBTILIS_TYPE_INTEGER;
	e->exp.ir_op.reg = reg;
	return e;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq 0x48(%rdi), %rdi
movq 0x148(%rsi), %rdx
movl $0x97, %esi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
je 0x39f55
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
jmp 0x39f62
movl $0x5, (%rbx)
movq %rax, 0x148(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_zerox_from_type
static subtilis_exp_t *prv_zerox_from_type(subtilis_parser_t *p,
					   subtilis_exp_t *e,
					   const subtilis_type_t *type,
					   subtilis_error_t *err)
{
	if (type->type != SUBTILIS_TYPE_INTEGER) {
		subtilis_error_set_bad_zero_extend(
		    err, subtilis_type_name(&e->type), subtilis_type_name(type),
		    p->l->stream->name, p->l->line);
		subtilis_exp_delete(e);
		return NULL;
	}

	return prv_zerox(p, e, err);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rsi, %rbx
movq %rdi, %r15
cmpl $0x5, (%rdx)
jne 0x39f9b
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3a6c4
movq %rdx, %r12
movq %rbx, %rdi
callq 0x2dcbb
movq %rax, %r13
movq %r12, %rdi
callq 0x2dcbb
movq (%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x354f9(%rip), %r10     # 0x6f4bc
pushq $0x46
popq %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %rax, %rcx
pushq $0x100                  # imm = 0x100
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
movq %rbx, %rdi
callq 0x29d88
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_to_float64
static subtilis_exp_t *prv_to_float64(subtilis_parser_t *p, subtilis_exp_t *e,
				      subtilis_error_t *err)
{
	size_t reg;

	e = prv_to_int32(p, e, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_MOV_I32_FP, e->exp.ir_op, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;
	e->type.type = SUBTILIS_TYPE_REAL;
	e->exp.ir_op.reg = reg;

	return e;

on_error:

	subtilis_exp_delete(e);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %r15
callq 0x39f21
cmpl $0x0, (%r14)
jne 0x3a032
movq %rax, %rbx
movq 0x48(%r15), %rdi
movq 0x148(%rax), %rdx
pushq $0x51
popq %rsi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
je 0x3a03d
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movl $0x4, (%rbx)
movq %rax, 0x148(%rbx)
jmp 0x3a034
// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/byte_type_if.c
// Function: prv_coerce_type
static subtilis_exp_t *prv_coerce_type(subtilis_parser_t *p, subtilis_exp_t *e,
				       const subtilis_type_t *type,
				       subtilis_error_t *err)
{
	switch (type->type) {
	case SUBTILIS_TYPE_REAL:
		e = prv_to_float64(p, e, err);
		break;
	case SUBTILIS_TYPE_BYTE:
		break;
	case SUBTILIS_TYPE_INTEGER:
		e = prv_to_int32(p, e, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return NULL;
		break;
	default:
		subtilis_error_set_bad_conversion(
		    err, subtilis_type_name(&e->type), subtilis_type_name(type),
		    p->l->stream->name, p->l->line);
		subtilis_exp_delete(e);
		return NULL;
	}

	return e;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl (%rdx), %eax
cmpl $0x6, %eax
je 0x3a156
movq %rcx, %r14
movq %rdi, %r15
cmpl $0x5, %eax
je 0x3a0f0
cmpl $0x4, %eax
jne 0x3a10a
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x39ff5
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x39f21
xorl %ebx, %ebx
cmpl $0x0, (%r14)
cmoveq %rax, %rbx
jmp 0x3a156
movq %rdx, %r12
movq %rbx, %rdi
callq 0x2dcbb
movq %rax, %r13
movq %r12, %rdi
callq 0x2dcbb
movq (%r15), %rcx
movq 0x30(%rcx), %r8
movl 0x38(%rcx), %r9d
leaq 0x3538a(%rip), %r10     # 0x6f4bc
pushq $0x45
popq %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %rax, %rcx
pushq $0x179                  # imm = 0x179
pushq %r10
callq 0x140cd
popq %rax
popq %rcx
movq %rbx, %rdi
callq 0x29d88
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq