// File: /workspace/github_c_makefile_star2_O1/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 $0xc08, %rsp            # imm = 0xC08
movabsq $0x1e000000280, %rax    # imm = 0x1E000000280
movq %rax, 0x58(%rsp)
movl $0x1, 0x68(%rsp)
xorl %r14d, %r14d
movb %r14b, 0x6c(%rsp)
movl $0x1010101, 0x6d(%rsp)  # imm = 0x1010101
movb %r14b, 0x74(%rsp)
movl $0x40, 0x78(%rsp)
leaq 0x10cb(%rip), %rax      # 0x65fc
movq %rax, 0x60(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x58(%rsp), %xmm0
movups 0x68(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x80(%rsp), %rbx
movq %rbx, %rdi
callq 0x3e91
movq $0x0, 0xe8(%rsp)
movq 0x38(%rbx), %rax
movl (%rax), %ecx
movl %ecx, %edx
shrl $0x1f, %edx
addl %ecx, %edx
sarl %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
movss %xmm0, 0xf0(%rsp)
movl 0x4(%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movss %xmm0, 0xf4(%rsp)
movss 0xa86(%rip), %xmm0      # 0x6038
movss 0xa4d(%rip), %xmm12     # 0x6008
xorps %xmm1, %xmm1
movss 0xa76(%rip), %xmm2      # 0x603c
movss 0xa72(%rip), %xmm3      # 0x6040
movss 0xa6e(%rip), %xmm4      # 0x6044
movss 0xa6a(%rip), %xmm5      # 0x6048
movl $0xff, %eax
xorps %xmm6, %xmm6
cvtsi2ss %r14d, %xmm6
mulss %xmm0, %xmm6
movaps %xmm12, %xmm7
minss %xmm6, %xmm7
movaps %xmm12, %xmm6
subss %xmm7, %xmm6
movaps %xmm7, %xmm8
mulss 0xa20(%rip), %xmm8      # 0x602c
movaps %xmm6, %xmm9
mulss %xmm1, %xmm9
addss %xmm8, %xmm9
movaps %xmm7, %xmm8
mulss %xmm2, %xmm8
movaps %xmm6, %xmm10
mulss %xmm3, %xmm10
addss %xmm8, %xmm10
mulss %xmm4, %xmm7
mulss %xmm5, %xmm6
addss %xmm7, %xmm6
cvttss2si %xmm6, %ecx
cvttss2si %xmm10, %edx
cvttss2si %xmm9, %esi
shll $0x10, %esi
andl %eax, %edx
shll $0x8, %edx
orl %esi, %edx
andl %eax, %ecx
orl %edx, %ecx
orl $0xff000000, %ecx       # imm = 0xFF000000
movl %ecx, 0x578(%rsp,%r14,4)
incq %r14
cmpq $0x20, %r14
jne 0x55e3
leaq 0x5f8(%rsp), %rax
xorl %ecx, %ecx
movss 0x9c6(%rip), %xmm1      # 0x604c
movss 0x97e(%rip), %xmm2      # 0x600c
movss 0x9ba(%rip), %xmm3      # 0x6050
movss 0x9b6(%rip), %xmm4      # 0x6054
movss 0x9b2(%rip), %xmm5      # 0x6058
xorps %xmm6, %xmm6
movl $0xff, %edx
xorps %xmm7, %xmm7
cvtsi2ss %ecx, %xmm7
mulss %xmm0, %xmm7
movaps %xmm12, %xmm8
minss %xmm7, %xmm8
movaps %xmm12, %xmm7
subss %xmm8, %xmm7
movaps %xmm8, %xmm9
mulss %xmm1, %xmm9
movaps %xmm7, %xmm10
mulss %xmm2, %xmm10
addss %xmm9, %xmm10
movaps %xmm8, %xmm9
mulss %xmm3, %xmm9
movaps %xmm7, %xmm11
mulss %xmm4, %xmm11
addss %xmm9, %xmm11
mulss %xmm5, %xmm8
mulss %xmm6, %xmm7
addss %xmm8, %xmm7
cvttss2si %xmm7, %esi
cvttss2si %xmm11, %edi
cvttss2si %xmm10, %r8d
shll $0x10, %r8d
andl %edx, %edi
shll $0x8, %edi
orl %r8d, %edi
andl %edx, %esi
orl %edi, %esi
orl $0xff000000, %esi       # imm = 0xFF000000
movl %esi, 0x5f8(%rsp,%rcx,4)
incq %rcx
cmpq $0x20, %rcx
jne 0x56ae
movl $0xc, %ecx
xorps %xmm0, %xmm0
movl -0x80(%rax), %edx
movl (%rax), %esi
movl $0x2, 0xc8(%rsp,%rcx,4)
movups %xmm0, 0xcc(%rsp,%rcx,4)
movq $0x0, 0xdc(%rsp,%rcx,4)
movl %edx, 0xe4(%rsp,%rcx,4)
movl %esi, 0xe8(%rsp,%rcx,4)
addq $0x9, %rcx
addq $0x4, %rax
cmpq $0x12c, %rcx            # imm = 0x12C
jne 0x5747
leaq 0x80(%rsp), %rdi
callq 0x49ec
testb %al, %al
je 0x5da1
movss 0x8bd(%rip), %xmm1      # 0x6064
movl $0xff, %r15d
xorps %xmm0, %xmm0
movss 0x84(%rsp), %xmm2
mulss 0x89b(%rip), %xmm2      # 0x605c
addss %xmm0, %xmm2
movss %xmm2, 0x54(%rsp)
movaps %xmm2, %xmm0
mulss 0x88a(%rip), %xmm0      # 0x6060
movss %xmm0, 0x34(%rsp)
mulss %xmm1, %xmm0
callq 0x2180
movss 0x87b(%rip), %xmm1      # 0x6068
mulss %xmm1, %xmm0
movss %xmm0, 0xe8(%rsp)
movss 0x34(%rsp), %xmm0
mulss 0x864(%rip), %xmm0      # 0x606c
callq 0x21d0
mulss 0x853(%rip), %xmm0      # 0x6068
movss %xmm0, 0xec(%rsp)
leaq 0x110(%rsp), %rbx
xorl %r14d, %r14d
xorps %xmm0, %xmm0
cvtsi2ss %r14d, %xmm0
addss 0x54(%rsp), %xmm0
movss %xmm0, 0x34(%rsp)
divss 0x7cf(%rip), %xmm0      # 0x6014
movss %xmm0, 0x40(%rsp)
callq 0x21d0
movss %xmm0, 0x3c(%rsp)
movss 0x34(%rsp), %xmm0
divss 0x7c8(%rip), %xmm0      # 0x602c
movss %xmm0, 0x38(%rsp)
callq 0x21d0
movss 0x7ad(%rip), %xmm1      # 0x6024
mulss %xmm1, %xmm0
movss 0x7e5(%rip), %xmm1      # 0x6068
movss 0x3c(%rsp), %xmm2
mulss %xmm1, %xmm2
addss %xmm0, %xmm2
movss %xmm2, 0x3c(%rsp)
movss 0x34(%rsp), %xmm0
mulss 0x75f(%rip), %xmm0      # 0x6004
callq 0x2180
mulss 0x7b2(%rip), %xmm0      # 0x6064
addss 0x3c(%rsp), %xmm0
movss %xmm0, -0x14(%rbx)
movss 0x40(%rsp), %xmm0
callq 0x2180
movss %xmm0, 0x3c(%rsp)
movss 0x38(%rsp), %xmm0
callq 0x21d0
mulss 0x78f(%rip), %xmm0      # 0x6070
movss 0x3c(%rsp), %xmm1
mulss 0x779(%rip), %xmm1      # 0x6068
addss %xmm0, %xmm1
movss %xmm1, -0x10(%rbx)
movss 0x40(%rsp), %xmm0
callq 0x21d0
movss %xmm0, 0x38(%rsp)
movss 0x34(%rsp), %xmm0
mulss 0x75d(%rip), %xmm0      # 0x6074
movss %xmm0, 0x3c(%rsp)
callq 0x21d0
addss %xmm0, %xmm0
movss 0x74a(%rip), %xmm1      # 0x6078
movss 0x38(%rsp), %xmm2
mulss %xmm1, %xmm2
addss %xmm0, %xmm2
movss %xmm2, -0xc(%rbx)
movss 0x40(%rsp), %xmm0
callq 0x21d0
movss %xmm0, 0x38(%rsp)
movss 0x34(%rsp), %xmm0
divss 0x71c(%rip), %xmm0      # 0x607c
movss %xmm0, 0x34(%rsp)
callq 0x21d0
mulss 0x6b1(%rip), %xmm0      # 0x6024
movss 0x38(%rsp), %xmm1
mulss 0x6f7(%rip), %xmm1      # 0x6078
subss %xmm1, %xmm0
movss %xmm0, -0x8(%rbx)
movss 0x40(%rsp), %xmm0
callq 0x21d0
movss %xmm0, 0x38(%rsp)
movss 0x3c(%rsp), %xmm0
callq 0x21d0
addss %xmm0, %xmm0
movss 0x38(%rsp), %xmm1
mulss 0x6c0(%rip), %xmm1      # 0x6078
addss %xmm0, %xmm1
movss %xmm1, -0x4(%rbx)
movss 0x40(%rsp), %xmm0
callq 0x2180
movss %xmm0, 0x40(%rsp)
movss 0x34(%rsp), %xmm0
callq 0x21d0
mulss 0x63f(%rip), %xmm0      # 0x6024
movss 0x40(%rsp), %xmm1
mulss 0x685(%rip), %xmm1      # 0x6078
addss %xmm0, %xmm1
movss %xmm1, (%rbx)
incq %r14
addq $0x24, %rbx
cmpq $0x20, %r14
jne 0x5829
movq 0xb8(%rsp), %r12
movl $0x590, %edx            # imm = 0x590
leaq 0x678(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x21c0
movss 0x680(%rsp), %xmm7
movss 0x684(%rsp), %xmm8
addss 0x678(%rsp), %xmm7
addss 0x67c(%rsp), %xmm8
movl (%r12), %ebx
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
movl 0x4(%r12), %ebp
xorps %xmm1, %xmm1
cvtsi2ss %ebp, %xmm1
movss %xmm1, 0x48(%rsp)
mulss %xmm1, %xmm1
movss %xmm0, 0x34(%rsp)
mulss %xmm0, %xmm0
addss %xmm1, %xmm0
ucomiss 0x60a(%rip), %xmm0      # 0x6094
movss %xmm7, 0x3c(%rsp)
movss %xmm8, 0x38(%rsp)
jb 0x5aa0
sqrtss %xmm0, %xmm9
jmp 0x5ab6
callq 0x23a0
movss 0x38(%rsp), %xmm8
movss 0x3c(%rsp), %xmm7
movaps %xmm0, %xmm9
movss 0x54a(%rip), %xmm5      # 0x6008
testl %ebp, %ebp
jle 0x5c38
xorl %ebp, %ebp
xorps %xmm10, %xmm10
movss %xmm9, 0x44(%rsp)
testl %ebx, %ebx
jle 0x5c1d
movaps %xmm8, %xmm11
subss %xmm10, %xmm11
mulss %xmm11, %xmm11
xorps %xmm12, %xmm12
movl $0x1, %r14d
movss %xmm10, 0x50(%rsp)
movss %xmm11, 0x4c(%rsp)
movaps %xmm7, %xmm0
subss %xmm12, %xmm0
mulss %xmm0, %xmm0
addss %xmm11, %xmm0
ucomiss 0x57b(%rip), %xmm0      # 0x6094
jb 0x5b21
sqrtss %xmm0, %xmm0
jmp 0x5b5e
movss %xmm12, 0x40(%rsp)
callq 0x23a0
movss 0x40(%rsp), %xmm12
movss 0x4c(%rsp), %xmm11
movss 0x50(%rsp), %xmm10
movss 0x44(%rsp), %xmm9
movss 0x38(%rsp), %xmm8
movss 0x3c(%rsp), %xmm7
movss 0x4aa(%rip), %xmm5      # 0x6008
divss %xmm9, %xmm0
addss %xmm0, %xmm0
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movaps %xmm5, %xmm0
minss %xmm1, %xmm0
movaps %xmm5, %xmm1
subss %xmm0, %xmm1
movaps %xmm0, %xmm2
movss 0x4f9(%rip), %xmm6      # 0x6080
mulss %xmm6, %xmm2
movaps %xmm0, %xmm3
mulss 0x4ee(%rip), %xmm3      # 0x6084
movaps %xmm1, %xmm4
mulss 0x4e7(%rip), %xmm4      # 0x6088
addss %xmm3, %xmm4
movaps %xmm1, %xmm3
mulss %xmm6, %xmm3
mulss 0x4d8(%rip), %xmm0      # 0x608c
mulss 0x4d4(%rip), %xmm1      # 0x6090
addss %xmm0, %xmm1
cvttss2si %xmm1, %eax
cvttss2si %xmm4, %ecx
addss %xmm2, %xmm3
cvttss2si %xmm3, %edx
shll $0x10, %edx
andl %r15d, %ecx
shll $0x8, %ecx
orl %edx, %ecx
andl %r15d, %eax
orl %ecx, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
movaps %xmm10, %xmm0
movss 0x34(%rsp), %xmm1
mulss %xmm1, %xmm0
addss %xmm12, %xmm0
cvttss2si %xmm0, %ecx
movq 0x10(%r12), %rdx
movslq %ecx, %rcx
xorps %xmm12, %xmm12
cvtsi2ss %r14d, %xmm12
movl %eax, (%rdx,%rcx,4)
incl %r14d
ucomiss %xmm12, %xmm1
ja 0x5b01
incl %ebp
xorps %xmm10, %xmm10
cvtsi2ss %ebp, %xmm10
movss 0x48(%rsp), %xmm0
ucomiss %xmm10, %xmm0
ja 0x5ad3
movl $0x30, %ebx
movss 0x65c(%rsp,%rbx), %xmm0
addss %xmm7, %xmm0
movss 0x660(%rsp,%rbx), %xmm1
addss %xmm8, %xmm1
movss 0x664(%rsp,%rbx), %xmm2
addss %xmm7, %xmm2
movss 0x668(%rsp,%rbx), %xmm3
addss %xmm8, %xmm3
movss 0x66c(%rsp,%rbx), %xmm4
addss %xmm7, %xmm4
movss %xmm4, 0x44(%rsp)
movss 0x670(%rsp,%rbx), %xmm4
addss %xmm8, %xmm4
movss %xmm4, 0x48(%rsp)
movl 0x674(%rsp,%rbx), %r9d
movl %r9d, 0x34(%rsp)
movl 0x678(%rsp,%rbx), %r14d
movl %r14d, 0x4c(%rsp)
cvttss2si %xmm0, %r15d
cvttss2si %xmm1, %ebp
cvttss2si %xmm2, %ecx
movl %ecx, 0x40(%rsp)
cvttss2si %xmm3, %r8d
movl %r8d, 0x50(%rsp)
movq %r12, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x3345
cvttss2si 0x44(%rsp), %r13d
cvttss2si 0x48(%rsp), %r8d
movl %r8d, 0x44(%rsp)
movq %r12, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl %r13d, %ecx
movl %r14d, %r9d
callq 0x3345
movl 0x658(%rsp,%rbx), %r14d
movq %r12, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl %r14d, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x376b
movq %r12, %rdi
movl 0x40(%rsp), %esi
movl 0x50(%rsp), %edx
movl %r14d, %ecx
movl 0x34(%rsp), %r8d
callq 0x376b
movq %r12, %rdi
movl %r13d, %esi
movl 0x44(%rsp), %edx
movl %r14d, %ecx
movl 0x4c(%rsp), %r8d
callq 0x376b
movss 0x38(%rsp), %xmm8
movss 0x3c(%rsp), %xmm7
addq $0x24, %rbx
cmpq $0x4b0, %rbx            # imm = 0x4B0
jne 0x5c3d
leaq 0x80(%rsp), %rbx
movq %rbx, %rdi
callq 0x4b38
movq %rbx, %rdi
callq 0x49ec
testb %al, %al
movss 0x2d5(%rip), %xmm1      # 0x6064
movl $0xff, %r15d
movss 0x54(%rsp), %xmm0
jne 0x57b0
leaq 0x80(%rsp), %rdi
callq 0x5007
xorl %eax, %eax
addq $0xc08, %rsp            # imm = 0xC08
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq