// File: /workspace/github_c_makefile_star2_O2/Ihsoh[P]ilang/compiler/backend/asmgen_gas32.c
// Function: be_asmgen_gas32_generate
void be_asmgen_gas32_generate(
	ASMGeneratorGas32Context *ctx
) {
	assert(ctx);
	assert(ctx->psrctx);
	assert(ctx->psrctx->ast);
	assert(ctx->psrctx->ast->type == BE_NODE_MODULE);
	assert(ctx->out);

	_asm_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 0xb366
movq %rdi, %r13
movq (%rdi), %rax
testq %rax, %rax
je 0xb385
movq 0x8(%rax), %rax
testq %rax, %rax
je 0xb3a4
cmpl $0x100, (%rax)          # imm = 0x100
jne 0xb3c3
cmpq $0x0, 0x8(%r13)
je 0xb3e2
movq %rax, -0x30(%rbp)
xorl %ebx, %ebx
leaq 0x32cb1(%rip), %r12     # 0x3da2b
movq 0x10(%r13), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
movq %r14, %rdi
callq 0x3080
cmpq %rbx, %rax
jbe 0xada9
movsbl (%r14,%rbx), %edi
movq 0x8(%r13), %rsi
callq 0x30c0
incq %rbx
jmp 0xad7a
leaq -0x60(%rbp), %rbx
xorl %edx, %edx
movq -0x30(%rbp), %rcx
movslq 0x44(%rcx), %rax
cmpq %rax, %rdx
jge 0xb1ad
movq 0x48(%rcx), %rax
movq (%rax,%rdx,8), %rsi
testq %rsi, %rsi
je 0xb24f
andq $0x0, 0x58(%r13)
movl (%rsi), %eax
cmpl $0xa00, %eax            # imm = 0xA00
je 0xae0c
cmpl $0xd00, %eax            # imm = 0xD00
je 0xb1a5
cmpl $0xc00, %eax            # imm = 0xC00
jne 0xb26e
movq %rdx, %r14
movq %r13, %rdi
callq 0xb6bf
movq -0x30(%rbp), %rcx
movq %r14, %rdx
jmp 0xb1a5
movq 0x60(%rsi), %rax
movq %rax, 0x58(%r13)
testq %rax, %rax
je 0xb2ac
movl 0x44(%rsi), %ecx
pushq $0x10
popq %rax
cmpl $0x3, %ecx
je 0xae34
cmpl $0x4, %ecx
jne 0xb347
pushq $0x18
popq %rax
movq 0x48(%rsi), %rcx
movq (%rcx), %r15
cmpl $0x200, (%r15)          # imm = 0x200
jne 0xb28d
movq 0x8(%rcx), %rsi
cmpl $0xa01, (%rsi)          # imm = 0xA01
jne 0xb2cb
movq %rdx, -0x38(%rbp)
movq (%rcx,%rax), %r14
cmpl $0x0, 0x44(%rsi)
jle 0xae79
movq 0x48(%rsi), %rax
movq (%rax), %rax
cmpl $0xa02, (%rax)          # imm = 0xA02
jne 0xb2ea
movq %rsi, -0x40(%rbp)
movq 0x20(%r13), %rdi
pushq $0xa
popq %rsi
callq 0x6f81
movl (%r14), %eax
cmpl $0x900, %eax            # imm = 0x900
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rdx
je 0xb1a5
cmpl $0xb00, %eax            # imm = 0xB00
jne 0xb309
movq 0x10(%r15), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
movq %rbx, %rdi
callq 0x6fa2
movq 0x20(%r13), %rdi
leaq 0x32b3f(%rip), %rsi     # 0x3da07
callq 0x6e99
movq 0x20(%r13), %rdi
leaq 0x328a1(%rip), %rsi     # 0x3d779
callq 0x6e99
movq 0x20(%r13), %rdi
movq 0x10(%r15), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
callq 0x700f
movq 0x20(%r13), %rdi
pushq $0xa
popq %rbx
movl %ebx, %esi
callq 0x6f81
movq 0x20(%r13), %rdi
movq 0x10(%r15), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
callq 0x700f
movq 0x20(%r13), %rdi
pushq $0x3a
popq %rsi
callq 0x6f81
movq 0x20(%r13), %rdi
movl %ebx, %esi
callq 0x6f81
movq 0x20(%r13), %rdi
leaq 0x32c16(%rip), %rsi     # 0x3db4b
callq 0x6e99
pushq $0x4
popq %rax
movq %rax, 0x38(%r13)
movq %rax, 0x40(%r13)
movq $0x1, 0x48(%r13)
pushq $0x8
popq %r15
xorl %r12d, %r12d
movq -0x40(%rbp), %rcx
movq %r14, -0x48(%rbp)
movslq 0x44(%rcx), %rax
cmpq %rax, %r12
jge 0xb02f
movq 0x48(%rcx), %rax
movq (%rax,%r12,8), %rax
cmpl $0xa03, (%rax)          # imm = 0xA03
je 0xb023
movq 0x48(%rax), %rcx
movq 0x60(%rax), %r14
movq (%rcx), %rax
movq %rax, -0x50(%rbp)
movb $0x1, 0x48(%r14)
movq %r13, %rbx
leaq 0x50(%r14), %r13
movq %r13, %rdi
callq 0x6e1c
movq %r13, %rdi
movq %rbx, %r13
leaq 0x32bbb(%rip), %rsi     # 0x3db68
movl %r15d, %edx
xorl %eax, %eax
callq 0x739a
movq 0x48(%rbx), %rdx
movq 0x20(%rbx), %rdi
movq 0x38(%rbx), %rcx
movq 0x58(%r14), %r10
movq -0x48(%rbp), %r14
testq %r10, %r10
leaq 0x32a56(%rip), %rax     # 0x3da2b
cmoveq %rax, %r10
subq $0x8, %rsp
leaq 0x32b8e(%rip), %rsi     # 0x3db72
pushq $0x8
popq %r8
pushq $0x8
popq %r9
xorl %eax, %eax
pushq %r10
callq 0x739a
popq %rax
popq %rcx
movq 0x20(%rbx), %rdi
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movl 0x4(%rax), %edx
callq 0x700f
movq 0x20(%rbx), %rdi
pushq $0xa
popq %rsi
callq 0x6f81
movq -0x40(%rbp), %rcx
incq 0x48(%rbx)
incq %r12
addl $0x8, %r15d
jmp 0xaf5c
movq 0x20(%r13), %r15
callq 0x71d5
movq %rax, 0x20(%r13)
callq 0x71d5
movq %rax, 0x30(%r13)
cmpl $0xb00, (%r14)          # imm = 0xB00
jne 0xb328
xorl %ebx, %ebx
leaq 0x329d0(%rip), %r12     # 0x3da2b
movslq 0x44(%r14), %rax
cmpq %rax, %rbx
jge 0xb079
movq 0x48(%r14), %rax
movq (%rax,%rbx,8), %rsi
movq %r13, %rdi
callq 0xc06e
incq %rbx
jmp 0xb05b
movq 0x30(%r13), %rdi
movq 0x40(%r13), %rdx
leaq 0x32b3f(%rip), %rsi     # 0x3dbc7
xorl %eax, %eax
callq 0x739a
movq 0x30(%r13), %rdi
movq 0x40(%r13), %rdx
leaq 0x32b4c(%rip), %rsi     # 0x3dbea
xorl %eax, %eax
callq 0x739a
movq 0x30(%r13), %rsi
movq %r15, %rdi
callq 0x712e
movq -0x58(%rbp), %rcx
testq %rcx, %rcx
cmoveq %r12, %rcx
subq $0x8, %rsp
movq %r15, %rdi
leaq 0x32b33(%rip), %rsi     # 0x3dbfd
leaq 0x32b5a(%rip), %rdx     # 0x3dc2b
movq %rdx, %r8
movq %rcx, %r9
xorl %eax, %eax
pushq $-0x4
leaq 0x32b53(%rip), %r10     # 0x3dc35
pushq %r10
pushq %r10
callq 0x739a
addq $0x20, %rsp
movq %r15, %rdi
leaq 0x32b41(%rip), %rsi     # 0x3dc3a
callq 0x6e99
movq 0x20(%r13), %rsi
movq %r15, %rdi
callq 0x712e
movq 0x20(%r13), %rdi
callq 0x72b9
movq %r15, 0x20(%r13)
movq 0x30(%r13), %rdi
callq 0x72b9
andq $0x0, 0x30(%r13)
movq 0x20(%r13), %rdi
leaq 0x328fa(%rip), %rsi     # 0x3da2a
callq 0x6e99
movq 0x20(%r13), %rsi
movq %r13, %rdi
leaq 0x32b01(%rip), %rdx     # 0x3dc44
leaq 0x32aff(%rip), %rcx     # 0x3dc49
callq 0xbf58
movq 0x20(%r13), %rdi
leaq 0x32ae7(%rip), %rsi     # 0x3dc41
callq 0x6e99
movq 0x20(%r13), %rdi
movq 0x40(%r13), %rdx
leaq 0x32adf(%rip), %rsi     # 0x3dc4d
xorl %eax, %eax
callq 0x739a
movq 0x20(%r13), %rdi
leaq 0x32ae1(%rip), %rsi     # 0x3dc61
callq 0x6e99
movq 0x20(%r13), %rdi
pushq $0xa
popq %rsi
callq 0x6f81
leaq -0x60(%rbp), %rbx
movq %rbx, %rdi
callq 0x72b9
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rdx
incq %rdx
jmp 0xadb3
xorl %ebx, %ebx
movq 0x18(%r13), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
movq %r14, %rdi
callq 0x3080
cmpq %rbx, %rax
jbe 0xb1de
movsbl (%r14,%rbx), %edi
movq 0x8(%r13), %rsi
callq 0x30c0
incq %rbx
jmp 0xb1af
xorl %ebx, %ebx
movq 0x20(%r13), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
movq %r14, %rdi
callq 0x3080
cmpq %rbx, %rax
jbe 0xb20f
movsbl (%r14,%rbx), %edi
movq 0x8(%r13), %rsi
callq 0x30c0
incq %rbx
jmp 0xb1e0
xorl %ebx, %ebx
movq 0x28(%r13), %rax
movq 0x8(%rax), %r14
testq %r14, %r14
cmoveq %r12, %r14
movq %r14, %rdi
callq 0x3080
cmpq %rbx, %rax
jbe 0xb240
movsbl (%r14,%rbx), %edi
movq 0x8(%r13), %rsi
callq 0x30c0
incq %rbx
jmp 0xb211
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x32cb4(%rip), %rdi     # 0x3df0a
leaq 0x321eb(%rip), %rsi     # 0x3d448
leaq 0x323ef(%rip), %rcx     # 0x3d653
movl $0x2c8d, %edx           # imm = 0x2C8D
callq 0x30a0
leaq 0x300f4(%rip), %rdi     # 0x3b369
leaq 0x321cc(%rip), %rsi     # 0x3d448
leaq 0x323d0(%rip), %rcx     # 0x3d653
movl $0x2c9f, %edx           # imm = 0x2C9F
callq 0x30a0
leaq 0x324b2(%rip), %rdi     # 0x3d746
leaq 0x321ad(%rip), %rsi     # 0x3d448
leaq 0x327f0(%rip), %rcx     # 0x3da92
movl $0x2bc8, %edx           # imm = 0x2BC8
callq 0x30a0
leaq 0x3281b(%rip), %rdi     # 0x3dace
leaq 0x3218e(%rip), %rsi     # 0x3d448
leaq 0x327d1(%rip), %rcx     # 0x3da92
movl $0x2bb4, %edx           # imm = 0x2BB4
callq 0x30a0
leaq 0x3280d(%rip), %rdi     # 0x3dadf
leaq 0x3216f(%rip), %rsi     # 0x3d448
leaq 0x327b2(%rip), %rcx     # 0x3da92
movl $0x2bc9, %edx           # imm = 0x2BC9
callq 0x30a0
leaq 0x3281c(%rip), %rdi     # 0x3db0d
leaq 0x32150(%rip), %rsi     # 0x3d448
leaq 0x32793(%rip), %rcx     # 0x3da92
movl $0x2bcb, %edx           # imm = 0x2BCB
callq 0x30a0
leaq 0x30059(%rip), %rdi     # 0x3b369
leaq 0x32131(%rip), %rsi     # 0x3d448
leaq 0x32774(%rip), %rcx     # 0x3da92
movl $0x2c7f, %edx           # imm = 0x2C7F
callq 0x30a0
leaq 0x32985(%rip), %rdi     # 0x3dcb4
leaq 0x32112(%rip), %rsi     # 0x3d448
leaq 0x32934(%rip), %rcx     # 0x3dc71
movl $0x2ba3, %edx           # imm = 0x2BA3
callq 0x30a0
leaq 0x3001b(%rip), %rdi     # 0x3b369
leaq 0x320f3(%rip), %rsi     # 0x3d448
leaq 0x32736(%rip), %rcx     # 0x3da92
movl $0x2bc6, %edx           # imm = 0x2BC6
callq 0x30a0
leaq 0x31a67(%rip), %rdi     # 0x3cdd4
leaq 0x320d4(%rip), %rsi     # 0x3d448
leaq 0x320ed(%rip), %rcx     # 0x3d468
movl $0x2cb8, %edx           # imm = 0x2CB8
callq 0x30a0
leaq 0x32116(%rip), %rdi     # 0x3d4a2
leaq 0x320b5(%rip), %rsi     # 0x3d448
leaq 0x320ce(%rip), %rcx     # 0x3d468
movl $0x2cb9, %edx           # imm = 0x2CB9
callq 0x30a0
leaq 0x32103(%rip), %rdi     # 0x3d4ae
leaq 0x32096(%rip), %rsi     # 0x3d448
leaq 0x320af(%rip), %rcx     # 0x3d468
movl $0x2cba, %edx           # imm = 0x2CBA
callq 0x30a0
leaq 0x320f5(%rip), %rdi     # 0x3d4bf
leaq 0x32077(%rip), %rsi     # 0x3d448
leaq 0x32090(%rip), %rcx     # 0x3d468
movl $0x2cbb, %edx           # imm = 0x2CBB
callq 0x30a0
leaq 0x320ff(%rip), %rdi     # 0x3d4e8
leaq 0x32058(%rip), %rsi     # 0x3d448
leaq 0x32071(%rip), %rcx     # 0x3d468
movl $0x2cbc, %edx           # imm = 0x2CBC
callq 0x30a0