// File: /workspace/github_c_makefile_star2_O2/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 $0xe8, %rsp
movq %rsi, %rbx
movq %rdi, 0x48(%rsp)
xorps %xmm0, %xmm0
movhps 0x1529a(%rip), %xmm0    # xmm0 = xmm0[0,1],mem[0,1]
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
leaq 0x10(%rsp), %r12
movl $0x32, (%r12)
leaq 0x1533d(%rip), %rcx     # 0x1b0d0
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x6197
movaps 0x152d6(%rip), %xmm0    # 0x1b080
movaps %xmm0, (%r15)
movapd 0x152da(%rip), %xmm0    # 0x1b090
movapd %xmm0, (%r12)
leaq 0x60(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x625b
movaps 0x152c9(%rip), %xmm0    # 0x1b0a0
leaq 0x30(%rsp), %rsi
movaps %xmm0, (%rsi)
leaq 0x10(%rsp), %rdx
movapd 0x152a4(%rip), %xmm0    # 0x1b090
movapd %xmm0, (%rdx)
leaq 0x50(%rsp), %rdi
callq 0x625b
xorpd %xmm0, %xmm0
leaq 0x30(%rsp), %r15
andq $0x0, 0x10(%r15)
movapd %xmm0, (%r15)
movapd 0x1527b(%rip), %xmm0    # 0x1b090
movapd %xmm0, 0xd0(%rsp)
xorl %ebp, %ebp
movq %rsp, %r12
leaq 0x10(%rsp), %r13
xorl %r14d, %r14d
cmpl $0x64, %r14d
je 0x5e6a
movl %ebp, (%rsp)
cvtsi2sd %r14d, %xmm0
mulsd 0x151d7(%rip), %xmm0    # 0x1b018
callq 0x50f0
divsd 0x151d2(%rip), %xmm0    # 0x1b020
movsd %xmm0, 0x10(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x627c
incl %r14d
addl $0xc, %ebp
jmp 0x5e2b
xorpd %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movapd %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
movq %rsp, %rdi
leaq 0xd0(%rsp), %rdx
callq 0x62c0
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x6636
movq (%rsp), %rdi
leaq 0x8c(%rsp), %rsi
andl $0x0, (%rsi)
leaq 0x84(%rsp), %rcx
andl $0x0, (%rcx)
leaq 0x88(%rsp), %rdx
movl $0x32, (%rdx)
leaq 0x50(%rdi), %rax
movq %rax, (%r15)
leaq 0x30(%rsp), %r8
leaq 0x10(%rsp), %r9
callq 0x62e2
leaq 0xc0(%rsp), %r15
leaq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0x7120
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x8158
leaq 0xc8(%rsp), %rdi
callq 0x63e0
leaq 0xb0(%rsp), %r15
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x7a52
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x8158
leaq 0xb8(%rsp), %rdi
callq 0x63e0
leaq 0xa0(%rsp), %r15
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x7a52
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x8158
leaq 0xa8(%rsp), %rdi
callq 0x63e0
leaq 0x90(%rsp), %r15
movq %rsp, %rsi
movq %r15, %rdi
callq 0x7a66
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x8158
leaq 0x98(%rsp), %rdi
callq 0x63e0
movq 0x48(%rsp), %r14
cmpl $0x33, %ebp
je 0x5fb6
movq %rbx, %rdi
movl %ebp, %esi
callq 0x812e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7d7c
incl %ebp
jmp 0x5f98
leaq 0x8(%rsp), %rdi
callq 0x63e0
leaq 0x30(%rsp), %rdi
callq 0x6636
leaq 0x58(%rsp), %rdi
callq 0x63e0
leaq 0x68(%rsp), %rdi
callq 0x63e0
leaq 0x78(%rsp), %rdi
callq 0x63e0
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0x602c
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
jmp 0x602c
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
jmp 0x602c
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x63e0
jmp 0x6056
jmp 0x6053
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6636
jmp 0x6060
movq %rax, %rbx
jmp 0x6074
movq %rax, %rbx
jmp 0x607e
movq %rax, %rbx
jmp 0x6060
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x63e0
leaq 0x30(%rsp), %rdi
callq 0x6636
leaq 0x58(%rsp), %rdi
callq 0x63e0
leaq 0x68(%rsp), %rdi
callq 0x63e0
leaq 0x78(%rsp), %rdi
callq 0x63e0
movq %rbx, %rdi
callq 0x5500