// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/lib/bcore/bcore_hmap_tp_st.c
// Function: bcore_hmap_tp_st_selftest
void bcore_hmap_tp_st_selftest( void )
{
    bcore_life_s* l = bcore_life_s_create();
    st_s* log = st_s_createf( "== bcore_hmap_tp_st_selftest " );
    st_s_push_char_n( log, '=', 80 - log->size );
    st_s_push_char( log, '\n' );

    bcore_hmap_tp_st_s* map = bcore_life_s_push_aware( l, bcore_hmap_tp_st_s_create() );
    const uz_t cycles = 200000;

    typedef struct
    {
        tp_t key;
        u3_t val;
    } kv_s;

    kv_s* kvbuf = bcore_alloc( NULL, cycles * sizeof( kv_s ) );
    uz_t kvbuf_size = 0;

    clock_t time = clock();
    st_s_pushf( log, "Mixed access: " );

    {
        u3_t rval1 = 1;
        u3_t rval2 = 12345;
        for( uz_t i = 0; i < cycles; i++ )
        {
            rval1 = bcore_lcg00_u3( rval1 );
            rval2 = bcore_lcg00_u3( rval2 );
            kv_s kv;
            kv.key = ( tp_t )rval1;
            kv.val = rval2;
            kvbuf[ kvbuf_size++ ] = kv;

            // set
            bcore_hmap_tp_st_s_set_d( map, kv.key, st_s_create_typed( TYPEOF_u3_t, &kv.val ) );

            // retrieve
            rval1 = bcore_lcg00_u3( rval1 );
            kv = kvbuf[ rval1 % kvbuf_size ];

            u3_t val = 0;
            st_s_parse_fa( bcore_hmap_tp_st_s_get( map, kv.key ), 0, -1, "#<u3_t*>", &val );
            if( kv.val != val ) ERR( "value mismatch (%lu vs %lu)", kv.val, val );

            // delete
            rval1 = bcore_lcg00_u3( rval1 );
            if( ( ( rval1 >> 10 ) & 1 ) == 1 )
            {
                rval1 = bcore_lcg00_u3( rval1 );
                uz_t idx = rval1 % kvbuf_size;
                kv_s kv = kvbuf[ idx ];
                if( !bcore_hmap_tp_st_s_get( map, kv.key ) )  ERR( "key (%lu) not found", kv.key );
                bcore_hmap_tp_st_s_remove( map, kv.key );
                if( bcore_hmap_tp_st_s_get(  map, kv.key ) )  ERR( "deleted key still exists (%lu)", kv.key );
                kvbuf_size--;
                kvbuf[ idx ] = kvbuf[ kvbuf_size ];
            }
        }
    }

    time = clock() - time;
    st_s_pushf( log, "(%5.3fs)\n", ( double )time/CLOCKS_PER_SEC );
    st_s_push_st_d( log, hmap_tp_st_s_status( map ) );

    time = clock();
    bcore_hmap_tp_st_s* map2 = bcore_life_s_push_aware( l, bcore_hmap_tp_st_s_clone( map ) );
    time = clock() - time;
    st_s_pushf( log, "Clone .......... %5.3fs\n", ( double )time/CLOCKS_PER_SEC );

    time = clock();
    if( bcore_compare_aware( map, map2 ) != 0 )
    {
        ERR( "comparison failed:\n%s", bcore_diff_aware( map, map2 )->sc );
    }

    time = clock() - time;
    st_s_pushf( log, "Comparison ..... %5.3fs\n", ( double )time/CLOCKS_PER_SEC );

    time = clock();
    bcore_hmap_tp_st_s* map3 = bcore_life_s_push_aware( l, bcore_hmap_tp_st_s_create() );
    bcore_via_a_nset( (bcore_via*)map3, typeof( "map" ), bcore_via_a_nget( (bcore_via*)map, typeof( "map" ) ) );
    time = clock() - time;
    st_s_pushf( log, "Via-assign ..... %5.3fs\n", ( double )time/CLOCKS_PER_SEC );
    time = clock();
    uz_t map_size = bcore_hmap_tp_st_s_size( map );
    for( uz_t i = 0; i < map_size; i++ )
    {
        tp_t key = bcore_hmap_tp_st_s_idx_key( map, i );
        if( key != 0 )
        {
            u3_t val1 = 0;
            st_s_parse_fa( bcore_hmap_tp_st_s_get( map, key ), 0, -1, "#<u3_t*>", &val1 );
            ASSERT( bcore_hmap_tp_st_s_exists( map3, key ) );
            u3_t val2 = 1;
            st_s_parse_fa( bcore_hmap_tp_st_s_get( map3, key ), 0, -1, "#<u3_t*>", &val2 );
            ASSERT( val1 == val2 );
        }
    }
    time = clock() - time;
    st_s_pushf( log, "verify assign .. %5.3fs\n", ( double )time/CLOCKS_PER_SEC );

    time = clock();
    st_s_pushf( log, "\nRead-access of %lu keys: ", kvbuf_size );
    uz_t read_cycles = 20;
    for( uz_t j = 0; j < read_cycles; j++ )
    {
        for( uz_t i = 0; i < kvbuf_size; i++ )
        {
            u3_t val = 0;
            st_s_parse_fa( bcore_hmap_tp_st_s_get( map, kvbuf[ i ].key ), 0, -1, "#<u3_t*>", &val );
            if( val != kvbuf[ i ].val ) ERR( "value mismatch (%lu vs %lu)", val, kvbuf[ i ].val );
        }
    }
    time = clock() - time;
    st_s_pushf( log, "(%gs per access)\n", ( ( double )time/CLOCKS_PER_SEC ) / ( kvbuf_size * read_cycles ) );

    st_s_pushf( log, "\n" );
    st_s_pushf( log, "Removal: " );
    time = clock();
    while( kvbuf_size )
    {
        kvbuf_size--;
        kv_s kv = kvbuf[ kvbuf_size ];
        if( !bcore_hmap_tp_st_s_get( map, kv.key ) )  ERR( "key (%lu) not found", kv.key );
        bcore_hmap_tp_st_s_remove( map, kv.key );
        if( bcore_hmap_tp_st_s_get( map, kv.key ) )  ERR( "deleted key still exists (%lu)", kv.key );
    }
    time = clock() - time;
    st_s_pushf( log, "(%5.3fs)\n", ( double )time/CLOCKS_PER_SEC );
    st_s_push_st_d( log, hmap_tp_st_s_status( map ) );
    bcore_alloc( kvbuf, 0 );
    bcore_life_s_discard( l );

    st_s_push_char_n( log, '=', 80 );

    bcore_msg_fa( "#<sc_t>\n", log->sc );
    st_s_discard( log );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movabsq $0x1c140000000001cd, %r13 # imm = 0x1C140000000001CD
xorl %eax, %eax
callq 0xd6618
movq %rax, %rbx
leaq 0x71096(%rip), %rdi     # 0x146b26
xorl %eax, %eax
callq 0x109ce5
movq %rax, %r14
movl $0x50, %edx
subq 0x10(%rax), %rdx
movq %rax, %rdi
movl $0x3d, %esi
callq 0x10a4d1
movq %r14, %rdi
movl $0xa, %esi
callq 0x10a448
xorl %eax, %eax
callq 0x5c733
movq %rbx, 0x78(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
callq 0xd6a3c
movq %rax, %rbx
movl $0x30d400, %esi         # imm = 0x30D400
xorl %edi, %edi
callq 0xbe7b1
movq %rax, 0x40(%rsp)
callq 0xd340
movq %rax, 0x88(%rsp)
leaq 0x63d73(%rip), %rsi     # 0x13986f
movq %r14, 0x30(%rsp)
movq %r14, %rdi
xorl %eax, %eax
callq 0x10a7d0
movq %rbx, 0x70(%rsp)
addq $0x8, %rbx
movq %rbx, 0x20(%rsp)
movl $0x3039, %eax           # imm = 0x3039
movl $0x1, %r12d
movl $0x30d40, %ecx          # imm = 0x30D40
movq $0x0, 0x28(%rsp)
movq %rcx, 0x80(%rsp)
imulq %r13, %r12
incq %r12
imulq %r13, %rax
incq %rax
movq %r12, 0x50(%rsp)
movq %rax, 0x38(%rsp)
movq %rax, 0x58(%rsp)
movq 0x28(%rsp), %rbx
leaq 0x1(%rbx), %r14
shlq $0x4, %rbx
movaps 0x50(%rsp), %xmm0
movq 0x40(%rsp), %r15
movups %xmm0, (%r15,%rbx)
movabsq $-0x5aa4411ac4e2880e, %rdi # imm = 0xA55BBEE53B1D77F2
leaq 0x58(%rsp), %rsi
callq 0x10a16e
movq 0x20(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xcc584
imulq %r13, %r12
incq %r12
movq %r12, %rax
xorl %edx, %edx
movq %r14, 0x68(%rsp)
divq %r14
shlq $0x4, %rdx
movups (%r15,%rdx), %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x50(%rsp), %rsi
movq %rbp, %rdi
callq 0xcc468
movl $0x0, %edi
testq %rax, %rax
je 0xd5bdf
movq (%rax), %rdi
xorl %esi, %esi
movq $-0x1, %rdx
leaq 0x6eec2(%rip), %rcx     # 0x144ab1
leaq 0x48(%rsp), %r8
xorl %eax, %eax
callq 0x10d709
movq 0x58(%rsp), %r8
movq 0x48(%rsp), %r9
cmpq %r9, %r8
je 0xd5c2b
leaq 0x65a12(%rip), %rdi     # 0x13b623
leaq 0x70f2c(%rip), %rsi     # 0x146b44
movl $0x51, %edx
leaq 0x70768(%rip), %rcx     # 0x14638c
xorl %eax, %eax
callq 0xbe592
movabsq $0x1c140000000001cd, %r13 # imm = 0x1C140000000001CD
imulq %r13, %r12
incq %r12
btl $0xa, %r12d
jb 0xd5c52
movq 0x68(%rsp), %r15
movq %r15, 0x28(%rsp)
jmp 0xd5d15
imulq %r13, %r12
incq %r12
movq %r12, %rax
xorl %edx, %edx
divq 0x68(%rsp)
movq %rdx, %r15
shlq $0x4, %r15
movq 0x40(%rsp), %rax
movq (%rax,%r15), %rbp
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0xcc468
testq %rax, %rax
je 0xd5c8b
cmpq $0x0, (%rax)
jne 0xd5caf
leaq 0x65991(%rip), %rdi     # 0x13b623
leaq 0x70eab(%rip), %rsi     # 0x146b44
movl $0x5a, %edx
leaq 0x70703(%rip), %rcx     # 0x1463a8
movq %rbp, %r8
xorl %eax, %eax
callq 0xbe592
movq 0x20(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0xcc8af
movq %r13, %rdi
movq %rbp, %rsi
callq 0xcc468
testq %rax, %rax
je 0xd5cf9
cmpq $0x0, (%rax)
je 0xd5cf9
leaq 0x65947(%rip), %rdi     # 0x13b623
leaq 0x70e61(%rip), %rsi     # 0x146b44
movl $0x5c, %edx
leaq 0x706cd(%rip), %rcx     # 0x1463bc
movq %rbp, %r8
xorl %eax, %eax
callq 0xbe592
movq 0x40(%rsp), %rax
addq %rax, %rbx
addq %rax, %r15
movups (%rbx), %xmm0
movups %xmm0, (%r15)
movabsq $0x1c140000000001cd, %r13 # imm = 0x1C140000000001CD
movq 0x38(%rsp), %rax
movq 0x80(%rsp), %rcx
decq %rcx
jne 0xd5b32
callq 0xd340
subq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x57328(%rip), %xmm0    # 0x12d070
leaq 0x7068c(%rip), %rsi     # 0x1463db
movq 0x30(%rsp), %r12
movq %r12, %rdi
movb $0x1, %al
callq 0x10a7d0
movq 0x70(%rsp), %r15
movq %r15, %rdi
callq 0xd6406
movq %r12, %rdi
movq %rax, %rsi
callq 0x10a641
callq 0xd340
movq %rax, %rbx
movq %r15, %rdi
callq 0x5c89b
movq 0x78(%rsp), %rdi
movq %rax, %rsi
callq 0xd6a3c
movq %rax, %r14
callq 0xd340
subq %rbx, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x572c2(%rip), %xmm0    # 0x12d070
leaq 0x7068d(%rip), %rsi     # 0x146442
movq %r12, %rdi
movb $0x1, %al
callq 0x10a7d0
callq 0xd340
movq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0xf431d
testl %eax, %eax
je 0xd5e06
movq %r15, %rdi
movq %r14, %rsi
callq 0xf4ddb
movq 0x8(%rax), %r8
leaq 0x65837(%rip), %rdi     # 0x13b623
leaq 0x70d51(%rip), %rsi     # 0x146b44
leaq 0x63b12(%rip), %rcx     # 0x13990c
movl $0x6f, %edx
xorl %eax, %eax
callq 0xbe592
callq 0xd340
subq %rbx, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x57252(%rip), %xmm0    # 0x12d070
leaq 0x7065c(%rip), %rsi     # 0x146481
movq 0x30(%rsp), %rdi
movb $0x1, %al
callq 0x10a7d0
callq 0xd340
movq %rax, %r13
xorl %eax, %eax
callq 0x5c733
movq 0x78(%rsp), %rdi
movq %rax, %rsi
callq 0xd6a3c
movq %rax, %r14
movq (%r15), %r15
leaq 0xc729e(%rip), %rbx     # 0x19d0f8
movl (%rbx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbx,%rax,8), %rcx
movq 0x18(%rbx,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xd5eaf
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xd5eaf
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xd5eaf
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xd5eb8
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xd5edf
movabsq $0x541d0401d4dcff33, %rdi # imm = 0x541D0401D4DCFF33
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0xc7224(%rip), %rdi     # 0x19d0f8
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movabsq $0x80f5919176d2d91, %r12 # imm = 0x80F5919176D2D91
leaq 0x90(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rsi
movq 0x70(%rsp), %rdx
movq %r12, %rcx
callq 0x102bbb
movq 0x10(%r15), %rax
movq %rax, 0x60(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x50(%rsp)
movq (%r14), %r15
movl (%rbx), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbx,%rax,8), %rcx
movq 0x18(%rbx,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xd5f6e
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xd5f6e
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xd5f6e
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xd5f77
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xd5f9e
movabsq $0x541d0401d4dcff33, %rdi # imm = 0x541D0401D4DCFF33
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0xc7165(%rip), %rdi     # 0x19d0f8
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x102c00
callq 0xd340
subq %r13, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x57099(%rip), %xmm0    # 0x12d070
leaq 0x704bc(%rip), %rsi     # 0x14649a
movq 0x30(%rsp), %rdi
movb $0x1, %al
callq 0x10a7d0
callq 0xd340
movq %rax, %r13
movq 0x20(%rsp), %rdi
callq 0xccb0a
testq %rax, %rax
movq 0x40(%rsp), %rbp
je 0xd611f
movq %rax, %r12
addq $0x8, %r14
xorl %ebx, %ebx
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0xccb0f
testq %rax, %rax
je 0xd6113
movq %rax, %r15
movq $0x0, 0x50(%rsp)
movq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0xcc468
testq %rax, %rax
je 0xd604c
movq (%rax), %rdi
jmp 0xd604e
xorl %edi, %edi
xorl %esi, %esi
movq $-0x1, %rdx
leaq 0x6ea53(%rip), %rcx     # 0x144ab1
leaq 0x50(%rsp), %r8
xorl %eax, %eax
callq 0x10d709
movq %r14, %rdi
movq %r15, %rsi
callq 0xcc99f
testb %al, %al
jne 0xd60a2
leaq 0x575c7(%rip), %rdi     # 0x12d647
leaq 0x70ad0(%rip), %rsi     # 0x146b57
leaq 0x65595(%rip), %rdx     # 0x13b623
leaq 0x70aaf(%rip), %rcx     # 0x146b44
movl $0x83, %r8d
xorl %eax, %eax
callq 0xbe4ef
movq $0x1, 0x48(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0xcc468
testq %rax, %rax
je 0xd60c0
movq (%rax), %rdi
jmp 0xd60c2
xorl %edi, %edi
xorl %esi, %esi
movq $-0x1, %rdx
leaq 0x6e9df(%rip), %rcx     # 0x144ab1
leaq 0x48(%rsp), %r8
xorl %eax, %eax
callq 0x10d709
movq 0x50(%rsp), %rax
cmpq 0x48(%rsp), %rax
je 0xd6113
leaq 0x57556(%rip), %rdi     # 0x12d647
leaq 0x70a86(%rip), %rsi     # 0x146b7e
leaq 0x65524(%rip), %rdx     # 0x13b623
leaq 0x70a3e(%rip), %rcx     # 0x146b44
movl $0x86, %r8d
xorl %eax, %eax
callq 0xbe4ef
incq %rbx
cmpq %rbx, %r12
jne 0xd6013
callq 0xd340
subq %r13, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x56f39(%rip), %xmm0    # 0x12d070
leaq 0x703c6(%rip), %rsi     # 0x146504
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movb $0x1, %al
callq 0x10a7d0
callq 0xd340
movq %rax, 0x68(%rsp)
leaq 0x70287(%rip), %rsi     # 0x1463e5
movq %rbx, %rdi
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x10a7d0
leaq 0x8(%rbp), %rax
movq %rax, 0x38(%rsp)
leaq 0x6e934(%rip), %r14     # 0x144ab1
leaq 0x50(%rsp), %r12
leaq 0x70203(%rip), %rbp     # 0x14638c
xorl %r13d, %r13d
movq 0x38(%rsp), %rbx
movq 0x28(%rsp), %rax
movq %rax, %r15
testq %rax, %rax
je 0xd620a
movq $0x0, 0x50(%rsp)
movq -0x8(%rbx), %rsi
movq 0x20(%rsp), %rdi
callq 0xcc468
testq %rax, %rax
je 0xd61bf
movq (%rax), %rdi
jmp 0xd61c1
xorl %edi, %edi
xorl %esi, %esi
movq $-0x1, %rdx
movq %r14, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x10d709
movq 0x50(%rsp), %r8
movq (%rbx), %r9
cmpq %r9, %r8
je 0xd6201
leaq 0x65438(%rip), %rdi     # 0x13b623
leaq 0x70952(%rip), %rsi     # 0x146b44
movl $0x95, %edx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xbe592
addq $0x10, %rbx
decq %r15
jne 0xd619e
incq %r13
cmpq $0x14, %r13
jne 0xd618c
callq 0xd340
subq 0x68(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x56e3f(%rip), %xmm0    # 0x12d070
movq 0x28(%rsp), %rbx
leaq (,%rbx,4), %rax
leaq (%rax,%rax,4), %rax
movq %rax, %xmm1
punpckldq 0x61091(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x61099(%rip), %xmm1    # 0x1372f0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x70192(%rip), %rsi     # 0x146400
movq 0x30(%rsp), %r14
movq %r14, %rdi
movb $0x1, %al
callq 0x10a7d0
leaq 0x72490(%rip), %rsi     # 0x148714
movq %r14, %rdi
xorl %eax, %eax
callq 0x10a7d0
leaq 0x63835(%rip), %rsi     # 0x139aca
movq %r14, %rdi
xorl %eax, %eax
callq 0x10a7d0
callq 0xd340
movq %rax, 0x38(%rsp)
testq %rbx, %rbx
je 0xd636d
movq 0x28(%rsp), %rax
shlq $0x4, %rax
movq 0x40(%rsp), %rcx
leaq (%rcx,%rax), %rbp
addq $-0x10, %rbp
leaq 0x65354(%rip), %r14     # 0x13b623
leaq 0x7086e(%rip), %r12     # 0x146b44
leaq 0x700cb(%rip), %r15     # 0x1463a8
movq 0x20(%rsp), %r13
movq (%rbp), %rbx
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0xcc468
testq %rax, %rax
je 0xd62fe
cmpq $0x0, (%rax)
jne 0xd6316
movq %r14, %rdi
movq %r12, %rsi
movl $0xa2, %edx
movq %r15, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0xbe592
movq %r13, %rdi
movq %rbx, %rsi
callq 0xcc8af
movq %r13, %rdi
movq %rbx, %rsi
callq 0xcc468
testq %rax, %rax
je 0xd6353
cmpq $0x0, (%rax)
je 0xd6353
movq %r14, %rdi
movq %r12, %rsi
movl $0xa4, %edx
leaq 0x70073(%rip), %rcx     # 0x1463bc
movq %rbx, %r8
xorl %eax, %eax
callq 0xbe592
movq 0x28(%rsp), %rcx
decq %rcx
addq $-0x10, %rbp
movq %rcx, 0x28(%rsp)
testq %rcx, %rcx
jne 0xd62e2
callq 0xd340
subq 0x38(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x56ce9(%rip), %xmm0    # 0x12d070
leaq 0x7004d(%rip), %rsi     # 0x1463db
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movb $0x1, %al
callq 0x10a7d0
movq 0x70(%rsp), %rdi
callq 0xd6406
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10a641
movq 0x40(%rsp), %rdi
xorl %esi, %esi
callq 0xbe7b1
movq 0x78(%rsp), %rdi
callq 0xd6647
movl $0x50, %edx
movq %rbx, %rdi
movl $0x3d, %esi
callq 0x10a4d1
movq 0x8(%rbx), %rsi
leaq 0x77c83(%rip), %rdi     # 0x14e068
xorl %eax, %eax
callq 0xbe364
movq %rbx, %rdi
callq 0x10a028
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq