// File: /workspace/github_c_makefile_star2_O1/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, %r12
movq 0x10(%rdi), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
movq %rdi, 0x8(%rsp)
je 0x127bc
movq 0x30(%rsp), %rbx
movzwl (%rbx), %eax
testb %al, %al
jle 0x127ad
xorl %r14d, %r14d
movq %rbx, 0x38(%rsp)
movq 0x18(%rbx,%r14,8), %r8
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x12508
testq %r8, %r8
je 0x1279b
movq 0x18(%r8), %rax
cmpl $0x1, (%rax)
jne 0x1279b
movslq 0x10(%rax), %rax
leaq (%rax,%rax,2), %rax
leaq 0x55c8c(%rip), %rcx     # 0x681b0
leaq (%rcx,%rax,8), %rdi
addq $0x8, %rdi
movw $0x7d0, 0x8(%rdi)       # imm = 0x7D0
movq (%rdi), %rdx
testq %rdx, %rdx
je 0x12796
movq %rdi, 0x40(%rsp)
movq %r14, 0x48(%rsp)
leaq (%rcx,%rax,8), %rax
movq %rax, 0x18(%rsp)
movl $0x0, 0x10(%rsp)
movq %rdx, %r14
movq %r8, 0x28(%rsp)
movq %rdx, 0x50(%rsp)
movzwl (%r14), %eax
testb %al, %al
jle 0x1275a
leaq 0x18(%r14), %r13
leaq 0x10(%r14), %rcx
movq %rcx, 0x20(%rsp)
xorl %ebx, %ebx
movslq %ebx, %r15
movq (%r13,%r15,8), %rcx
movq %rcx, %rbp
andq $-0x4, %rbp
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x125a3
testq %rbp, %rbp
je 0x12738
cmpq %rbp, 0x8(%r8)
je 0x12622
testb $0x1, %cl
jne 0x12738
movq 0x10(%r12), %rsi
movq %rbp, %rdi
callq 0x11a56
testq %rax, %rax
je 0x126e2
movq 0x18(%rax), %rdi
movl (%rdi), %eax
cmpl $0x1, %eax
je 0x1262f
testl %eax, %eax
jne 0x12674
addl $-0x6, %eax
leaq 0x55bcb(%rip), %rcx     # 0x681b0
movq %rcx, %r12
cmpq $0x0, 0x8(%r12)
je 0x125fb
addq $0x18, %r12
incl %eax
jne 0x125e8
xorl %r12d, %r12d
testq %r12, %r12
je 0x1274a
movl $0x1, (%rdi)
movq %r12, %rax
subq %rcx, %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
movl %eax, 0x10(%rdi)
jmp 0x126aa
movl $0xffffff9c, 0x10(%rsp) # imm = 0xFFFFFF9C
jmp 0x12738
movslq 0x10(%rdi), %rax
leaq (%rax,%rax,2), %rax
leaq 0x55b72(%rip), %rcx     # 0x681b0
leaq (%rcx,%rax,8), %r12
cmpq $0x0, 0x8(%r12)
je 0x126aa
movzwl 0x10(%r12), %eax
cmpl $0x3e8, %eax            # imm = 0x3E8
ja 0x126aa
xorl %r12d, %r12d
cmpq $0x0, 0x8(%r12,%rcx)
je 0x1269e
addq $0x18, %r12
cmpl $0x90, %r12d
jne 0x1265a
xorl %r12d, %r12d
jmp 0x126a1
movq 0x18(%rsp), %rax
movq (%rax), %r12
callq 0x11b19
leaq 0x33cad(%rip), %rsi     # 0x46335
movq %r12, %rdx
movq %rax, %rcx
leaq 0x3405a(%rip), %r8      # 0x466ef
xorl %eax, %eax
callq 0x11334
jmp 0x126e2
addq %rcx, %r12
testq %r12, %r12
je 0x1274a
cmpq 0x18(%rsp), %r12
je 0x126e2
movq 0x18(%rsp), %rax
movq (%rax), %rdx
movq (%r12), %rcx
leaq 0x33c71(%rip), %rsi     # 0x46335
leaq 0x34024(%rip), %r8      # 0x466ef
xorl %eax, %eax
callq 0x11334
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x111ba
leaq (,%r15,8), %rax
addq %r13, %rax
movsbq (%r14), %rcx
movq 0x20(%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
cmpq %rcx, %rax
jae 0x1271e
movq 0x8(%rsp), %r12
movq 0x28(%rsp), %r8
leaq 0x8(%rax), %rdx
movq 0x8(%rax), %rsi
movq %rsi, (%rax)
movq %rdx, %rax
cmpq %rcx, %rdx
jb 0x12709
jmp 0x1272b
movq %rax, %rdx
movq 0x8(%rsp), %r12
movq 0x28(%rsp), %r8
movl $0xf0f0f0f0, %eax       # imm = 0xF0F0F0F0
movq %rax, (%rdx)
decb (%r14)
decl %ebx
incl %ebx
movl (%r14), %eax
movsbl %al, %ecx
cmpl %ecx, %ebx
jl 0x12581
jmp 0x1275a
incl 0x10(%rsp)
movq 0x8(%rsp), %r12
movq 0x28(%rsp), %r8
jmp 0x12738
movq 0x10(%r14), %r14
movq 0x50(%rsp), %rdx
cmpq %rdx, %r14
jne 0x12566
movq 0x40(%rsp), %rdi
callq 0x285f5
cmpl $0x0, 0x10(%rsp)
movq 0x38(%rsp), %rbx
movq 0x48(%rsp), %r14
jle 0x1279b
movq %r12, %rdi
movq 0x18(%rsp), %rsi
callq 0x11883
jmp 0x1279b
callq 0x285f5
incq %r14
movl (%rbx), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x124f0
movq 0x10(%rbx), %rbx
cmpq 0x30(%rsp), %rbx
jne 0x124dd
movq 0x10(%r12), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x12b13
leaq 0x559da(%rip), %rsi     # 0x681b0
movq 0x20(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0x12b04
xorl %r14d, %r14d
movq %rdx, 0x10(%rsp)
movq 0x18(%rdx,%r14,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x12802
testq %rcx, %rcx
je 0x12844
movq 0x8(%rcx), %rbp
movq 0x18(%rcx), %r13
movl 0x4(%rbp), %eax
cmpl $0x3, %eax
je 0x12819
cmpl $0x6, %eax
je 0x1282f
jmp 0x1285c
movq 0x18(%rbp), %rax
testq %rax, %rax
je 0x1285c
movl (%rax), %eax
andl $0x7f, %eax
addl $-0x47, %eax
cmpl $0x1, %eax
ja 0x1285c
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x12b22
leaq 0x5596c(%rip), %rsi     # 0x681b0
incq %r14
movq 0x10(%rsp), %rdx
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x127ee
jmp 0x12b04
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %rax
movq 0x8(%rsi,%rax,8), %rcx
testq %rcx, %rcx
je 0x1291f
leaq (%rsi,%rax,8), %rax
movq %rcx, %rdx
movzwl (%rdx), %esi
movsbl %sil, %edi
testw %di, %di
jle 0x128bb
movzwl %di, %edi
xorl %r8d, %r8d
movzwl %si, %r9d
cmpl $0x100, %r9d            # imm = 0x100
setb %r10b
movq 0x18(%rdx,%r8,8), %r9
andq $-0x4, %r9
setne %r11b
orb %r10b, %r11b
cmpb $0x1, %r11b
jne 0x128b3
cmpq %r9, %rbp
je 0x128cc
incq %r8
cmpq %r8, %rdi
jne 0x12889
movq 0x10(%rdx), %rdx
cmpq %rcx, %rdx
jne 0x12877
xorl %r15d, %r15d
jmp 0x129be
movl (%r13), %ecx
testl %ecx, %ecx
je 0x1292a
cmpl $0x1, %ecx
jne 0x12992
movl 0x10(%r13), %ecx
movl $0x1, %r15d
cmpq %rcx, %rbx
leaq 0x558bf(%rip), %rsi     # 0x681b0
je 0x129c5
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax), %rdx
movq (%rsi,%rcx,8), %rcx
leaq 0x33a29(%rip), %rsi     # 0x46335
leaq 0x33e10(%rip), %r8      # 0x46723
xorl %eax, %eax
callq 0x11334
jmp 0x129be
movl $0x6, %r15d
jmp 0x129c5
movl 0x10(%rax), %ecx
movl $0xfff8, %edx           # imm = 0xFFF8
andl %edx, %ecx
cmpl $0x3e8, %ecx            # imm = 0x3E8
jae 0x12950
movl $0x1, (%r13)
movl %ebx, 0x10(%r13)
movw $0x7d0, 0x10(%rax)      # imm = 0x7D0
jmp 0x129b8
leaq 0x55869(%rip), %r15     # 0x681c0
xorl %r12d, %r12d
cmpq $0x0, -0x8(%r15)
je 0x129eb
incq %r12
addq $0x18, %r15
cmpq $0x6, %r12
jne 0x1295a
movl $0x2, (%r13)
movl 0x5ac44(%rip), %ecx     # 0x6d5c4
leal 0x4(%rcx), %edx
movl %edx, 0x5ac3b(%rip)     # 0x6d5c4
movl %ecx, 0x10(%r13)
movq 0x8(%rsp), %r12
movq (%rax), %r15
movq %r13, %rdi
callq 0x11b19
leaq 0x33991(%rip), %rsi     # 0x46335
movq %r15, %rdx
movq %rax, %rcx
leaq 0x33d72(%rip), %r8      # 0x46723
xorl %eax, %eax
callq 0x11334
movl $0x1, %r15d
leaq 0x557eb(%rip), %rsi     # 0x681b0
cmpl $0x6, %r15d
je 0x129d0
testl %r15d, %r15d
jne 0x129d3
xorl %r15d, %r15d
testl %r15d, %r15d
jne 0x12844
incq %rbx
cmpq $0x6, %rbx
jne 0x1285e
jmp 0x12a26
movq (%rax), %rdx
movq -0x10(%r15), %rcx
leaq 0x3393c(%rip), %rsi     # 0x46335
leaq 0x33d23(%rip), %r8      # 0x46723
xorl %eax, %eax
callq 0x11334
movl $0x1, (%r13)
movl %r12d, 0x10(%r13)
movw $0x7d0, (%r15)          # imm = 0x7D0
movl $0x1, %r15d
movq 0x8(%rsp), %r12
jmp 0x129be
movq 0x18(%r12), %rsi
movq %rbp, %rdi
callq 0x11a56
testq %rax, %rax
jne 0x12a55
movq 0x8(%r12), %rsi
movq %rbp, %rdi
callq 0x11a56
testq %rax, %rax
leaq 0x55761(%rip), %rsi     # 0x681b0
je 0x12844
movl (%r13), %ecx
movq 0x18(%rax), %rdi
cmpl $0x1, %ecx
je 0x12a7b
testl %ecx, %ecx
jne 0x12ab3
movq 0x10(%rdi), %rax
movq %rax, 0x10(%r13)
movups (%rdi), %xmm0
movups %xmm0, (%r13)
jmp 0x1283d
callq 0x11b19
movslq 0x10(%r13), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq 0x55721(%rip), %rbx     # 0x681b0
movq (%rbx,%rcx,8), %rcx
leaq 0x3389b(%rip), %rsi     # 0x46335
movq %rax, %rdx
leaq 0x33c5e(%rip), %r8      # 0x46702
xorl %eax, %eax
callq 0x11334
movq %rbx, %rsi
jmp 0x12844
cmpq %r13, %rdi
leaq 0x556f3(%rip), %rsi     # 0x681b0
je 0x12844
cmpl (%rdi), %ecx
jne 0x12ad4
movl 0x10(%r13), %eax
cmpl 0x10(%rdi), %eax
je 0x12844
callq 0x11b19
movq %rax, %r15
movq %r13, %rdi
callq 0x11b19
leaq 0x3384a(%rip), %rsi     # 0x46335
movq %r15, %rdx
movq %rax, %rcx
leaq 0x33c0a(%rip), %r8      # 0x46702
xorl %eax, %eax
callq 0x11334
jmp 0x1283d
movq 0x10(%rdx), %rdx
cmpq 0x20(%rsp), %rdx
jne 0x127db
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq