// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
testq %rdi, %rdi
je 0xb3ad
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0xb3cc
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xb3eb
cmpl $0x100, (%rax)          # imm = 0x100
jne 0xb40a
cmpq $0x0, 0x8(%rbx)
je 0xb429
xorl %r15d, %r15d
leaq 0x3519f(%rip), %r13     # 0x3ff16
movq 0x10(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r13, %r14
movq %r14, %rdi
callq 0x3070
cmpq %r15, %rax
jbe 0xada6
movsbl (%r14,%r15), %edi
movq 0x8(%rbx), %rsi
callq 0x30c0
incq %r15
jmp 0xad77
movq (%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
je 0xb448
cmpl $0x100, (%r14)          # imm = 0x100
jne 0xb467
xorl %r15d, %r15d
movq %r14, -0x30(%rbp)
movslq 0x44(%r14), %rax
cmpq %rax, %r15
jge 0xb194
movq 0x48(%r14), %rax
movq (%rax,%r15,8), %rsi
testq %rsi, %rsi
je 0xb277
movl (%rsi), %eax
cmpl $0xa00, %eax            # imm = 0xA00
je 0xae96
cmpl $0xd00, %eax            # imm = 0xD00
je 0xae14
cmpl $0xc00, %eax            # imm = 0xC00
jne 0xb296
movq %rbx, %rdi
callq 0xb6f1
jmp 0xb18c
movq 0x48(%rsi), %rax
movq (%rax), %r14
cmpl $0x200, (%r14)          # imm = 0x200
jne 0xb2b5
movq 0x8(%rax), %r12
movl (%r12), %eax
cmpl $0xd01, %eax            # imm = 0xD01
je 0xaecc
cmpl $0x900, %eax            # imm = 0x900
jne 0xb38e
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x6e1c
movq %r12, %rdi
movq %r14, %rsi
callq 0xbd23
movq 0x20(%rbx), %rdi
leaq 0x3509d(%rip), %rsi     # 0x3ff05
callq 0x6e99
movq 0x20(%rbx), %rdi
movq %r12, %rsi
callq 0x712e
movq 0x20(%rbx), %rdi
leaq 0x3508a(%rip), %rsi     # 0x3ff0e
callq 0x6e99
movq %r12, %rdi
callq 0x72b9
jmp 0xb188
movq 0x60(%rsi), %rax
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0xb312
movl 0x44(%rsi), %eax
cmpl $0x4, %eax
je 0xaf4c
cmpl $0x3, %eax
jne 0xb36f
movq 0x48(%rsi), %rcx
leaq 0x10(%rcx), %rax
xorl %r14d, %r14d
jmp 0xaf58
leaq -0x48(%rbp), %rdi
callq 0x6e1c
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xbd23
movq 0x20(%rbx), %rdi
leaq 0x35019(%rip), %rsi     # 0x3ff05
callq 0x6e99
movq 0x20(%rbx), %rdi
leaq -0x48(%rbp), %r14
movq %r14, %rsi
callq 0x712e
movq 0x20(%rbx), %rdi
leaq 0x3500b(%rip), %rsi     # 0x3ff17
callq 0x6e99
movq %r14, %rdi
callq 0x72b9
xorl %r14d, %r14d
movslq 0x44(%r12), %rax
cmpq %rax, %r14
jge 0xb178
movq 0x48(%r12), %rax
movq (%rax,%r14,8), %rsi
cmpl $0xc00, (%rsi)          # imm = 0xC00
jne 0xb239
movq %rbx, %rdi
callq 0xb6f1
incq %r14
jmp 0xaf1c
movq 0x48(%rsi), %rcx
movq 0x10(%rcx), %r14
leaq 0x18(%rcx), %rax
movq %r15, -0x50(%rbp)
movq (%rcx), %r13
cmpl $0x200, (%r13)          # imm = 0x200
jne 0xb2d4
movq 0x8(%rcx), %r12
cmpl $0xa01, (%r12)          # imm = 0xA01
jne 0xb2f3
movq (%rax), %rax
movq %rax, -0x38(%rbp)
cmpl $0x0, 0x44(%r12)
jle 0xafa2
movq 0x48(%r12), %rax
movq (%rax), %rax
cmpl $0xa02, (%rax)          # imm = 0xA02
jne 0xb331
movq 0x20(%rbx), %rdi
pushq $0xa
popq %rsi
callq 0x6f81
movq 0x20(%rbx), %rdi
leaq 0x338b0(%rip), %rsi     # 0x3e869
callq 0x6e99
movq 0x20(%rbx), %rdi
pushq $0x20
popq %rsi
callq 0x6f81
leaq -0x48(%rbp), %r15
movq %r15, %rdi
callq 0x6e1c
movq %r15, %rdi
movq %r13, %rsi
callq 0xbd23
movq 0x20(%rbx), %rdi
movq %r15, %rsi
callq 0x712e
movq %r15, %rdi
callq 0x72b9
movq 0x20(%rbx), %rdi
leaq 0x36471(%rip), %rsi     # 0x41471
callq 0x6e99
movq 0x20(%rbx), %rdi
movq %r12, %rsi
callq 0xc938
movq 0x20(%rbx), %rdi
leaq 0x35a16(%rip), %rsi     # 0x40a32
callq 0x6e99
testq %r14, %r14
je 0xb05d
movq 0x20(%rbx), %rdi
pushq $0x3a
popq %rsi
callq 0x6f81
leaq -0x60(%rbp), %r15
movq %r15, %rdi
callq 0x6e1c
movq %r15, %rdi
movq %r14, %rsi
callq 0xbd8f
movq 0x20(%rbx), %rdi
movq %r15, %rsi
callq 0x712e
movq %r15, %rdi
callq 0x72b9
movq 0x20(%rbx), %rdi
pushq $0x20
popq %rsi
callq 0x6f81
movq -0x38(%rbp), %rax
movl (%rax), %eax
leaq 0x34fa8(%rip), %rsi     # 0x4001e
cmpl $0x900, %eax            # imm = 0x900
leaq 0x34e94(%rip), %r13     # 0x3ff16
je 0xb155
cmpl $0xb00, %eax            # imm = 0xB00
jne 0xb350
movq 0x20(%rbx), %rdi
leaq 0x34e79(%rip), %rsi     # 0x3ff17
callq 0x6e99
xorl %r13d, %r13d
movslq 0x44(%r12), %rax
cmpq %rax, %r13
jge 0xb0f2
movq 0x48(%r12), %rax
movq (%rax,%r13,8), %rax
cmpl $0xa03, (%rax)          # imm = 0xA03
je 0xb0ed
movq 0x60(%rax), %r15
cmpb $0x1, 0x48(%r15)
je 0xb258
movb $0x1, 0x48(%r15)
leaq 0x50(%r15), %r14
movq %r14, %rdi
callq 0x6e1c
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0xcb88
incq %r13
jmp 0xb0a6
movq 0x20(%rbx), %r14
callq 0x71d5
movq %rax, 0x20(%rbx)
callq 0x71d5
movq %rax, 0x30(%rbx)
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
callq 0x11b3a
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x712e
movq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x712e
movq 0x20(%rbx), %rdi
callq 0x72b9
movq %r14, 0x20(%rbx)
movq 0x30(%rbx), %rdi
callq 0x72b9
andq $0x0, 0x30(%rbx)
leaq 0x34ece(%rip), %rsi     # 0x4001c
leaq 0x34dc1(%rip), %r13     # 0x3ff16
movq 0x20(%rbx), %rdi
callq 0x6e99
movq 0x20(%rbx), %rdi
leaq 0x34dab(%rip), %rsi     # 0x3ff14
callq 0x6e99
movq -0x30(%rbp), %r14
movq -0x50(%rbp), %r15
jmp 0xb18c
movq 0x20(%rbx), %rdi
leaq 0x34db6(%rip), %rsi     # 0x3ff39
callq 0x6e99
movq -0x30(%rbp), %r14
incq %r15
jmp 0xadca
xorl %r15d, %r15d
movq 0x18(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r13, %r14
movq %r14, %rdi
callq 0x3070
cmpq %r15, %rax
jbe 0xb1c6
movsbl (%r14,%r15), %edi
movq 0x8(%rbx), %rsi
callq 0x30c0
incq %r15
jmp 0xb197
xorl %r15d, %r15d
movq 0x20(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r13, %r14
movq %r14, %rdi
callq 0x3070
cmpq %r15, %rax
jbe 0xb1f8
movsbl (%r14,%r15), %edi
movq 0x8(%rbx), %rsi
callq 0x30c0
incq %r15
jmp 0xb1c9
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r13, %r14
movq %r14, %rdi
callq 0x3070
cmpq %r15, %rax
jbe 0xb22a
movsbl (%r14,%r15), %edi
movq 0x8(%rbx), %rsi
callq 0x30c0
incq %r15
jmp 0xb1fb
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x34cdb(%rip), %rdi     # 0x3ff1b
leaq 0x3312d(%rip), %rsi     # 0x3e374
leaq 0x34c80(%rip), %rcx     # 0x3fece
movl $0xf5a, %edx            # imm = 0xF5A
callq 0x30a0
leaq 0x34d90(%rip), %rdi     # 0x3ffef
leaq 0x3310e(%rip), %rsi     # 0x3e374
leaq 0x34cd0(%rip), %rcx     # 0x3ff3d
movl $0x1306, %edx           # imm = 0x1306
callq 0x30a0
leaq 0x34b74(%rip), %rdi     # 0x3fdf2
leaq 0x330ef(%rip), %rsi     # 0x3e374
leaq 0x33299(%rip), %rcx     # 0x3e525
movl $0x1328, %edx           # imm = 0x1328
callq 0x30a0
leaq 0x310c3(%rip), %rdi     # 0x3c360
leaq 0x330d0(%rip), %rsi     # 0x3e374
leaq 0x3327a(%rip), %rcx     # 0x3e525
movl $0x1338, %edx           # imm = 0x1338
callq 0x30a0
leaq 0x3334e(%rip), %rdi     # 0x3e60a
leaq 0x330b1(%rip), %rsi     # 0x3e374
leaq 0x34c04(%rip), %rcx     # 0x3fece
movl $0xf44, %edx            # imm = 0xF44
callq 0x30a0
leaq 0x3332f(%rip), %rdi     # 0x3e60a
leaq 0x33092(%rip), %rsi     # 0x3e374
leaq 0x34c54(%rip), %rcx     # 0x3ff3d
movl $0x12da, %edx           # imm = 0x12DA
callq 0x30a0
leaq 0x34c89(%rip), %rdi     # 0x3ff83
leaq 0x33073(%rip), %rsi     # 0x3e374
leaq 0x34c35(%rip), %rcx     # 0x3ff3d
movl $0x12db, %edx           # imm = 0x12DB
callq 0x30a0
leaq 0x34c59(%rip), %rdi     # 0x3ff72
leaq 0x33054(%rip), %rsi     # 0x3e374
leaq 0x34c16(%rip), %rcx     # 0x3ff3d
movl $0x12c6, %edx           # imm = 0x12C6
callq 0x30a0
leaq 0x34c79(%rip), %rdi     # 0x3ffb1
leaq 0x33035(%rip), %rsi     # 0x3e374
leaq 0x34bf7(%rip), %rcx     # 0x3ff3d
movl $0x12dd, %edx           # imm = 0x12DD
callq 0x30a0
leaq 0x31009(%rip), %rdi     # 0x3c360
leaq 0x33016(%rip), %rsi     # 0x3e374
leaq 0x34bd8(%rip), %rcx     # 0x3ff3d
movl $0x1320, %edx           # imm = 0x1320
callq 0x30a0
leaq 0x30fea(%rip), %rdi     # 0x3c360
leaq 0x32ff7(%rip), %rsi     # 0x3e374
leaq 0x34bb9(%rip), %rcx     # 0x3ff3d
movl $0x12d8, %edx           # imm = 0x12D8
callq 0x30a0
leaq 0x30fcb(%rip), %rdi     # 0x3c360
leaq 0x32fd8(%rip), %rsi     # 0x3e374
leaq 0x34b2b(%rip), %rcx     # 0x3fece
movl $0xf61, %edx            # imm = 0xF61
callq 0x30a0
leaq 0x32a10(%rip), %rdi     # 0x3ddc4
leaq 0x32fb9(%rip), %rsi     # 0x3e374
leaq 0x32fcc(%rip), %rcx     # 0x3e38e
movl $0x134c, %edx           # imm = 0x134C
callq 0x30a0
leaq 0x32fe8(%rip), %rdi     # 0x3e3bb
leaq 0x32f9a(%rip), %rsi     # 0x3e374
leaq 0x32fad(%rip), %rcx     # 0x3e38e
movl $0x134d, %edx           # imm = 0x134D
callq 0x30a0
leaq 0x32fd5(%rip), %rdi     # 0x3e3c7
leaq 0x32f7b(%rip), %rsi     # 0x3e374
leaq 0x32f8e(%rip), %rcx     # 0x3e38e
movl $0x134e, %edx           # imm = 0x134E
callq 0x30a0
leaq 0x32fc7(%rip), %rdi     # 0x3e3d8
leaq 0x32f5c(%rip), %rsi     # 0x3e374
leaq 0x32f6f(%rip), %rcx     # 0x3e38e
movl $0x134f, %edx           # imm = 0x134F
callq 0x30a0
leaq 0x32fd1(%rip), %rdi     # 0x3e401
leaq 0x32f3d(%rip), %rsi     # 0x3e374
leaq 0x32f50(%rip), %rcx     # 0x3e38e
movl $0x1350, %edx           # imm = 0x1350
callq 0x30a0
leaq 0x349a3(%rip), %rdi     # 0x3fdf2
leaq 0x32f1e(%rip), %rsi     # 0x3e374
leaq 0x33074(%rip), %rcx     # 0x3e4d1
movl $0x1340, %edx           # imm = 0x1340
callq 0x30a0
leaq 0x3309a(%rip), %rdi     # 0x3e508
leaq 0x32eff(%rip), %rsi     # 0x3e374
leaq 0x33055(%rip), %rcx     # 0x3e4d1
movl $0x1341, %edx           # imm = 0x1341
callq 0x30a0