// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x178(%rbp)
xorps %xmm0, %xmm0
movsd 0x34eb7(%rip), %xmm1    # 0x3b030
callq 0x6880
movq -0x178(%rbp), %rsi
movl $0x32, -0x34(%rbp)
leaq 0x34efd(%rip), %rcx     # 0x3b090
leaq -0x20(%rbp), %rdi
leaq -0x34(%rbp), %rdx
callq 0x6800
leaq -0x58(%rbp), %rdi
movsd 0x34e74(%rip), %xmm0    # 0x3b020
movsd 0x34e84(%rip), %xmm1    # 0x3b038
callq 0x6880
jmp 0x61bb
leaq -0x78(%rbp), %rdi
movsd 0x34e59(%rip), %xmm0    # 0x3b020
movsd 0x34e71(%rip), %xmm1    # 0x3b040
callq 0x6880
jmp 0x61d6
leaq -0x48(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0x6bb0
jmp 0x61e9
leaq -0x98(%rbp), %rdi
movsd 0x34e50(%rip), %xmm0    # 0x3b048
movsd 0x34e40(%rip), %xmm1    # 0x3b040
callq 0x6880
jmp 0x6207
leaq -0xa8(%rbp), %rdi
movsd 0x34e0a(%rip), %xmm0    # 0x3b020
movsd 0x34e22(%rip), %xmm1    # 0x3b040
callq 0x6880
jmp 0x6225
leaq -0x88(%rbp), %rdi
leaq -0x98(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x6bb0
jmp 0x6241
leaq -0xc0(%rbp), %rdi
callq 0x6c30
leaq -0xd0(%rbp), %rdi
movsd 0x34dc4(%rip), %xmm0    # 0x3b020
movsd 0x34ddc(%rip), %xmm1    # 0x3b040
callq 0x6880
jmp 0x626b
movl $0x0, -0xd4(%rbp)
cmpl $0x64, -0xd4(%rbp)
jge 0x6325
movl -0xd4(%rbp), %ecx
shll $0x2, %ecx
movl %ecx, %eax
leal (%rax,%rax,2), %eax
movl %eax, -0xd8(%rbp)
cvtsi2sdl -0xd4(%rbp), %xmm0
movsd 0x34daa(%rip), %xmm1    # 0x3b050
mulsd %xmm1, %xmm0
callq 0x50c0
movsd 0x34da1(%rip), %xmm1    # 0x3b058
divsd %xmm1, %xmm0
movsd %xmm0, -0xe0(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0x6c50
jmp 0x62df
jmp 0x62e1
movl -0xd4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd4(%rbp)
jmp 0x6275
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x665e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x6655
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x663d
xorps %xmm0, %xmm0
movaps %xmm0, -0x110(%rbp)
movq $0x0, -0x100(%rbp)
leaq -0x110(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0x6c30
movq -0x180(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
callq 0x6cd0
jmp 0x6369
leaq -0x110(%rbp), %rdi
callq 0x6d50
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0x6db0
movq -0x190(%rbp), %rdi
movq %rax, -0x188(%rbp)
movl $0x0, -0x114(%rbp)
movl $0x32, -0x118(%rbp)
movl $0x0, -0x11c(%rbp)
callq 0x6db0
movq -0x188(%rbp), %rdi
addq $0x50, %rax
movq %rax, -0x128(%rbp)
leaq -0x114(%rbp), %rsi
leaq -0x118(%rbp), %rdx
leaq -0x11c(%rbp), %rcx
leaq -0xc0(%rbp), %r8
leaq -0x128(%rbp), %r9
callq 0x6dd0
jmp 0x63f5
movq -0x10(%rbp), %rax
movq %rax, -0x1a0(%rbp)
leaq -0x138(%rbp), %rdi
movq %rdi, -0x198(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x6aa0
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %rsi
xorl %edx, %edx
callq 0x11d20
jmp 0x642e
leaq -0x138(%rbp), %rdi
callq 0x6ad0
movq -0x10(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq -0x148(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x6e60
movq -0x1b0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
xorl %edx, %edx
callq 0x11d20
jmp 0x6473
leaq -0x148(%rbp), %rdi
callq 0x6ad0
movq -0x10(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq -0x158(%rbp), %rdi
movq %rdi, -0x1b8(%rbp)
leaq -0x88(%rbp), %rsi
callq 0x6e60
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
xorl %edx, %edx
callq 0x11d20
jmp 0x64bb
leaq -0x158(%rbp), %rdi
callq 0x6ad0
movq -0x10(%rbp), %rax
movq %rax, -0x1d0(%rbp)
leaq -0x168(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
leaq -0xf0(%rbp), %rsi
callq 0x6e90
movq -0x1d0(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
xorl %edx, %edx
callq 0x11d20
jmp 0x6503
leaq -0x168(%rbp), %rdi
callq 0x6ad0
movl $0x0, -0x16c(%rbp)
cmpl $0x33, -0x16c(%rbp)
jge 0x65f2
movq -0x10(%rbp), %rdi
movl -0x16c(%rbp), %esi
callq 0x11ca0
jmp 0x6537
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x10450
jmp 0x6546
jmp 0x6548
movl -0x16c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x16c(%rbp)
jmp 0x6519
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x6d50
jmp 0x663d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x6631
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x138(%rbp), %rdi
callq 0x6ad0
jmp 0x6631
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x148(%rbp), %rdi
callq 0x6ad0
jmp 0x6631
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x6ad0
jmp 0x6631
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x6ad0
jmp 0x6631
leaq -0xf0(%rbp), %rdi
callq 0x6ec0
leaq -0xc0(%rbp), %rdi
callq 0x6d50
leaq -0x88(%rbp), %rdi
callq 0x6ee0
leaq -0x48(%rbp), %rdi
callq 0x6ee0
leaq -0x20(%rbp), %rdi
callq 0x6b90
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
leaq -0xf0(%rbp), %rdi
callq 0x6ec0
leaq -0xc0(%rbp), %rdi
callq 0x6d50
leaq -0x88(%rbp), %rdi
callq 0x6ee0
leaq -0x48(%rbp), %rdi
callq 0x6ee0
leaq -0x20(%rbp), %rdi
callq 0x6b90
movq -0x60(%rbp), %rdi
callq 0x52d0