// File: /workspace/github_c_makefile_star2_O0/Ihsoh[P]ilang/compiler/preprocessor/parser.c
// Function: print_ast
static void _print_ast(
	ParserASTNode *node,
	FILE *file,
	int level,
	char padchr
) {
	assert(node);
	assert(file);
	assert(level >= 0);

	for (int i = 0; i < level; i++) {
		fputc(padchr, file);
	}

	fprintf(
		file,
		"@%s#%x#%p#%p#%d",
		node->type_name != NULL ? node->type_name : "N/A",
		node->type,
		node->parent,
		node,
		node->nchilds
	);
	if (node->token != NULL) {
		fputc('(', file);
		for (int i = 0; i < node->token->len; i++) {
			fputc(*(node->token->content + i), file);
		}
		fprintf(file, "#%x)", node->token->type);
	}
	fputc('\n', file);

	for (int i = 0; i < node->nchilds; i++) {
		_print_ast(node->childs[i], file, level + 1, padchr);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb %al, -0x15(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x43971
jmp 0x43990
leaq 0x770f(%rip), %rdi      # 0x4b087
leaq 0xc797(%rip), %rsi      # 0x50116
movl $0x1d5, %edx            # imm = 0x1D5
leaq 0xae04(%rip), %rcx      # 0x4e78f
callq 0xa0b0
cmpq $0x0, -0x10(%rbp)
je 0x43999
jmp 0x439b8
leaq 0x30ce(%rip), %rdi      # 0x46a6e
leaq 0xc76f(%rip), %rsi      # 0x50116
movl $0x1d6, %edx            # imm = 0x1D6
leaq 0xaddc(%rip), %rcx      # 0x4e78f
callq 0xa0b0
cmpl $0x0, -0x14(%rbp)
jl 0x439c0
jmp 0x439df
leaq 0xadfc(%rip), %rdi      # 0x4e7c3
leaq 0xc748(%rip), %rsi      # 0x50116
movl $0x1d7, %edx            # imm = 0x1D7
leaq 0xadb5(%rip), %rcx      # 0x4e78f
callq 0xa0b0
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x43a06
movsbl -0x15(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0xa0e0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x439e6
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x43a27
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x43a34
leaq 0xadad(%rip), %rax      # 0x4e7db
movq %rax, -0x38(%rbp)
jmp 0x43a34
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rdx
movq -0x8(%rbp), %rax
movl (%rax), %ecx
movq -0x8(%rbp), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %r9
movq -0x8(%rbp), %rax
movl 0x44(%rax), %eax
leaq 0xcb22(%rip), %rsi      # 0x5057e
movl %eax, (%rsp)
movb $0x0, %al
callq 0xa100
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x43ada
movq -0x10(%rbp), %rsi
movl $0x28, %edi
callq 0xa0e0
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
cmpl 0x4(%rcx), %eax
jge 0x43abe
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movslq -0x20(%rbp), %rcx
movsbl (%rax,%rcx), %edi
movq -0x10(%rbp), %rsi
callq 0xa0e0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x43a86
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movl (%rax), %edx
leaq 0xad0c(%rip), %rsi      # 0x4e7df
movb $0x0, %al
callq 0xa100
movq -0x10(%rbp), %rsi
movl $0xa, %edi
callq 0xa0e0
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x44(%rcx), %eax
jge 0x43b29
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x24(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
addl $0x1, %edx
movsbl -0x15(%rbp), %ecx
callq 0x43950
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x43aef
addq $0x40, %rsp
popq %rbp
retq
nop