// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movb $0x0, %al
callq 0xbfdd0
movq %rax, -0x8(%rbp)
leaq 0x92605(%rip), %rdi     # 0x150ea2
movb $0x0, %al
callq 0xff350
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl $0x50, %edx
subq 0x10(%rax), %rdx
movl $0x3d, %esi
callq 0xffca0
movq -0x10(%rbp), %rdi
movl $0xa, %esi
callq 0xffba0
movq -0x8(%rbp), %rax
movq %rax, -0x108(%rbp)
movb $0x0, %al
callq 0x47e80
movq -0x108(%rbp), %rdi
movq %rax, %rsi
callq 0xc0460
movq %rax, -0x18(%rbp)
movq $0x30d40, -0x20(%rbp)   # imm = 0x30D40
xorl %eax, %eax
movl %eax, %edi
movl $0x30d400, %esi         # imm = 0x30D400
callq 0x9d210
movq %rax, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
callq 0x4300
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x82c2f(%rip), %rsi     # 0x14155b
movb $0x0, %al
callq 0x100120
movq $0x1, -0x40(%rbp)
movq $0x3039, -0x48(%rbp)    # imm = 0x3039
movq $0x0, -0x50(%rbp)
cmpq $0x30d40, -0x50(%rbp)   # imm = 0x30D40
jae 0xbebbe
movq -0x40(%rbp), %rdi
callq 0xbf2d0
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rdi
callq 0xbf2d0
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x60(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x60(%rbp), %rsi
addq $0x8, %rsi
movabsq $-0x5aa4411ac4e2880e, %rdi # imm = 0xA55BBEE53B1D77F2
callq 0xff780
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
movq %rax, %rdx
callq 0xbf2f0
movq -0x40(%rbp), %rdi
callq 0xbf2d0
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x40(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x30(%rbp)
movq -0x110(%rbp), %rax
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rax), %rcx
movq %rcx, -0x60(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x18(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0xbf320
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
movq $-0x1, %rdx
leaq 0x90307(%rip), %rcx     # 0x14ed61
leaq -0x68(%rbp), %r8
movb $0x0, %al
callq 0x105550
movq -0x58(%rbp), %rax
cmpq -0x68(%rbp), %rax
je 0xbea98
movq -0x58(%rbp), %r8
movq -0x68(%rbp), %r9
leaq 0x8496a(%rip), %rdi     # 0x1433e8
leaq 0x9243b(%rip), %rsi     # 0x150ec0
movl $0x51, %edx
leaq 0x91c3f(%rip), %rcx     # 0x1506d0
movb $0x0, %al
callq 0x9cf40
movq -0x40(%rbp), %rdi
callq 0xbf2d0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
shrq $0xa, %rax
andq $0x1, %rax
cmpq $0x1, %rax
jne 0xbebab
movq -0x40(%rbp), %rdi
callq 0xbf2d0
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x30(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x28(%rbp), %rax
movq -0x70(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x80(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0xbf320
cmpq $0x0, %rax
jne 0xbeb2e
movq -0x80(%rbp), %r8
leaq 0x848d4(%rip), %rdi     # 0x1433e8
leaq 0x923a5(%rip), %rsi     # 0x150ec0
movl $0x5a, %edx
leaq 0x91bc5(%rip), %rcx     # 0x1506ec
movb $0x0, %al
callq 0x9cf40
movq -0x18(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0xbf370
movq -0x18(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0xbf320
cmpq $0x0, %rax
je 0xbeb73
movq -0x80(%rbp), %r8
leaq 0x8488f(%rip), %rdi     # 0x1433e8
leaq 0x92360(%rip), %rsi     # 0x150ec0
movl $0x5c, %edx
leaq 0x91b94(%rip), %rcx     # 0x150700
movb $0x0, %al
callq 0x9cf40
movq -0x30(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq -0x70(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0xbebad
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0xbe94b
callq 0x4300
subq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
cvtsi2sdq -0x38(%rbp), %xmm0
movsd 0x747eb(%rip), %xmm1    # 0x1333c8
divsd %xmm1, %xmm0
leaq 0x91b37(%rip), %rsi     # 0x15071f
movb $0x1, %al
callq 0x100120
movq -0x10(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x18(%rbp), %rdi
callq 0xbf3a0
movq -0x130(%rbp), %rdi
movq %rax, %rsi
callq 0xfff40
callq 0x4300
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x18(%rbp), %rdi
callq 0x47ed0
movq -0x128(%rbp), %rdi
movq %rax, %rsi
callq 0xc0460
movq %rax, -0x88(%rbp)
callq 0x4300
subq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
cvtsi2sdq -0x38(%rbp), %xmm0
movsd 0x74764(%rip), %xmm1    # 0x1333c8
divsd %xmm1, %xmm0
leaq 0x91b17(%rip), %rsi     # 0x150786
movb $0x1, %al
callq 0x100120
callq 0x4300
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0xe0090
cmpl $0x0, %eax
je 0xbecc9
movq -0x18(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0xe0ca0
movq 0x8(%rax), %r8
leaq 0x84739(%rip), %rdi     # 0x1433e8
leaq 0x9220a(%rip), %rsi     # 0x150ec0
movl $0x6f, %edx
leaq 0x82936(%rip), %rcx     # 0x1415f8
movb $0x0, %al
callq 0x9cf40
callq 0x4300
subq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
cvtsi2sdq -0x38(%rbp), %xmm0
movsd 0x746e0(%rip), %xmm1    # 0x1333c8
divsd %xmm1, %xmm0
leaq 0x91ad2(%rip), %rsi     # 0x1507c5
movb $0x1, %al
callq 0x100120
callq 0x4300
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x150(%rbp)
movb $0x0, %al
callq 0x47e80
movq -0x150(%rbp), %rdi
movq %rax, %rsi
callq 0xc0460
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0x928c9(%rip), %rdi     # 0x151609
callq 0xbf4e0
movq %rax, -0x138(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x928ab(%rip), %rdi     # 0x151609
callq 0xbf4e0
movq -0x148(%rbp), %rsi
movq %rax, %rdx
leaq -0xa8(%rbp), %rdi
callq 0xbf500
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
leaq -0xa8(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xbf480
callq 0x4300
subq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
cvtsi2sdq -0x38(%rbp), %xmm0
movsd 0x745fd(%rip), %xmm1    # 0x1333c8
divsd %xmm1, %xmm0
leaq 0x91a08(%rip), %rsi     # 0x1507de
movb $0x1, %al
callq 0x100120
callq 0x4300
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
callq 0xbf550
movq %rax, -0xb0(%rbp)
movq $0x0, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
cmpq -0xb0(%rbp), %rax
jae 0xbef4d
movq -0x18(%rbp), %rdi
movq -0xb8(%rbp), %rsi
callq 0xbf570
movq %rax, -0xc0(%rbp)
cmpq $0x0, -0xc0(%rbp)
je 0xbef34
movq $0x0, -0xc8(%rbp)
movq -0x18(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0xbf320
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
movq $-0x1, %rdx
leaq 0x8fef7(%rip), %rcx     # 0x14ed61
leaq -0xc8(%rbp), %r8
movb $0x0, %al
callq 0x105550
movq -0x90(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0xbf5a0
testb $0x1, %al
jne 0xbeeb8
leaq 0x74b09(%rip), %rdi     # 0x13399f
leaq 0x92036(%rip), %rsi     # 0x150ed3
leaq 0x84544(%rip), %rdx     # 0x1433e8
leaq 0x92015(%rip), %rcx     # 0x150ec0
movl $0x83, %r8d
movb $0x0, %al
callq 0x9cea0
movq $0x1, -0xd0(%rbp)
movq -0x90(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0xbf320
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
movq $-0x1, %rdx
leaq 0x8fe76(%rip), %rcx     # 0x14ed61
leaq -0xd0(%rbp), %r8
movb $0x0, %al
callq 0x105550
movq -0xc8(%rbp), %rax
cmpq -0xd0(%rbp), %rax
je 0xbef32
leaq 0x74a8f(%rip), %rdi     # 0x13399f
leaq 0x91fe3(%rip), %rsi     # 0x150efa
leaq 0x844ca(%rip), %rdx     # 0x1433e8
leaq 0x91f9b(%rip), %rcx     # 0x150ec0
movl $0x86, %r8d
movb $0x0, %al
callq 0x9cea0
jmp 0xbef34
jmp 0xbef36
movq -0xb8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xb8(%rbp)
jmp 0xbee01
callq 0x4300
subq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
cvtsi2sdq -0x38(%rbp), %xmm0
movsd 0x7445c(%rip), %xmm1    # 0x1333c8
divsd %xmm1, %xmm0
leaq 0x918d1(%rip), %rsi     # 0x150848
movb $0x1, %al
callq 0x100120
callq 0x4300
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0x91793(%rip), %rsi     # 0x150729
movb $0x0, %al
callq 0x100120
movq $0x14, -0xd8(%rbp)
movq $0x0, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
cmpq -0xd8(%rbp), %rax
jae 0xbf0be
movq $0x0, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0xbf0a5
movq $0x0, -0xf0(%rbp)
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq -0xe8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
callq 0xbf320
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
movq $-0x1, %rdx
leaq 0x8fd40(%rip), %rcx     # 0x14ed61
leaq -0xf0(%rbp), %r8
movb $0x0, %al
callq 0x105550
movq -0xf0(%rbp), %rax
movq -0x28(%rbp), %rcx
movq -0xe8(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
je 0xbf08c
movq -0xf0(%rbp), %r8
movq -0x28(%rbp), %rax
movq -0xe8(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %r9
leaq 0x84376(%rip), %rdi     # 0x1433e8
leaq 0x91e47(%rip), %rsi     # 0x150ec0
movl $0x95, %edx
leaq 0x9164b(%rip), %rcx     # 0x1506d0
movb $0x0, %al
callq 0x9cf40
jmp 0xbf08e
movq -0xe8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe8(%rbp)
jmp 0xbefd2
jmp 0xbf0a7
movq -0xe0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe0(%rbp)
jmp 0xbefb3
callq 0x4300
movq -0x38(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
cvtsi2sdq -0x38(%rbp), %xmm0
movsd 0x742e8(%rip), %xmm1    # 0x1333c8
divsd %xmm1, %xmm0
movq -0x30(%rbp), %rax
movq -0xd8(%rbp), %rcx
imulq %rcx, %rax
movq %rax, %xmm1
movaps 0x7fe01(%rip), %xmm2    # 0x13ef00
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x7fe05(%rip), %xmm2    # 0x13ef10
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
leaq 0x9161f(%rip), %rsi     # 0x150744
movb $0x1, %al
callq 0x100120
movq -0x10(%rbp), %rdi
leaq 0x938ea(%rip), %rsi     # 0x152a21
movb $0x0, %al
callq 0x100120
movq -0x10(%rbp), %rdi
leaq 0x8266d(%rip), %rsi     # 0x1417b6
movb $0x0, %al
callq 0x100120
callq 0x4300
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0xbf225
movq -0x30(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x100(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0xf8(%rbp)
movq -0x18(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0xbf320
cmpq $0x0, %rax
jne 0xbf1d2
movq -0x100(%rbp), %r8
leaq 0x84230(%rip), %rdi     # 0x1433e8
leaq 0x91d01(%rip), %rsi     # 0x150ec0
movl $0xa2, %edx
leaq 0x91521(%rip), %rcx     # 0x1506ec
movb $0x0, %al
callq 0x9cf40
movq -0x18(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0xbf370
movq -0x18(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0xbf320
cmpq $0x0, %rax
je 0xbf220
movq -0x100(%rbp), %r8
leaq 0x841e2(%rip), %rdi     # 0x1433e8
leaq 0x91cb3(%rip), %rsi     # 0x150ec0
movl $0xa4, %edx
leaq 0x914e7(%rip), %rcx     # 0x150700
movb $0x0, %al
callq 0x9cf40
jmp 0xbf159
callq 0x4300
subq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
cvtsi2sdq -0x38(%rbp), %xmm0
movsd 0x74184(%rip), %xmm1    # 0x1333c8
divsd %xmm1, %xmm0
leaq 0x914d0(%rip), %rsi     # 0x15071f
movb $0x1, %al
callq 0x100120
movq -0x10(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x18(%rbp), %rdi
callq 0xbf3a0
movq -0x158(%rbp), %rdi
movq %rax, %rsi
callq 0xfff40
movq -0x28(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x9d210
movq -0x8(%rbp), %rdi
callq 0xbfe00
movq -0x10(%rbp), %rdi
movl $0x3d, %esi
movl $0x50, %edx
callq 0xffca0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
leaq 0x99560(%rip), %rdi     # 0x158811
movb $0x0, %al
callq 0x9c9e0
movq -0x10(%rbp), %rdi
callq 0xff600
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
nopw (%rax,%rax)