// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x12edc
cmpl $0x0, (%rbx)
je 0x2697c
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
cmpl $0x1, (%r15)
jne 0x26a36
movl 0x8(%r15), %eax
cmpl $0x74, %eax
je 0x26a08
cmpl $0x7f, %eax
jne 0x26a2d
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12edc
cmpl $0x0, (%rbx)
jne 0x26a2d
movq %r15, %rdi
callq 0x12ad0
cmpl $0x2, (%r15)
jne 0x269cf
cmpb $0x28, (%rax)
jne 0x269cf
cmpb $0x0, 0x1(%rax)
je 0x26b87
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x4d066(%rip), %rax     # 0x73a47
leaq 0x4cf0e(%rip), %rdx     # 0x738f6
leaq 0x4d426(%rip), %rcx     # 0x73e15
movq %rbx, %rdi
movl $0x15, %esi
pushq $0x1db                  # imm = 0x1DB
pushq %rax
callq 0x143da
addq $0x10, %rsp
jmp 0x26a2d
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1f06b
cmpl $0x0, (%rbx)
jne 0x2696e
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x26f06
cmpl $0x0, (%rbx)
jne 0x2696e
movq %r15, %rdi
callq 0x12ad0
cmpl $0x2, (%r15)
jne 0x26a53
cmpb $0x7e, (%rax)
jne 0x26a53
cmpb $0x0, 0x1(%rax)
je 0x26b1d
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1e938
cmpl $0x0, (%rbx)
jne 0x2696e
movq %rax, %r12
movq %rax, %rdi
callq 0x37534
testb %al, %al
je 0x26a93
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x36119
cmpl $0x0, (%rbx)
jne 0x2696e
movq %rax, %r12
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x375fe
cmpl $0x0, (%rbx)
jne 0x2696e
cmpb $0x0, 0xb9(%r14)
jne 0x26ac8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b01f
cmpl $0x0, (%rbx)
jne 0x2696e
movq %r15, %rdi
callq 0x12ad0
cmpl $0x2, (%r15)
jne 0x26ae5
cmpb $0x3b, (%rax)
jne 0x26ae5
cmpb $0x0, 0x1(%rax)
je 0x26c18
movq 0x48(%r14), %rdi
movl $0x20, %esi
movq %rbx, %rdx
callq 0x2be37
cmpl $0x0, (%rbx)
jne 0x2696e
cmpb $0x0, 0xb9(%r14)
jne 0x2696e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b01f
jmp 0x2696e
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12edc
cmpl $0x0, (%rbx)
jne 0x2696e
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1e938
cmpl $0x0, (%rbx)
jne 0x2696e
movq %rax, %r12
movq %rax, %rdi
callq 0x372bf
testb %al, %al
jne 0x26b74
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x367cf
cmpl $0x0, (%rbx)
jne 0x2696e
movq %rax, %r12
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x36a6f
jmp 0x26a87
movq %rsp, %rdx
movl $0x2, %ecx
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %r8
callq 0x1f0d1
cmpl $0x0, (%rbx)
jne 0x26a2d
movq %rax, %r12
cmpq $0x1, %rax
je 0x26c2b
cmpq $0x2, %r12
jne 0x26c60
movq (%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x36119
movq %rax, (%rsp)
cmpl $0x0, (%rbx)
jne 0x26ca0
movq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x36119
movq %rax, 0x8(%rsp)
cmpl $0x0, (%rbx)
jne 0x26ca0
movq 0x48(%r14), %rdi
movq (%rsp), %rcx
movq 0x148(%rcx), %rdx
movq 0x148(%rax), %rcx
movl $0x7e, %esi
movq %rbx, %r8
callq 0x2be2c
jmp 0x26c42
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12edc
jmp 0x26af6
movq (%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x26d2c
movq $0x0, (%rsp)
cmpl $0x0, (%rbx)
jne 0x26ca0
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12edc
cmpl $0x0, (%rbx)
jne 0x26a2d
jmp 0x26ca0
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x4cdd5(%rip), %rax     # 0x73a47
leaq 0x4ce8c(%rip), %rdx     # 0x73b05
leaq 0x4d195(%rip), %rcx     # 0x73e15
movq %rbx, %rdi
movl $0x17, %esi
pushq $0x1f2                  # imm = 0x1F2
pushq %rax
callq 0x143da
addq $0x10, %rsp
testq %r12, %r12
je 0x26a2d
xorl %r13d, %r13d
movq (%rsp,%r13,8), %rdi
callq 0x2b166
incq %r13
cmpq %r13, %r12
jne 0x26ca3
jmp 0x26a2d