// File: /workspace/github_cpp_makefile_star2_O1/GUI-Graphics[P]cpuraytracing/main.cpp
// Function: initScene(gui::Scene&)
void initScene(Scene& scene) {
	auto& shapes = scene.shapes;
	for(int i = -11; i < 11; ++i) {
		for(int j = -11; j < 11; ++j) {
			Vector3 c(i + 0.9f * Math::random(), 0.2f, j + 0.9f * Math::random());
			float p = Math::random();
			if(p < 0.8f) {
				shapes.push_back(new Sphere(c, 0.2f, new Diffuse(Vector3(Math::random(), Math::random(), Math::random()))));
			} else if(p < 0.95f) {
				float r = 0.5f * (1 + Math::random());
				float g = 0.5f * (1 + Math::random());
				float b = 0.5f * (1 + Math::random());
				shapes.push_back(new Sphere(c, 0.2f, new Metal(Vector3(r, g, b), 0.5f * Math::random())));
			} else {
				shapes.push_back(new Sphere(c, 0.2f, new Dielectric(1.5f)));
			}
		}
	}
	shapes.push_back(new Sphere(Vector3(0, 1, 0), 1, new Dielectric(1.5f)));
	shapes.push_back(new Sphere(Vector3(-4, 1, 0), 1, new Diffuse(Vector3(0.4f, 0.2f, 0.1f))));
	shapes.push_back(new Sphere(Vector3(4, 1, 0), 1, new Metal(Vector3(0.7f, 0.6f, 0.5f))));
	shapes.push_back(new Sphere(Vector3(0, -1000, 0), 1000, new Diffuse(Vector3(0.5f))));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
addq $0x10, %rdi
movq %rdi, 0x20(%rsp)
movl $0xfffffff5, %ecx       # imm = 0xFFFFFFF5
leaq 0x60b9(%rip), %r14      # 0x84d8
leaq 0x743a(%rip), %r15      # 0x9860
leaq 0x48bb(%rip), %rax      # 0x6ce8
addq $0x10, %rax
movq %rax, 0x48(%rsp)
leaq 0x482b(%rip), %rax      # 0x6c68
addq $0x10, %rax
movq %rax, 0x18(%rsp)
leaq 0x48eb(%rip), %rax      # 0x6d38
addq $0x10, %rax
movq %rax, 0x68(%rsp)
leaq 0x491b(%rip), %rax      # 0x6d78
addq $0x10, %rax
movq %rax, 0x70(%rsp)
movl %ecx, 0x54(%rsp)
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movss %xmm0, 0x64(%rsp)
movl $0xfffffff5, %ebp       # imm = 0xFFFFFFF5
movq %r14, %rdi
callq 0x2bde
movss (%r15), %xmm1
movss 0x4(%r15), %xmm2
subss %xmm1, %xmm2
mulss %xmm0, %xmm2
addss %xmm1, %xmm2
movss 0x2b61(%rip), %xmm0     # 0x5004
mulss %xmm0, %xmm2
addss 0x64(%rsp), %xmm2
movss %xmm2, 0x44(%rsp)
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
movss %xmm0, 0xc(%rsp)
movq %r14, %rdi
callq 0x2bde
movss (%r15), %xmm1
movss 0x4(%r15), %xmm2
subss %xmm1, %xmm2
mulss %xmm0, %xmm2
addss %xmm1, %xmm2
mulss 0x2b1d(%rip), %xmm2     # 0x5004
addss 0xc(%rsp), %xmm2
movss %xmm2, 0xc(%rsp)
movq %r14, %rdi
callq 0x2bde
movss (%r15), %xmm2
movss 0x4(%r15), %xmm1
subss %xmm2, %xmm1
mulss %xmm0, %xmm1
addss %xmm2, %xmm1
movss 0x2aee(%rip), %xmm0     # 0x5008
ucomiss %xmm1, %xmm0
jbe 0x2651
movl $0x20, %edi
callq 0x2140
movq %rax, %r12
movl $0x18, %edi
callq 0x2140
movq %rax, %r13
movb $0x1, %bl
movq %r14, %rdi
callq 0x2bde
movss %xmm0, 0x40(%rsp)
movss (%r15), %xmm0
movss %xmm0, 0x38(%rsp)
movss 0x4(%r15), %xmm0
movss %xmm0, 0x34(%rsp)
movq %r14, %rdi
callq 0x2bde
movss %xmm0, 0x3c(%rsp)
movss (%r15), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0x4(%r15), %xmm0
movss %xmm0, 0x2c(%rsp)
movq %r14, %rdi
callq 0x2bde
movss 0x38(%rsp), %xmm1
movss 0x34(%rsp), %xmm2
subss %xmm1, %xmm2
movss 0x40(%rsp), %xmm3
mulss %xmm2, %xmm3
addss %xmm1, %xmm3
movss 0x30(%rsp), %xmm1
movss 0x2c(%rsp), %xmm2
subss %xmm1, %xmm2
movss 0x3c(%rsp), %xmm4
mulss %xmm2, %xmm4
addss %xmm1, %xmm4
movss (%r15), %xmm1
movss 0x4(%r15), %xmm2
subss %xmm1, %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movq 0x48(%rsp), %rax
movq %rax, (%r13)
movss %xmm3, 0x8(%r13)
movss %xmm4, 0xc(%r13)
movss %xmm0, 0x10(%r13)
movq %r13, 0x8(%r12)
movq 0x18(%rsp), %rax
movq %rax, (%r12)
movss 0x44(%rsp), %xmm0
movss %xmm0, 0x10(%r12)
movl $0x3e4ccccd, %eax       # imm = 0x3E4CCCCD
movl %eax, 0x14(%r12)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x18(%r12)
movl %eax, 0x1c(%r12)
movq %r12, 0x10(%rsp)
xorl %ebx, %ebx
movq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2e58
jmp 0x2873
movss 0x29b3(%rip), %xmm0     # 0x500c
ucomiss %xmm1, %xmm0
jbe 0x2802
movq %r14, %rdi
callq 0x2bde
movss %xmm0, 0x40(%rsp)
movss (%r15), %xmm0
movss %xmm0, 0x60(%rsp)
movss 0x4(%r15), %xmm0
movss %xmm0, 0x58(%rsp)
movq %r14, %rdi
callq 0x2bde
movss %xmm0, 0x3c(%rsp)
movss (%r15), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0x4(%r15), %xmm0
movss %xmm0, 0x5c(%rsp)
movq %r14, %rdi
callq 0x2bde
movss %xmm0, 0x38(%rsp)
movss (%r15), %xmm0
movss %xmm0, 0x34(%rsp)
movss 0x4(%r15), %xmm0
movss %xmm0, 0x2c(%rsp)
movl $0x20, %edi
callq 0x2140
movq %rax, %r12
movl $0x18, %edi
callq 0x2140
movq %rax, %r13
movb $0x1, %bl
movq %r14, %rdi
callq 0x2bde
movss 0x60(%rsp), %xmm1
movss 0x58(%rsp), %xmm2
subss %xmm1, %xmm2
movss 0x40(%rsp), %xmm4
mulss %xmm2, %xmm4
addss %xmm1, %xmm4
movss 0x28f5(%rip), %xmm1     # 0x5010
addss %xmm1, %xmm4
movss 0x28ed(%rip), %xmm3     # 0x5014
mulss %xmm3, %xmm4
movss 0x30(%rsp), %xmm2
movss 0x5c(%rsp), %xmm6
subss %xmm2, %xmm6
movss 0x3c(%rsp), %xmm5
mulss %xmm6, %xmm5
addss %xmm2, %xmm5
addss %xmm1, %xmm5
mulss %xmm3, %xmm5
movss 0x34(%rsp), %xmm2
movss 0x2c(%rsp), %xmm7
subss %xmm2, %xmm7
movss 0x38(%rsp), %xmm6
mulss %xmm7, %xmm6
addss %xmm2, %xmm6
addss %xmm1, %xmm6
mulss %xmm3, %xmm6
movss (%r15), %xmm1
movss 0x4(%r15), %xmm2
subss %xmm1, %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
mulss %xmm3, %xmm0
movq 0x68(%rsp), %rax
movq %rax, (%r13)
movss %xmm4, 0x8(%r13)
movss %xmm5, 0xc(%r13)
movss %xmm6, 0x10(%r13)
movss %xmm0, 0x14(%r13)
movq %r13, 0x8(%r12)
movq 0x18(%rsp), %rax
movq %rax, (%r12)
movss 0x44(%rsp), %xmm0
movss %xmm0, 0x10(%r12)
movl $0x3e4ccccd, %eax       # imm = 0x3E4CCCCD
movl %eax, 0x14(%r12)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x18(%r12)
movl %eax, 0x1c(%r12)
movq %r12, 0x10(%rsp)
xorl %ebx, %ebx
movq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2e58
jmp 0x2873
movl $0x20, %edi
callq 0x2140
movq %rax, %r12
movl $0x10, %edi
callq 0x2140
movq 0x70(%rsp), %rcx
movq %rcx, (%rax)
movl $0x3fc00000, 0x8(%rax)  # imm = 0x3FC00000
movq %rax, 0x8(%r12)
movq 0x18(%rsp), %rax
movq %rax, (%r12)
movss 0x44(%rsp), %xmm0
movss %xmm0, 0x10(%r12)
movl $0x3e4ccccd, %eax       # imm = 0x3E4CCCCD
movl %eax, 0x14(%r12)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x18(%r12)
movl %eax, 0x1c(%r12)
movq %r12, 0x10(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2e58
incl %ebp
cmpl $0xb, %ebp
jne 0x247c
movl 0x54(%rsp), %ecx
incl %ecx
cmpl $0xb, %ecx
jne 0x2466
movl $0x20, %edi
callq 0x2140
movq %rax, %r14
movb $0x1, %bl
movl $0x10, %edi
callq 0x2140
movq 0x70(%rsp), %rcx
movq %rcx, (%rax)
movl $0x3fc00000, 0x8(%rax)  # imm = 0x3FC00000
movq %rax, 0x8(%r14)
movq 0x18(%rsp), %rax
movq %rax, (%r14)
movaps 0x2768(%rip), %xmm0     # 0x5030
movups %xmm0, 0x10(%r14)
leaq 0x10(%rsp), %rsi
movq %r14, (%rsi)
xorl %ebx, %ebx
movq 0x20(%rsp), %rdi
callq 0x2e58
movl $0x20, %edi
callq 0x2140
movq %rax, %r14
movl $0x18, %edi
callq 0x2140
movq 0x48(%rsp), %rcx
movq %rcx, (%rax)
movabsq $0x3e4ccccd3ecccccd, %rcx # imm = 0x3E4CCCCD3ECCCCCD
movq %rcx, 0x8(%rax)
movl $0x3dcccccd, 0x10(%rax) # imm = 0x3DCCCCCD
movq %rax, 0x8(%r14)
movq 0x18(%rsp), %rax
movq %rax, (%r14)
movaps 0x2718(%rip), %xmm0     # 0x5040
movups %xmm0, 0x10(%r14)
leaq 0x10(%rsp), %rsi
movq %r14, (%rsi)
movq 0x20(%rsp), %rdi
callq 0x2e58
movl $0x20, %edi
callq 0x2140
movq %rax, %r14
movl $0x18, %edi
callq 0x2140
movq 0x68(%rsp), %rcx
movq %rcx, (%rax)
movaps 0x26eb(%rip), %xmm0     # 0x5050
movups %xmm0, 0x8(%rax)
movq %rax, 0x8(%r14)
movq 0x18(%rsp), %rax
movq %rax, (%r14)
movaps 0x26e4(%rip), %xmm0     # 0x5060
movups %xmm0, 0x10(%r14)
leaq 0x10(%rsp), %rsi
movq %r14, (%rsi)
movq 0x20(%rsp), %rdi
callq 0x2e58
movl $0x20, %edi
callq 0x2140
movq %rax, %r14
movl $0x18, %edi
callq 0x2140
movq 0x48(%rsp), %rcx
movq %rcx, (%rax)
movabsq $0x3f0000003f000000, %rcx # imm = 0x3F0000003F000000
movq %rcx, 0x8(%rax)
movl $0x3f000000, 0x10(%rax) # imm = 0x3F000000
movq %rax, 0x8(%r14)
movq 0x18(%rsp), %rax
movq %rax, (%r14)
movaps 0x2696(%rip), %xmm0     # 0x5070
movups %xmm0, 0x10(%r14)
leaq 0x10(%rsp), %rsi
movq %r14, (%rsi)
movq 0x20(%rsp), %rdi
callq 0x2e58
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2a08
jmp 0x2a0f
jmp 0x2a08
jmp 0x2a0f
movq %rax, %r15
xorl %eax, %eax
jmp 0x2a14
movq %rax, %r15
movb $0x1, %al
testb %al, %al
jne 0x2a21
jmp 0x2a60
movq %rax, %r15
testb %bl, %bl
je 0x2a60
movl $0x20, %esi
movq %r14, %rdi
jmp 0x2a5b
jmp 0x2a34
movq %rax, %r15
jmp 0x2a53
jmp 0x2a3b
movq %rax, %r15
movb $0x1, %bl
jmp 0x2a4f
movq %rax, %r15
testb %bl, %bl
je 0x2a4f
movl $0x18, %esi
movq %r13, %rdi
callq 0x2150
testb %bl, %bl
je 0x2a60
movl $0x20, %esi
movq %r12, %rdi
callq 0x2150
movq %r15, %rdi
callq 0x2230