// File: /workspace/github_c_makefile_star2_O3/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 $0x98, %rsp
movq %rdi, %r15
movabsq $0x782b96602f424981, %r14 # imm = 0x782B96602F424981
movl $0xc8, %esi
xorl %edi, %edi
callq 0xbe7b1
movq %rax, %rbx
movq %rax, %r13
movl $0xc8, %esi
movq %rax, %rdi
callq 0xbe802
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 0xc473a
movq %rax, %rbp
movabsq $-0x23fbed989e448bab, %rdx # imm = 0xDC04126761BB7455
movq %r15, %rdi
movq %r14, %rsi
callq 0xc473a
movq %rax, %r12
movabsq $0xbf903911984eee4, %rdx # imm = 0xBF903911984EEE4
movq %r15, %rdi
movq %r14, %rsi
callq 0xc473a
movq %rax, %r14
movabsq $0x4db3f38a2028f26c, %rsi # imm = 0x4DB3F38A2028F26C
movq %r15, %rdi
xorl %edx, %edx
callq 0xc473a
movq %rax, 0x30(%rbx)
movabsq $-0x356e1be0c569a762, %rsi # imm = 0xCA91E41F3A96589E
movq %r15, %rdi
xorl %edx, %edx
callq 0xc473a
movq %rax, 0x38(%rbx)
movabsq $-0x1d1130c956302d15, %rsi # imm = 0xE2EECF36A9CFD2EB
movq %r15, %rdi
xorl %edx, %edx
callq 0xc473a
movq %rax, 0x40(%rbx)
movabsq $0xa1c5df52c063b0, %rsi # imm = 0xA1C5DF52C063B0
movq %r15, %rdi
xorl %edx, %edx
callq 0xc473a
movq %rax, 0x48(%rbx)
movabsq $-0x6c7a7bbf7ced86ae, %rsi # imm = 0x9385844083127952
movq %r15, %rdi
xorl %edx, %edx
callq 0xc473a
movq %rax, 0x58(%rbx)
movabsq $-0x23dfe26c4756c96f, %rsi # imm = 0xDC201D93B8A93691
movq %r15, %rdi
xorl %edx, %edx
callq 0xc473a
movq %rax, 0x60(%rbx)
movabsq $0x22203e63bce3c70, %rsi # imm = 0x22203E63BCE3C70
movq %r15, %rdi
xorl %edx, %edx
callq 0xc473a
movq %rax, 0x68(%rbx)
movabsq $-0x5a807504cfb405ed, %rsi # imm = 0xA57F8AFB304BFA13
movq %r15, %rdi
xorl %edx, %edx
callq 0xc473a
movq %rbx, 0x78(%rsp)
movq %rax, 0x70(%rbx)
movq %rbp, %rax
movq %rbp, 0x80(%rsp)
testq %rbp, %rbp
jne 0xf96d4
movq 0x30(%r13), %rax
movq %rax, 0x30(%r13)
movq %r12, %rcx
movq %r12, 0x68(%rsp)
testq %r12, %r12
jne 0xf96e9
movq 0x38(%r13), %rcx
movq %rcx, 0x38(%r13)
movq %r14, %rbp
movq %r14, %rdx
testq %r14, %r14
jne 0xf96fc
movq 0x40(%r13), %rdx
movq %rdx, 0x40(%r13)
testq %rax, %rax
sete 0x29(%r13)
testq %rcx, %rcx
sete 0x2a(%r13)
testq %rdx, %rdx
sete 0x2b(%r13)
movq %r15, %rdi
callq 0xc32f5
testq %rax, %rax
je 0xf9cfb
movq %r13, 0x18(%rsp)
movq %r15, %rdi
callq 0xc32f5
movq %rax, %r12
movq 0x30(%r15), %rdi
callq 0xc2e85
testq %r12, %r12
movb %al, 0x17(%rsp)
je 0xf9d51
movq %rbp, 0x70(%rsp)
leaq 0x4efba(%rip), %rbx     # 0x148715
movq $0x0, 0x38(%rsp)
xorl %r13d, %r13d
xorl %r14d, %r14d
movq $0x0, 0x40(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
movq %r15, 0x60(%rsp)
movq %r12, 0x88(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0xc3306
movq %rax, %rbp
movzwl 0x14(%rax), %eax
testb $0x12, %al
jne 0xf9c20
movl 0x10(%rbp), %ecx
cmpl $0xe, %ecx
ja 0xf97f7
movl $0x37dc, %edx           # imm = 0x37DC
btl %ecx, %edx
jae 0xf9953
btl $0xb, %eax
jae 0xf97ec
movq 0x18(%rsp), %rax
movb $0x0, 0x29(%rax)
movq 0x18(%rsp), %rax
movw $0x0, 0x2a(%rax)
movq %r14, 0x90(%rsp)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
jne 0xf9832
movl $0x18, %esi
xorl %edi, %edi
callq 0xbe7b1
movq %rax, %r14
movl $0x18, %esi
movq %rax, %rdi
callq 0xbe802
movq 0x18(%rsp), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0xf70d0
movq %rax, %r12
movq %rbp, 0x18(%rax)
movq (%rbp), %rdi
testq %rdi, %rdi
je 0xf9b09
testb $0x4, 0x15(%rbp)
jne 0xf9b09
callq 0xc4c3d
movq (%rbp), %r14
testb %al, %al
je 0xf98d6
cmpq 0x8(%r15), %r14
jne 0xf99c8
cmpl $0x1, 0x10(%rbp)
jne 0xf9c2e
movq %r14, %rdi
callq 0xd6ec4
movq %rax, %r14
testq %rax, %rax
cmoveq %rbx, %r14
movq (%rbp), %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x4ee77(%rip), %rcx     # 0x148715
cmoveq %rcx, %rax
movq (%rbp), %rcx
movq %rcx, (%rsp)
leaq 0x4ee74(%rip), %rdi     # 0x148725
leaq 0x50906(%rip), %rsi     # 0x14a1be
movl $0x693, %edx            # imm = 0x693
leaq 0x50af6(%rip), %rcx     # 0x14a3ba
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xbe6f9
jmp 0xf9aa3
movq %r14, %rdi
callq 0x11696d
movb %al, 0x58(%rsp)
movq 0x8(%r15), %rdi
callq 0xd6ec4
movq %rax, %r14
testq %rax, %rax
movq %rbx, %r15
cmoveq %rbx, %r14
cmpb $0x0, 0x58(%rsp)
je 0xf9a5f
movq 0x8(%rbp), %rdi
callq 0xd6ec4
testq %rax, %rax
cmoveq %r15, %rax
movq %rax, 0x58(%rsp)
movq (%rbp), %rdi
callq 0xd6ec4
testq %rax, %rax
cmoveq %r15, %rax
movq %rax, (%rsp)
leaq 0x4edf2(%rip), %rdi     # 0x148725
leaq 0x50884(%rip), %rsi     # 0x14a1be
movl $0x67f, %edx            # imm = 0x67F
leaq 0x5094f(%rip), %rcx     # 0x14a295
movq %r14, %r8
movq 0x58(%rsp), %r9
jmp 0xf9a97
cmpl $0xe, %ecx
jne 0xf97f7
movq (%rbp), %rax
movabsq $0x2b5d6decb7fe6923, %rcx # imm = 0x2B5D6DECB7FE6923
cmpq %rcx, %rax
jle 0xf9c3d
movabsq $0x58adaed42247025d, %rcx # imm = 0x58ADAED42247025D
cmpq %rcx, %rax
je 0xf9c74
movabsq $0x4a39cd7ce0d6ee91, %rcx # imm = 0x4A39CD7CE0D6EE91
cmpq %rcx, %rax
je 0xf9c7d
movabsq $0x2b5d6decb7fe6924, %rcx # imm = 0x2B5D6DECB7FE6924
cmpq %rcx, %rax
jne 0xf9c20
movq 0x18(%rsp), %rax
movb $0x0, 0x29(%rax)
movb $0x1, %al
movq %rax, 0x20(%rsp)
movb $0x1, %al
movq %rax, 0x40(%rsp)
jmp 0xf9c20
movl 0xa2a9a(%rip), %eax     # 0x19c468
cltq
leaq (%rax,%rax,2), %rax
leaq 0xa2a8d(%rip), %rdx     # 0x19c468
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 0xf9a28
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xf9a28
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xf9a28
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xf9a31
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xf9a58
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0xa2a1b(%rip), %rdi     # 0x19c468
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, 0x20(%r12)
jmp 0xf9a9e
movq (%rbp), %rdi
callq 0xd6ec4
testq %rax, %rax
cmoveq %r15, %rax
movq (%rbp), %rcx
movq %rcx, (%rsp)
leaq 0x4eca7(%rip), %rdi     # 0x148725
leaq 0x50739(%rip), %rsi     # 0x14a1be
movl $0x68a, %edx            # imm = 0x68A
leaq 0x508d7(%rip), %rcx     # 0x14a368
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xbe6f9
movq 0x60(%rsp), %r15
movq 0x18(%rsp), %r14
movq (%rbp), %rax
movabsq $-0x388c46b188de83fe, %rcx # imm = 0xC773B94E77217C02
cmpq %rcx, %rax
je 0xf9aca
movabsq $-0x7c15e45e4ba87aee, %rcx # imm = 0x83EA1BA1B4578512
cmpq %rcx, %rax
jne 0xf9ad6
testq %r13, %r13
jne 0xf9ad6
movw $0x1, 0x28(%r14)
movq %rbp, %rdi
callq 0xbfdc6
testb %al, %al
je 0xf9aeb
movb $0x0, 0x29(%r14)
xorl %eax, %eax
jmp 0xf9aef
movb 0x29(%r14), %al
movq 0x20(%r12), %rcx
andb 0x29(%rcx), %al
movb %al, 0x29(%r14)
movb 0x2b(%rcx), %al
andb %al, 0x2b(%r14)
movb 0x2a(%rcx), %al
andb %al, 0x2a(%r14)
movl 0x10(%rbp), %eax
cmpl $0xb, %eax
movq 0x90(%rsp), %r14
je 0xf9b29
cmpl $0x1, %eax
jne 0xf9b42
movq 0x20(%r12), %rax
movq 0x18(%rax), %rcx
jmp 0xf9b37
movq 0x20(%r12), %rax
movq 0x18(%rbp), %rcx
imulq 0x18(%rax), %rcx
movq %rcx, 0x8(%r12)
movq 0x20(%rax), %rax
jmp 0xf9b57
movq %rbp, %rdi
callq 0xbfddd
movq %rax, 0x8(%r12)
movq %rbp, %rdi
callq 0xbfe1b
movq %rax, 0x10(%r12)
movzwl 0x14(%rbp), %ecx
testb $0x1, %cl
je 0xf9b81
movb $0x1, 0x28(%r12)
movzwl 0x14(%rbp), %ecx
testb $0x8, %cl
jne 0xf9b81
movq 0x18(%rsp), %rcx
movb $0x0, 0x2b(%rcx)
movzwl 0x14(%rbp), %ecx
testb $0x8, %cl
je 0xf9b99
movb $0x1, 0x28(%r12)
movq 0x18(%rsp), %rcx
movb $0x0, 0x29(%rcx)
movzwl 0x14(%rbp), %ecx
testb $0x20, %cl
je 0xf9ba4
movb $0x1, 0x28(%r12)
testq %r14, %r14
je 0xf9bf4
movq 0x8(%r14), %rcx
addq (%r14), %rcx
cmpq $0x2, %rax
jb 0xf9bce
leaq -0x1(%rax), %rdx
leaq (%rcx,%rax), %rsi
movq %rax, %rdi
negq %rdi
andq %rsi, %rdi
testq %rdx, %rcx
cmovneq %rdi, %rcx
movq %rcx, (%r12)
movq 0x38(%rsp), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %rcx, 0x38(%rsp)
leaq -0x2d2c(%rip), %rdi     # 0xf6ebe
movq %r14, %rsi
callq 0xbe7ee
jmp 0xf9c0d
movq $0x0, (%r12)
movq 0x38(%rsp), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %rcx, 0x38(%rsp)
movq %r12, %rdi
callq 0xf6f37
movq %rax, %r14
movq 0x88(%rsp), %r12
incq %r13
cmpq %r13, %r12
jne 0xf97ad
jmp 0xf9cab
movq 0x18(%rsp), %r14
movq %r14, 0x20(%r12)
jmp 0xf9aa8
movabsq $-0x281504497670e235, %rcx # imm = 0xD7EAFBB6898F1DCB
cmpq %rcx, %rax
je 0xf9c8f
movabsq $-0x2814f9497670cf84, %rcx # imm = 0xD7EB06B6898F307C
cmpq %rcx, %rax
jne 0xf9c20
movq 0x18(%rsp), %rax
movb $0x0, 0x2b(%rax)
movb $0x1, %al
movq %rax, 0x20(%rsp)
movb $0x1, %al
movq %rax, 0x28(%rsp)
jmp 0xf9c20
movb $0x1, %al
movq %rax, 0x30(%rsp)
jmp 0xf9c9f
movq 0x18(%rsp), %rax
movb $0x0, 0x2a(%rax)
movb $0x1, %al
movq %rax, 0x48(%rsp)
jmp 0xf9c9f
movq 0x18(%rsp), %rax
movb $0x0, 0x2b(%rax)
movb $0x1, %al
movq %rax, 0x50(%rsp)
movb $0x1, %al
movq %rax, 0x20(%rsp)
jmp 0xf9c20
testq %r14, %r14
setne %cl
movb 0x17(%rsp), %al
testb %cl, %al
je 0xf9d8f
movq %r14, %rcx
movq 0x8(%r14), %r14
movq %rcx, %r12
addq (%rcx), %r14
movq 0x38(%rsp), %r13
cmpq $0x2, %r13
movq 0x70(%rsp), %rbp
jb 0xf9da0
leaq -0x1(%r13), %rsi
leaq (%r14,%r13), %rcx
movq %r13, %rdx
negq %rdx
andq %rcx, %rdx
testq %rsi, %r14
cmovneq %rdx, %r14
jmp 0xf9da0
movq 0x78(%rsp), %rbx
leaq 0x18(%rbx), %r12
addq $0x20, %rbx
movq 0x20(%r15), %r14
movups 0x20(%r15), %xmm0
movups %xmm0, 0x18(%r13)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
jmp 0xf9e91
xorl %r13d, %r13d
xorl %r12d, %r12d
movq $0x0, 0x40(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
jmp 0xf9d9c
movq %r14, %r12
movq 0x70(%rsp), %rbp
movq 0x38(%rsp), %r13
movq 0x20(%r15), %r14
testb %al, %al
jne 0xf9de9
movq 0x28(%r15), %r13
testq %r13, %r13
jne 0xf9df2
movq 0x8(%r15), %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x4e955(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x4e95a(%rip), %rdi     # 0x148725
leaq 0x503ec(%rip), %rsi     # 0x14a1be
leaq 0x50684(%rip), %rcx     # 0x14a45d
movl $0x6f0, %edx            # imm = 0x6F0
xorl %eax, %eax
callq 0xbe592
movq 0x28(%r15), %r13
testq %r13, %r13
jne 0xf9df2
movq 0x28(%r15), %r13
testq %r12, %r12
je 0xf9e06
movq %r12, %rsi
leaq -0x2f43(%rip), %rdi     # 0xf6ebe
callq 0xbe7ee
movq 0x18(%rsp), %rcx
movq %r14, 0x18(%rcx)
movq 0x28(%r15), %rax
testq %rax, %rax
cmovneq %rax, %r13
movq %rcx, %rax
movq 0x78(%rsp), %rbx
leaq 0x18(%rbx), %r12
addq $0x20, %rbx
movq %r13, %rcx
movq %rax, %r13
movq %rcx, 0x20(%rax)
cmpb $0x0, 0x17(%rsp)
je 0xf9e91
movq 0x20(%r15), %rax
testq %rax, %rax
je 0xf9e91
cmpq %r14, %rax
je 0xf9e91
movq 0x8(%r15), %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x4e8b9(%rip), %r8      # 0x148715
cmovneq %rax, %r8
movq 0x20(%r15), %r9
movq (%r12), %rax
movq %rax, (%rsp)
leaq 0x4e8b2(%rip), %rdi     # 0x148725
leaq 0x50344(%rip), %rsi     # 0x14a1be
leaq 0x50619(%rip), %rcx     # 0x14a49a
movl $0x709, %edx            # imm = 0x709
xorl %eax, %eax
callq 0xbe592
movq (%r12), %r14
testq %r14, %r14
je 0xf9ed4
cmpq $0x0, (%rbx)
jne 0xf9ed4
movq 0x8(%r15), %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x4e866(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x4e86b(%rip), %rdi     # 0x148725
leaq 0x502fd(%rip), %rsi     # 0x14a1be
leaq 0x5066a(%rip), %rcx     # 0x14a532
movl $0x70e, %edx            # imm = 0x70E
xorl %eax, %eax
callq 0xbe592
testb $0x1, 0x20(%rsp)
movq %r13, %rbx
je 0xf9f7d
movq %r15, %r13
movq 0x8(%r15), %r14
leaq 0x9dba8(%rip), %rax     # 0x197a98
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 0xf9f46
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xf9f46
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xf9f46
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xf9f4f
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xf9f76
movabsq $-0x2653c3ea1bdae530, %rdi # imm = 0xD9AC3C15E4251AD0
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x9db2d(%rip), %rdi     # 0x197a98
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r15, 0x78(%rbx)
movq %r13, %r15
movb 0x2a(%rbx), %cl
testb %cl, %cl
jne 0xf9f88
movb $0x0, 0x2b(%rbx)
cmpb $0x1, 0x29(%rbx)
jne 0xf9fb9
movzbl %cl, %eax
xorl %edx, %edx
cmpb $0x0, 0x2b(%rbx)
cmovnel %eax, %edx
movb %dl, 0x2c(%rbx)
cmpq $0x0, 0x30(%rbx)
jne 0xf9fc8
cmpq $0x0, (%r12)
leaq 0x3f0(%rip), %rdx       # 0xfa3a0
leaq 0x3da(%rip), %rax       # 0xfa391
jmp 0xf9fdf
movb $0x0, 0x2c(%rbx)
cmpq $0x0, 0x30(%rbx)
je 0xfa311
cmpq $0x0, 0x80(%rsp)
leaq 0x3b0(%rip), %rdx       # 0xfa388
leaq 0x385(%rip), %rax       # 0xfa364
cmoveq %rdx, %rax
movq 0x68(%rsp), %rdx
movq %rax, 0x80(%rbx)
cmpq $0x0, 0x38(%rbx)
je 0xfa009
testq %rdx, %rdx
leaq 0xa33(%rip), %rdx       # 0xfaa33
leaq 0xa08(%rip), %rcx       # 0xfaa0f
jmp 0xfa024
testb %cl, %cl
je 0xfa31d
cmpq $0x0, (%r12)
leaq 0xa20(%rip), %rdx       # 0xfaa3d
leaq 0xa18(%rip), %rcx       # 0xfaa3c
cmoveq %rdx, %rcx
movq %rcx, 0x88(%rbx)
cmpq $0x0, 0x40(%rbx)
je 0xfa049
testq %rbp, %rbp
leaq 0x10bf(%rip), %rdx      # 0xfb0ff
leaq 0x1089(%rip), %rcx      # 0xfb0d0
jmp 0xfa066
cmpb $0x1, 0x2b(%rbx)
jne 0xfa329
cmpq $0x0, (%r12)
leaq 0x10ca(%rip), %rdx      # 0xfb129
leaq 0x10ab(%rip), %rcx      # 0xfb111
cmoveq %rdx, %rcx
movq 0x30(%rsp), %r14
movq 0x28(%rsp), %r13
movq %rcx, 0x90(%rbx)
movq 0x68(%rbx), %rcx
testq %rcx, %rcx
leaq 0x2081(%rip), %rdx      # 0xfc10a
cmoveq %rcx, %rdx
movq %rdx, 0xb8(%rbx)
testb $0x1, 0x40(%rsp)
je 0xfa0ed
leaq 0x2ff(%rip), %rcx       # 0xfa3a1
cmpq %rcx, %rax
je 0xfa0df
movq 0x8(%r15), %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x4e65b(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x4e660(%rip), %rdi     # 0x148725
leaq 0x500f2(%rip), %rsi     # 0x14a1be
leaq 0x50480(%rip), %rcx     # 0x14a553
movl $0x729, %edx            # imm = 0x729
xorl %eax, %eax
callq 0xbe6f9
leaq 0x2033(%rip), %rax      # 0xfc119
movq %rax, 0x80(%rbx)
testb $0x1, 0x48(%rsp)
je 0xfa14a
leaq 0x943(%rip), %rax       # 0xfaa3e
cmpq %rax, 0x88(%rbx)
je 0xfa13c
movq 0x8(%r15), %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x4e5fe(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x4e603(%rip), %rdi     # 0x148725
leaq 0x50095(%rip), %rsi     # 0x14a1be
leaq 0x504bd(%rip), %rcx     # 0x14a5ed
movl $0x737, %edx            # imm = 0x737
xorl %eax, %eax
callq 0xbe6f9
leaq 0x1ff6(%rip), %rax      # 0xfc139
movq %rax, 0x88(%rbx)
orb 0x50(%rsp), %r13b
testb $0x1, %r13b
je 0xfa1ab
leaq 0xfce(%rip), %rax       # 0xfb12a
cmpq %rax, 0x90(%rbx)
je 0xfa19d
movq 0x8(%r15), %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x4e59d(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x4e5a2(%rip), %rdi     # 0x148725
leaq 0x50034(%rip), %rsi     # 0x14a1be
leaq 0x504f0(%rip), %rcx     # 0x14a681
movl $0x745, %edx            # imm = 0x745
xorl %eax, %eax
callq 0xbe6f9
leaq 0x1fbb(%rip), %rax      # 0xfc15f
movq %rax, 0x90(%rbx)
movq 0xb8(%rbx), %rax
testb $0x1, %r14b
je 0xfa201
leaq 0x1ff1(%rip), %r14      # 0xfc1b0
testq %rax, %rax
je 0xfa1fc
movq 0x8(%r15), %rdi
callq 0xd6ec4
testq %rax, %rax
leaq 0x4e53e(%rip), %r8      # 0x148715
cmovneq %rax, %r8
leaq 0x4e543(%rip), %rdi     # 0x148725
leaq 0x4ffd5(%rip), %rsi     # 0x14a1be
leaq 0x50521(%rip), %rcx     # 0x14a711
movl $0x753, %edx            # imm = 0x753
xorl %eax, %eax
callq 0xbe6f9
movq %r14, %rax
jmp 0xfa21d
testq %rax, %rax
jne 0xfa21d
cmpq $0x0, (%r12)
leaq 0x1ff1(%rip), %rcx      # 0xfc203
leaq 0x1fd2(%rip), %rax      # 0xfc1eb
cmoveq %rcx, %rax
movq %rax, 0xb8(%rbx)
cmpq $0x0, 0x48(%rbx)
je 0xfa234
leaq 0x1fd2(%rip), %rax      # 0xfc204
jmp 0xfa24b
cmpq $0x0, (%r12)
leaq 0x3793(%rip), %rcx      # 0xfd9d3
leaq 0x1fd4(%rip), %rax      # 0xfc21b
cmoveq %rcx, %rax
movq %rax, 0x98(%rbx)
cmpq $0x0, 0x50(%rbx)
je 0xfa262
leaq 0x3776(%rip), %rax      # 0xfd9d6
jmp 0xfa279
cmpq $0x0, (%r12)
leaq 0x37b8(%rip), %rcx      # 0xfda26
leaq 0x3773(%rip), %rax      # 0xfd9e8
cmoveq %rcx, %rax
movq %rax, 0xa0(%rbx)
cmpq $0x0, 0x58(%rbx)
je 0xfa297
leaq 0x37d2(%rip), %rcx      # 0xfda60
leaq 0x3792(%rip), %rax      # 0xfda27
jmp 0xfa2c0
cmpq $0x0, (%r12)
leaq 0x37ba(%rip), %rcx      # 0xfda5d
leaq 0x3780(%rip), %rax      # 0xfda2a
cmoveq %rcx, %rax
leaq 0x382e(%rip), %rdx      # 0xfdae3
leaq 0x37b0(%rip), %rcx      # 0xfda6c
cmoveq %rdx, %rcx
movq %rax, 0xa8(%rbx)
movq %rcx, 0xb0(%rbx)
cmpq $0x0, 0x70(%rbx)
je 0xfa2de
leaq 0x380a(%rip), %rax      # 0xfdae6
jmp 0xfa2f5
cmpq $0x0, (%r12)
leaq 0x3843(%rip), %rcx      # 0xfdb2d
leaq 0x3806(%rip), %rax      # 0xfdaf7
cmoveq %rcx, %rax
movq %rax, 0xc0(%rbx)
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x89(%rip), %rax        # 0xfa3a1
jmp 0xf9fe3
leaq 0x71a(%rip), %rcx       # 0xfaa3e
jmp 0xfa028
leaq 0xdfa(%rip), %rcx       # 0xfb12a
jmp 0xfa06a