// File: /workspace/github_c_makefile_star2_O0/lucvoo[P]sparse-dev/example.c
// Function: generate
static void generate(struct basic_block *bb, struct bb_state *state)
{
	int i;
	struct storage_hash *entry;
	struct instruction *insn;

	for (i = 0; i < REGNO; i++) {
		free_ptr_list(&hardregs[i].contains);
		hardregs[i].busy = 0;
		hardregs[i].dead = 0;
		hardregs[i].used = 0;
	}

	FOR_EACH_PTR(state->inputs, entry) {
		struct storage *storage = entry->storage;
		const char *name = show_storage(storage);
		output_comment(state, "incoming %s in %s", show_pseudo(entry->pseudo), name);
		if (storage->type == REG_REG) {
			int regno = storage->regno;
			add_pseudo_reg(state, entry->pseudo, hardregs + regno);
			name = hardregs[regno].name;
		}
	} END_FOR_EACH_PTR(entry);

	output_label(state, ".L%p", bb);
	FOR_EACH_PTR(bb->insns, insn) {
		if (!insn->bb)
			continue;
		generate_one_insn(insn, state);
	} END_FOR_EACH_PTR(insn);

	if (verbose) {
		output_comment(state, "--- in ---");
		FOR_EACH_PTR(state->inputs, entry) {
			output_comment(state, "%s <- %s", show_pseudo(entry->pseudo), show_storage(entry->storage));
		} END_FOR_EACH_PTR(entry);
		output_comment(state, "--- spill ---");
		FOR_EACH_PTR(state->internal, entry) {
			output_comment(state, "%s <-> %s", show_pseudo(entry->pseudo), show_storage(entry->storage));
		} END_FOR_EACH_PTR(entry);
		output_comment(state, "--- out ---");
		FOR_EACH_PTR(state->outputs, entry) {
			output_comment(state, "%s -> %s", show_pseudo(entry->pseudo), show_storage(entry->storage));
		} END_FOR_EACH_PTR(entry);
	}
	printf("\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x6, -0x14(%rbp)
jge 0x12012
jmp 0x11f86
movslq -0x14(%rbp), %rax
leaq 0x7b20f(%rip), %rdi     # 0x8d1a0
imulq $0x18, %rax, %rax
addq %rax, %rdi
addq $0x8, %rdi
callq 0x3aa60
movslq -0x14(%rbp), %rcx
leaq 0x7b1f4(%rip), %rax     # 0x8d1a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
andl $0xffff0000, %ecx       # imm = 0xFFFF0000
orl $0x0, %ecx
movl %ecx, 0x10(%rax)
movslq -0x14(%rbp), %rcx
leaq 0x7b1d3(%rip), %rax     # 0x8d1a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
andl $0xff00ffff, %ecx       # imm = 0xFF00FFFF
orl $0x0, %ecx
movl %ecx, 0x10(%rax)
movslq -0x14(%rbp), %rcx
leaq 0x7b1b2(%rip), %rax     # 0x8d1a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
andl $0xfeffffff, %ecx       # imm = 0xFEFFFFFF
orl $0x0, %ecx
movl %ecx, 0x10(%rax)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x11f7a
jmp 0x12014
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x1203c
jmp 0x12154
jmp 0x1203e
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
movq -0x38(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x1213c
movq -0x38(%rbp), %rax
movslq -0x44(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x12090
cmpq $0x0, -0x20(%rbp)
jne 0x12090
jmp 0x1212e
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x48b20
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x20c10
movq -0xe8(%rbp), %rdi
movq %rax, %rdx
movq -0x58(%rbp), %rcx
leaq 0x570ae(%rip), %rsi     # 0x69184
movb $0x0, %al
callq 0x125e0
movq -0x50(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x1212c
movq -0x50(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rsi
movslq -0x5c(%rbp), %rax
leaq 0x7b099(%rip), %rdx     # 0x8d1a0
imulq $0x18, %rax, %rax
addq %rax, %rdx
callq 0x126b0
movslq -0x5c(%rbp), %rcx
leaq 0x7b082(%rip), %rax     # 0x8d1a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
jmp 0x1212e
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x12045
jmp 0x1213e
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq -0x30(%rbp), %rax
jne 0x1203e
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
leaq 0x57033(%rip), %rsi     # 0x69196
movb $0x0, %al
callq 0x12720
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x68(%rbp)
jne 0x12192
jmp 0x1221c
jmp 0x12194
movl $0x0, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movq -0x70(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x12204
movq -0x70(%rbp), %rax
movslq -0x7c(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
movq -0x70(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x121df
cmpq $0x0, -0x28(%rbp)
jne 0x121df
jmp 0x121f9
movq -0x28(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x121ec
jmp 0x121f9
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x127e0
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x1219b
jmp 0x12206
movq -0x70(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x70(%rbp)
cmpq -0x68(%rbp), %rax
jne 0x12194
leaq 0x85e41(%rip), %rax     # 0x98064
cmpl $0x0, (%rax)
je 0x125bb
movq -0x10(%rbp), %rdi
leaq 0x56f64(%rip), %rsi     # 0x6919b
movb $0x0, %al
callq 0x125e0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x88(%rbp)
jne 0x12278
jmp 0x1235b
jmp 0x1227a
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
movq -0x90(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x1233a
movq -0x90(%rbp), %rax
movslq -0x9c(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x90(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x122db
cmpq $0x0, -0x20(%rbp)
jne 0x122db
jmp 0x12326
movq -0x10(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x20c10
movq %rax, -0xf0(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x48b20
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rdx
movq %rax, %rcx
leaq 0x56e87(%rip), %rsi     # 0x691a6
movb $0x0, %al
callq 0x125e0
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x12284
jmp 0x1233c
movq -0x90(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x90(%rbp)
cmpq -0x88(%rbp), %rax
jne 0x1227a
movq -0x10(%rbp), %rdi
leaq 0x56e49(%rip), %rsi     # 0x691af
movb $0x0, %al
callq 0x125e0
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, -0xa8(%rbp)
jne 0x123a7
jmp 0x1248a
jmp 0x123a9
movl $0x0, -0xbc(%rbp)
movl -0xbc(%rbp), %eax
movq -0xb0(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x12469
movq -0xb0(%rbp), %rax
movslq -0xbc(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0xb0(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x1240a
cmpq $0x0, -0x20(%rbp)
jne 0x1240a
jmp 0x12455
movq -0x10(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x20c10
movq %rax, -0x100(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x48b20
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rdx
movq %rax, %rcx
leaq 0x56d6f(%rip), %rsi     # 0x691bd
movb $0x0, %al
callq 0x125e0
movl -0xbc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xbc(%rbp)
jmp 0x123b3
jmp 0x1246b
movq -0xb0(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xb0(%rbp)
cmpq -0xa8(%rbp), %rax
jne 0x123a9
movq -0x10(%rbp), %rdi
leaq 0x56d32(%rip), %rsi     # 0x691c7
movb $0x0, %al
callq 0x125e0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
cmpq $0x0, -0xc8(%rbp)
jne 0x124d6
jmp 0x125b9
jmp 0x124d8
movl $0x0, -0xdc(%rbp)
movl -0xdc(%rbp), %eax
movq -0xd0(%rbp), %rcx
movw (%rcx), %cx
shlw $0x8, %cx
sarw $0x8, %cx
movswl %cx, %ecx
cmpl %ecx, %eax
jge 0x12598
movq -0xd0(%rbp), %rax
movslq -0xdc(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0xd0(%rbp), %rax
movw (%rax), %ax
sarw $0x8, %ax
cwtl
cmpl $0x0, %eax
je 0x12539
cmpq $0x0, -0x20(%rbp)
jne 0x12539
jmp 0x12584
movq -0x10(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x20c10
movq %rax, -0x110(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x48b20
movq -0x118(%rbp), %rdi
movq -0x110(%rbp), %rdx
movq %rax, %rcx
leaq 0x56c56(%rip), %rsi     # 0x691d3
movb $0x0, %al
callq 0x125e0
movl -0xdc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xdc(%rbp)
jmp 0x124e2
jmp 0x1259a
movq -0xd0(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xd0(%rbp)
cmpq -0xc8(%rbp), %rax
jne 0x124d8
jmp 0x125bb
leaq 0x5d421(%rip), %rdi     # 0x6f9e3
movb $0x0, %al
callq 0x110f0
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopw %cs:(%rax,%rax)