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

    scg_app_t app;
    scg_app_init(&app, config);

    metablobs_t metablobs;
    metablobs_init(&metablobs, METABLOBS_CONST_A, METABLOBS_CONST_B);

    while (scg_app_process_events(&app)) {
        update(&metablobs, app.elapsed_time);

        draw(app.draw_target, &metablobs);

        scg_app_present(&app);
    }

    scg_app_free(&app);

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movabsq $0x1e000000280, %rax    # imm = 0x1E000000280
movq %rax, 0x38(%rsp)
movl $0x1, 0x48(%rsp)
xorl %eax, %eax
movb %al, 0x4c(%rsp)
movl $0x1010101, 0x4d(%rsp)  # imm = 0x1010101
movb %al, 0x54(%rsp)
movl $0x40, 0x58(%rsp)
leaq 0x10de(%rip), %rax      # 0x664c
movq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x38(%rsp), %xmm0
movups 0x48(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x3f6d
movsd 0xb08(%rip), %xmm0      # 0x60b0
movsd %xmm0, 0x70(%rsp)
movaps 0xb0b(%rip), %xmm0      # 0x60c0
movaps %xmm0, 0x60(%rsp)
movsd 0xb0e(%rip), %xmm0      # 0x60d0
movsd %xmm0, 0x8c(%rsp)
movl $0x40000000, 0x94(%rsp) # imm = 0x40000000
movaps 0xb03(%rip), %xmm0      # 0x60e0
movups %xmm0, 0x7c(%rsp)
movsd 0xb06(%rip), %xmm0      # 0x60f0
movsd %xmm0, 0xac(%rsp)
movl $0x40800000, 0xb4(%rsp) # imm = 0x40800000
movaps 0xafb(%rip), %xmm0      # 0x6100
movups %xmm0, 0x9c(%rsp)
movsd 0xafb(%rip), %xmm0      # 0x6110
movsd %xmm0, 0xbc(%rsp)
movl $0x44800000, 0xc4(%rsp) # imm = 0x44800000
movq %rbx, %rdi
callq 0x4a46
testb %al, %al
je 0x5823
leaq 0xe0(%rsp), %rbx
movl $0x1c, %r14d
movss 0xe8(%rsp), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0x60(%rsp,%r14), %xmm1
mulss 0x30(%rsp), %xmm1
movss 0x54(%rsp,%r14), %xmm0
mulss %xmm1, %xmm0
mulss 0x58(%rsp,%r14), %xmm1
movss %xmm1, 0x34(%rsp)
callq 0x2180
movaps %xmm0, 0xd0(%rsp)
movss 0x34(%rsp), %xmm0
callq 0x21d0
movsd 0x4c(%rsp,%r14), %xmm1
movaps 0xd0(%rsp), %xmm2
unpcklps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
mulps %xmm1, %xmm2
movlps %xmm2, 0x44(%rsp,%r14)
addq $0x20, %r14
cmpq $0x7c, %r14
jne 0x5656
movq 0x118(%rsp), %r14
movl (%r14), %eax
movl 0x4(%r14), %edx
movl %edx, %ecx
imull %eax, %ecx
testl %ecx, %ecx
jle 0x56eb
movq 0x10(%r14), %rdi
movl %ecx, %edx
shlq $0x2, %rdx
movl $0xff, %esi
callq 0x2100
movl (%r14), %eax
movl 0x4(%r14), %edx
testl %edx, %edx
movss 0x912(%rip), %xmm10     # 0x6008
movss 0x90d(%rip), %xmm11     # 0x600c
jle 0x580b
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %edx, %xmm1
movss 0x8e9(%rip), %xmm2      # 0x6004
mulss %xmm2, %xmm0
mulss %xmm2, %xmm1
movss 0xc0(%rsp), %xmm2
movss 0xc4(%rsp), %xmm3
movl %eax, %ecx
movl %edx, %edx
xorl %esi, %esi
testl %eax, %eax
jle 0x57ff
xorps %xmm4, %xmm4
cvtsi2ss %esi, %xmm4
movq %rsi, %rdi
imulq %rcx, %rdi
shlq $0x2, %rdi
addq 0x10(%r14), %rdi
xorl %r8d, %r8d
xorps %xmm6, %xmm6
cvtsi2ss %r8d, %xmm6
movl $0x4, %r9d
movaps %xmm10, %xmm5
movss 0x5c(%rsp,%r9), %xmm7
addss %xmm0, %xmm7
movaps %xmm6, %xmm8
subss %xmm7, %xmm8
movss 0x60(%rsp,%r9), %xmm7
addss %xmm1, %xmm7
movaps %xmm4, %xmm9
subss %xmm7, %xmm9
mulss %xmm9, %xmm9
mulss %xmm8, %xmm8
addss %xmm9, %xmm8
xorps %xmm7, %xmm7
sqrtss %xmm8, %xmm7
mulss %xmm7, %xmm5
addq $0x20, %r9
cmpq $0x64, %r9
jne 0x576e
divss %xmm2, %xmm5
movaps %xmm3, %xmm6
subss %xmm5, %xmm6
xorps %xmm5, %xmm5
maxss %xmm6, %xmm5
movaps %xmm11, %xmm6
minss %xmm5, %xmm6
cvttss2si %xmm6, %r9d
notb %r9b
movzbl %r9b, %r9d
imull $0x10101, %r9d, %r9d    # imm = 0x10101
orl $0xff000000, %r9d       # imm = 0xFF000000
movl %r9d, (%rdi,%r8,4)
incq %r8
cmpq %rcx, %r8
jne 0x575c
incq %rsi
cmpq %rdx, %rsi
jne 0x573b
movq %rbx, %rdi
callq 0x4b6f
movq %rbx, %rdi
callq 0x4a46
testb %al, %al
jne 0x5641
leaq 0xe0(%rsp), %rdi
callq 0x5042
xorl %eax, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r14
retq