// File: /workspace/github_c_makefile_star2_O1/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, %r15
movq %rdi, 0xc8(%rsp)
xorl %eax, %eax
leaq 0xa0(%rsp), %rcx
movq %rax, (%rcx)
movabsq $0x4086800000000000, %rdx # imm = 0x4086800000000000
movq %rdx, 0x8(%rcx)
leaq 0x20(%rsp), %r8
movl $0x32, (%r8)
leaq 0x58(%rsp), %rdi
movq %rax, -0x8(%rdi)
leaq 0x1d08b(%rip), %r9      # 0x23050
leaq 0x50(%rsp), %rsi
leaq 0xd0(%rsp), %rdx
callq 0x69d4
movl $0x70, %edi
callq 0x5100
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
movq %rax, %r14
leaq 0x26847(%rip), %r12     # 0x2c840
movq %r12, (%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
movq $0x0, 0x28(%rax)
leaq 0x26b1c(%rip), %r13     # 0x2cb30
addq $0x10, %r13
movq %r13, 0x10(%rax)
movabsq $0x3ff0000000000000, %rbp # imm = 0x3FF0000000000000
movq %rbp, 0x30(%rax)
movq %rbp, 0x38(%rax)
movq %rbp, 0x40(%rax)
movq %rbp, 0x48(%rax)
movabsq $0x4049000000000000, %rcx # imm = 0x4049000000000000
movq %rcx, 0x50(%rax)
movabsq $0x4024000000000000, %rax # imm = 0x4024000000000000
movq %rax, 0x58(%r14)
movq %rcx, 0x60(%r14)
movabsq $0x4083100000000000, %rbx # imm = 0x4083100000000000
movq %rbx, 0x68(%r14)
movl $0x70, %edi
movq %r14, 0x48(%rsp)
callq 0x5100
addq $0x10, %r14
movq %r14, 0xc0(%rsp)
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
movq %r12, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
movq %rcx, 0xb8(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
xorl %r14d, %r14d
movq %r14, 0x28(%rax)
movq %r13, 0x10(%rax)
movq %rbp, 0x30(%rax)
movq %rbp, 0x38(%rax)
movq %rbp, 0x40(%rax)
movq %rbp, 0x48(%rax)
movabsq $0x4093880000000000, %rcx # imm = 0x4093880000000000
movq %rcx, 0x50(%rax)
movq %rbx, 0x58(%rax)
movabsq $0x4049000000000000, %rcx # imm = 0x4049000000000000
movq %rcx, 0x60(%rax)
movq %rax, 0x40(%rsp)
movq %rbx, 0x68(%rax)
leaq 0xa0(%rsp), %r13
movq %r14, 0x10(%r13)
movapd %xmm0, (%r13)
movq %rcx, 0xd0(%rsp)
movq %rbx, 0xd8(%rsp)
leaq 0x8(%rsp), %rbp
leaq 0x20(%rsp), %rbx
xorl %r12d, %r12d
movl %r14d, 0x8(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
mulsd 0x1cf00(%rip), %xmm0    # 0x23030
callq 0x50e0
divsd 0x1cefb(%rip), %xmm0    # 0x23038
movsd %xmm0, 0x20(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x66a0
incl %r12d
addl $0xc, %r14d
cmpl $0x64, %r12d
jne 0x611b
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 0xd0(%rsp), %r8
callq 0x731a
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
movq 0x48(%rsp), %r14
movq 0x40(%rsp), %r12
movq 0xc8(%rsp), %r13
je 0x61ba
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
movq 0x8(%rsp), %rdi
xorl %eax, %eax
leaq 0x1c(%rsp), %rsi
movl %eax, (%rsi)
leaq 0xe4(%rsp), %rdx
movl $0x32, (%rdx)
leaq 0xe0(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x50(%rdi), %rax
leaq 0x20(%rsp), %r9
movq %rax, (%r9)
leaq 0xa0(%rsp), %r8
callq 0x66e2
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %rax
movq %rcx, 0x90(%rsp)
movq %rax, 0x98(%rsp)
testq %rax, %rax
je 0x622d
movq 0x26db1(%rip), %rcx     # 0x2cfd0
cmpb $0x0, (%rcx)
je 0x6229
incl 0x8(%rax)
jmp 0x622d
lock
incl 0x8(%rax)
leaq 0x90(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7f4a
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x6251
callq 0x6882
movq 0xc0(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r14, 0x88(%rsp)
movq 0x26d60(%rip), %rbx     # 0x2cfd0
cmpb $0x0, (%rbx)
je 0x627b
incl 0x8(%r14)
jmp 0x6280
lock
incl 0x8(%r14)
leaq 0x80(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7f4a
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x62a4
callq 0x6882
movq 0xb8(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %r12, 0x78(%rsp)
cmpb $0x0, (%rbx)
je 0x62c2
incl 0x8(%r12)
jmp 0x62c8
lock
incl 0x8(%r12)
leaq 0x70(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7f4a
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x62e6
callq 0x6882
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x630d
cmpb $0x0, (%rbx)
je 0x6309
incl 0x8(%rax)
jmp 0x630d
lock
incl 0x8(%rax)
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x7f4a
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x632b
callq 0x6882
xorl %ebx, %ebx
movq %r15, %rdi
movl %ebx, %esi
callq 0x7f1c
movq %r13, %rdi
movq %r15, %rsi
callq 0x7b24
incl %ebx
cmpl $0x33, %ebx
jne 0x632d
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6358
callq 0x6882
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x6375
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
movq %r12, %rdi
callq 0x6882
movq %r14, %rdi
callq 0x6882
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x6394
callq 0x6882
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x68(%rsp), %rdi
jmp 0x63d2
movq %rax, %r15
movq 0x78(%rsp), %rdi
jmp 0x63d2
movq %rax, %r15
movq 0x88(%rsp), %rdi
jmp 0x63d2
movq %rax, %r15
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x640e
callq 0x6882
jmp 0x640e
jmp 0x640b
movq %rax, %r15
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x641d
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
jmp 0x641d
movq %rax, %r15
jmp 0x6444
movq %rax, %r15
jmp 0x644e
movq %rax, %r15
jmp 0x641d
movq %rax, %r15
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x641d
callq 0x6882
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x643a
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x50c0
movq 0x40(%rsp), %rdi
callq 0x6882
movq 0x48(%rsp), %rdi
callq 0x6882
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x645d
callq 0x6882
movq %r15, %rdi
callq 0x5510