// File: /workspace/github_c_makefile_star2_O1/markdryan[P]subtilis/frontend/parser_output.c
// Function: subtilis_parser_print
void subtilis_parser_print(subtilis_parser_t *p, subtilis_token_t *t,
			   subtilis_error_t *err)
{
	const char *tbuf;
	bool hex = false;
	subtilis_exp_t *e = NULL;

	subtilis_lexer_get(p->l, t, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (t->type == SUBTILIS_TOKEN_KEYWORD) {
		if (t->tok.keyword.type == SUBTILIS_KEYWORD_TAB)
			prv_parse_tab(p, t, err);
		else if (t->tok.keyword.type == SUBTILIS_KEYWORD_SPC)
			prv_parse_spc(p, t, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	}

	tbuf = subtilis_token_get_text(t);
	if ((t->type == SUBTILIS_TOKEN_OPERATOR) && (!strcmp(tbuf, "~"))) {
		subtilis_lexer_get(p->l, t, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		hex = true;
	}

	e = subtilis_parser_priority7(p, t, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (hex) {
		if (!subtilis_type_if_is_integer(&e->type)) {
			e = subtilis_type_if_to_int(p, e, err);
			if (err->type != SUBTILIS_ERROR_OK)
				return;
		}
		e = subtilis_type_if_to_hex_string(p, e, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	} else if (subtilis_type_if_is_numeric(&e->type)) {
		e = subtilis_type_if_exp_to_var(p, e, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	}

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

	if (!p->settings.ignore_graphics_errors) {
		subtilis_exp_handle_errors(p, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
	}

	tbuf = subtilis_token_get_text(t);
	if ((t->type == SUBTILIS_TOKEN_OPERATOR) && (!strcmp(tbuf, ";")))
		subtilis_lexer_get(p->l, t, err);
	else
		subtilis_ir_section_add_instr_no_arg(
		    p->current, SUBTILIS_OP_INSTR_PRINT_NL, err);

	if (err->type != SUBTILIS_ERROR_OK)
		return;

	if (!p->settings.ignore_graphics_errors)
		subtilis_exp_handle_errors(p, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x12eda
cmpl $0x0, (%rbx)
je 0x26b14
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1, (%r15)
jne 0x26bd6
movl 0x8(%r15), %eax
cmpl $0x74, %eax
je 0x26bac
cmpl $0x7f, %eax
jne 0x26bcd
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
jne 0x26bcd
movq %r15, %rdi
callq 0x12ad0
cmpl $0x2, (%r15)
jne 0x26b73
leaq 0x4d6af(%rip), %rsi     # 0x74212
movq %rax, %rdi
callq 0x12160
testl %eax, %eax
je 0x26d1f
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x4cea4(%rip), %rax     # 0x73a29
leaq 0x4cd36(%rip), %rdx     # 0x738c2
leaq 0x4d262(%rip), %rcx     # 0x73df5
movq %rbx, %rdi
movl $0x15, %esi
pushq $0x1db                  # imm = 0x1DB
pushq %rax
callq 0x1442a
addq $0x10, %rsp
jmp 0x26bcd
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1efb1
cmpl $0x0, (%rbx)
jne 0x26bcd
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x270b1
cmpl $0x0, (%rbx)
jne 0x26b05
movq %r15, %rdi
callq 0x12ad0
cmpl $0x2, (%r15)
jne 0x26bf7
leaq 0x4cedf(%rip), %rsi     # 0x73aca
movq %rax, %rdi
callq 0x12160
testl %eax, %eax
je 0x26c4e
xorl %ebp, %ebp
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1e874
cmpl $0x0, (%rbx)
jne 0x26b05
movq %rax, %r12
movq %rax, %rdi
testb %bpl, %bpl
je 0x26c6a
callq 0x373fd
testb %al, %al
jne 0x26c3e
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3691f
cmpl $0x0, (%rbx)
jne 0x26b05
movq %rax, %r12
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x36bcc
jmp 0x26c81
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
jne 0x26b05
movb $0x1, %bpl
jmp 0x26bf9
callq 0x37676
testb %al, %al
je 0x26c8d
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x36269
cmpl $0x0, (%rbx)
jne 0x26b05
movq %rax, %r12
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x37740
cmpl $0x0, (%rbx)
jne 0x26b05
cmpb $0x0, 0xb9(%r14)
jne 0x26cc2
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b37c
cmpl $0x0, (%rbx)
jne 0x26b05
movq %r15, %rdi
callq 0x12ad0
cmpl $0x2, (%r15)
jne 0x26ce7
leaq 0x4cd46(%rip), %rsi     # 0x73a1d
movq %rax, %rdi
callq 0x12160
testl %eax, %eax
je 0x26db0
movq 0x48(%r14), %rdi
movl $0x20, %esi
movq %rbx, %rdx
callq 0x2c1b7
cmpl $0x0, (%rbx)
jne 0x26b05
cmpb $0x0, 0xb9(%r14)
jne 0x26b05
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b37c
jmp 0x26b05
movq %rsp, %rdx
movl $0x2, %ecx
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %r8
callq 0x1f017
cmpl $0x0, (%rbx)
jne 0x26bcd
movq %rax, %r12
cmpq $0x1, %rax
je 0x26dc3
cmpq $0x2, %r12
jne 0x26e03
movq (%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x36269
movq %rax, (%rsp)
cmpl $0x0, (%rbx)
jne 0x26e3a
movq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x36269
movq %rax, 0x8(%rsp)
cmpl $0x0, (%rbx)
jne 0x26e3a
movq 0x48(%r14), %rdi
movq (%rsp), %rcx
movq 0x148(%rcx), %rdx
movq 0x148(%rax), %rcx
movl $0x7e, %esi
movq %rbx, %r8
callq 0x2c1ac
jmp 0x26dda
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12eda
jmp 0x26cf8
movq (%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x26ed7
movq $0x0, (%rsp)
cmpl $0x0, (%rbx)
jne 0x26e3a
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
sete %al
testq %r12, %r12
setne %cl
testb %cl, %al
je 0x26bcd
jmp 0x26e43
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x4cc14(%rip), %rax     # 0x73a29
leaq 0x4ccd1(%rip), %rdx     # 0x73aed
leaq 0x4cfd2(%rip), %rcx     # 0x73df5
movq %rbx, %rdi
movl $0x17, %esi
pushq $0x1f2                  # imm = 0x1F2
pushq %rax
callq 0x1442a
addq $0x10, %rsp
testq %r12, %r12
je 0x26bcd
cmpq $0x1, %r12
adcq $0x0, %r12
xorl %r13d, %r13d
movq (%rsp,%r13,8), %rdi
callq 0x2b4c3
incq %r13
cmpq %r13, %r12
jne 0x26e4e
jmp 0x26bcd