// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/example.c
// Function: generate_output_storage
static void generate_output_storage(struct bb_state *state)
{
	struct storage_hash *entry;

	/* Go through the fixed outputs, making sure we have those regs free */
	FOR_EACH_PTR(state->outputs, entry) {
		struct storage *out = entry->storage;
		if (out->type == REG_REG) {
			struct hardreg *reg = hardregs + out->regno;
			pseudo_t p;
			int flushme = 0;

			reg->busy = REG_FIXED;
			FOR_EACH_PTR_TAG(reg->contains, p) {
				if (p == entry->pseudo) {
					flushme = -100;
					continue;
				}
				if (CURRENT_TAG(p) & TAG_DEAD)
					continue;

				/* Try to write back the pseudo to where it should go ... */
				if (final_pseudo_flush(state, p, reg)) {
					DELETE_CURRENT_PTR(p);
					continue;
				}
				flushme++;
			} END_FOR_EACH_PTR(p);
			PACK_PTR_LIST(&reg->contains);
			if (flushme > 0)
				flush_reg(state, reg);
		}
	} END_FOR_EACH_PTR(entry);

	FOR_EACH_PTR(state->outputs, entry) {
		fill_output(state, entry->pseudo, entry->storage);
	} END_FOR_EACH_PTR(entry);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, (%rsp)
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x129ea
leaq 0x53d66(%rip), %rdx     # 0x661b0
movq %rax, %rbx
movq (%rsp), %r12
movq %rax, 0x28(%rsp)
movzwl (%rbx), %eax
testb %al, %al
jle 0x1272a
xorl %r14d, %r14d
movq %rbx, 0x30(%rsp)
movq 0x18(%rbx,%r14,8), %r8
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x12481
testq %r8, %r8
je 0x12718
movq 0x18(%r8), %rax
cmpl $0x1, (%rax)
jne 0x12718
movslq 0x10(%rax), %rax
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rax,8), %rdi
addq $0x8, %rdi
movw $0x7d0, 0x8(%rdi)       # imm = 0x7D0
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x1270c
movq %rdi, 0x38(%rsp)
movq %r14, 0x40(%rsp)
leaq (%rdx,%rax,8), %rax
movq %rax, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
movq %rcx, %rdi
movq %r8, 0x18(%rsp)
movq %rcx, 0x48(%rsp)
movzwl (%rdi), %r15d
testb %r15b, %r15b
jle 0x126c9
leaq 0x18(%rdi), %r13
leaq 0x10(%rdi), %rax
movq %rax, 0x50(%rsp)
xorl %ebx, %ebx
movq %rdi, 0x20(%rsp)
movslq %ebx, %r14
movq (%r13,%r14,8), %rax
movq %rax, %rbp
andq $-0x4, %rbp
movzwl %r15w, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x1251d
testq %rbp, %rbp
je 0x126bb
cmpq %rbp, 0x8(%r8)
je 0x12578
testb $0x1, %al
jne 0x126bb
movq 0x10(%r12), %rsi
movq %rbp, %rdi
callq 0x119f0
testq %rax, %rax
je 0x1264d
movq 0x18(%rax), %rdi
movl (%rdi), %eax
cmpl $0x1, %eax
je 0x12585
testl %eax, %eax
jne 0x125dc
addl $-0x6, %eax
xorl %ecx, %ecx
leaq 0x53c50(%rip), %r12     # 0x661b0
cmpq $0x0, 0x8(%r12)
je 0x12606
addq $0x18, %r12
decl %ecx
cmpl %ecx, %eax
jne 0x12560
jmp 0x125c5
movl $0xffffff9c, 0x8(%rsp)  # imm = 0xFFFFFF9C
jmp 0x126bb
movslq 0x10(%rdi), %rax
leaq (%rax,%rax,2), %rax
leaq 0x53c1c(%rip), %rcx     # 0x661b0
leaq (%rcx,%rax,8), %r12
cmpq $0x0, 0x8(%r12)
je 0x12616
movzwl 0x10(%r12), %eax
cmpl $0x3e8, %eax            # imm = 0x3E8
ja 0x12616
xorl %r12d, %r12d
cmpq $0x0, 0x8(%r12,%rcx)
je 0x12613
addq $0x18, %r12
cmpl $0x90, %r12d
jne 0x125b0
incl 0x8(%rsp)
movq (%rsp), %r12
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %rdi
jmp 0x126bb
movq 0x10(%rsp), %rax
movq (%rax), %r12
callq 0x11a9e
leaq 0x32d45(%rip), %rsi     # 0x45335
movq %r12, %rdx
movq %rax, %rcx
leaq 0x330f2(%rip), %r8      # 0x456ef
xorl %eax, %eax
callq 0x11320
jmp 0x1264d
movl $0x1, (%rdi)
negl %ecx
movl %ecx, 0x10(%rdi)
jmp 0x12616
addq %rcx, %r12
cmpq 0x10(%rsp), %r12
je 0x1264d
movq 0x10(%rsp), %rax
movq (%rax), %rdx
movq (%r12), %rcx
leaq 0x32d05(%rip), %rsi     # 0x45335
leaq 0x330b8(%rip), %r8      # 0x456ef
xorl %eax, %eax
callq 0x11320
movq (%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x111a6
leaq (,%r14,8), %rax
addq %r13, %rax
movq 0x20(%rsp), %rdi
movsbq (%rdi), %rcx
movq 0x50(%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
cmpq %rcx, %rax
jae 0x1268d
movq (%rsp), %r12
movq 0x18(%rsp), %r8
leaq 0x8(%rax), %rdx
movq 0x8(%rax), %rsi
movq %rsi, (%rax)
movq %rdx, %rax
cmpq %rcx, %rdx
jb 0x12678
jmp 0x12699
movq %rax, %rdx
movq (%rsp), %r12
movq 0x18(%rsp), %r8
movl $0xf0f0f0f0, %eax       # imm = 0xF0F0F0F0
movq %rax, (%rdx)
movl (%rdi), %r15d
leal -0x1(%r15), %eax
movzbl %al, %eax
andl $0xffffff00, %r15d      # imm = 0xFFFFFF00
orl %eax, %r15d
movw %r15w, (%rdi)
decl %ebx
incl %ebx
movsbl %r15b, %eax
cmpl %eax, %ebx
jl 0x124f9
movq 0x10(%rdi), %rdi
movq 0x48(%rsp), %rcx
cmpq %rcx, %rdi
jne 0x124d8
movq 0x38(%rsp), %rdi
callq 0x282e3
leaq 0x53ac4(%rip), %rdx     # 0x661b0
cmpl $0x0, 0x8(%rsp)
movq 0x30(%rsp), %rbx
movq 0x40(%rsp), %r14
jle 0x12718
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x11810
jmp 0x12711
callq 0x282e3
leaq 0x53a98(%rip), %rdx     # 0x661b0
incq %r14
movl (%rbx), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x12469
movq 0x10(%rbx), %rbx
movq 0x28(%rsp), %rax
cmpq %rax, %rbx
jne 0x12456
movq 0x10(%r12), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x129ea
leaq 0x53a5a(%rip), %r15     # 0x661b0
movq 0x8(%rsp), %r12
movzwl (%r12), %eax
testb %al, %al
jle 0x129da
xorl %r14d, %r14d
movq 0x18(%r12,%r14,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x12783
testq %rcx, %rcx
je 0x1293a
movq 0x8(%rcx), %rbp
movq 0x18(%rcx), %r13
movl 0x4(%rbp), %eax
cmpl $0x3, %eax
je 0x1279a
cmpl $0x6, %eax
je 0x127b0
jmp 0x127c4
movq 0x18(%rbp), %rax
testq %rax, %rax
je 0x127c4
movl (%rax), %eax
andl $0x7f, %eax
addl $-0x47, %eax
cmpl $0x1, %eax
ja 0x127c4
movq (%rsp), %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x129f9
jmp 0x1293a
xorl %ecx, %ecx
leaq (%rcx,%rcx,2), %rax
movq 0x8(%r15,%rax,8), %rdx
testq %rdx, %rdx
je 0x12828
leaq (%r15,%rax,8), %rax
movq %rdx, %rsi
movzwl (%rsi), %edi
movsbl %dil, %r8d
testw %r8w, %r8w
jle 0x1281f
movzwl %r8w, %r8d
xorl %r9d, %r9d
movzwl %di, %r10d
cmpl $0x100, %r10d           # imm = 0x100
setb %r11b
movq 0x18(%rsi,%r9,8), %r10
andq $-0x4, %r10
setne %bl
orb %r11b, %bl
cmpb $0x1, %bl
jne 0x12817
cmpq %r10, %rbp
je 0x12889
incq %r9
cmpq %r9, %r8
jne 0x127ef
movq 0x10(%rsi), %rsi
cmpq %rdx, %rsi
jne 0x127db
incq %rcx
cmpq $0x6, %rcx
jne 0x127c6
movq (%rsp), %rbx
movq 0x18(%rbx), %rsi
movq %rbp, %rdi
callq 0x119f0
testq %rax, %rax
jne 0x1285b
movq 0x8(%rbx), %rsi
movq %rbp, %rdi
callq 0x119f0
testq %rax, %rax
je 0x1293a
movl (%r13), %ecx
movq 0x18(%rax), %rdi
cmpl $0x1, %ecx
je 0x12982
testl %ecx, %ecx
jne 0x1299f
movq 0x10(%rdi), %rax
movq %rax, 0x10(%r13)
movups (%rdi), %xmm0
movups %xmm0, (%r13)
jmp 0x1293a
movl (%r13), %edx
testl %edx, %edx
je 0x128b6
cmpl $0x1, %edx
jne 0x12914
movslq 0x10(%r13), %rdx
cmpl %ecx, %edx
je 0x1293a
leaq (%rdx,%rdx,2), %rcx
movq (%rax), %rdx
movq (%r15,%rcx,8), %rcx
leaq 0x32a81(%rip), %rsi     # 0x45335
jmp 0x1292c
movl 0x10(%rax), %edx
movl $0xfff8, %esi           # imm = 0xFFF8
andl %esi, %edx
cmpl $0x3e8, %edx            # imm = 0x3E8
jae 0x128dc
movl $0x1, (%r13)
movl %ecx, 0x10(%r13)
movw $0x7d0, 0x10(%rax)      # imm = 0x7D0
jmp 0x1293a
leaq 0x538dd(%rip), %rbx     # 0x661c0
xorl %ebp, %ebp
cmpq $0x0, -0x8(%rbx)
je 0x12953
incq %rbp
addq $0x18, %rbx
cmpq $0x6, %rbp
jne 0x128e5
movl $0x2, (%r13)
movl 0x58cbd(%rip), %ecx     # 0x6b5c4
leal 0x4(%rcx), %edx
movl %edx, 0x58cb4(%rip)     # 0x6b5c4
movl %ecx, 0x10(%r13)
movq (%rax), %rbp
movq %r13, %rdi
callq 0x11a9e
leaq 0x32a0f(%rip), %rsi     # 0x45335
movq %rbp, %rdx
movq %rax, %rcx
leaq 0x32df0(%rip), %r8      # 0x45723
xorl %eax, %eax
callq 0x11320
incq %r14
movl (%r12), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x1276b
jmp 0x129da
movq (%rax), %rdx
movq -0x10(%rbx), %rcx
leaq 0x329d4(%rip), %rsi     # 0x45335
leaq 0x32dbb(%rip), %r8      # 0x45723
xorl %eax, %eax
callq 0x11320
movl $0x1, (%r13)
movl %ebp, 0x10(%r13)
movw $0x7d0, (%rbx)          # imm = 0x7D0
jmp 0x1293a
callq 0x11a9e
movslq 0x10(%r13), %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%r15,%rcx,8), %rcx
leaq 0x3299b(%rip), %rsi     # 0x45335
movq %rax, %rdx
jmp 0x129ce
cmpq %r13, %rdi
je 0x1293a
cmpl (%rdi), %ecx
jne 0x129b1
movl 0x10(%r13), %eax
cmpl 0x10(%rdi), %eax
je 0x1293a
callq 0x11a9e
movq %rax, %rbp
movq %r13, %rdi
callq 0x11a9e
leaq 0x3296d(%rip), %rsi     # 0x45335
movq %rbp, %rdx
movq %rax, %rcx
leaq 0x32d2d(%rip), %r8      # 0x45702
jmp 0x12933
movq 0x10(%r12), %r12
cmpq 0x8(%rsp), %r12
jne 0x1275b
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq