// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_target_s_expand_c
er_t xoico_target_s_expand_c( const xoico_target_s* o, sz_t indent, x_sink* sink, tp_t* body_signature )
{
    // xoico_target.x:362:1
    BLM_INIT_LEVEL(0);
    st_s sink_buf;BLM_T_INIT_SPUSH(st_s, &sink_buf);;
    tp_t body_hash = bcore_tp_init();
    
    BLM_TRY(xoico_target_s_expand_update_time(o,indent, sink ))
    
    BLM_TRY(xoico_target_s_expand_heading(o,indent,((x_sink*)(&( sink_buf )))))
    
    st_s_push_fa(&(sink_buf),"\n" );
    st_s_push_fa(&(sink_buf),"#rn{ }##include \"#<sc_t>.h\"\n", indent, o->include_path.sc );
    st_s_push_fa(&(sink_buf),"#rn{ }##include \"bcore_spect.h\"\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }##include \"bcore_spect_inst.h\"\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }##include \"bcore_sr.h\"\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }##include \"bcore_const_manager.h\"\n", indent );
    st_s_push_fa(&(sink_buf),"\n" );
    
    body_hash = bcore_tp_fold_sc( body_hash, sink_buf.sc );
    x_sink_push_data(sink,( vc_t )sink_buf.sc, sink_buf.size );
    st_s_clear(&(sink_buf));
    
    x_sink_push_fa(sink,"#rn{ }// To force a rebuild of this target by xoico, reset the hash key value below to 0.\n", indent );
    x_sink_push_fa(sink,"#rn{ }// HKEYOF_#<sc_t> 0x#pl16'0'{#X<tp_t>}ull\n", indent, o->name.sc, xoico_target_s_get_hash(o) );
    
    /// definition section
    {const xoico_target_s* __a=o ;if(__a)for(sz_t __i=0;__i<__a->size;__i++){xoico_source_s* e=__a->data[__i]; BLM_TRY(xoico_source_s_expand_definition(e,((const xoico_host*)(o)), indent,((x_sink*)(&( sink_buf )))))
    
    /// signal section
    }}st_s_push_fa(&(sink_buf),"\n" );
    st_s_push_fa(&(sink_buf),"#rn{ }/*#rn{*}*/\n", indent, sz_max( 0, 116 - indent ) );
    st_s_push_fa(&(sink_buf),"\n" );
    
    /// prototypes of signal handlers this target depends on
    {const bcore_arr_sz_s* __a=&(o->dependencies );if(__a)for(sz_t __i=0;__i<__a->size;__i++){sz_t target_idx=__a->data[__i];
    {
        const xoico_target_s* target = o->compiler->data[ target_idx ];
        if( target->signal_handler_name.size > 0 )
        {
            st_s_push_fa(&(sink_buf),"#rn{ }vd_t #<sc_t>( const bcore_signal_s* o );\n", indent, target->signal_handler_name.sc );
        }
    }
    
    }}st_s_push_fa(&(sink_buf),"\n" );
    st_s_push_fa(&(sink_buf),"#rn{ }vd_t #<sc_t>_#<sc_t>_signal_handler( const bcore_signal_s* o )\n", indent, o->name.sc, o->ext.sc );
    st_s_push_fa(&(sink_buf),"#rn{ }{\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }    switch( bcore_signal_s_handle_type( o, typeof( \"#<sc_t>_#<sc_t>\" ) ) )\n", indent, o->name.sc, o->ext.sc );
    st_s_push_fa(&(sink_buf),"#rn{ }    {\n", indent );
    
    st_s_push_fa(&(sink_buf),"#rn{ }        case TYPEOF_init1:\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }        {\n", indent );
    BLM_TRY(xoico_target_s_expand_init1(o,indent + 12,((x_sink*)(&( sink_buf )))))
    {const xoico_target_s* __a=o ;if(__a)for(sz_t __i=0;__i<__a->size;__i++){xoico_source_s* e=__a->data[__i]; BLM_TRY(xoico_source_s_expand_init1(e,((const xoico_host*)(o)), indent + 12,((x_sink*)(&( sink_buf )))))
    }}st_s_push_fa(&(sink_buf),"#rn{ }        }\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }        break;\n", indent );
    
    st_s_push_fa(&(sink_buf),"#rn{ }        case TYPEOF_down1:\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }        {\n", indent );
    BLM_TRY(xoico_target_s_expand_init1(o,indent + 12,((x_sink*)(&( sink_buf )))))
    {const xoico_target_s* __a=o ;if(__a)for(sz_t __i=0;__i<__a->size;__i++){xoico_source_s* e=__a->data[__i]; BLM_TRY(xoico_source_s_expand_down1(e,((const xoico_host*)(o)), indent + 12,((x_sink*)(&( sink_buf )))))
    }}st_s_push_fa(&(sink_buf),"#rn{ }        }\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }        break;\n", indent );
    
    if( o->dependencies.size > 0 )
    {
        st_s_push_fa(&(sink_buf),"#rn{ }        case TYPEOF_push_dependencies:\n", indent );
        st_s_push_fa(&(sink_buf),"#rn{ }        {\n", indent );
        st_s_push_fa(&(sink_buf),"#rn{ }            ASSERT( o->object && ( *( aware_t* )o->object ) == TYPEOF_bcore_arr_fp_s );\n", indent );
        st_s_push_fa(&(sink_buf),"#rn{ }            bcore_arr_fp_s* arr_fp = o->object;\n", indent );
        {const bcore_arr_sz_s* __a=&(o->dependencies );if(__a)for(sz_t __i=0;__i<__a->size;__i++){sz_t target_idx=__a->data[__i];
        {
            const xoico_target_s* target = o->compiler->data[ target_idx ];
            if( target->signal_handler_name.size > 0 )
            {
                st_s_push_fa(&(sink_buf),"#rn{ }            bcore_arr_fp_s_push( arr_fp, ( fp_t )#<sc_t> );\n", indent, target->signal_handler_name.sc );
            }
        }
        }}st_s_push_fa(&(sink_buf),"#rn{ }        }\n", indent );
        st_s_push_fa(&(sink_buf),"#rn{ }        break;\n", indent );
    }
    
    st_s_push_fa(&(sink_buf),"#rn{ }        default: break;\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }    }\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }    return NULL;\n", indent );
    st_s_push_fa(&(sink_buf),"#rn{ }}\n", indent );
    
    if( o->define_signal_handler )
    {
        st_s_push_fa(&(sink_buf),"#rn{ }BETH_SIGNAL_DEFINE( #<sc_t> )\n", indent, o->name.sc );
    }
    
    if( o->main_function )
    {
        bl_t c_style = ( o->main_function->signature->args.size == 2 );
    
        st_s_push_fa(&(sink_buf),"\n" );
        st_s_push_fa(&(sink_buf),"#rn{ }int main( int argc, char** argv )\n", indent );
        st_s_push_fa(&(sink_buf),"#rn{ }{\n", indent );
        st_s_push_fa(&(sink_buf),"#rn{ }    BETH_USE( #<sc_t> );\n", indent, o->name.sc );
    
        if( c_style )
        {
            st_s_push_fa(&(sink_buf),"#rn{ }    int retv = #<sc_t>( argc, argv );\n", indent, xoico_compiler_s_nameof(o->compiler,o->main_function->global_name ) );
        }
        else
        {
            st_s_push_fa(&(sink_buf),"#rn{ }    bcore_arr_st_s* args = bcore_arr_st_s_create();\n", indent );
            st_s_push_fa(&(sink_buf),"#rn{ }    for( sz_t i = 0; i < argc; i++ ) bcore_arr_st_s_push_sc( args, argv[ i ] );\n", indent );
            st_s_push_fa(&(sink_buf),"#rn{ }    int retv = #<sc_t>( args );\n", indent, xoico_compiler_s_nameof(o->compiler,o->main_function->global_name ) );
            st_s_push_fa(&(sink_buf),"#rn{ }    bcore_arr_st_s_discard( args );\n", indent );
        }
    
        st_s_push_fa(&(sink_buf),"#rn{ }    BETH_CLOSEV( 0 );\n", indent );
        st_s_push_fa(&(sink_buf),"#rn{ }    return retv;\n", indent );
        st_s_push_fa(&(sink_buf),"#rn{ }}\n", indent );
    }
    
    body_hash = bcore_tp_fold_sc( body_hash, sink_buf.sc );
    x_sink_push_data(sink,( vc_t )sink_buf.sc, sink_buf.size );
    st_s_clear(&(sink_buf));
    
    x_sink_push_fa(sink,"// XOICO_BODY_SIGNATURE 0x#pl16'0'{#X<tp_t>}\n", body_hash );
    if( body_signature ) (*(body_signature)) = body_hash;
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, 0x40(%rsp)
movq %rdx, %r14
movq %rsi, %rbp
movq %rdi, %r12
leaq 0x1786c4(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xe0431
movq $0x0, 0x10(%rbx)
leaq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0x113f7c
movabsq $-0x503db0e6e1c2e704, %rsi # imm = 0xAFC24F191E3D18FC
movq %rbx, %rdi
movq %r13, %rdx
callq 0xe06ab
movq %r14, 0x38(%rsp)
movq %r14, %rdx
callq 0x2ff14
movq %r12, %rdi
movq %r13, %rdx
callq 0x2ffa7
leaq 0x122f89(%rip), %rbx    # 0x1536ee
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1157cb
movq 0x60(%r12), %rcx
leaq 0x109f5c(%rip), %rsi    # 0x13a6da
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x10a00e(%rip), %rsi    # 0x13a7a0
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x10a01b(%rip), %rsi    # 0x13a7c1
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x10a02d(%rip), %rsi    # 0x13a7e7
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x10a037(%rip), %rsi    # 0x13a805
movq %r13, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1157cb
movq 0x8(%r13), %r13
testq %r13, %r13
je 0x3082a
movabsq $-0x340d631b7bdddcdb, %rsi # imm = 0xCBF29CE484222325
movb (%r13), %dl
testb %dl, %dl
je 0x30836
movabsq $0x100000001b3, %rax    # imm = 0x100000001B3
leaq 0x1(%r13), %rcx
movzbl %dl, %r15d
xorq %rsi, %r15
imulq %rax, %r15
movb (%rcx), %dl
incq %rcx
movq %r15, %rsi
testb %dl, %dl
jne 0x30811
jmp 0x30839
movabsq $-0x509c42b379fe4821, %r15 # imm = 0xAF63BD4C8601B7DF
jmp 0x30839
movq %rsi, %r15
movq 0x28(%rsp), %rdx
movq 0x38(%rsp), %rax
movq (%rax), %rbx
leaq 0x179263(%rip), %rsi    # 0x1a9ab0
movl (%rsi), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rsi,%rax,8), %rcx
movq 0x18(%rsi,%rax,8), %rsi
andq %rbx, %rsi
shlq $0x4, %rsi
leaq (%rcx,%rsi), %rax
movq (%rcx,%rsi), %rsi
movl $0x8, %ecx
cmpq %rbx, %rsi
je 0x308a6
movq 0x10(%rax), %rsi
movl $0x18, %ecx
cmpq %rbx, %rsi
je 0x308a6
movq 0x20(%rax), %rsi
movl $0x28, %ecx
cmpq %rbx, %rsi
je 0x308a6
movq 0x30(%rax), %rsi
movl $0x38, %ecx
cmpq %rbx, %rsi
jne 0x30fab
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x308e0
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %rbx, %rsi
movq %rdx, 0x8(%rsp)
callq 0xf3f85
movq %rax, %r14
leaq 0x1791e0(%rip), %rdi    # 0x1a9ab0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
movq 0x8(%rsp), %rdx
movq %rbp, 0x8(%rsp)
cmpq $0x0, 0x10(%r14)
jne 0x30901
leaq 0x1149cb(%rip), %rsi    # 0x1452be
movq %r14, %rdi
movq %rdx, %rbx
callq 0xf592c
movq %rbx, %rdx
movq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq *0x10(%r14)
leaq 0x18(%rsp), %rdi
callq 0x115353
leaq 0x109f0d(%rip), %rsi    # 0x13a82e
movq %rbp, %rdi
movq 0x8(%rsp), %r14
movq %r14, %rdx
xorl %eax, %eax
callq 0xee2a
movq 0x10(%r12), %rbx
movq %r12, %rdi
callq 0x2f6ec
leaq 0x109f42(%rip), %rsi    # 0x13a889
movq %rbp, %rdi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xee2a
testq %r12, %r12
je 0x309c6
cmpq $0x0, 0xa0(%r12)
sete %r13b
je 0x309d4
movq $0x0, 0x10(%rsp)
leaq 0x18(%rsp), %rbx
xorl %ebp, %ebp
movq 0x98(%r12), %rax
movq (%rax,%rbp,8), %rdi
movq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x2ddc8
movq %rax, %r14
testq %rax, %rax
je 0x309ae
leaq 0x48(%rsp), %rdi
callq 0xe0b30
movq %r14, 0x10(%rsp)
testq %r14, %r14
jne 0x309dd
incq %rbp
cmpq 0xa0(%r12), %rbp
setae %r13b
jb 0x3097e
jmp 0x309dd
movq $0x0, 0x10(%rsp)
movb $0x1, %r13b
jmp 0x309dd
movq $0x0, 0x10(%rsp)
testb $0x1, %r13b
je 0x30ba2
leaq 0x122d00(%rip), %rbx    # 0x1536ee
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1157cb
movl $0x74, %eax
movq 0x8(%rsp), %rbp
subq %rbp, %rax
testq %rax, %rax
movl $0x0, %ecx
cmovgq %rax, %rcx
leaq 0x1097cb(%rip), %rsi    # 0x13a1eb
movq %r14, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1157cb
cmpq $0x0, 0xe8(%r12)
je 0x30a9e
leaq 0x109e6e(%rip), %rbx    # 0x13a8ba
leaq 0x18(%rsp), %r14
xorl %r13d, %r13d
movq 0xe0(%r12), %rax
movq 0x138(%r12), %rcx
movq (%rax,%r13,8), %rax
movq 0x8(%rcx), %rcx
movq (%rcx,%rax,8), %rax
cmpq $0x0, 0xc0(%rax)
je 0x30a91
movq 0xb8(%rax), %rcx
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
incq %r13
cmpq 0xe8(%r12), %r13
jb 0x30a54
leaq 0x122c49(%rip), %rsi    # 0x1536ee
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1157cb
movq 0x10(%r12), %rcx
movq 0x30(%r12), %r8
leaq 0x109e25(%rip), %rsi    # 0x13a8ea
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x108336(%rip), %rsi    # 0x138e0f
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
movq 0x10(%r12), %rcx
movq 0x30(%r12), %r8
leaq 0x109e39(%rip), %rsi    # 0x13a930
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x108324(%rip), %rsi    # 0x138e2f
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109e63(%rip), %rsi    # 0x13a982
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109e71(%rip), %rsi    # 0x13a9a4
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
addq $0xc, %rbp
testq %r12, %r12
je 0x30bac
cmpq $0x0, 0xa0(%r12)
sete %r14b
je 0x30baf
xorl %ebx, %ebx
movq 0x98(%r12), %rax
movq (%rax,%rbx,8), %rdi
movq %rbp, %rdx
leaq 0x18(%rsp), %rcx
callq 0x2e3d9
movq %rax, %r13
testq %rax, %rax
je 0x30b8a
leaq 0x48(%rsp), %rdi
callq 0xe0b30
movq %r13, 0x10(%rsp)
testq %r13, %r13
jne 0x30baf
incq %rbx
cmpq 0xa0(%r12), %rbx
setae %r14b
jb 0x30b5a
jmp 0x30baf
movq 0x10(%rsp), %rax
jmp 0x310ab
movb $0x1, %r14b
testb $0x1, %r14b
movq 0x10(%rsp), %rax
je 0x310ab
leaq 0x109df0(%rip), %rsi    # 0x13a9b5
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq 0x8(%rsp), %r14
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109de3(%rip), %rsi    # 0x13a9c6
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109de5(%rip), %rsi    # 0x13a9dc
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109d99(%rip), %rsi    # 0x13a9a4
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1157cb
testq %r12, %r12
je 0x30c54
cmpq $0x0, 0xa0(%r12)
je 0x30c54
xorl %r14d, %r14d
leaq 0x18(%rsp), %rbx
movq 0x98(%r12), %rax
movq (%rax,%r14,8), %rdi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x2e4c0
incq %r14
cmpq 0xa0(%r12), %r14
jb 0x30c30
leaq 0x109d5a(%rip), %rsi    # 0x13a9b5
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq 0x8(%rsp), %rbp
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109d4d(%rip), %rsi    # 0x13a9c6
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
cmpq $0x0, 0xe8(%r12)
je 0x30d7b
leaq 0x109d62(%rip), %rsi    # 0x13a9fe
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109cef(%rip), %rsi    # 0x13a9a4
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109d63(%rip), %rsi    # 0x13aa2c
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109dae(%rip), %rsi    # 0x13aa8b
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
cmpq $0x0, 0xe8(%r12)
je 0x30d4e
leaq 0x109dc6(%rip), %rbx    # 0x13aac2
leaq 0x18(%rsp), %r14
xorl %r13d, %r13d
movq 0xe0(%r12), %rax
movq 0x138(%r12), %rcx
movq (%rax,%r13,8), %rax
movq 0x8(%rcx), %rcx
movq (%rcx,%rax,8), %rax
cmpq $0x0, 0xc0(%rax)
je 0x30d41
movq 0xb8(%rax), %rcx
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
incq %r13
cmpq 0xe8(%r12), %r13
jb 0x30d04
leaq 0x109c60(%rip), %rsi    # 0x13a9b5
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109c58(%rip), %rsi    # 0x13a9c6
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109d83(%rip), %rsi    # 0x13ab05
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x108150(%rip), %rsi    # 0x138eeb
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109d75(%rip), %rsi    # 0x13ab24
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x10814b(%rip), %rsi    # 0x138f0e
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
cmpb $0x1, 0xd0(%r12)
jne 0x30df6
movq 0x10(%r12), %rcx
leaq 0x109d55(%rip), %rsi    # 0x13ab3c
leaq 0x18(%rsp), %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
movq 0x140(%r12), %rax
testq %rax, %rax
je 0x30f52
movq 0x40(%rax), %rax
movq 0x68(%rax), %r14
leaq 0x1228d8(%rip), %rsi    # 0x1536ee
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1157cb
leaq 0x109d35(%rip), %rsi    # 0x13ab61
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x107fcf(%rip), %rsi    # 0x138e0f
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
movq 0x10(%r12), %rcx
leaq 0x109d31(%rip), %rsi    # 0x13ab8a
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
cmpq $0x2, %r14
jne 0x30ea0
movq 0x138(%r12), %rdi
movq 0x140(%r12), %rax
movq 0x10(%rax), %rsi
callq 0xe39f
leaq 0x109d1e(%rip), %rsi    # 0x13abaa
leaq 0x18(%rsp), %rdi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1157cb
jmp 0x30f11
leaq 0x109d30(%rip), %rsi    # 0x13abd7
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109d52(%rip), %rsi    # 0x13ac12
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
movq 0x138(%r12), %rdi
movq 0x140(%r12), %rax
movq 0x10(%rax), %rsi
callq 0xe39f
leaq 0x109d7c(%rip), %rsi    # 0x13ac69
movq %rbx, %rdi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109d8c(%rip), %rsi    # 0x13ac90
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109da3(%rip), %rsi    # 0x13acbb
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x109da7(%rip), %rsi    # 0x13acd8
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x107fc9(%rip), %rsi    # 0x138f0e
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x1157cb
movq 0x20(%rsp), %rbp
testq %rbp, %rbp
je 0x30f91
movb (%rbp), %dl
testb %dl, %dl
leaq 0x178b48(%rip), %rsi    # 0x1a9ab0
je 0x30fb3
movabsq $0x100000001b3, %rax    # imm = 0x100000001B3
leaq 0x1(%rbp), %rcx
movzbl %dl, %r12d
xorq %r15, %r12
imulq %rax, %r12
movb (%rcx), %dl
incq %rcx
movq %r12, %r15
testb %dl, %dl
jne 0x30f78
jmp 0x30fb6
movabsq $0x100000001b3, %rax    # imm = 0x100000001B3
imulq %rax, %r15
movq %r15, %r12
leaq 0x178b07(%rip), %rsi    # 0x1a9ab0
jmp 0x30fb6
xorl %r14d, %r14d
jmp 0x308aa
movq %r15, %r12
movq 0x28(%rsp), %r13
movq 0x38(%rsp), %rax
movq (%rax), %rbx
movl (%rsi), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rsi,%rax,8), %rcx
movq 0x18(%rsi,%rax,8), %rdx
andq %rbx, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x3101c
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x3101c
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x3101c
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x310ba
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0x3104c
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0x178a6f(%rip), %rdi    # 0x1a9ab0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
cmpq $0x0, 0x10(%r14)
jne 0x31062
leaq 0x114264(%rip), %rsi    # 0x1452be
movq %r14, %rdi
callq 0xf592c
movq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq *0x10(%r14)
leaq 0x18(%rsp), %rdi
callq 0x115353
leaq 0x1096ed(%rip), %rsi    # 0x13a772
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xee2a
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x3109f
movq %r12, (%rax)
leaq 0x48(%rsp), %rdi
callq 0xe0b30
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x31020