// File: /workspace/github_c_makefile_star2_O2/adelciotto[P]scg/examples/seabug.c
// Function: main
int main(int arcg, char *argv[]) {
    scg_config_t config = scg_config_new_default();
    config.video.title = "SCG Example: Seabug";

    scg_app_t app;
    scg_app_init(&app, config);

    seabug_t seabug;
    init(&app, &seabug);

    float32_t animation_time = 0.0f;

    while (scg_app_process_events(&app)) {
        animation_time += SEABUG_ANIMATION_SPEED * app.delta_time;
        update(&seabug, animation_time);

        draw(app.draw_target, seabug);

        scg_app_present(&app);
    }

    scg_app_free(&app);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc68, %rsp            # imm = 0xC68
movabsq $0x1e000000280, %rax    # imm = 0x1E000000280
movq %rax, 0xa8(%rsp)
movl $0x1, 0xb8(%rsp)
xorl %eax, %eax
movb %al, 0xbc(%rsp)
movl $0x1010101, 0xbd(%rsp) # imm = 0x1010101
movb %al, 0xc4(%rsp)
movl $0x40, 0xc8(%rsp)
leaq 0x14e7(%rip), %rax      # 0x660c
movq %rax, 0xb0(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0xa8(%rsp), %xmm0
movups 0xb8(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x3dc3
movq 0x38(%rbx), %rax
movq (%rax), %xmm0
movdqa %xmm0, %xmm1
psrld $0x1f, %xmm1
paddd %xmm0, %xmm1
psrad $0x1, %xmm1
cvtdq2ps %xmm1, %xmm0
leaq 0xb68(%rsp), %rdi
movlps %xmm0, -0x488(%rdi)
movl $0xff00f260, %esi       # imm = 0xFF00F260
movl $0xff0575e6, %edx       # imm = 0xFF0575E6
callq 0x572a
leaq 0xbe8(%rsp), %rbx
movq %rbx, %rdi
movl $0xffff6a00, %esi       # imm = 0xFFFF6A00
movl $0xffee0979, %edx       # imm = 0xFFEE0979
callq 0x572a
pushq $0xc
popq %rax
xorps %xmm0, %xmm0
cmpq $0x12c, %rax            # imm = 0x12C
je 0x51ff
movl -0x80(%rbx), %ecx
movl (%rbx), %edx
movl $0x2, 0x6b8(%rsp,%rax,4)
movups %xmm0, 0x6bc(%rsp,%rax,4)
andq $0x0, 0x6cc(%rsp,%rax,4)
movl %ecx, 0x6d4(%rsp,%rax,4)
movl %edx, 0x6d8(%rsp,%rax,4)
addq $0x4, %rbx
addq $0x9, %rax
jmp 0x51be
xorps %xmm0, %xmm0
movss %xmm0, 0x2c(%rsp)
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x4858
testb %al, %al
je 0x56ec
movss 0xe4(%rsp), %xmm0
mulss 0xe07(%rip), %xmm0      # 0x6038
movss 0x2c(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x2c(%rsp)
movaps %xmm1, %xmm0
mulss 0xdf0(%rip), %xmm0      # 0x603c
movss %xmm0, 0x30(%rsp)
mulss 0xde6(%rip), %xmm0      # 0x6040
callq 0x2180
movaps %xmm0, 0x40(%rsp)
movss 0x30(%rsp), %xmm0
mulss 0xdd2(%rip), %xmm0      # 0x6044
callq 0x21d0
movaps 0x40(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
mulps 0xe1a(%rip), %xmm1      # 0x60a0
movlps %xmm1, 0x6d8(%rsp)
leaq 0x6fc(%rsp), %rbx
xorl %r14d, %r14d
cmpq $0x20, %r14
je 0x5468
cvtsi2ss %r14d, %xmm0
addss 0x2c(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
divss 0xd58(%rip), %xmm0      # 0x6014
movss %xmm0, 0x30(%rsp)
callq 0x21d0
movaps %xmm0, 0x50(%rsp)
movss 0x40(%rsp), %xmm0
divss 0xd52(%rip), %xmm0      # 0x602c
movss %xmm0, 0x28(%rsp)
callq 0x21d0
mulss 0xd37(%rip), %xmm0      # 0x6024
movaps 0x50(%rsp), %xmm1
mulss 0xd4e(%rip), %xmm1      # 0x6048
addss %xmm0, %xmm1
movaps %xmm1, 0x50(%rsp)
movss 0x40(%rsp), %xmm0
mulss 0xcf3(%rip), %xmm0      # 0x6004
callq 0x2180
movaps %xmm0, 0x60(%rsp)
movss 0x30(%rsp), %xmm0
callq 0x2180
movaps %xmm0, 0x80(%rsp)
movss 0x28(%rsp), %xmm0
callq 0x21d0
mulss 0xd0b(%rip), %xmm0      # 0x604c
movaps 0x50(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movaps %xmm1, 0x50(%rsp)
movss 0x30(%rsp), %xmm0
callq 0x21d0
movaps %xmm0, 0x90(%rsp)
movss 0x40(%rsp), %xmm0
mulss 0xce1(%rip), %xmm0      # 0x6050
movss %xmm0, 0x28(%rsp)
callq 0x21d0
movaps %xmm0, 0xd0(%rsp)
movss 0x30(%rsp), %xmm0
callq 0x21d0
xorps 0xcfc(%rip), %xmm0      # 0x6090
movaps %xmm0, 0x70(%rsp)
movss 0x40(%rsp), %xmm0
divss 0xcad(%rip), %xmm0      # 0x6054
movss %xmm0, 0x40(%rsp)
callq 0x21d0
movaps 0xd0(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movsd 0xceb(%rip), %xmm0      # 0x60b0
mulps %xmm0, %xmm1
movaps 0x50(%rsp), %xmm0
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movaps 0x60(%rsp), %xmm1
unpcklps 0x80(%rsp), %xmm1       # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
movaps 0x90(%rsp), %xmm2
unpcklps 0x70(%rsp), %xmm2       # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
movlhps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0]
mulps 0xccc(%rip), %xmm1      # 0x60c0
addps %xmm0, %xmm1
movups %xmm1, -0x10(%rbx)
movss 0x30(%rsp), %xmm0
callq 0x21d0
movaps %xmm0, 0x50(%rsp)
movss 0x28(%rsp), %xmm0
callq 0x21d0
movaps %xmm0, 0x60(%rsp)
movss 0x30(%rsp), %xmm0
callq 0x2180
movaps %xmm0, 0x30(%rsp)
movss 0x40(%rsp), %xmm0
callq 0x21d0
movaps 0x60(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
mulps 0xc6b(%rip), %xmm1      # 0x60b0
movaps 0x50(%rsp), %xmm0
unpcklps 0x30(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
mulps 0xc7a(%rip), %xmm0      # 0x60d0
addps %xmm1, %xmm0
movlps %xmm0, (%rbx)
incq %r14
addq $0x24, %rbx
jmp 0x5299
movq 0x118(%rsp), %r12
movl $0x590, %edx            # imm = 0x590
leaq 0x148(%rsp), %rdi
leaq 0x6d8(%rsp), %rsi
callq 0x21c0
movss 0x150(%rsp), %xmm0
movss 0x154(%rsp), %xmm1
addss 0x148(%rsp), %xmm0
movss %xmm0, 0x50(%rsp)
addss 0x14c(%rsp), %xmm1
movss %xmm1, 0x90(%rsp)
cvtsi2ssl (%r12), %xmm1
cvtsi2ssl 0x4(%r12), %xmm0
movss %xmm0, 0x70(%rsp)
mulss %xmm0, %xmm0
movss %xmm1, 0x30(%rsp)
mulss %xmm1, %xmm1
addss %xmm0, %xmm1
sqrtss %xmm1, %xmm0
movss %xmm0, 0x28(%rsp)
xorl %ebx, %ebx
cvtsi2ss %ebx, %xmm1
movss 0x70(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x559c
movss 0x90(%rsp), %xmm0
subss %xmm1, %xmm0
mulss %xmm0, %xmm0
movss %xmm0, 0x80(%rsp)
xorl %ebp, %ebp
mulss 0x30(%rsp), %xmm1
movss %xmm1, 0x60(%rsp)
cvtsi2ss %ebp, %xmm2
movss 0x30(%rsp), %xmm0
ucomiss %xmm2, %xmm0
jbe 0x5595
movss 0x50(%rsp), %xmm0
subss %xmm2, %xmm0
mulss %xmm0, %xmm0
addss 0x80(%rsp), %xmm0
sqrtss %xmm0, %xmm0
divss 0x28(%rsp), %xmm0
addss %xmm0, %xmm0
movl $0xff0d47a1, %edi       # imm = 0xFF0D47A1
movl $0xff0d1126, %esi       # imm = 0xFF0D1126
movss %xmm2, 0x40(%rsp)
callq 0x27b2
movss 0x60(%rsp), %xmm1
movss 0x40(%rsp), %xmm0
addss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
movq 0x10(%r12), %rdx
movslq %ecx, %rcx
movl %eax, (%rdx,%rcx,4)
incl %ebp
jmp 0x5529
incl %ebx
jmp 0x54ee
pushq $0x30
popq %rbx
cmpq $0x4b0, %rbx            # imm = 0x4B0
je 0x56d7
movss 0x12c(%rsp,%rbx), %xmm0
movss 0x50(%rsp), %xmm4
addss %xmm4, %xmm0
movss 0x130(%rsp,%rbx), %xmm1
movss 0x90(%rsp), %xmm5
addss %xmm5, %xmm1
movss 0x134(%rsp,%rbx), %xmm2
addss %xmm4, %xmm2
movss 0x138(%rsp,%rbx), %xmm3
addss %xmm5, %xmm3
movss 0x13c(%rsp,%rbx), %xmm6
addss %xmm4, %xmm6
movss %xmm6, 0x28(%rsp)
movss 0x140(%rsp,%rbx), %xmm4
addss %xmm5, %xmm4
movss %xmm4, 0x70(%rsp)
movl 0x144(%rsp,%rbx), %r9d
movl %r9d, 0x40(%rsp)
movl 0x148(%rsp,%rbx), %r15d
movl %r15d, 0x80(%rsp)
cvttss2si %xmm0, %ebp
cvttss2si %xmm1, %r13d
cvttss2si %xmm2, %ecx
movl %ecx, 0x30(%rsp)
cvttss2si %xmm3, %r8d
movl %r8d, 0x60(%rsp)
movq %r12, %rdi
movl %ebp, %esi
movl %r13d, %edx
callq 0x32b6
cvttss2si 0x28(%rsp), %r14d
cvttss2si 0x70(%rsp), %r8d
movl %r8d, 0x28(%rsp)
movq %r12, %rdi
movl %ebp, %esi
movl %r13d, %edx
movl %r14d, %ecx
movl %r15d, %r9d
callq 0x32b6
movl 0x128(%rsp,%rbx), %r15d
movq %r12, %rdi
movl %ebp, %esi
movl %r13d, %edx
movl %r15d, %ecx
pushq $-0x1
popq %r8
callq 0x36d7
movq %r12, %rdi
movl 0x30(%rsp), %esi
movl 0x60(%rsp), %edx
movl %r15d, %ecx
movl 0x40(%rsp), %r8d
callq 0x36d7
movq %r12, %rdi
movl %r14d, %esi
movl 0x28(%rsp), %edx
movl %r15d, %ecx
movl 0x80(%rsp), %r8d
callq 0x36d7
addq $0x24, %rbx
jmp 0x559f
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x491f
jmp 0x5210
leaq 0xe0(%rsp), %rdi
callq 0x4bf7
xorl %eax, %eax
addq $0xc68, %rsp            # imm = 0xC68
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq