// File: /workspace/github_c_makefile_star2_O1/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, %r15 # imm = 0x1C140000000001CD
xorl %eax, %eax
callq 0xe03d4
movq %rax, %rbx
leaq 0x722d8(%rip), %rdi     # 0x151b00
xorl %eax, %eax
callq 0x114c1e
movq %rax, %r14
movl $0x50, %edx
subq 0x10(%rax), %rdx
movq %rax, %rdi
movl $0x3d, %esi
callq 0x115408
movq %r14, %rdi
movl $0xa, %esi
callq 0x115381
xorl %eax, %eax
callq 0x6246f
movq %rbx, 0x78(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe081c
movq %rax, %rbx
movl $0x30d400, %esi         # imm = 0x30D400
xorl %edi, %edi
callq 0xc8315
movq %rax, 0x38(%rsp)
callq 0xd340
movq %rax, 0x88(%rsp)
leaq 0x65163(%rip), %rsi     # 0x1449f7
movq %r14, 0x28(%rsp)
movq %r14, %rdi
xorl %eax, %eax
callq 0x1156f6
movq %rbx, 0x70(%rsp)
addq $0x8, %rbx
movq %rbx, 0x18(%rsp)
movl $0x3039, %eax           # imm = 0x3039
movl $0x1, %r12d
movl $0x30d40, %ecx          # imm = 0x30D40
movq $0x0, 0x20(%rsp)
movq %rcx, 0x80(%rsp)
imulq %r15, %r12
incq %r12
imulq %r15, %rax
incq %rax
movq %r12, 0x40(%rsp)
movq %rax, 0x30(%rsp)
movq %rax, 0x48(%rsp)
movq 0x20(%rsp), %rbx
leaq 0x1(%rbx), %r14
shlq $0x4, %rbx
movaps 0x40(%rsp), %xmm0
movq 0x38(%rsp), %r13
movups %xmm0, (%r13,%rbx)
movq 0x40(%rsp), %r15
movabsq $-0x5aa4411ac4e2880e, %rdi # imm = 0xA55BBEE53B1D77F2
leaq 0x48(%rsp), %rsi
callq 0x1150a7
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
movabsq $0x1c140000000001cd, %r15 # imm = 0x1C140000000001CD
movq %rax, %rdx
callq 0xd64d1
imulq %r15, %r12
incq %r12
movq %r12, %rax
xorl %edx, %edx
movq %r14, 0x68(%rsp)
divq %r14
shlq $0x4, %rdx
movups (%r13,%rdx), %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x60(%rsp)
movq 0x40(%rsp), %rsi
movq %rbp, %rdi
callq 0xd63b5
movl $0x0, %edi
testq %rax, %rax
je 0xdf988
movq (%rax), %rdi
xorl %esi, %esi
movq $-0x1, %rdx
leaq 0x70108(%rip), %rcx     # 0x14faa0
leaq 0x60(%rsp), %r8
xorl %eax, %eax
callq 0x11886c
movq 0x48(%rsp), %r8
movq 0x60(%rsp), %r9
cmpq %r9, %r8
je 0xdf9d4
leaq 0x66df1(%rip), %rdi     # 0x1467ab
leaq 0x7215d(%rip), %rsi     # 0x151b1e
movl $0x51, %edx
leaq 0x71999(%rip), %rcx     # 0x151366
xorl %eax, %eax
callq 0xc80f6
imulq %r15, %r12
incq %r12
btl $0xa, %r12d
jb 0xdf9f1
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0xdfab4
imulq %r15, %r12
incq %r12
movq %r12, %rax
xorl %edx, %edx
divq 0x68(%rsp)
movq %rdx, %r15
shlq $0x4, %r15
movq 0x38(%rsp), %rax
movq (%rax,%r15), %rbp
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
callq 0xd63b5
testq %rax, %rax
je 0xdfa2a
cmpq $0x0, (%rax)
jne 0xdfa4e
leaq 0x66d7a(%rip), %rdi     # 0x1467ab
leaq 0x720e6(%rip), %rsi     # 0x151b1e
movl $0x5a, %edx
leaq 0x7193e(%rip), %rcx     # 0x151382
movq %rbp, %r8
xorl %eax, %eax
callq 0xc80f6
movq 0x18(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0xd6790
movq %r13, %rdi
movq %rbp, %rsi
callq 0xd63b5
testq %rax, %rax
je 0xdfa98
cmpq $0x0, (%rax)
je 0xdfa98
leaq 0x66d30(%rip), %rdi     # 0x1467ab
leaq 0x7209c(%rip), %rsi     # 0x151b1e
movl $0x5c, %edx
leaq 0x71908(%rip), %rcx     # 0x151396
movq %rbp, %r8
xorl %eax, %eax
callq 0xc80f6
movq 0x38(%rsp), %rax
addq %rax, %rbx
addq %rax, %r15
movups (%rbx), %xmm0
movups %xmm0, (%r15)
movabsq $0x1c140000000001cd, %r15 # imm = 0x1C140000000001CD
movq 0x30(%rsp), %rax
movq 0x80(%rsp), %rcx
decq %rcx
jne 0xdf8ca
callq 0xd340
subq 0x88(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x58589(%rip), %xmm0    # 0x138070
leaq 0x718c7(%rip), %rsi     # 0x1513b5
movq 0x28(%rsp), %r12
movq %r12, %rdi
movb $0x1, %al
callq 0x1156f6
movq 0x70(%rsp), %r15
movq %r15, %rdi
callq 0xe01c2
movq %r12, %rdi
movq %rax, %rsi
callq 0x11556c
callq 0xd340
movq %rax, %rbx
movq %r15, %rdi
callq 0x625e0
movq 0x78(%rsp), %rdi
movq %rax, %rsi
callq 0xe081c
movq %rax, %r14
callq 0xd340
subq %rbx, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x58523(%rip), %xmm0    # 0x138070
leaq 0x718c8(%rip), %rsi     # 0x15141c
movq %r12, %rdi
movb $0x1, %al
callq 0x1156f6
callq 0xd340
movq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0xfe9cd
testl %eax, %eax
je 0xdfba5
movq %r15, %rdi
movq %r14, %rsi
callq 0xff4f5
movq 0x8(%rax), %r8
leaq 0x66c20(%rip), %rdi     # 0x1467ab
leaq 0x71f8c(%rip), %rsi     # 0x151b1e
leaq 0x64efb(%rip), %rcx     # 0x144a94
movl $0x6f, %edx
xorl %eax, %eax
callq 0xc80f6
callq 0xd340
subq %rbx, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x584b3(%rip), %xmm0    # 0x138070
leaq 0x71897(%rip), %rsi     # 0x15145b
movq 0x28(%rsp), %rdi
movb $0x1, %al
callq 0x1156f6
callq 0xd340
movq %rax, %rbx
xorl %eax, %eax
callq 0x6246f
movq 0x78(%rsp), %rdi
movq %rax, %rsi
callq 0xe081c
movq %rax, %r13
movq (%r15), %r14
leaq 0xca4ff(%rip), %rbp     # 0x1aa0f8
movl (%rbp), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0xdfc53
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xdfc53
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xdfc53
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xe01b2
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xdfc83
movabsq $0x541d0401d4dcff33, %rdi # imm = 0x541D0401D4DCFF33
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xca480(%rip), %rdi     # 0x1aa0f8
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movabsq $0x80f5919176d2d91, %r14 # imm = 0x80F5919176D2D91
leaq 0x90(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq 0x70(%rsp), %rdx
movq %r14, %rcx
callq 0x10d818
movq 0x10(%r12), %rax
movq %rax, 0x50(%rsp)
movups (%r12), %xmm0
movaps %xmm0, 0x40(%rsp)
movq (%r13), %r15
movl (%rbp), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rbp,%rax,8), %rcx
movq 0x18(%rbp,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0xdfd1a
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0xdfd1a
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0xdfd1a
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0xe01ba
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0xdfd4a
movabsq $0x541d0401d4dcff33, %rdi # imm = 0x541D0401D4DCFF33
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0xca3b9(%rip), %rdi     # 0x1aa0f8
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x10d85d
callq 0xd340
subq %rbx, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x582ed(%rip), %xmm0    # 0x138070
leaq 0x716ea(%rip), %rsi     # 0x151474
movq 0x28(%rsp), %rdi
movb $0x1, %al
callq 0x1156f6
callq 0xd340
movq %rax, %rbp
movq 0x18(%rsp), %rdi
callq 0xd69ef
testq %rax, %rax
je 0xdfec6
movq %rax, %r12
addq $0x8, %r13
leaq 0x6fce1(%rip), %rbx     # 0x14faa0
xorl %r14d, %r14d
movq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0xd69f4
testq %rax, %rax
je 0xdfeba
movq %rax, %r15
movq $0x0, 0x40(%rsp)
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0xd63b5
testq %rax, %rax
je 0xdfdfb
movq (%rax), %rdi
jmp 0xdfdfd
xorl %edi, %edi
xorl %esi, %esi
movq $-0x1, %rdx
movq %rbx, %rcx
leaq 0x40(%rsp), %r8
xorl %eax, %eax
callq 0x11886c
movq %r13, %rdi
movq %r15, %rsi
callq 0xd6885
testb %al, %al
jne 0xdfe4d
leaq 0x5881c(%rip), %rdi     # 0x138647
leaq 0x71cff(%rip), %rsi     # 0x151b31
leaq 0x66972(%rip), %rdx     # 0x1467ab
leaq 0x71cde(%rip), %rcx     # 0x151b1e
movl $0x83, %r8d
xorl %eax, %eax
callq 0xc8053
movq $0x1, 0x60(%rsp)
movq %r13, %rdi
movq %r15, %rsi
callq 0xd63b5
testq %rax, %rax
je 0xdfe6b
movq (%rax), %rdi
jmp 0xdfe6d
xorl %edi, %edi
xorl %esi, %esi
movq $-0x1, %rdx
movq %rbx, %rcx
leaq 0x60(%rsp), %r8
xorl %eax, %eax
callq 0x11886c
movq 0x40(%rsp), %rax
cmpq 0x60(%rsp), %rax
je 0xdfeba
leaq 0x587af(%rip), %rdi     # 0x138647
leaq 0x71cb9(%rip), %rsi     # 0x151b58
leaq 0x66905(%rip), %rdx     # 0x1467ab
leaq 0x71c71(%rip), %rcx     # 0x151b1e
movl $0x86, %r8d
xorl %eax, %eax
callq 0xc8053
incq %r14
cmpq %r14, %r12
jne 0xdfdc2
callq 0xd340
subq %rbp, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x58192(%rip), %xmm0    # 0x138070
leaq 0x715f9(%rip), %rsi     # 0x1514de
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
movb $0x1, %al
callq 0x1156f6
callq 0xd340
movq %rax, 0x68(%rsp)
leaq 0x714ba(%rip), %rsi     # 0x1513bf
movq %rbx, %rdi
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0x1156f6
movq 0x38(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x30(%rsp)
leaq 0x6fb77(%rip), %r14     # 0x14faa0
leaq 0x40(%rsp), %r12
leaq 0x71431(%rip), %rbp     # 0x151366
xorl %r13d, %r13d
movq 0x30(%rsp), %rbx
movq 0x20(%rsp), %rax
movq %rax, %r15
testq %rax, %rax
je 0xdffb6
movq $0x0, 0x40(%rsp)
movq -0x8(%rbx), %rsi
movq 0x18(%rsp), %rdi
callq 0xd63b5
testq %rax, %rax
je 0xdff6b
movq (%rax), %rdi
jmp 0xdff6d
xorl %edi, %edi
xorl %esi, %esi
movq $-0x1, %rdx
movq %r14, %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x11886c
movq 0x40(%rsp), %r8
movq (%rbx), %r9
cmpq %r9, %r8
je 0xdffad
leaq 0x66814(%rip), %rdi     # 0x1467ab
leaq 0x71b80(%rip), %rsi     # 0x151b1e
movl $0x95, %edx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xc80f6
addq $0x10, %rbx
decq %r15
jne 0xdff4a
incq %r13
cmpq $0x14, %r13
jne 0xdff38
callq 0xd340
subq 0x68(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x58093(%rip), %xmm0    # 0x138070
movq 0x20(%rsp), %rbx
leaq (,%rbx,4), %rax
leaq (%rax,%rax,4), %rax
movq %rax, %xmm1
punpckldq 0x62295(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x6229d(%rip), %xmm1    # 0x1422a0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x713c0(%rip), %rsi     # 0x1513da
movq 0x28(%rsp), %r14
movq %r14, %rdi
movb $0x1, %al
callq 0x1156f6
leaq 0x736be(%rip), %rsi     # 0x1536ee
movq %r14, %rdi
xorl %eax, %eax
callq 0x1156f6
leaq 0x64c11(%rip), %rsi     # 0x144c52
movq %r14, %rdi
xorl %eax, %eax
callq 0x1156f6
callq 0xd340
movq %rax, 0x30(%rsp)
testq %rbx, %rbx
je 0xe0119
movq 0x20(%rsp), %rax
shlq $0x4, %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rax), %rbp
addq $-0x10, %rbp
leaq 0x66730(%rip), %r14     # 0x1467ab
leaq 0x71a9c(%rip), %r12     # 0x151b1e
leaq 0x712f9(%rip), %r15     # 0x151382
movq 0x18(%rsp), %r13
movq (%rbp), %rbx
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0xd63b5
testq %rax, %rax
je 0xe00aa
cmpq $0x0, (%rax)
jne 0xe00c2
movq %r14, %rdi
movq %r12, %rsi
movl $0xa2, %edx
movq %r15, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0xc80f6
movq %r13, %rdi
movq %rbx, %rsi
callq 0xd6790
movq %r13, %rdi
movq %rbx, %rsi
callq 0xd63b5
testq %rax, %rax
je 0xe00ff
cmpq $0x0, (%rax)
je 0xe00ff
movq %r14, %rdi
movq %r12, %rsi
movl $0xa4, %edx
leaq 0x712a1(%rip), %rcx     # 0x151396
movq %rbx, %r8
xorl %eax, %eax
callq 0xc80f6
movq 0x20(%rsp), %rcx
decq %rcx
addq $-0x10, %rbp
movq %rcx, 0x20(%rsp)
testq %rcx, %rcx
jne 0xe008e
callq 0xd340
subq 0x30(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x57f3d(%rip), %xmm0    # 0x138070
leaq 0x7127b(%rip), %rsi     # 0x1513b5
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
movb $0x1, %al
callq 0x1156f6
movq 0x70(%rsp), %rdi
callq 0xe01c2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11556c
movq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0xc8315
movq 0x78(%rsp), %rdi
callq 0xe0403
movl $0x50, %edx
movq %rbx, %rdi
movl $0x3d, %esi
callq 0x115408
movq 0x8(%rbx), %rsi
leaq 0x78e77(%rip), %rdi     # 0x159008
xorl %eax, %eax
callq 0xc7ec8
movq %rbx, %rdi
callq 0x114f61
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
jmp 0xdfc57
xorl %r12d, %r12d
jmp 0xdfd1e