// File: /workspace/github_c_makefile_star2_O3/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 $0xc78, %rsp            # imm = 0xC78
movabsq $0x1e000000280, %rax    # imm = 0x1E000000280
movq %rax, 0xc8(%rsp)
movl $0x1, 0xd8(%rsp)
xorl %eax, %eax
movb %al, 0xdc(%rsp)
movl $0x1010101, 0xdd(%rsp) # imm = 0x1010101
movb %al, 0xe4(%rsp)
movl $0x40, 0xe8(%rsp)
leaq 0x11f5(%rip), %rax      # 0x677c
movq %rax, 0xd0(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0xc8(%rsp), %xmm0
movups 0xd8(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0xf0(%rsp), %rbx
movq %rbx, %rdi
callq 0x3f6d
movq 0x38(%rbx), %rax
movq (%rax), %xmm0
movdqa %xmm0, %xmm1
psrld $0x1f, %xmm1
paddd %xmm0, %xmm1
psrad $0x1, %xmm1
cvtdq2ps %xmm1, %xmm0
movlps %xmm0, 0x6f0(%rsp)
movdqa 0xaed(%rip), %xmm9      # 0x60e0
movl $0x124, %eax            # imm = 0x124
movdqa 0xaf0(%rip), %xmm0      # 0x60f0
movdqa 0xaf8(%rip), %xmm1      # 0x6100
movdqa 0xb00(%rip), %xmm2      # 0x6110
movaps 0xb09(%rip), %xmm3      # 0x6120
movaps 0xb12(%rip), %xmm4      # 0x6130
movaps 0xb1b(%rip), %xmm5      # 0x6140
xorps %xmm10, %xmm10
movaps 0xb5f(%rip), %xmm14     # 0x6190
movdqa 0xb67(%rip), %xmm6      # 0x61a0
movdqa 0xb6f(%rip), %xmm7      # 0x61b0
movdqa %xmm9, %xmm15
pand %xmm0, %xmm15
por %xmm1, %xmm15
movdqa %xmm9, %xmm8
psrld $0x10, %xmm8
por %xmm2, %xmm8
subps %xmm3, %xmm8
addps %xmm15, %xmm8
mulps %xmm4, %xmm8
movaps %xmm5, %xmm15
minps %xmm8, %xmm15
movaps %xmm5, %xmm8
subps %xmm15, %xmm8
movaps %xmm15, %xmm11
mulps 0xac8(%rip), %xmm11     # 0x6150
movaps %xmm8, %xmm12
mulps %xmm10, %xmm12
addps %xmm11, %xmm12
movaps %xmm15, %xmm11
mulps 0xac0(%rip), %xmm11     # 0x6160
movaps %xmm8, %xmm13
mulps 0xac4(%rip), %xmm13     # 0x6170
addps %xmm11, %xmm13
mulps 0xac8(%rip), %xmm15     # 0x6180
mulps %xmm14, %xmm8
addps %xmm15, %xmm8
cvttps2dq %xmm8, %xmm8
packuswb %xmm8, %xmm8
cvttps2dq %xmm12, %xmm11
pslld $0x10, %xmm11
punpcklwd %xmm10, %xmm8   # xmm8 = xmm8[0],xmm10[0],xmm8[1],xmm10[1],xmm8[2],xmm10[2],xmm8[3],xmm10[3]
por %xmm11, %xmm8
cvttps2dq %xmm13, %xmm11
packuswb %xmm11, %xmm11
punpcklwd %xmm10, %xmm11  # xmm11 = xmm11[0],xmm10[0],xmm11[1],xmm10[1],xmm11[2],xmm10[2],xmm11[3],xmm10[3]
pslld $0x8, %xmm11
por %xmm11, %xmm8
por %xmm6, %xmm8
movdqu %xmm8, 0x6e8(%rsp,%rax,4)
paddd %xmm7, %xmm9
addq $0x4, %rax
cmpq $0x144, %rax            # imm = 0x144
jne 0x5641
movdqa 0x9ba(%rip), %xmm9      # 0x60e0
movl $0x144, %ecx            # imm = 0x144
leaq 0xbf8(%rsp), %rax
movaps 0xac5(%rip), %xmm13     # 0x6200
xorps %xmm14, %xmm14
movdqa %xmm9, %xmm15
pand %xmm0, %xmm15
por %xmm1, %xmm15
movdqa %xmm9, %xmm8
psrld $0x10, %xmm8
por %xmm2, %xmm8
subps %xmm3, %xmm8
addps %xmm15, %xmm8
mulps %xmm4, %xmm8
movaps %xmm5, %xmm15
minps %xmm8, %xmm15
movaps %xmm5, %xmm8
subps %xmm15, %xmm8
movaps %xmm15, %xmm10
mulps 0xa3a(%rip), %xmm10     # 0x61c0
movaps %xmm8, %xmm11
mulps 0xa3e(%rip), %xmm11     # 0x61d0
addps %xmm10, %xmm11
movaps %xmm15, %xmm10
mulps 0xa3e(%rip), %xmm10     # 0x61e0
movaps %xmm8, %xmm12
mulps 0xa42(%rip), %xmm12     # 0x61f0
addps %xmm10, %xmm12
mulps %xmm13, %xmm15
mulps %xmm14, %xmm8
addps %xmm15, %xmm8
cvttps2dq %xmm8, %xmm8
packuswb %xmm8, %xmm8
cvttps2dq %xmm11, %xmm10
pslld $0x10, %xmm10
punpcklwd %xmm14, %xmm8   # xmm8 = xmm8[0],xmm14[0],xmm8[1],xmm14[1],xmm8[2],xmm14[2],xmm8[3],xmm14[3]
por %xmm10, %xmm8
cvttps2dq %xmm12, %xmm10
packuswb %xmm10, %xmm10
punpcklwd %xmm14, %xmm10  # xmm10 = xmm10[0],xmm14[0],xmm10[1],xmm14[1],xmm10[2],xmm14[2],xmm10[3],xmm14[3]
pslld $0x8, %xmm10
por %xmm10, %xmm8
por %xmm6, %xmm8
movdqu %xmm8, 0x6e8(%rsp,%rcx,4)
paddd %xmm7, %xmm9
addq $0x4, %rcx
cmpq $0x164, %rcx            # imm = 0x164
jne 0x573f
movl $0xc, %ecx
pxor %xmm0, %xmm0
movl -0x80(%rax), %edx
movl (%rax), %esi
movl $0x2, 0x6c8(%rsp,%rcx,4)
movdqu %xmm0, 0x6cc(%rsp,%rcx,4)
movq $0x0, 0x6dc(%rsp,%rcx,4)
movl %edx, 0x6e4(%rsp,%rcx,4)
movl %esi, 0x6e8(%rsp,%rcx,4)
addq $0x9, %rcx
addq $0x4, %rax
cmpq $0x12c, %rcx            # imm = 0x12C
jne 0x5825
leaq 0xf0(%rsp), %rdi
callq 0x4a46
testb %al, %al
je 0x5e16
pxor %xmm0, %xmm0
movl $0xff, %ebp
movss 0xf4(%rsp), %xmm1
mulss 0x7a0(%rip), %xmm1      # 0x6038
addss %xmm0, %xmm1
movss %xmm1, 0x5c(%rsp)
movaps %xmm1, %xmm0
mulss 0x78f(%rip), %xmm0      # 0x603c
movss %xmm0, 0x30(%rsp)
mulss 0x785(%rip), %xmm0      # 0x6040
callq 0x2180
movaps %xmm0, 0x40(%rsp)
movss 0x30(%rsp), %xmm0
mulss 0x771(%rip), %xmm0      # 0x6044
callq 0x21d0
movaps 0x40(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
mulps 0x929(%rip), %xmm1      # 0x6210
movlps %xmm1, 0x6e8(%rsp)
leaq 0x70c(%rsp), %rbx
xorl %r14d, %r14d
xorps %xmm0, %xmm0
cvtsi2ss %r14d, %xmm0
addss 0x5c(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
divss 0x6fe(%rip), %xmm0      # 0x6014
movss %xmm0, 0x30(%rsp)
callq 0x21d0
movaps %xmm0, 0x60(%rsp)
movss 0x40(%rsp), %xmm0
divss 0x6f8(%rip), %xmm0      # 0x602c
movss %xmm0, 0x2c(%rsp)
callq 0x21d0
mulss 0x6dd(%rip), %xmm0      # 0x6024
movaps 0x60(%rsp), %xmm1
mulss 0x6f4(%rip), %xmm1      # 0x6048
addss %xmm0, %xmm1
movaps %xmm1, 0x60(%rsp)
movss 0x40(%rsp), %xmm0
mulss 0x699(%rip), %xmm0      # 0x6004
callq 0x2180
movaps %xmm0, 0x70(%rsp)
movss 0x30(%rsp), %xmm0
callq 0x2180
movaps %xmm0, 0xb0(%rsp)
movss 0x2c(%rsp), %xmm0
callq 0x21d0
mulss 0x6b1(%rip), %xmm0      # 0x604c
movaps 0x60(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movaps %xmm1, 0x60(%rsp)
movss 0x30(%rsp), %xmm0
callq 0x21d0
movaps %xmm0, 0xa0(%rsp)
movss 0x40(%rsp), %xmm0
mulss 0x687(%rip), %xmm0      # 0x6050
movss %xmm0, 0x2c(%rsp)
callq 0x21d0
movaps %xmm0, 0x90(%rsp)
movss 0x30(%rsp), %xmm0
callq 0x21d0
xorps 0x6c2(%rip), %xmm0      # 0x60b0
movaps %xmm0, 0x80(%rsp)
movss 0x40(%rsp), %xmm0
divss 0x650(%rip), %xmm0      # 0x6054
movss %xmm0, 0x40(%rsp)
callq 0x21d0
movaps 0x90(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movsd 0x7fe(%rip), %xmm0      # 0x6220
mulps %xmm0, %xmm1
movaps 0x60(%rsp), %xmm0
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movaps 0x70(%rsp), %xmm1
unpcklps 0xb0(%rsp), %xmm1       # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
movaps 0xa0(%rsp), %xmm2
unpcklps 0x80(%rsp), %xmm2       # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
movlhps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0]
mulps 0x7dc(%rip), %xmm1      # 0x6230
addps %xmm0, %xmm1
movups %xmm1, -0x10(%rbx)
movss 0x30(%rsp), %xmm0
callq 0x21d0
movaps %xmm0, 0x60(%rsp)
movss 0x2c(%rsp), %xmm0
callq 0x21d0
movaps %xmm0, 0x70(%rsp)
movss 0x30(%rsp), %xmm0
callq 0x2180
movaps %xmm0, 0x30(%rsp)
movss 0x40(%rsp), %xmm0
callq 0x21d0
movaps 0x70(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
mulps 0x77b(%rip), %xmm1      # 0x6220
movaps 0x60(%rsp), %xmm0
unpcklps 0x30(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
mulps 0x78a(%rip), %xmm0      # 0x6240
addps %xmm1, %xmm0
movlps %xmm0, (%rbx)
incq %r14
addq $0x24, %rbx
cmpq $0x20, %r14
jne 0x58fa
movq 0x128(%rsp), %rbx
movl $0x590, %edx            # imm = 0x590
leaq 0x158(%rsp), %rdi
leaq 0x6e8(%rsp), %rsi
callq 0x21c0
movss 0x160(%rsp), %xmm6
movss 0x164(%rsp), %xmm0
addss 0x158(%rsp), %xmm6
addss 0x15c(%rsp), %xmm0
movss %xmm0, 0x80(%rsp)
movl 0x4(%rbx), %ecx
testl %ecx, %ecx
movss 0x4de(%rip), %xmm11     # 0x6008
movss 0x525(%rip), %xmm12     # 0x6058
movss 0x520(%rip), %xmm13     # 0x605c
movss 0x51b(%rip), %xmm14     # 0x6060
movss 0x516(%rip), %xmm15     # 0x6064
movss %xmm6, 0x40(%rsp)
jle 0x5c97
movl (%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
xorps %xmm2, %xmm2
cvtsi2ss %ecx, %xmm2
movss %xmm2, 0x30(%rsp)
mulss %xmm2, %xmm2
movaps %xmm0, %xmm3
mulss %xmm0, %xmm3
addss %xmm2, %xmm3
xorps %xmm2, %xmm2
sqrtss %xmm3, %xmm2
xorl %ecx, %ecx
xorps %xmm3, %xmm3
testl %eax, %eax
movss 0x4d3(%rip), %xmm1      # 0x6068
jle 0x5c7f
movss 0x80(%rsp), %xmm4
subss %xmm3, %xmm4
mulss %xmm4, %xmm4
movq 0x10(%rbx), %rdx
xorps %xmm5, %xmm5
movl $0x1, %esi
movss 0x40(%rsp), %xmm6
subss %xmm5, %xmm6
mulss %xmm6, %xmm6
addss %xmm4, %xmm6
sqrtss %xmm6, %xmm6
divss %xmm2, %xmm6
addss %xmm6, %xmm6
pxor %xmm7, %xmm7
maxss %xmm6, %xmm7
movaps %xmm11, %xmm6
minss %xmm7, %xmm6
movaps %xmm11, %xmm7
subss %xmm6, %xmm7
movaps %xmm6, %xmm8
mulss %xmm12, %xmm8
movaps %xmm7, %xmm9
mulss %xmm12, %xmm9
movaps %xmm6, %xmm10
mulss %xmm13, %xmm10
addss %xmm8, %xmm9
movaps %xmm7, %xmm8
mulss %xmm14, %xmm8
addss %xmm10, %xmm8
mulss %xmm15, %xmm6
mulss %xmm1, %xmm7
addss %xmm6, %xmm7
cvttss2si %xmm7, %edi
cvttss2si %xmm8, %r8d
cvttss2si %xmm9, %r9d
movaps %xmm3, %xmm6
mulss %xmm0, %xmm6
addss %xmm5, %xmm6
shll $0x10, %r9d
andl %ebp, %r8d
shll $0x8, %r8d
andl %ebp, %edi
orl %r9d, %r8d
cvttss2si %xmm6, %r9d
movss 0x40(%rsp), %xmm6
movslq %r9d, %r9
orl %r8d, %edi
xorps %xmm5, %xmm5
cvtsi2ss %esi, %xmm5
orl $0xff000000, %edi       # imm = 0xFF000000
incl %esi
ucomiss %xmm5, %xmm0
movl %edi, (%rdx,%r9,4)
ja 0x5bb8
incl %ecx
xorps %xmm3, %xmm3
cvtsi2ss %ecx, %xmm3
movss 0x30(%rsp), %xmm1
ucomiss %xmm3, %xmm1
ja 0x5b8b
movq %rbx, 0x90(%rsp)
movl $0x30, %r14d
movss 0x13c(%rsp,%r14), %xmm0
addss %xmm6, %xmm0
movss 0x140(%rsp,%r14), %xmm1
movss 0x80(%rsp), %xmm4
addss %xmm4, %xmm1
movss 0x144(%rsp,%r14), %xmm2
addss %xmm6, %xmm2
movss 0x148(%rsp,%r14), %xmm3
addss %xmm4, %xmm3
movss 0x14c(%rsp,%r14), %xmm5
addss %xmm6, %xmm5
movss %xmm5, 0x2c(%rsp)
movss 0x150(%rsp,%r14), %xmm5
addss %xmm4, %xmm5
movss %xmm5, 0xa0(%rsp)
movl 0x154(%rsp,%r14), %r9d
movl %r9d, 0x30(%rsp)
movl 0x158(%rsp,%r14), %ebx
movl %ebx, 0xb0(%rsp)
cvttss2si %xmm0, %r15d
cvttss2si %xmm1, %r12d
cvttss2si %xmm2, %ecx
movl %ecx, 0x60(%rsp)
cvttss2si %xmm3, %r8d
movl %r8d, 0x70(%rsp)
movq 0x90(%rsp), %r13
movq %r13, %rdi
movl %r15d, %esi
movl %r12d, %edx
callq 0x3421
cvttss2si 0x2c(%rsp), %ebp
cvttss2si 0xa0(%rsp), %r8d
movl %r8d, 0x2c(%rsp)
movq %r13, %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %ebp, %ecx
movl %ebx, %r9d
callq 0x3421
movl 0x138(%rsp,%r14), %ebx
movq %r13, %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %ebx, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x3847
movq %r13, %rdi
movl 0x60(%rsp), %esi
movl 0x70(%rsp), %edx
movl %ebx, %ecx
movl 0x30(%rsp), %r8d
callq 0x3847
movq %r13, %rdi
movl %ebp, %esi
movl 0x2c(%rsp), %edx
movl %ebx, %ecx
movl 0xb0(%rsp), %r8d
callq 0x3847
movd 0x40(%rsp), %xmm6
addq $0x24, %r14
cmpq $0x4b0, %r14            # imm = 0x4B0
jne 0x5ca5
leaq 0xf0(%rsp), %rbx
movq %rbx, %rdi
callq 0x4b6f
movq %rbx, %rdi
callq 0x4a46
testb %al, %al
movss 0x5c(%rsp), %xmm0
movl $0xff, %ebp
jne 0x5887
leaq 0xf0(%rsp), %rdi
callq 0x5042
xorl %eax, %eax
addq $0xc78, %rsp            # imm = 0xC78
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq