// File: /workspace/github_c_makefile_star2_O3/algorithm-archivists[P]GathVL/vis_test.cpp
// Function: second_scene(camera&, scene&)
void second_scene(camera& cam, scene& world) {
    auto title = std::make_shared<text>(vec{0, 720}, 50, "GathVL Test");

    auto y_axis = std::make_shared<line>(vec{50, 10}, vec{50, 610});
    auto x_axis = std::make_shared<line>(vec{1250, 610}, vec{50, 610});

    std::vector<vec> exp_points;

    vec origin = {50, 610};

    for (int i = 0; i < 100; ++i) {
        exp_points.emplace_back(i * 12, std::exp(i * 0.06) / 0.68);
    }

    auto exp_curve =
        std::make_shared<curve>(std::vector<vec>(), origin);

    exp_curve->add_animator<vector_animator<vec>>(0, 50, 0, exp_points,
                                                  &exp_curve->points);

    world.add_object(title, 0);
    world.add_object(y_axis, 0);
    world.add_object(x_axis, 0);
    world.add_object(exp_curve, 0);

    for (int i = 0; i < 51; ++i) {
        world.update(i);
        cam.encode_frame(world);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rsi, %r15
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movhpd 0x1d0de(%rip), %xmm0    # xmm0 = xmm0[0],mem[0]
leaq 0xa0(%rsp), %rcx
movapd %xmm0, (%rcx)
leaq 0x20(%rsp), %r8
movl $0x32, (%r8)
leaq 0x58(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x1d16a(%rip), %r9      # 0x230d0
leaq 0x50(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
callq 0x694e
movl $0x70, %edi
callq 0x5100
movq %rax, %r13
movq %rbx, 0xd0(%rsp)
movabsq $0x100000001, %r14      # imm = 0x100000001
movq %r14, 0x8(%rax)
leaq 0x2687e(%rip), %r12     # 0x2c820
movq %r12, (%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
movq $0x0, 0x28(%rax)
leaq 0x26b73(%rip), %rbx     # 0x2cb30
addq $0x10, %rbx
movq %rbx, 0x10(%rax)
movaps 0x1d074(%rip), %xmm0    # 0x23040
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x40(%rax)
movaps 0x1d0b5(%rip), %xmm0    # 0x23090
movups %xmm0, 0x50(%rax)
movapd 0x1d0b9(%rip), %xmm0    # 0x230a0
movupd %xmm0, 0x60(%rax)
movl $0x70, %edi
movq %rax, 0x48(%rsp)
callq 0x5100
addq $0x10, %r13
movq %r13, 0xc8(%rsp)
movq %r14, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %rcx, 0xc0(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
xorl %r14d, %r14d
movq %r14, 0x28(%rax)
movq %rbx, 0x10(%rax)
movaps 0x1d008(%rip), %xmm1    # 0x23040
movups %xmm1, 0x30(%rax)
movups %xmm1, 0x40(%rax)
movaps 0x1d069(%rip), %xmm1    # 0x230b0
movups %xmm1, 0x50(%rax)
movq %rax, 0x40(%rsp)
movaps 0x1d049(%rip), %xmm1    # 0x230a0
movups %xmm1, 0x60(%rax)
leaq 0xa0(%rsp), %r13
movq %r14, 0x10(%r13)
movapd %xmm0, (%r13)
movaps %xmm1, 0xe0(%rsp)
leaq 0x8(%rsp), %rbp
leaq 0x20(%rsp), %rbx
xorl %r12d, %r12d
movl %r14d, 0x8(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
mulsd 0x1cf89(%rip), %xmm0    # 0x23020
callq 0x50e0
divsd 0x1cf84(%rip), %xmm0    # 0x23028
movsd %xmm0, 0x20(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x6606
incl %r12d
addl $0xc, %r14d
cmpl $0x64, %r12d
jne 0x6082
xorl %eax, %eax
leaq 0x20(%rsp), %rcx
movq %rax, 0x10(%rcx)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rcx)
leaq 0x10(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x8(%rsp), %rsi
leaq 0x1c(%rsp), %rdx
leaq 0xe0(%rsp), %r8
callq 0x7162
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
movq 0x48(%rsp), %r14
movq 0x40(%rsp), %r12
movq 0xd0(%rsp), %r13
je 0x6121
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
movq 0x8(%rsp), %rdi
xorl %eax, %eax
leaq 0x1c(%rsp), %rsi
movl %eax, (%rsi)
leaq 0xdc(%rsp), %rdx
movl $0x32, (%rdx)
leaq 0xd8(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x50(%rdi), %rax
leaq 0x20(%rsp), %r9
movq %rax, (%r9)
leaq 0xa0(%rsp), %r8
callq 0x664a
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
testq %rax, %rax
je 0x6194
movq 0x26e4a(%rip), %rcx     # 0x2cfd0
cmpb $0x0, (%rcx)
je 0x6190
incl 0x8(%rax)
jmp 0x6194
lock
incl 0x8(%rax)
leaq 0x90(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7d86
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x61b8
callq 0x67ea
movq 0xc8(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r14, 0x88(%rsp)
movq 0x26df9(%rip), %rbx     # 0x2cfd0
cmpb $0x0, (%rbx)
je 0x61e2
incl 0x8(%r14)
jmp 0x61e7
lock
incl 0x8(%r14)
leaq 0x80(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7d86
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x620b
callq 0x67ea
movq 0xc0(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %r12, 0x78(%rsp)
cmpb $0x0, (%rbx)
je 0x6229
incl 0x8(%r12)
jmp 0x622f
lock
incl 0x8(%r12)
leaq 0x70(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7d86
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x624d
callq 0x67ea
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x6274
cmpb $0x0, (%rbx)
je 0x6270
incl 0x8(%rax)
jmp 0x6274
lock
incl 0x8(%rax)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7d86
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x6292
callq 0x67ea
xorl %ebx, %ebx
movq %r15, %rdi
movl %ebx, %esi
callq 0x7d58
movq %r13, %rdi
movq %r15, %rsi
callq 0x795e
incl %ebx
cmpl $0x33, %ebx
jne 0x6294
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x62bf
callq 0x67ea
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x62dc
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
movq %r12, %rdi
callq 0x67ea
movq %r14, %rdi
callq 0x67ea
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x62fb
callq 0x67ea
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x68(%rsp), %rdi
jmp 0x6339
movq %rax, %r15
movq 0x78(%rsp), %rdi
jmp 0x6339
movq %rax, %r15
movq 0x88(%rsp), %rdi
jmp 0x6339
movq %rax, %r15
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x6375
callq 0x67ea
jmp 0x6375
jmp 0x6372
movq %rax, %r15
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x6384
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
jmp 0x6384
movq %rax, %r15
jmp 0x63ab
movq %rax, %r15
jmp 0x63b5
movq %rax, %r15
jmp 0x6384
movq %rax, %r15
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6384
callq 0x67ea
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x63a1
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
movq 0x40(%rsp), %rdi
callq 0x67ea
movq 0x48(%rsp), %rdi
callq 0x67ea
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x63c4
callq 0x67ea
movq %r15, %rdi
callq 0x5500