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

    auto ball = std::make_shared<ellipse>(vec{640, 360}, vec{0, 0}, 0, true);

    ball->add_animator<vec_animator>(0, 49, &ball->size, vec{0, 0},
                                     vec{50,50});

    ball->add_animator<vec_animator>(50, 99, &ball->location, vec{640, 360},
                                     vec{-50, -50});

    auto rec = std::make_shared<rectangle>(vec{-50, -50}, vec{50, 50}, M_PI / 4,
                                           true);

    rec->add_animator<vec_animator>(100, 149, &rec->location, vec{-50, -50},
                                    vec{640, 360});

    rec->add_animator<vec_animator>(150, 199, &rec->size, vec{50, 50},
                                    vec{0, 0});

    world.add_layer();
    world.add_object(title, 0);
    world.add_object(ball, 1);
    world.add_object(rec, 1);

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

    world.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x230, %rsp            # imm = 0x230
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
xorps %xmm0, %xmm0
movsd 0x3544f(%rip), %xmm1    # 0x3b008
callq 0x6880
movq -0x1c0(%rbp), %rsi
movl $0x32, -0x34(%rbp)
leaq 0x354bd(%rip), %rcx     # 0x3b090
leaq -0x20(%rbp), %rdi
leaq -0x34(%rbp), %rdx
callq 0x6800
leaq -0x58(%rbp), %rdi
movsd 0x35424(%rip), %xmm0    # 0x3b010
movsd 0x35424(%rip), %xmm1    # 0x3b018
callq 0x6880
jmp 0x5bfb
leaq -0x78(%rbp), %rdi
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5c0c
movl $0x0, -0x7c(%rbp)
movb $0x1, -0x7d(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x78(%rbp), %rdx
leaq -0x7c(%rbp), %rcx
leaq -0x7d(%rbp), %r8
callq 0x68b0
jmp 0x5c32
leaq -0x48(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x6940
movq -0x1d0(%rbp), %rdi
movq %rax, -0x1c8(%rbp)
movl $0x0, -0x84(%rbp)
movl $0x31, -0x88(%rbp)
callq 0x6940
addq $0x50, %rax
movq %rax, -0x90(%rbp)
leaq -0xa0(%rbp), %rdi
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5c88
leaq -0xb0(%rbp), %rdi
movsd 0x35389(%rip), %xmm1    # 0x3b020
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5ca1
movq -0x1c8(%rbp), %rdi
leaq -0x84(%rbp), %rsi
leaq -0x88(%rbp), %rdx
leaq -0x90(%rbp), %rcx
leaq -0xa0(%rbp), %r8
leaq -0xb0(%rbp), %r9
callq 0x6960
jmp 0x5cd2
leaq -0x48(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x6940
movq -0x1e0(%rbp), %rdi
movq %rax, -0x1d8(%rbp)
movl $0x32, -0xb4(%rbp)
movl $0x63, -0xb8(%rbp)
callq 0x6940
addq $0x40, %rax
movq %rax, -0xc0(%rbp)
leaq -0xd0(%rbp), %rdi
movsd 0x352ed(%rip), %xmm0    # 0x3b010
movsd 0x352ed(%rip), %xmm1    # 0x3b018
callq 0x6880
jmp 0x5d32
leaq -0xe0(%rbp), %rdi
movsd 0x352e7(%rip), %xmm1    # 0x3b028
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5d4b
movq -0x1d8(%rbp), %rdi
leaq -0xb4(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
leaq -0xd0(%rbp), %r8
leaq -0xe0(%rbp), %r9
callq 0x6960
jmp 0x5d7c
leaq -0x100(%rbp), %rdi
movsd 0x3529d(%rip), %xmm1    # 0x3b028
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5d95
leaq -0x110(%rbp), %rdi
movsd 0x3527c(%rip), %xmm1    # 0x3b020
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5dae
movabsq $0x3fe921fb54442d18, %rax # imm = 0x3FE921FB54442D18
movq %rax, -0x118(%rbp)
movb $0x1, -0x119(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x110(%rbp), %rdx
leaq -0x118(%rbp), %rcx
leaq -0x119(%rbp), %r8
callq 0x69f0
jmp 0x5df0
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x6a80
movq -0x1f0(%rbp), %rdi
movq %rax, -0x1e8(%rbp)
movl $0x64, -0x120(%rbp)
movl $0x95, -0x124(%rbp)
callq 0x6a80
addq $0x40, %rax
movq %rax, -0x130(%rbp)
leaq -0x140(%rbp), %rdi
movsd 0x351e4(%rip), %xmm1    # 0x3b028
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5e4e
leaq -0x150(%rbp), %rdi
movsd 0x351b3(%rip), %xmm0    # 0x3b010
movsd 0x351b3(%rip), %xmm1    # 0x3b018
callq 0x6880
jmp 0x5e6c
movq -0x1e8(%rbp), %rdi
leaq -0x120(%rbp), %rsi
leaq -0x124(%rbp), %rdx
leaq -0x130(%rbp), %rcx
leaq -0x140(%rbp), %r8
leaq -0x150(%rbp), %r9
callq 0x6960
jmp 0x5e9d
leaq -0xf0(%rbp), %rdi
movq %rdi, -0x200(%rbp)
callq 0x6a80
movq -0x200(%rbp), %rdi
movq %rax, -0x1f8(%rbp)
movl $0x96, -0x154(%rbp)
movl $0xc7, -0x158(%rbp)
callq 0x6a80
addq $0x50, %rax
movq %rax, -0x160(%rbp)
leaq -0x170(%rbp), %rdi
movsd 0x3512f(%rip), %xmm1    # 0x3b020
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5efb
leaq -0x180(%rbp), %rdi
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x6880
jmp 0x5f0f
movq -0x1f8(%rbp), %rdi
leaq -0x154(%rbp), %rsi
leaq -0x158(%rbp), %rdx
leaq -0x160(%rbp), %rcx
leaq -0x170(%rbp), %r8
leaq -0x180(%rbp), %r9
callq 0x6960
jmp 0x5f40
movq -0x10(%rbp), %rdi
callq 0x11d60
jmp 0x5f4b
movq -0x10(%rbp), %rax
movq %rax, -0x210(%rbp)
leaq -0x190(%rbp), %rdi
movq %rdi, -0x208(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x6aa0
movq -0x210(%rbp), %rdi
movq -0x208(%rbp), %rsi
xorl %edx, %edx
callq 0x11d20
jmp 0x5f84
leaq -0x190(%rbp), %rdi
callq 0x6ad0
movq -0x10(%rbp), %rax
movq %rax, -0x220(%rbp)
leaq -0x1a0(%rbp), %rdi
movq %rdi, -0x218(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x6af0
movq -0x220(%rbp), %rdi
movq -0x218(%rbp), %rsi
movl $0x1, %edx
callq 0x11d20
jmp 0x5fcc
leaq -0x1a0(%rbp), %rdi
callq 0x6ad0
movq -0x10(%rbp), %rax
movq %rax, -0x230(%rbp)
leaq -0x1b0(%rbp), %rdi
movq %rdi, -0x228(%rbp)
leaq -0xf0(%rbp), %rsi
callq 0x6b20
movq -0x230(%rbp), %rdi
movq -0x228(%rbp), %rsi
movl $0x1, %edx
callq 0x11d20
jmp 0x6017
leaq -0x1b0(%rbp), %rdi
callq 0x6ad0
movl $0x0, -0x1b4(%rbp)
cmpl $0xc8, -0x1b4(%rbp)
jge 0x60f1
movq -0x10(%rbp), %rdi
movl -0x1b4(%rbp), %esi
callq 0x11ca0
jmp 0x604e
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x10450
jmp 0x605d
jmp 0x605f
movl -0x1b4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1b4(%rbp)
jmp 0x602d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x6138
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x612f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x6123
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x6ad0
jmp 0x6123
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x1a0(%rbp), %rdi
callq 0x6ad0
jmp 0x6123
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x6ad0
jmp 0x6123
movq -0x10(%rbp), %rdi
callq 0x12040
jmp 0x60fc
leaq -0xf0(%rbp), %rdi
callq 0x6b50
leaq -0x48(%rbp), %rdi
callq 0x6b70
leaq -0x20(%rbp), %rdi
callq 0x6b90
addq $0x230, %rsp            # imm = 0x230
popq %rbp
retq
leaq -0xf0(%rbp), %rdi
callq 0x6b50
leaq -0x48(%rbp), %rdi
callq 0x6b70
leaq -0x20(%rbp), %rdi
callq 0x6b90
movq -0x60(%rbp), %rdi
callq 0x52d0
nopw (%rax,%rax)