// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_spect_inst.c
// Function: create_from_self
static bcore_inst_s* create_from_self( const bcore_self_s* self )
{
    assert( self != NULL );

    bcore_inst_s* o = inst_s_create();
    o->header.o_type  = self->type;
    o->move_flat   = true;
    o->inst_call_p = NULL;

    sz_t computed_size = 0;
    sz_t computed_align = 0;

    /// amoebas
    fp_t fp_init_a    = bcore_self_s_try_external_fp( self, TYPEOF_ap_t, TYPEOF_init );
    fp_t fp_down_a    = bcore_self_s_try_external_fp( self, TYPEOF_ap_t, TYPEOF_down );
    fp_t fp_copy_a    = bcore_self_s_try_external_fp( self, TYPEOF_ap_t, TYPEOF_copy );
    o->init_o         = bcore_self_s_try_external_fp( self, TYPEOF_bcore_fp_init, 0 );
    o->down_o         = bcore_self_s_try_external_fp( self, TYPEOF_bcore_fp_down, 0 );
    o->copy_o         = bcore_self_s_try_external_fp( self, TYPEOF_bcore_fp_copy, 0 );
    o->copy_typed_o   = ( bcore_fp_copy_typed   )bcore_self_s_try_external_fp( self, TYPEOF_bcore_fp_copy_typed,   0 );
    o->create_o       = ( bcore_fp_create       )bcore_self_s_try_external_fp( self, TYPEOF_bcore_fp_create,       0 );
    o->create_typed_o = ( bcore_fp_create_typed )bcore_self_s_try_external_fp( self, TYPEOF_bcore_fp_create_typed, 0 );
    o->discard_o      = ( bcore_fp_discard      )bcore_self_s_try_external_fp( self, TYPEOF_bcore_fp_discard,      0 );
    o->clone_o        = ( bcore_fp_clone        )bcore_self_s_try_external_fp( self, TYPEOF_bcore_fp_clone,        0 );

    o->init_o = fp_init_a ? fp_init_a : o->init_o;
    o->down_o = fp_down_a ? fp_down_a : o->down_o;
    o->copy_o = fp_copy_a ? fp_copy_a : o->copy_o;
    o->init_flat = ( o->init_o == NULL );
    o->down_flat = ( o->down_o == NULL );
    o->copy_flat = ( o->copy_o == NULL );

    bl_t body_undefined_or_complete = true;

    bl_t inst_call_init_x    = false;
    bl_t inst_call_copy_e    = false;
    bl_t inst_call_copy_x    = false;
    bl_t inst_call_down_e    = false;
    bl_t inst_call_discard_e = false;
    bl_t inst_call_any       = false;

    if( bcore_self_s_items_size( self ) > 0 )
    {
        uz_t items_size = bcore_self_s_items_size( self );
        bl_t body_complete = bcore_self_body_s_get_complete( self->body );
        body_undefined_or_complete = body_complete;
        bcore_inst_item_s* last_inst_item = NULL;

        for( uz_t i = 0; i < items_size; i++ )
        {
            bl_t first_item = ( i == 0 );
            const bcore_self_item_s* self_item = bcore_self_s_get_item( self, i );

            if( self_item->flags.f_shell ) continue; // shells are invisible to instance (but handled in via-inst_p)
            if( self_item->flags.f_const ) continue; // constants are invisible to instance

            if( self_item->caps == BCORE_CAPS_EXTERNAL_FUNC )
            {
                switch( self_item->type )
                {
                    case TYPEOF_bcore_inst_call_init_x: inst_call_any = inst_call_init_x = true; o->init_flat = false; break;
                    case TYPEOF_bcore_inst_call_down_e: inst_call_any = inst_call_down_e = true; o->down_flat = false; break;
                    case TYPEOF_bcore_inst_call_copy_e: inst_call_any = inst_call_copy_e = true; o->copy_flat = false; break;
                    case TYPEOF_bcore_inst_call_copy_x: inst_call_any = inst_call_copy_x = true; o->copy_flat = false; break;
                    case TYPEOF_bcore_inst_call_discard_e: inst_call_any = inst_call_discard_e = true; break;
                    default: break;
                }

                continue; // nothing else yet or handled above
            }

            switch( self_item->caps )
            {
                case BCORE_CAPS_LINK_STATIC:
                case BCORE_CAPS_LINK_TYPED:
                case BCORE_CAPS_LINK_AWARE:
                case BCORE_CAPS_ARRAY_DYN_SOLID_STATIC:
                case BCORE_CAPS_ARRAY_DYN_SOLID_TYPED:
                case BCORE_CAPS_ARRAY_DYN_LINK_STATIC:
                case BCORE_CAPS_ARRAY_DYN_LINK_TYPED:
                case BCORE_CAPS_ARRAY_DYN_LINK_AWARE:
                case BCORE_CAPS_ARRAY_FIX_LINK_STATIC:
                case BCORE_CAPS_ARRAY_FIX_LINK_AWARE:
                {
                    if( self_item->flags.f_create_on_init ) o->init_flat = false;
                    o->copy_flat = false;
                    o->down_flat = false;
                }
                break;

                default: break;
            }

            bcore_inst_item_s* inst_item = inst_s_push( o );

            inst_item->self_item = self_item;
            if( self_item->type != 0 && !self_item->flags.f_virtual )
            {
                if( !bcore_flect_exists( self_item->type ) )
                {
                    if( bcore_trait_exists( self_item->type ) )
                    {
                        ERR_fa
                        (
                            "Constructing bcore_inst_s of '#<sc_t>' element '#<sc_t>':\n"
                            "Type '#<sc_t>' is a trait but has no reflection.\n"
                            "If it is intended to be used as virtual type,\n"
                            "then add prefix {aware|typed} to the element definition.\n",
                            ifnameof( self->type ),
                            ifnameof( self_item->name ),
                            ifnameof( self_item->type )
                        );
                    }
                    else
                    {
                        ERR_fa
                        (
                            "Constructing bcore_inst_s of #<sc_t>:\n"
                            "Type '#<sc_t>' (#<tp_t>) has no reflection.",
                            ifnameof( self->type ),
                            ifnameof( self_item->type ),
                            self_item->type
                        );
                    }
                }
                else if( self_item->type == self->type )
                {
                    if( self_item->caps == BCORE_CAPS_SOLID_STATIC )
                    {
                        ERR_fa( "Constructing bcore_inst_s of #<sc_t>:\n"
                             "Type '#<sc_t>' (#<tp_t>) is static member of itself, which is inconstructible.\n"
                             "A static link might be a viable alternative.\n" , ifnameof( self->type ), ifnameof( self_item->type ), self_item->type );
                    }
                    else
                    {
                        inst_item->inst_p = o;
                    }
                }
                else
                {
                    inst_item->inst_p = bcore_inst_s_get_typed( self_item->type );
                }

                if( self_item->type == TYPEOF_aware_t || self_item->type == TYPEOF_bcore_spect_header_s )
                {
                    if( first_item )
                    {
                        o->init_flat = false;
                        o->aware = true;
                    }
                }

                /// default value specified
                {
                    if( bcore_self_item_s_has_default_value( self_item ) ) o->init_flat = false;
                }

                o->init_flat = o->init_flat & inst_item->inst_p->init_flat;
                o->copy_flat = o->copy_flat & inst_item->inst_p->copy_flat;
                o->down_flat = o->down_flat & inst_item->inst_p->down_flat;
            }

            if( self_item->caps == BCORE_CAPS_SOLID_STATIC )
            {
                inst_item->size  = inst_item->inst_p->size;
                inst_item->align = inst_item->inst_p->align;
            }
            else if( self_item->caps == BCORE_CAPS_ARRAY_FIX_SOLID_STATIC )
            {
                inst_item->size  = inst_item->inst_p->size * self_item->array_fix_size;
                inst_item->align = inst_item->inst_p->align;
            }
            else
            {
                inst_item->size  = bcore_self_item_s_inst_size( self_item );
                inst_item->align = bcore_self_item_s_inst_align( self_item );
            }

            if( self_item->flags.f_private )
            {
                inst_item->no_trace = true;
                if( !self_item->flags.f_spect ) o->copy_flat = false;
            }

            if( self_item->flags.f_spect )
            {
                inst_item->no_trace = true;
                o->init_flat = false;
            }

            if( self_item->flags.f_feature )
            {
                inst_item->no_trace = true;
            }

            if( last_inst_item )
            {
                inst_item->offset = aligned_offset( inst_item->align, last_inst_item->offset + last_inst_item->size );
            }
            else
            {
                inst_item->offset = 0;
            }

            computed_align = ( inst_item->align > computed_align ) ? inst_item->align : computed_align;

            bcore_inst_item_s_discard( last_inst_item );
            last_inst_item = bcore_inst_item_s_clone( inst_item );
        }

        if( body_complete && last_inst_item )
        {
            computed_size = aligned_offset( computed_align, last_inst_item->offset + last_inst_item->size );
        }
        else
        {
            computed_size = self->size;
        }

        /** For incomplete bodies the computed alignment is insufficient
         *  Take self->align.
         */
        if( !body_complete )
        {
            if( self->align == 0 ) ERR( "Object %s has incomplete body but no alignment declaration.\n", ifnameof( self->type ) );
            computed_align = self->align;
        }

        // If alignment is zero, the body does not contain physical data.
        // In this case alignment must be treated as if the body was not defined.
        if( computed_align == 0 ) computed_align = self->align;

        bcore_inst_item_s_discard( last_inst_item );
    }
    else
    {
        computed_size  = self->size;
        computed_align = self->align;
    }

    o->size  = computed_size;

    /// Prefer self->align over computed_align.
    o->align = ( self->align > 0 ) ? self->align : computed_align;

    if( body_undefined_or_complete && ( self->size > 0 ) && ( self->size != o->size ) )
    {
        ERR( "Size mismatch: sizeof(%s):%zu differs from reflective body size:%zu.\n"
             "The object's reflection is probably out of sync with its compile-time definition.\n",
            ifnameof( self->type ), self->size, o->size );
    }

    if( o->size > 0 && o->align == 0 )
    {
        ERR( "Missing alignment of object: %s\n", ifnameof( self->type ) );
    }

    // inst_calls
    if( inst_call_any )
    {
        o->inst_call_p = bcore_inst_call_spect_s_get_typed( self->type );
    }

    if( !o->down_flat ) o->copy_flat = false;
    o->move_flat = o->init_flat && o->copy_flat && o->down_flat;

    o->init = o->init_o ? ( fp_init_a ? init_amoebic : init_o ) : ( o->init_flat ? ( o->size > 0 ? init_flat : init_null ) : init_generic );
    o->down = o->down_o ? ( fp_down_a ? down_amoebic : down_o ) : ( o->down_flat ? ( o->size > 0 ? down_flat : down_null ) : down_generic );
    o->copy = o->copy_o ? ( fp_copy_a ? copy_amoebic : copy_o ) : ( o->copy_flat ? ( o->size > 0 ? copy_flat : copy_null ) : copy_generic );

    o->discard = o->discard_o ? discard_o : NULL;

    if( inst_call_init_x )
    {
        if( o->init != init_generic )
        {
            ERR_fa
            (
                "Object '#<sc_t>': Registering bcore_inst_call_init requires generic handling by bcore_inst.\n"
                "This object also registers direct or amoebic initialization.\n",
                ifnameof( self->type )
            );
        }
        o->init = init_call_generic;
    }

    if( inst_call_down_e )
    {
        if( o->down != down_generic )
        {
            ERR_fa
            (
                "Object '#<sc_t>': Registering bcore_inst_call_down requires generic handling by bcore_inst.\n"
                "This object also registers direct or amoebic shutdown.\n",
                ifnameof( self->type )
            );
        }
        o->down = down_call_generic;
    }

    if( inst_call_copy_e || inst_call_copy_x )
    {
        if( o->copy != copy_generic )
        {
            ERR_fa
            (
                "Object '#<sc_t>': Registering bcore_inst_call_copy requires generic handling by bcore_inst.\n"
                "This object also registers direct or amoebic copy.\n",
                ifnameof( self->type )
            );
        }
        o->copy = copy_call_generic;
    }

    if( inst_call_discard_e )
    {
        if( o->discard )
        {
            ERR_fa
            (
                "Object '#<sc_t>': Registering bcore_inst_call_discard requires generic handling by bcore_inst.\n"
                "This object also registers direct discard.\n",
                ifnameof( self->type )
            );
        }
        o->discard = discard_call;
    }

    o->discard      = o->discard      ? o->discard     : ( o->size > 0 ? discard      : discard_null      );
    o->copy_typed   = o->copy_typed_o ? copy_typed_o   : ( o->size > 0 ? copy_typed   : copy_typed_null   );
    o->move         = o->move_o       ? move_o         : ( o->size > 0 ? move         : move_null         );
    o->create       = o->create_o     ? create_o       : ( o->size > 0 ? create       : create_null       );
    o->create_typed = o->create_o     ? create_typed_o : ( o->size > 0 ? create_typed : create_typed_null );
    o->clone        = o->clone_o      ? clone_o        : ( o->size > 0 ? clone        : clone_null        );

    return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %r15
movabsq $0x782b96602f424981, %r14 # imm = 0x782B96602F424981
movl $0xc8, %esi
xorl %edi, %edi
callq 0xc8315
movq %rax, %rbx
movl $0xc8, %esi
movq %rax, %rdi
callq 0xc8366
movq %r14, (%rbx)
movq 0x8(%r15), %rax
movq %rax, 0x8(%rbx)
movb $0x1, 0x2c(%rbx)
movq $0x0, 0x78(%rbx)
movabsq $0x7760d984346dd75f, %r14 # imm = 0x7760D984346DD75F
movabsq $-0xa2d503a854a8ded, %rdx # imm = 0xF5D2AFC57AB57213
movq %r15, %rdi
movq %r14, %rsi
callq 0xce882
movq %rax, %rbp
movabsq $-0x23fbed989e448bab, %rdx # imm = 0xDC04126761BB7455
movq %r15, %rdi
movq %r14, %rsi
callq 0xce882
movq %rax, %r12
movabsq $0xbf903911984eee4, %rdx # imm = 0xBF903911984EEE4
movq %r15, %rdi
movq %r14, %rsi
callq 0xce882
movq %rax, %r13
movabsq $0x4db3f38a2028f26c, %rsi # imm = 0x4DB3F38A2028F26C
movq %r15, %rdi
xorl %edx, %edx
callq 0xce882
movq %rax, 0x30(%rbx)
movabsq $-0x356e1be0c569a762, %rsi # imm = 0xCA91E41F3A96589E
movq %r15, %rdi
xorl %edx, %edx
callq 0xce882
movq %rax, 0x38(%rbx)
movabsq $-0x1d1130c956302d15, %rsi # imm = 0xE2EECF36A9CFD2EB
movq %r15, %rdi
xorl %edx, %edx
callq 0xce882
movq %rax, 0x40(%rbx)
movabsq $0xa1c5df52c063b0, %rsi # imm = 0xA1C5DF52C063B0
movq %r15, %rdi
xorl %edx, %edx
callq 0xce882
movq %rax, 0x48(%rbx)
movabsq $-0x6c7a7bbf7ced86ae, %rsi # imm = 0x9385844083127952
movq %r15, %rdi
xorl %edx, %edx
callq 0xce882
movq %rax, 0x58(%rbx)
movabsq $-0x23dfe26c4756c96f, %rsi # imm = 0xDC201D93B8A93691
movq %r15, %rdi
xorl %edx, %edx
callq 0xce882
movq %rax, 0x60(%rbx)
movabsq $0x22203e63bce3c70, %rsi # imm = 0x22203E63BCE3C70
movq %r15, %rdi
xorl %edx, %edx
callq 0xce882
movq %rax, 0x68(%rbx)
movabsq $-0x5a807504cfb405ed, %rsi # imm = 0xA57F8AFB304BFA13
movq %r15, %rdi
xorl %edx, %edx
callq 0xce882
movq %rax, 0x70(%rbx)
movq %rbp, %rax
movq %rbp, 0x78(%rsp)
testq %rbp, %rbp
jne 0x104035
movq 0x30(%rbx), %rax
movq %rax, 0x30(%rbx)
movq %r12, %rcx
movq %r12, 0x60(%rsp)
testq %r12, %r12
jne 0x10404a
movq 0x38(%rbx), %rcx
movq %rcx, 0x38(%rbx)
movq %r13, %rdx
testq %r13, %r13
jne 0x10405a
movq 0x40(%rbx), %rdx
movq %rdx, 0x40(%rbx)
testq %rax, %rax
sete 0x29(%rbx)
testq %rcx, %rcx
sete 0x2a(%rbx)
testq %rdx, %rdx
sete 0x2b(%rbx)
movq %r15, %rdi
callq 0xcd3df
testq %rax, %rax
je 0x1045db
movq %r15, %rdi
callq 0xcd3df
movq %rax, %r12
movq 0x30(%r15), %rdi
callq 0xccf69
movb %al, 0x17(%rsp)
testq %r12, %r12
je 0x104617
movq %r15, 0x50(%rsp)
movq %r13, 0x70(%rsp)
leaq 0x4f639(%rip), %r15     # 0x1536ef
xorl %r14d, %r14d
xorl %r13d, %r13d
movq $0x0, 0x48(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x68(%rsp)
movq %r12, 0x80(%rsp)
movq 0x50(%rsp), %rdi
movq %r13, %rsi
callq 0xcd3f0
movq %rax, %rbp
movzwl 0x14(%rax), %eax
testb $0x12, %al
jne 0x104541
movl 0x10(%rbp), %ecx
cmpl $0xe, %ecx
ja 0x104145
movl $0x37dc, %edx           # imm = 0x37DC
btl %ecx, %edx
jae 0x1042a4
btl $0xb, %eax
jae 0x10413f
movb $0x0, 0x29(%rbx)
movw $0x0, 0x2a(%rbx)
cmpq $0x0, 0x10(%rbx)
jne 0x104172
movl $0x18, %esi
xorl %edi, %edi
callq 0xc8315
movq %r14, %r12
movq %rax, %r14
movl $0x18, %esi
movq %rax, %rdi
callq 0xc8366
movq %r14, 0x10(%rbx)
movq %r12, %r14
movq 0x10(%rbx), %rdi
callq 0x101877
movq %rax, %r12
movq %rbp, 0x18(%rax)
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x104451
testb $0x4, 0x15(%rbp)
jne 0x104451
movq %r14, 0x38(%rsp)
callq 0xcedbf
movq (%rbp), %r14
testb %al, %al
je 0x104214
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
cmpq %rdi, %r14
jne 0x104314
cmpl $0x1, 0x10(%rbp)
jne 0x10454f
callq 0xe0cbc
movq %rax, %r14
testq %rax, %rax
cmoveq %r15, %r14
movq (%rbp), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4f506(%rip), %rcx     # 0x1536ef
cmoveq %rcx, %rax
movq (%rbp), %rcx
movq %rcx, (%rsp)
leaq 0x4f503(%rip), %rdi     # 0x1536ff
leaq 0x50f93(%rip), %rsi     # 0x155196
movl $0x693, %edx            # imm = 0x693
leaq 0x51183(%rip), %rcx     # 0x155392
jmp 0x1043eb
movq %r14, %rdi
callq 0x121c53
movb %al, 0x58(%rsp)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0xe0cbc
movq %rax, %r14
testq %rax, %rax
cmoveq %r15, %r14
cmpb $0x0, 0x58(%rsp)
je 0x1043b2
movq 0x8(%rbp), %rdi
callq 0xe0cbc
movq %rax, %rcx
testq %rax, %rax
leaq 0x4f496(%rip), %rax     # 0x1536ef
cmoveq %rax, %rcx
movq %rcx, 0x58(%rsp)
movq (%rbp), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4f47a(%rip), %rcx     # 0x1536ef
cmoveq %rcx, %rax
movq %rax, (%rsp)
leaq 0x4f47b(%rip), %rdi     # 0x1536ff
leaq 0x50f0b(%rip), %rsi     # 0x155196
movl $0x67f, %edx            # imm = 0x67F
leaq 0x50fd6(%rip), %rcx     # 0x15526d
movq %r14, %r8
movq 0x58(%rsp), %r9
jmp 0x1043f1
cmpl $0xe, %ecx
jne 0x104145
movq (%rbp), %rax
movabsq $0x2b5d6decb7fe6923, %rcx # imm = 0x2B5D6DECB7FE6923
cmpq %rcx, %rax
jle 0x104559
movabsq $0x58adaed42247025d, %rcx # imm = 0x58ADAED42247025D
cmpq %rcx, %rax
je 0x10458b
movabsq $0x4a39cd7ce0d6ee91, %rcx # imm = 0x4A39CD7CE0D6EE91
cmpq %rcx, %rax
je 0x104594
movabsq $0x2b5d6decb7fe6924, %rcx # imm = 0x2B5D6DECB7FE6924
cmpq %rcx, %rax
jne 0x104541
movb $0x0, 0x29(%rbx)
movb $0x1, %al
movq %rax, 0x18(%rsp)
movb $0x1, %al
movq %rax, 0x40(%rsp)
jmp 0x104541
movl 0xa514e(%rip), %eax     # 0x1a9468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa5141(%rip), %rdx     # 0x1a9468
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x104378
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x104378
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x104378
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x1045b5
movq (%rax,%rcx), %rax
testq %rax, %rax
jne 0x1043ab
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xf3f85
leaq 0xa50ce(%rip), %rdi     # 0x1a9468
movq %r14, %rsi
movq %rax, %r14
movq %rax, %rdx
callq 0x12128c
movq %r14, %rax
movq %rax, 0x20(%r12)
jmp 0x1043f8
movq (%rbp), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4f32a(%rip), %rcx     # 0x1536ef
cmoveq %rcx, %rax
movq (%rbp), %rcx
movq %rcx, (%rsp)
leaq 0x4f327(%rip), %rdi     # 0x1536ff
leaq 0x50db7(%rip), %rsi     # 0x155196
movl $0x68a, %edx            # imm = 0x68A
leaq 0x50f55(%rip), %rcx     # 0x155340
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xc825d
movq 0x38(%rsp), %r14
movq (%rbp), %rax
movabsq $-0x388c46b188de83fe, %rcx # imm = 0xC773B94E77217C02
cmpq %rcx, %rax
je 0x10441f
movabsq $-0x7c15e45e4ba87aee, %rcx # imm = 0x83EA1BA1B4578512
cmpq %rcx, %rax
jne 0x10442a
testq %r13, %r13
jne 0x10442a
movw $0x1, 0x28(%rbx)
movq %rbp, %rdi
callq 0xc993e
testb %al, %al
je 0x10443a
movb $0x0, 0x29(%rbx)
movq 0x20(%r12), %rax
movb 0x29(%rax), %cl
andb %cl, 0x29(%rbx)
movb 0x2b(%rax), %cl
andb %cl, 0x2b(%rbx)
movb 0x2a(%rax), %al
andb %al, 0x2a(%rbx)
movl 0x10(%rbp), %eax
cmpl $0xb, %eax
je 0x104469
cmpl $0x1, %eax
jne 0x104482
movq 0x20(%r12), %rax
movq 0x18(%rax), %rcx
jmp 0x104477
movq 0x20(%r12), %rax
movq 0x18(%rbp), %rcx
imulq 0x18(%rax), %rcx
movq %rcx, 0x8(%r12)
movq 0x20(%rax), %rax
jmp 0x104497
movq %rbp, %rdi
callq 0xc9955
movq %rax, 0x8(%r12)
movq %rbp, %rdi
callq 0xc9993
movq %rax, 0x10(%r12)
testb $0x1, 0x14(%rbp)
je 0x1044b2
movb $0x1, 0x28(%r12)
testb $0x8, 0x14(%rbp)
jne 0x1044b2
movb $0x0, 0x2b(%rbx)
testb $0x8, 0x14(%rbp)
movq 0x48(%rsp), %rax
je 0x1044c7
movb $0x1, 0x28(%r12)
movb $0x0, 0x29(%rbx)
testb $0x20, 0x14(%rbp)
je 0x1044d3
movb $0x1, 0x28(%r12)
testq %rax, %rax
je 0x104504
movq 0x10(%r12), %rcx
movq %rax, %rdx
movq 0x8(%rax), %rax
addq (%rdx), %rax
cmpq $0x2, %rcx
jb 0x104506
leaq -0x1(%rcx), %rdx
leaq (%rax,%rcx), %rsi
negq %rcx
andq %rsi, %rcx
testq %rdx, %rax
cmovneq %rcx, %rax
jmp 0x104506
xorl %eax, %eax
movq 0x10(%r12), %rcx
cmpq %r14, %rcx
cmovaq %rcx, %r14
movq %rax, (%r12)
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0x10452c
leaq -0x2ebd(%rip), %rdi     # 0x10166a
callq 0xc8352
movq %r12, %rdi
callq 0x1016e3
movq %rax, 0x48(%rsp)
movq 0x80(%rsp), %r12
incq %r13
cmpq %r13, %r12
jne 0x104103
jmp 0x1045bc
movq %rbx, 0x20(%r12)
jmp 0x1043f8
movabsq $-0x281504497670e235, %rcx # imm = 0xD7EAFBB6898F1DCB
cmpq %rcx, %rax
je 0x1045a1
movabsq $-0x2814f9497670cf84, %rcx # imm = 0xD7EB06B6898F307C
cmpq %rcx, %rax
jne 0x104541
movb $0x0, 0x2b(%rbx)
movb $0x1, %al
movq %rax, 0x18(%rsp)
movb $0x1, %al
movq %rax, 0x20(%rsp)
jmp 0x104541
movb $0x1, %al
movq %rax, 0x30(%rsp)
jmp 0x1045ac
movb $0x0, 0x2a(%rbx)
movb $0x1, %al
movq %rax, 0x28(%rsp)
jmp 0x1045ac
movb $0x0, 0x2b(%rbx)
movb $0x1, %al
movq %rax, 0x68(%rsp)
movb $0x1, %al
movq %rax, 0x18(%rsp)
jmp 0x104541
xorl %eax, %eax
jmp 0x10437c
movq 0x20(%rsp), %rax
orb 0x68(%rsp), %al
movq %rax, 0x20(%rsp)
movq 0x70(%rsp), %r13
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %r15
jmp 0x104649
movq 0x20(%r15), %r14
movq 0x28(%r15), %r12
movb $0x1, %cl
movq $0x0, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x40(%rsp)
jmp 0x104700
movq $0x0, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x40(%rsp)
xorl %eax, %eax
xorl %r14d, %r14d
movq %r14, %r12
testq %rax, %rax
movq %rax, %rdx
setne %al
movb 0x17(%rsp), %cl
testb %al, %cl
movl %ecx, %eax
je 0x10468e
movq 0x8(%rdx), %r14
movq %rdx, %rsi
addq (%rdx), %r14
cmpq $0x2, %r12
jb 0x104695
movq %r12, %rdx
leaq -0x1(%r12), %rax
leaq (%r14,%r12), %rcx
negq %rdx
andq %rcx, %rdx
testq %rax, %r14
movb 0x17(%rsp), %al
cmovneq %rdx, %r14
jmp 0x104695
movq %rdx, %rsi
movq 0x20(%r15), %r14
testb %al, %al
jne 0x1046e2
cmpq $0x0, 0x28(%r15)
jne 0x1046de
movq 0x8(%r15), %rdi
movq %rsi, %r12
callq 0xe0cbc
testq %rax, %rax
leaq 0x4f039(%rip), %r8      # 0x1536ef
cmovneq %rax, %r8
leaq 0x4f03e(%rip), %rdi     # 0x1536ff
leaq 0x50ace(%rip), %rsi     # 0x155196
leaq 0x50d66(%rip), %rcx     # 0x155435
movl $0x6f0, %edx            # imm = 0x6F0
xorl %eax, %eax
callq 0xc80f6
movq %r12, %rsi
movq 0x28(%r15), %r12
testq %r12, %r12
jne 0x1046eb
movq 0x28(%r15), %r12
testq %rsi, %rsi
je 0x1046fc
leaq -0x308d(%rip), %rdi     # 0x10166a
callq 0xc8352
movb 0x17(%rsp), %cl
movq %r14, 0x18(%rbx)
movq 0x28(%r15), %rax
testq %rax, %rax
cmovneq %rax, %r12
movq %r12, 0x20(%rbx)
testb %cl, %cl
je 0x104769
movq 0x20(%r15), %rax
testq %rax, %rax
je 0x104769
cmpq %r14, %rax
je 0x104769
movq 0x8(%r15), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4efb7(%rip), %r8      # 0x1536ef
cmovneq %rax, %r8
movq 0x20(%r15), %r9
movq 0x18(%rbx), %rax
movq %rax, (%rsp)
leaq 0x4efb0(%rip), %rdi     # 0x1536ff
leaq 0x50a40(%rip), %rsi     # 0x155196
leaq 0x50d15(%rip), %rcx     # 0x155472
movl $0x709, %edx            # imm = 0x709
xorl %eax, %eax
callq 0xc80f6
cmpq $0x0, 0x18(%rbx)
je 0x1047af
cmpq $0x0, 0x20(%rbx)
jne 0x1047af
movq 0x8(%r15), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4ef65(%rip), %r8      # 0x1536ef
cmovneq %rax, %r8
leaq 0x4ef6a(%rip), %rdi     # 0x1536ff
leaq 0x509fa(%rip), %rsi     # 0x155196
leaq 0x50d67(%rip), %rcx     # 0x15550a
movl $0x70e, %edx            # imm = 0x70E
xorl %eax, %eax
callq 0xc80f6
testb $0x1, 0x18(%rsp)
je 0x104859
movq %r15, %r12
movq 0x8(%r15), %r14
leaq 0xa02d0(%rip), %rax     # 0x1a4a98
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r14, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x104822
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x104822
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x104822
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x104c15
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x104852
movabsq $-0x2653c3ea1bdae530, %rdi # imm = 0xD9AC3C15E4251AD0
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xa0251(%rip), %rdi     # 0x1a4a98
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, 0x78(%rbx)
movq %r12, %r15
movb 0x2a(%rbx), %cl
testb %cl, %cl
jne 0x104864
movb $0x0, 0x2b(%rbx)
movb 0x29(%rbx), %al
xorl %edx, %edx
cmpb $0x1, %al
jne 0x104877
movzbl %cl, %esi
cmpb $0x0, 0x2b(%rbx)
cmovnel %esi, %edx
movb %dl, 0x2c(%rbx)
cmpq $0x0, 0x30(%rbx)
je 0x104897
cmpq $0x0, 0x78(%rsp)
leaq 0x3e2(%rip), %rdx       # 0x104c70
leaq 0x3b7(%rip), %rax       # 0x104c4c
jmp 0x1048b2
testb %al, %al
je 0x104bf1
cmpq $0x0, 0x18(%rbx)
leaq 0x3dd(%rip), %rdx       # 0x104c88
leaq 0x3c7(%rip), %rax       # 0x104c79
cmoveq %rdx, %rax
movq 0x60(%rsp), %rdx
movq %rax, 0x80(%rbx)
cmpq $0x0, 0x38(%rbx)
je 0x1048dc
testq %rdx, %rdx
leaq 0xa6f(%rip), %rdx       # 0x105342
leaq 0xa44(%rip), %rcx       # 0x10531e
jmp 0x1048f7
testb %cl, %cl
je 0x104bfd
cmpq $0x0, 0x18(%rbx)
leaq 0xa5c(%rip), %rdx       # 0x10534c
leaq 0xa54(%rip), %rcx       # 0x10534b
cmoveq %rdx, %rcx
movq %rcx, 0x88(%rbx)
cmpq $0x0, 0x40(%rbx)
je 0x10491c
testq %r13, %r13
leaq 0x112d(%rip), %rdx      # 0x105a40
leaq 0x10f7(%rip), %rcx      # 0x105a11
jmp 0x104939
cmpb $0x1, 0x2b(%rbx)
jne 0x104c09
cmpq $0x0, 0x18(%rbx)
leaq 0x1138(%rip), %rdx      # 0x105a6a
leaq 0x1119(%rip), %rcx      # 0x105a52
cmoveq %rdx, %rcx
movq 0x30(%rsp), %r14
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %r13
movq %rcx, 0x90(%rbx)
movq 0x68(%rbx), %rcx
testq %rcx, %rcx
leaq 0x210c(%rip), %rdx      # 0x106a6d
cmoveq %rcx, %rdx
movq %rdx, 0xb8(%rbx)
testb $0x1, 0x40(%rsp)
je 0x1049c5
leaq 0x30f(%rip), %rcx       # 0x104c89
cmpq %rcx, %rax
je 0x1049b7
movq 0x8(%r15), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4ed5d(%rip), %r8      # 0x1536ef
cmovneq %rax, %r8
leaq 0x4ed62(%rip), %rdi     # 0x1536ff
leaq 0x507f2(%rip), %rsi     # 0x155196
leaq 0x50b80(%rip), %rcx     # 0x15552b
movl $0x729, %edx            # imm = 0x729
xorl %eax, %eax
callq 0xc825d
leaq 0x20be(%rip), %rax      # 0x106a7c
movq %rax, 0x80(%rbx)
testb $0x1, %r13b
je 0x104a21
leaq 0x97b(%rip), %rax       # 0x10534d
cmpq %rax, 0x88(%rbx)
je 0x104a13
movq 0x8(%r15), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4ed01(%rip), %r8      # 0x1536ef
cmovneq %rax, %r8
leaq 0x4ed06(%rip), %rdi     # 0x1536ff
leaq 0x50796(%rip), %rsi     # 0x155196
leaq 0x50bbe(%rip), %rcx     # 0x1555c5
movl $0x737, %edx            # imm = 0x737
xorl %eax, %eax
callq 0xc825d
leaq 0x2082(%rip), %rax      # 0x106a9c
movq %rax, 0x88(%rbx)
testb $0x1, %r12b
je 0x104a7d
leaq 0x103d(%rip), %rax      # 0x105a6b
cmpq %rax, 0x90(%rbx)
je 0x104a6f
movq 0x8(%r15), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4eca5(%rip), %r8      # 0x1536ef
cmovneq %rax, %r8
leaq 0x4ecaa(%rip), %rdi     # 0x1536ff
leaq 0x5073a(%rip), %rsi     # 0x155196
leaq 0x50bf6(%rip), %rcx     # 0x155659
movl $0x745, %edx            # imm = 0x745
xorl %eax, %eax
callq 0xc825d
leaq 0x204c(%rip), %rax      # 0x106ac2
movq %rax, 0x90(%rbx)
testb $0x1, %r14b
je 0x104ad3
cmpq $0x0, 0xb8(%rbx)
je 0x104ac5
movq 0x8(%r15), %rdi
callq 0xe0cbc
testq %rax, %rax
leaq 0x4ec4f(%rip), %r8      # 0x1536ef
cmovneq %rax, %r8
leaq 0x4ec54(%rip), %rdi     # 0x1536ff
leaq 0x506e4(%rip), %rsi     # 0x155196
leaq 0x50c30(%rip), %rcx     # 0x1556e9
movl $0x753, %edx            # imm = 0x753
xorl %eax, %eax
callq 0xc825d
leaq 0x2047(%rip), %rax      # 0x106b13
movq %rax, 0xb8(%rbx)
movq 0xb8(%rbx), %rax
testq %rax, %rax
jne 0x104af6
cmpq $0x0, 0x18(%rbx)
leaq 0x207b(%rip), %rcx      # 0x106b66
leaq 0x205c(%rip), %rax      # 0x106b4e
cmoveq %rcx, %rax
movq %rax, 0xb8(%rbx)
cmpq $0x0, 0x48(%rbx)
je 0x104b0d
leaq 0x205c(%rip), %rax      # 0x106b67
jmp 0x104b24
cmpq $0x0, 0x18(%rbx)
leaq 0x3a47(%rip), %rcx      # 0x108560
leaq 0x205e(%rip), %rax      # 0x106b7e
cmoveq %rcx, %rax
movq %rax, 0x98(%rbx)
cmpq $0x0, 0x50(%rbx)
je 0x104b3b
leaq 0x3a2a(%rip), %rax      # 0x108563
jmp 0x104b52
cmpq $0x0, 0x18(%rbx)
leaq 0x3a6c(%rip), %rcx      # 0x1085b3
leaq 0x3a27(%rip), %rax      # 0x108575
cmoveq %rcx, %rax
movq %rax, 0xa0(%rbx)
cmpq $0x0, 0x58(%rbx)
je 0x104b77
leaq 0x3a4d(%rip), %rax      # 0x1085b4
movq %rax, 0xa8(%rbx)
leaq 0x3a78(%rip), %rax      # 0x1085ed
jmp 0x104ba7
cmpq $0x0, 0x18(%rbx)
leaq 0x3a67(%rip), %rax      # 0x1085ea
leaq 0x3a2d(%rip), %rcx      # 0x1085b7
cmoveq %rax, %rcx
movq %rcx, 0xa8(%rbx)
leaq 0x3ad4(%rip), %rcx      # 0x108670
leaq 0x3a56(%rip), %rax      # 0x1085f9
cmoveq %rcx, %rax
movq %rax, 0xb0(%rbx)
cmpq $0x0, 0x70(%rbx)
je 0x104bbe
leaq 0x3ab7(%rip), %rax      # 0x108673
jmp 0x104bd5
cmpq $0x0, 0x18(%rbx)
leaq 0x3af0(%rip), %rcx      # 0x1086ba
leaq 0x3ab3(%rip), %rax      # 0x108684
cmoveq %rcx, %rax
movq %rax, 0xc0(%rbx)
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x91(%rip), %rax        # 0x104c89
jmp 0x1048b6
leaq 0x749(%rip), %rcx       # 0x10534d
jmp 0x1048fb
leaq 0xe5b(%rip), %rcx       # 0x105a6b
jmp 0x10493d
xorl %r15d, %r15d
jmp 0x104826