// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movabsq $0x1e000000280, %rax    # imm = 0x1E000000280
movq %rax, 0x50(%rsp)
movl $0x1, 0x60(%rsp)
xorl %eax, %eax
movb %al, 0x64(%rsp)
movl $0x1010101, 0x65(%rsp)  # imm = 0x1010101
movb %al, 0x6c(%rsp)
movl $0x40, 0x70(%rsp)
leaq 0x109e(%rip), %rax      # 0x65cc
movq %rax, 0x58(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x50(%rsp), %xmm0
movups 0x60(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x3e91
movaps 0xb09(%rip), %xmm0      # 0x6070
movups %xmm0, 0x80(%rsp)
movabsq $0x3f80000000000000, %rax # imm = 0x3F80000000000000
movq %rax, 0x90(%rsp)
movq $0x42700000, 0x78(%rsp) # imm = 0x42700000
movaps 0xaef(%rip), %xmm0      # 0x6080
movups %xmm0, 0xa0(%rsp)
movabsq $0x3f00000000000000, %rax # imm = 0x3F00000000000000
movq %rax, 0xb0(%rsp)
movq $0x42a00000, 0x98(%rsp) # imm = 0x42A00000
movaps 0xad2(%rip), %xmm0      # 0x6090
movups %xmm0, 0xc0(%rsp)
movl $0x0, 0xd0(%rsp)
movq $0x42480000, 0xb8(%rsp) # imm = 0x42480000
movabsq $0x439600003ea8f5c3, %rax # imm = 0x439600003EA8F5C3
movq %rax, 0xd4(%rsp)
movl $0x44800000, 0xdc(%rsp) # imm = 0x44800000
movq %rbx, %rdi
callq 0x49ec
testb %al, %al
je 0x583b
movl $0x1c, %ebx
movss 0xe8(%rsp), %xmm0
movss %xmm0, 0x2c(%rsp)
movss 0x78(%rsp,%rbx), %xmm1
mulss 0x2c(%rsp), %xmm1
movss 0x64(%rsp,%rbx), %xmm0
movss %xmm0, 0x34(%rsp)
movss 0x68(%rsp,%rbx), %xmm0
movss %xmm0, 0x38(%rsp)
movss 0x6c(%rsp,%rbx), %xmm0
mulss %xmm1, %xmm0
mulss 0x70(%rsp,%rbx), %xmm1
movss %xmm1, 0x30(%rsp)
callq 0x2180
mulss 0x34(%rsp), %xmm0
movss %xmm0, 0x5c(%rsp,%rbx)
movss 0x30(%rsp), %xmm0
callq 0x21d0
mulss 0x38(%rsp), %xmm0
movss %xmm0, 0x60(%rsp,%rbx)
addq $0x20, %rbx
cmpq $0x7c, %rbx
jne 0x561e
movq 0x118(%rsp), %r14
movl 0x4(%r14), %eax
imull (%r14), %eax
testl %eax, %eax
jle 0x56b2
movq 0x10(%r14), %rdi
movl %eax, %edx
shlq $0x2, %rdx
movl $0xff, %esi
callq 0x2100
movslq 0x4(%r14), %rcx
movq %rcx, 0x48(%rsp)
testq %rcx, %rcx
jle 0x5826
movl (%r14), %r12d
xorps %xmm3, %xmm3
cvtsi2ss %r12d, %xmm3
movss 0x92d(%rip), %xmm0      # 0x6004
mulss %xmm0, %xmm3
xorps %xmm4, %xmm4
cvtsi2ssl 0x48(%rsp), %xmm4
mulss %xmm0, %xmm4
movss 0xd8(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
movss 0xdc(%rsp), %xmm0
movss %xmm0, 0x3c(%rsp)
xorl %r13d, %r13d
movss %xmm3, 0x2c(%rsp)
movss %xmm4, 0x44(%rsp)
testl %r12d, %r12d
jle 0x5818
xorps %xmm5, %xmm5
cvtsi2ss %r13d, %xmm5
movq %r13, %rbp
imulq %r12, %rbp
xorl %ebx, %ebx
movss %xmm5, 0x30(%rsp)
xorps %xmm7, %xmm7
cvtsi2ss %ebx, %xmm7
movl $0x4, %r15d
movss 0x8be(%rip), %xmm6      # 0x6008
movss %xmm7, 0x34(%rsp)
movss 0x74(%rsp,%r15), %xmm1
addss %xmm3, %xmm1
movaps %xmm7, %xmm0
subss %xmm1, %xmm0
movss 0x78(%rsp,%r15), %xmm1
addss %xmm4, %xmm1
movaps %xmm5, %xmm2
subss %xmm1, %xmm2
mulss %xmm2, %xmm2
mulss %xmm0, %xmm0
addss %xmm2, %xmm0
ucomiss 0x8b1(%rip), %xmm0      # 0x6038
jb 0x578f
sqrtss %xmm0, %xmm0
jmp 0x57b8
movss %xmm6, 0x38(%rsp)
callq 0x23a0
movss 0x34(%rsp), %xmm7
movss 0x38(%rsp), %xmm6
movss 0x30(%rsp), %xmm5
movss 0x44(%rsp), %xmm4
movss 0x2c(%rsp), %xmm3
mulss %xmm0, %xmm6
addq $0x20, %r15
cmpq $0x64, %r15
jne 0x5750
divss 0x40(%rsp), %xmm6
movss 0x3c(%rsp), %xmm0
subss %xmm6, %xmm0
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movss 0x827(%rip), %xmm0      # 0x600c
minss %xmm1, %xmm0
cvttss2si %xmm0, %eax
notb %al
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
leaq (,%rbx,4), %rcx
addq 0x10(%r14), %rcx
orl $0xff000000, %eax       # imm = 0xFF000000
movl %eax, (%rcx,%rbp,4)
incq %rbx
cmpq %r12, %rbx
jne 0x5735
incq %r13
cmpq 0x48(%rsp), %r13
jne 0x5715
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x4b38
jmp 0x55fa
leaq 0xe0(%rsp), %rdi
callq 0x5007
xorl %eax, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq