// File: /workspace/github_c_makefile_star2_O1/Ihsoh[P]ilang/compiler/frontend/irgen.c
// Function: fe_irgen_generate
void fe_irgen_generate(IRGeneratorContext *ctx) {
	assert(ctx);
	assert(ctx->psrctx);
	assert(ctx->psrctx->ast);
	assert(ctx->psrctx->ast->type == FE_NODE_MODULE);
	assert(ctx->out);

	_OUT_CSTR(ctx, RSTR_CSTR(ctx->global));

	_ir_module(ctx, ctx->psrctx->ast);

	_OUT_CSTR(ctx, RSTR_CSTR(ctx->head));
	_OUT_CSTR(ctx, RSTR_CSTR(ctx->body));
	_OUT_CSTR(ctx, RSTR_CSTR(ctx->foot));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
testq %rdi, %rdi
je 0xc1ab
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0xc1ca
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xc1e9
cmpl $0x100, (%rax)          # imm = 0x100
jne 0xc208
cmpq $0x0, 0x8(%rbx)
je 0xc227
movq 0x10(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
leaq 0x383ff(%rip), %r12     # 0x43eba
cmoveq %r12, %r14
cmpb $0x0, (%r14)
je 0xbaf5
xorl %r15d, %r15d
movsbl (%r14,%r15), %edi
movq 0x8(%rbx), %rsi
callq 0x30c0
incq %r15
movq 0x10(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
movq %r14, %rdi
callq 0x3070
cmpq %r15, %rax
ja 0xbac8
movq (%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
je 0xc246
cmpl $0x100, (%r14)          # imm = 0x100
jne 0xc265
cmpl $0x0, 0x44(%r14)
jle 0xbf59
xorl %r13d, %r13d
movq %r14, -0x38(%rbp)
movq 0x48(%r14), %rax
movq (%rax,%r13,8), %rsi
testq %rsi, %rsi
je 0xc075
movl (%rsi), %eax
cmpl $0xa00, %eax            # imm = 0xA00
je 0xbbff
cmpl $0xd00, %eax            # imm = 0xD00
je 0xbb61
cmpl $0xc00, %eax            # imm = 0xC00
jne 0xc094
movq %rbx, %rdi
callq 0xc4e1
jmp 0xbf49
movq %r13, -0x30(%rbp)
movq 0x48(%rsi), %rax
movq (%rax), %r15
cmpl $0x200, (%r15)          # imm = 0x200
jne 0xc0d2
movq 0x8(%rax), %r14
movl (%r14), %eax
cmpl $0xd01, %eax            # imm = 0xD01
je 0xbc38
cmpl $0x900, %eax            # imm = 0x900
movq -0x38(%rbp), %r14
jne 0xc14e
leaq -0x60(%rbp), %r13
movq %r13, %rdi
callq 0x7548
movq %r13, %rdi
movl $0x5f, %esi
callq 0x76cb
movq 0x10(%r15), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
movq %r13, %rdi
callq 0x7768
movq 0x20(%rbx), %rdi
leaq 0x382d8(%rip), %rsi     # 0x43ea9
callq 0x75cf
movq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x788c
movq 0x20(%rbx), %rdi
leaq 0x382c5(%rip), %rsi     # 0x43eb2
callq 0x75cf
movq %r13, %rdi
callq 0x7a38
jmp 0xbcde
movq 0x60(%rsi), %rax
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0xc0f1
movl 0x44(%rsi), %eax
cmpl $0x4, %eax
movq %r13, -0x30(%rbp)
je 0xbce7
cmpl $0x3, %eax
jne 0xc16d
movq 0x48(%rsi), %rcx
leaq 0x10(%rcx), %rax
xorl %edx, %edx
jmp 0xbcf3
leaq -0x60(%rbp), %r13
movq %r13, %rdi
callq 0x7548
movq %r13, %rdi
movl $0x5f, %esi
callq 0x76cb
movq 0x10(%r15), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
movq %r13, %rdi
callq 0x7768
movq 0x20(%rbx), %rdi
leaq 0x3823a(%rip), %rsi     # 0x43ea9
callq 0x75cf
movq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x788c
movq 0x20(%rbx), %rdi
leaq 0x38230(%rip), %rsi     # 0x43ebb
callq 0x75cf
movq %r13, %rdi
callq 0x7a38
cmpl $0x0, 0x44(%r14)
jle 0xbcca
xorl %r15d, %r15d
movq 0x48(%r14), %rax
movq (%rax,%r15,8), %rsi
cmpl $0xc00, (%rsi)          # imm = 0xC00
jne 0xc037
movq %rbx, %rdi
callq 0xc4e1
incq %r15
movslq 0x44(%r14), %rax
cmpq %rax, %r15
jl 0xbca2
movq 0x20(%rbx), %rdi
leaq 0x38208(%rip), %rsi     # 0x43edd
callq 0x75cf
movq -0x38(%rbp), %r14
movq -0x30(%rbp), %r13
jmp 0xbf49
movq 0x48(%rsi), %rcx
movq 0x10(%rcx), %rdx
leaq 0x18(%rcx), %rax
movq (%rcx), %r15
cmpl $0x200, (%r15)          # imm = 0x200
jne 0xc110
movq 0x8(%rcx), %r14
cmpl $0xa01, (%r14)          # imm = 0xA01
jne 0xc0b3
movq %rdx, -0x50(%rbp)
movq (%rax), %rax
movq %rax, -0x40(%rbp)
cmpl $0x0, 0x44(%r14)
jle 0xbd39
movq 0x48(%r14), %rax
movq (%rax), %rax
cmpl $0xa02, (%rax)          # imm = 0xA02
jne 0xc12f
movq 0x20(%rbx), %rdi
movl $0xa, %esi
callq 0x76cb
movq 0x20(%rbx), %rdi
leaq 0x36abb(%rip), %rsi     # 0x4280d
callq 0x75cf
movq 0x20(%rbx), %rdi
movl $0x20, %esi
callq 0x76cb
leaq -0x60(%rbp), %r13
movq %r13, %rdi
callq 0x7548
movq %r13, %rdi
movl $0x5f, %esi
callq 0x76cb
movq 0x10(%r15), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
movq %r13, %rdi
callq 0x7768
movq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x788c
movq %r13, %rdi
callq 0x7a38
movq 0x20(%rbx), %rdi
leaq 0x395c9(%rip), %rsi     # 0x45379
callq 0x75cf
movq 0x20(%rbx), %rdi
movq %r14, -0x48(%rbp)
movq %r14, %rsi
callq 0xd7dd
movq 0x20(%rbx), %rdi
leaq 0x38b6a(%rip), %rsi     # 0x4493a
callq 0x75cf
movq -0x50(%rbp), %r14
testq %r14, %r14
je 0xbe17
movq 0x20(%rbx), %rdi
movl $0x3a, %esi
callq 0x76cb
leaq -0x70(%rbp), %r15
movq %r15, %rdi
callq 0x7548
movq %r15, %rdi
movq %r14, %rsi
callq 0xcbf5
movq 0x20(%rbx), %rdi
movq %r15, %rsi
callq 0x788c
movq %r15, %rdi
callq 0x7a38
movq 0x20(%rbx), %rdi
movl $0x20, %esi
callq 0x76cb
movq -0x40(%rbp), %rax
movl (%rax), %eax
leaq 0x38190(%rip), %rsi     # 0x43fc2
cmpl $0x900, %eax            # imm = 0x900
movq -0x30(%rbp), %r13
movq -0x38(%rbp), %r14
je 0xbf30
cmpl $0xb00, %eax            # imm = 0xB00
jne 0xc18c
movq 0x20(%rbx), %rdi
leaq 0x38060(%rip), %rsi     # 0x43ebb
callq 0x75cf
movq -0x48(%rbp), %rcx
cmpl $0x0, 0x44(%rcx)
jle 0xbec9
xorl %r15d, %r15d
movq 0x48(%rcx), %rax
movq (%rax,%r15,8), %rax
cmpl $0xa03, (%rax)          # imm = 0xA03
je 0xbebd
movq %rbx, %r14
movq %r12, %rbx
movq 0x60(%rax), %r12
cmpb $0x1, 0x48(%r12)
je 0xc056
movb $0x1, 0x48(%r12)
leaq 0x50(%r12), %r13
movq %r13, %rdi
callq 0x7548
movq 0x8(%r12), %rsi
movq %r13, %rdi
callq 0xda3a
movq %rbx, %r12
movq %r14, %rbx
movq -0x48(%rbp), %rcx
incq %r15
movslq 0x44(%rcx), %rax
cmpq %rax, %r15
jl 0xbe6d
movq 0x20(%rbx), %r14
callq 0x792a
movq %rax, 0x20(%rbx)
callq 0x792a
movq %rax, 0x30(%rbx)
movq %rbx, %rdi
movq -0x40(%rbp), %rsi
callq 0x12a38
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x788c
movq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x788c
movq 0x20(%rbx), %rdi
callq 0x7a38
movq %r14, 0x20(%rbx)
movq 0x30(%rbx), %rdi
callq 0x7a38
movq $0x0, 0x30(%rbx)
leaq 0x38098(%rip), %rsi     # 0x43fc0
movq -0x38(%rbp), %r14
movq -0x30(%rbp), %r13
movq 0x20(%rbx), %rdi
callq 0x75cf
movq 0x20(%rbx), %rdi
leaq 0x37f74(%rip), %rsi     # 0x43eb8
callq 0x75cf
incq %r13
movslq 0x44(%r14), %rax
cmpq %rax, %r13
jl 0xbb24
movq 0x18(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
cmpb $0x0, (%r14)
je 0xbf9e
xorl %r15d, %r15d
movsbl (%r14,%r15), %edi
movq 0x8(%rbx), %rsi
callq 0x30c0
incq %r15
movq 0x18(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
movq %r14, %rdi
callq 0x3070
cmpq %r15, %rax
ja 0xbf71
movq 0x20(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
cmpb $0x0, (%r14)
je 0xbfe3
xorl %r15d, %r15d
movsbl (%r14,%r15), %edi
movq 0x8(%rbx), %rsi
callq 0x30c0
incq %r15
movq 0x20(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
movq %r14, %rdi
callq 0x3070
cmpq %r15, %rax
ja 0xbfb6
movq 0x28(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
cmpb $0x0, (%r14)
je 0xc028
xorl %r15d, %r15d
movsbl (%r14,%r15), %edi
movq 0x8(%rbx), %rsi
callq 0x30c0
incq %r15
movq 0x28(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
movq %r14, %rdi
callq 0x3070
cmpq %r15, %rax
ja 0xbffb
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x37e81(%rip), %rdi     # 0x43ebf
leaq 0x362d3(%rip), %rsi     # 0x42318
leaq 0x37e26(%rip), %rcx     # 0x43e72
movl $0xf5a, %edx            # imm = 0xF5A
callq 0x30a0
leaq 0x37f36(%rip), %rdi     # 0x43f93
leaq 0x362b4(%rip), %rsi     # 0x42318
leaq 0x37e76(%rip), %rcx     # 0x43ee1
movl $0x1306, %edx           # imm = 0x1306
callq 0x30a0
leaq 0x37d1a(%rip), %rdi     # 0x43d96
leaq 0x36295(%rip), %rsi     # 0x42318
leaq 0x3643f(%rip), %rcx     # 0x424c9
movl $0x1328, %edx           # imm = 0x1328
callq 0x30a0
leaq 0x342e9(%rip), %rdi     # 0x40384
leaq 0x36276(%rip), %rsi     # 0x42318
leaq 0x36420(%rip), %rcx     # 0x424c9
movl $0x1338, %edx           # imm = 0x1338
callq 0x30a0
leaq 0x37e6d(%rip), %rdi     # 0x43f27
leaq 0x36257(%rip), %rsi     # 0x42318
leaq 0x37e19(%rip), %rcx     # 0x43ee1
movl $0x12db, %edx           # imm = 0x12DB
callq 0x30a0
leaq 0x364d5(%rip), %rdi     # 0x425ae
leaq 0x36238(%rip), %rsi     # 0x42318
leaq 0x37d8b(%rip), %rcx     # 0x43e72
movl $0xf44, %edx            # imm = 0xF44
callq 0x30a0
leaq 0x37e1e(%rip), %rdi     # 0x43f16
leaq 0x36219(%rip), %rsi     # 0x42318
leaq 0x37ddb(%rip), %rcx     # 0x43ee1
movl $0x12c6, %edx           # imm = 0x12C6
callq 0x30a0
leaq 0x36497(%rip), %rdi     # 0x425ae
leaq 0x361fa(%rip), %rsi     # 0x42318
leaq 0x37dbc(%rip), %rcx     # 0x43ee1
movl $0x12da, %edx           # imm = 0x12DA
callq 0x30a0
leaq 0x37e1f(%rip), %rdi     # 0x43f55
leaq 0x361db(%rip), %rsi     # 0x42318
leaq 0x37d9d(%rip), %rcx     # 0x43ee1
movl $0x12dd, %edx           # imm = 0x12DD
callq 0x30a0
leaq 0x3422f(%rip), %rdi     # 0x40384
leaq 0x361bc(%rip), %rsi     # 0x42318
leaq 0x37d0f(%rip), %rcx     # 0x43e72
movl $0xf61, %edx            # imm = 0xF61
callq 0x30a0
leaq 0x34210(%rip), %rdi     # 0x40384
leaq 0x3619d(%rip), %rsi     # 0x42318
leaq 0x37d5f(%rip), %rcx     # 0x43ee1
movl $0x12d8, %edx           # imm = 0x12D8
callq 0x30a0
leaq 0x341f1(%rip), %rdi     # 0x40384
leaq 0x3617e(%rip), %rsi     # 0x42318
leaq 0x37d40(%rip), %rcx     # 0x43ee1
movl $0x1320, %edx           # imm = 0x1320
callq 0x30a0
leaq 0x427b4(%rip), %rdi     # 0x4e966
leaq 0x3615f(%rip), %rsi     # 0x42318
leaq 0x36172(%rip), %rcx     # 0x42332
movl $0x134c, %edx           # imm = 0x134C
callq 0x30a0
leaq 0x3618e(%rip), %rdi     # 0x4235f
leaq 0x36140(%rip), %rsi     # 0x42318
leaq 0x36153(%rip), %rcx     # 0x42332
movl $0x134d, %edx           # imm = 0x134D
callq 0x30a0
leaq 0x3617b(%rip), %rdi     # 0x4236b
leaq 0x36121(%rip), %rsi     # 0x42318
leaq 0x36134(%rip), %rcx     # 0x42332
movl $0x134e, %edx           # imm = 0x134E
callq 0x30a0
leaq 0x3616d(%rip), %rdi     # 0x4237c
leaq 0x36102(%rip), %rsi     # 0x42318
leaq 0x36115(%rip), %rcx     # 0x42332
movl $0x134f, %edx           # imm = 0x134F
callq 0x30a0
leaq 0x36177(%rip), %rdi     # 0x423a5
leaq 0x360e3(%rip), %rsi     # 0x42318
leaq 0x360f6(%rip), %rcx     # 0x42332
movl $0x1350, %edx           # imm = 0x1350
callq 0x30a0
leaq 0x37b49(%rip), %rdi     # 0x43d96
leaq 0x360c4(%rip), %rsi     # 0x42318
leaq 0x3621a(%rip), %rcx     # 0x42475
movl $0x1340, %edx           # imm = 0x1340
callq 0x30a0
leaq 0x36240(%rip), %rdi     # 0x424ac
leaq 0x360a5(%rip), %rsi     # 0x42318
leaq 0x361fb(%rip), %rcx     # 0x42475
movl $0x1341, %edx           # imm = 0x1341
callq 0x30a0