// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x12e0e
cmpl $0x0, (%rbx)
je 0x25839
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1, (%r15)
jne 0x258f0
movl 0x8(%r15), %eax
cmpl $0x74, %eax
je 0x258c2
cmpl $0x7f, %eax
jne 0x258e7
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12e0e
cmpl $0x0, (%rbx)
jne 0x258e7
movq %r15, %rdi
callq 0x12a25
cmpl $0x2, (%r15)
jne 0x2588d
cmpb $0x28, (%rax)
jne 0x2588d
cmpb $0x0, 0x1(%rax)
je 0x25a2e
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x48160(%rip), %rax     # 0x6d9ff
leaq 0x4800c(%rip), %rdx     # 0x6d8b2
leaq 0x48518(%rip), %rcx     # 0x6ddc5
pushq $0x15
popq %rsi
movq %rbx, %rdi
pushq $0x1db                  # imm = 0x1DB
pushq %rax
callq 0x140cd
popq %rax
popq %rcx
jmp 0x258e7
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1e3d1
cmpl $0x0, (%rbx)
jne 0x2582a
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x25d75
cmpl $0x0, (%rbx)
jne 0x2582a
movq %r15, %rdi
callq 0x12a25
cmpl $0x2, (%r15)
jne 0x2590d
cmpb $0x7e, (%rax)
jne 0x2590d
cmpb $0x0, 0x1(%rax)
je 0x25a0f
xorl %ebp, %ebp
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x1dccf
cmpl $0x0, (%rbx)
jne 0x2582a
movq %rax, %r12
movq %rax, %rdi
testb %bpl, %bpl
je 0x25964
callq 0x353e4
testb %al, %al
jne 0x25954
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x347d5
cmpl $0x0, (%rbx)
jne 0x2582a
movq %rax, %r12
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x34a63
jmp 0x2597b
callq 0x35655
testb %al, %al
je 0x25987
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3415f
cmpl $0x0, (%rbx)
jne 0x2582a
movq %rax, %r12
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x35719
cmpl $0x0, (%rbx)
jne 0x2582a
cmpb $0x0, 0xb9(%r14)
jne 0x259bc
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29c49
cmpl $0x0, (%rbx)
jne 0x2582a
movq %r15, %rdi
callq 0x12a25
cmpl $0x2, (%r15)
jne 0x259d9
cmpb $0x3b, (%rax)
jne 0x259d9
cmpb $0x0, 0x1(%rax)
je 0x25ac7
movq 0x48(%r14), %rdi
pushq $0x20
popq %rsi
movq %rbx, %rdx
callq 0x2a9af
cmpl $0x0, (%rbx)
jne 0x2582a
cmpb $0x0, 0xb9(%r14)
jne 0x2582a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x29c49
jmp 0x2582a
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12e0e
cmpl $0x0, (%rbx)
jne 0x2582a
movb $0x1, %bpl
jmp 0x2590f
leaq 0x10(%rsp), %rdx
pushq $0x2
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %r8
callq 0x1e437
cmpl $0x0, (%rbx)
jne 0x258e7
movq %rax, %r12
cmpq $0x1, %rax
je 0x25ada
cmpq $0x2, %r12
jne 0x25b24
movq 0x10(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x3415f
movq %rax, 0x10(%rsp)
cmpl $0x0, (%rbx)
jne 0x25ba2
movq 0x18(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x3415f
movq %rax, 0x18(%rsp)
cmpl $0x0, (%rbx)
jne 0x25ba2
movq 0x48(%r14), %rdi
movq 0x10(%rsp), %rcx
movq 0x148(%rcx), %rdx
movq 0x148(%rax), %rcx
pushq $0x7e
popq %rsi
movq %rbx, %r8
callq 0x2a9a4
jmp 0x25b9d
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12e0e
jmp 0x259e8
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, 0x30(%rsp)
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, %rbp
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, %r13
movq 0x48(%r14), %rdi
pushq $0x7f
popq %rsi
movq %rbx, %rdx
callq 0x2a98b
cmpl $0x0, (%rbx)
je 0x25b59
xorl %edi, %edi
xorl %r13d, %r13d
jmp 0x25b77
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x47ec9(%rip), %rax     # 0x6d9ff
leaq 0x47f80(%rip), %rdx     # 0x6dabd
leaq 0x48281(%rip), %rcx     # 0x6ddc5
pushq $0x17
popq %rsi
movq %rbx, %rdi
pushq $0x1f2                  # imm = 0x1F2
pushq %rax
callq 0x140cd
popq %rax
popq %rcx
jmp 0x25ba2
movq %rbp, 0x28(%rsp)
movq %r13, 0x20(%rsp)
movl %eax, %edi
movq %rbx, %rsi
callq 0x2a336
movq %rax, %r13
cmpl $0x0, (%rbx)
je 0x25bd6
xorl %edi, %edi
xorl %ebp, %ebp
callq 0x29d88
movq %rbp, %rdi
callq 0x29d88
movq %r13, %rdi
callq 0x29d88
movq (%rsp), %rdi
callq 0x29d88
andq $0x0, 0x10(%rsp)
cmpl $0x0, (%rbx)
je 0x25bbd
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x258e7
movq 0x10(%rsp,%r13,8), %rdi
callq 0x29d88
incq %r13
jmp 0x25ba5
movq (%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x12e0e
cmpl $0x0, (%rbx)
jne 0x258e7
jmp 0x25ba2
xorl %edi, %edi
movq %rbx, %rsi
callq 0x2a369
movq %rax, %rbp
cmpl $0x0, (%rbx)
je 0x25bec
xorl %edi, %edi
jmp 0x25b79
movq %r14, %rdi
movq (%rsp), %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x34e98
movq %rax, (%rsp)
cmpl $0x0, (%rbx)
jne 0x25c18
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x341c4
cmpl $0x0, (%rbx)
je 0x25c22
xorl %edi, %edi
xorl %r13d, %r13d
jmp 0x25b79
movq %r14, %rdi
movq %rbp, %rsi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x35259
movq %rax, 0x8(%rsp)
cmpl $0x0, (%rbx)
jne 0x25cf5
movq 0x48(%r14), %rdi
movq 0x8(%rsp), %rax
movq 0x148(%rax), %rdx
pushq $0x43
popq %rsi
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x25cf5
movq 0x48(%r14), %rdi
movq 0x30(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x25cf5
movq %r14, %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
callq 0x25d75
cmpl $0x0, (%rbx)
jne 0x25ced
movq 0x48(%r14), %rdi
pushq $0x45
popq %rsi
movq 0x20(%rsp), %rdx
movq %rbx, %rcx
callq 0x2a997
cmpl $0x0, (%rbx)
jne 0x25ced
movq 0x48(%r14), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x25ced
movq 0x48(%r14), %rdi
pushq $0x20
popq %rsi
movq %rbx, %rdx
callq 0x2a9af
cmpl $0x0, (%rbx)
jne 0x25ced
movq 0x48(%r14), %rdi
movq 0x20(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
movq $0x0, (%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x8(%rsp), %rdi
jmp 0x25b79