// File: /workspace/github_c_makefile_star2_O2/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, %r13
callq 0x84f12
movq %rax, %rbx
movq 0x8(%r13), %rax
movq %rax, 0x8(%rbx)
movb $0x1, 0x2c(%rbx)
andq $0x0, 0x78(%rbx)
movabsq $0x7760d984346dd75f, %r14 # imm = 0x7760D984346DD75F
movabsq $-0xa2d503a854a8ded, %rdx # imm = 0xF5D2AFC57AB57213
movq %r13, %rdi
movq %r14, %rsi
callq 0x6449c
movq %rax, %r15
movabsq $-0x23fbed989e448bab, %rdx # imm = 0xDC04126761BB7455
movq %r13, %rdi
movq %r14, %rsi
callq 0x6449c
movq %rax, %r12
movabsq $0xbf903911984eee4, %rdx # imm = 0xBF903911984EEE4
movq %r13, %rdi
movq %r14, %rsi
callq 0x6449c
movq %rax, %r14
movabsq $0x4db3f38a2028f26c, %rsi # imm = 0x4DB3F38A2028F26C
movq %r13, %rdi
xorl %edx, %edx
callq 0x6449c
movq %rax, 0x30(%rbx)
movabsq $-0x356e1be0c569a762, %rsi # imm = 0xCA91E41F3A96589E
movq %r13, %rdi
xorl %edx, %edx
callq 0x6449c
movq %rax, 0x38(%rbx)
movabsq $-0x1d1130c956302d15, %rsi # imm = 0xE2EECF36A9CFD2EB
movq %r13, %rdi
xorl %edx, %edx
callq 0x6449c
movq %rax, 0x40(%rbx)
movabsq $0xa1c5df52c063b0, %rsi # imm = 0xA1C5DF52C063B0
movq %r13, %rdi
xorl %edx, %edx
callq 0x6449c
movq %rax, 0x48(%rbx)
movabsq $-0x6c7a7bbf7ced86ae, %rsi # imm = 0x9385844083127952
movq %r13, %rdi
xorl %edx, %edx
callq 0x6449c
movq %rax, 0x58(%rbx)
movabsq $-0x23dfe26c4756c96f, %rsi # imm = 0xDC201D93B8A93691
movq %r13, %rdi
xorl %edx, %edx
callq 0x6449c
movq %rax, 0x60(%rbx)
movabsq $0x22203e63bce3c70, %rsi # imm = 0x22203E63BCE3C70
movq %r13, %rdi
xorl %edx, %edx
callq 0x6449c
movq %rax, 0x68(%rbx)
movabsq $-0x5a807504cfb405ed, %rsi # imm = 0xA57F8AFB304BFA13
movq %r13, %rdi
xorl %edx, %edx
callq 0x6449c
movq %rax, 0x70(%rbx)
movq %r15, %rax
movq %r15, 0x70(%rsp)
testq %r15, %r15
jne 0x8458d
movq 0x30(%rbx), %rax
movq %rax, 0x30(%rbx)
movq %r12, %rcx
testq %r12, %r12
jne 0x8459d
movq 0x38(%rbx), %rcx
movq %rcx, 0x38(%rbx)
movq %r14, %rdx
testq %r14, %r14
jne 0x845ad
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 %r13, %rdi
callq 0x6389b
testq %rax, %rax
movq %r14, 0x78(%rsp)
je 0x84a1d
movq %r12, 0x58(%rsp)
movq %r13, %rdi
callq 0x6389b
movq %rax, %r12
movq 0x30(%r13), %rdi
callq 0x63491
movl %eax, %r15d
movq $0x0, 0x60(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x28(%rsp)
xorl %ebp, %ebp
xorl %r14d, %r14d
movb %al, 0x17(%rsp)
movq %r13, 0x50(%rsp)
movq %r12, 0x80(%rsp)
cmpq %rbp, %r12
je 0x849f6
movq %r14, 0x30(%rsp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x638ac
movq %rax, %r14
movzwl 0x14(%rax), %eax
testb $0x12, %al
je 0x8467b
movq 0x30(%rsp), %r14
jmp 0x8499d
movl 0x10(%r14), %ecx
cmpl $0xe, %ecx
ja 0x846a1
movl $0x37dc, %edx           # imm = 0x37DC
btl %ecx, %edx
jae 0x8479b
btl $0xb, %eax
jae 0x8469c
movb $0x0, 0x29(%rbx)
andw $0x0, 0x2a(%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
jne 0x846b6
callq 0x831ea
movq %rax, %rdi
movq %rax, 0x10(%rbx)
callq 0x83248
movq %rax, %r13
movq %r14, 0x18(%rax)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x848be
testb $0x4, 0x15(%r14)
jne 0x848be
callq 0x648cd
movq (%r14), %rdi
testb %al, %al
je 0x84738
movq 0x50(%rsp), %rax
cmpq 0x8(%rax), %rdi
jne 0x84822
cmpl $0x1, 0x10(%r14)
jne 0x849a5
callq 0x84f2f
movq %rax, %r15
movq (%r14), %rdi
callq 0x84f2f
movq (%r14), %rcx
movq %rcx, (%rsp)
leaq 0x41ebf(%rip), %rdi     # 0xc65dc
leaq 0x439ba(%rip), %rsi     # 0xc80de
movl $0x693, %edx            # imm = 0x693
leaq 0x43bbb(%rip), %rcx     # 0xc82eb
movq %r15, %r8
jmp 0x8485b
callq 0x994d9
movl %eax, %r15d
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x84f2f
movq %rax, 0x68(%rsp)
testb %r15b, %r15b
je 0x8482d
movq 0x8(%r14), %rdi
callq 0x84f2f
movq %rax, %r15
movq (%r14), %rdi
callq 0x84f2f
movq %rax, (%rsp)
leaq 0x41e61(%rip), %rdi     # 0xc65dc
leaq 0x4395c(%rip), %rsi     # 0xc80de
movl $0x67f, %edx            # imm = 0x67F
leaq 0x43a38(%rip), %rcx     # 0xc81c6
movq 0x68(%rsp), %r8
movq %r15, %r9
jmp 0x8485e
cmpl $0xe, %ecx
jne 0x846a1
movq (%r14), %rax
movabsq $-0x281504497670e235, %rcx # imm = 0xD7EAFBB6898F1DCB
cmpq %rcx, %rax
je 0x849df
movabsq $-0x2814f9497670cf84, %rcx # imm = 0xD7EB06B6898F307C
cmpq %rcx, %rax
movq 0x30(%rsp), %r14
je 0x849ae
movabsq $0x58adaed42247025d, %rcx # imm = 0x58ADAED42247025D
cmpq %rcx, %rax
je 0x849cf
movabsq $0x4a39cd7ce0d6ee91, %rcx # imm = 0x4A39CD7CE0D6EE91
cmpq %rcx, %rax
je 0x849c2
movabsq $0x2b5d6decb7fe6924, %rcx # imm = 0x2B5D6DECB7FE6924
cmpq %rcx, %rax
jne 0x8499d
movb $0x0, 0x29(%rbx)
movb $0x1, %al
movq %rax, 0x18(%rsp)
movb $0x1, %al
movq %rax, 0x38(%rsp)
jmp 0x8499d
callq 0x83402
movq %rax, 0x20(%r13)
jmp 0x84865
movq (%r14), %rdi
callq 0x84f2f
movq (%r14), %rcx
movq %rcx, (%rsp)
leaq 0x41d99(%rip), %rdi     # 0xc65dc
leaq 0x43894(%rip), %rsi     # 0xc80de
movl $0x68a, %edx            # imm = 0x68A
leaq 0x43a43(%rip), %rcx     # 0xc8299
movq 0x68(%rsp), %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x60186
movq (%r14), %rax
movabsq $-0x388c46b188de83fe, %rcx # imm = 0xC773B94E77217C02
cmpq %rcx, %rax
je 0x84886
movabsq $-0x7c15e45e4ba87aee, %rcx # imm = 0x83EA1BA1B4578512
cmpq %rcx, %rax
jne 0x84891
testq %rbp, %rbp
jne 0x84891
movw $0x1, 0x28(%rbx)
movq %r14, %rdi
callq 0x614e8
testb %al, %al
je 0x848a5
movb $0x0, 0x29(%rbx)
xorl %eax, %eax
jmp 0x848a8
movb 0x29(%rbx), %al
movq 0x20(%r13), %rcx
andb 0x29(%rcx), %al
movb %al, 0x29(%rbx)
movb 0x2b(%rcx), %al
andb %al, 0x2b(%rbx)
movb 0x2a(%rcx), %al
andb %al, 0x2a(%rbx)
movl 0x10(%r14), %eax
cmpl $0xb, %eax
je 0x848d6
cmpl $0x1, %eax
jne 0x848ed
movq 0x20(%r13), %rax
movq 0x18(%rax), %rcx
jmp 0x848e3
movq 0x20(%r13), %rax
movq 0x18(%r14), %rcx
imulq 0x18(%rax), %rcx
movq %rcx, 0x8(%r13)
movq 0x20(%rax), %r15
jmp 0x84904
movq %r14, %rdi
callq 0x614ff
movq %rax, 0x8(%r13)
movq %r14, %rdi
callq 0x61535
movq %rax, %r15
movq %r15, 0x10(%r13)
movzwl 0x14(%r14), %eax
testb $0x1, %al
je 0x84928
movb $0x1, 0x28(%r13)
movzwl 0x14(%r14), %eax
testb $0x8, %al
jne 0x84928
movb $0x0, 0x2b(%rbx)
movzwl 0x14(%r14), %eax
testb $0x8, %al
je 0x8493a
movb $0x1, 0x28(%r13)
movb $0x0, 0x29(%rbx)
movzwl 0x14(%r14), %eax
movq %rbx, %r12
testb $0x20, %al
je 0x84946
movb $0x1, 0x28(%r13)
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
movq 0x30(%rsp), %r14
je 0x84966
movq 0x8(%rbx), %rsi
addq (%rbx), %rsi
movq %r15, %rdi
callq 0x84f45
jmp 0x84968
xorl %eax, %eax
movq %rax, (%r13)
cmpq %r14, %r15
cmovaq %r15, %r14
movq %rbx, %rdi
callq 0x830f5
movq %r13, %rdi
callq 0x8310a
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %r13
movb 0x17(%rsp), %r15b
movq %r12, %rbx
movq 0x80(%rsp), %r12
incq %rbp
jmp 0x8464d
movq %rbx, 0x20(%r13)
jmp 0x84865
movb $0x0, 0x2b(%rbx)
movb $0x1, %al
movq %rax, 0x18(%rsp)
movb $0x1, %al
movq %rax, 0x20(%rsp)
jmp 0x8499d
movb $0x0, 0x2a(%rbx)
movb $0x1, %al
movq %rax, 0x40(%rsp)
jmp 0x849d6
movb $0x1, %al
movq %rax, 0x48(%rsp)
movb $0x1, %al
movq %rax, 0x18(%rsp)
jmp 0x8499d
movb $0x0, 0x2b(%rbx)
movb $0x1, %al
movq %rax, 0x60(%rsp)
movb $0x1, %al
movq %rax, 0x18(%rsp)
jmp 0x84671
movq 0x28(%rsp), %rcx
testq %rcx, %rcx
setne %al
testb %al, %r15b
je 0x84a5a
movq 0x8(%rcx), %rsi
addq (%rcx), %rsi
movq %r14, %rbp
movq %r14, %rdi
callq 0x84f45
movq %rax, %r14
jmp 0x84a61
movq 0x20(%r13), %r14
movq 0x28(%r13), %rax
movb $0x1, %r15b
movq $0x0, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x38(%rsp)
movq %rax, %rbp
jmp 0x84acd
movq %r14, %rbp
movq 0x20(%r13), %r14
movq 0x58(%rsp), %r12
testb %r15b, %r15b
jne 0x84aa8
movq 0x28(%r13), %rax
movq %rax, %rbp
testq %rax, %rax
jne 0x84ab1
movq 0x8(%r13), %rdi
callq 0x84f2f
leaq 0x41b55(%rip), %rdi     # 0xc65dc
leaq 0x43650(%rip), %rsi     # 0xc80de
leaq 0x438f9(%rip), %rcx     # 0xc838e
movl $0x6f0, %edx            # imm = 0x6F0
movq %rax, %r8
xorl %eax, %eax
callq 0x60031
movq 0x28(%r13), %rbp
testq %rbp, %rbp
jne 0x84ab1
movq 0x28(%r13), %rbp
movq 0x28(%rsp), %rdi
callq 0x830f5
movq 0x20(%rsp), %rax
orb 0x60(%rsp), %al
movq %rax, 0x20(%rsp)
movq 0x28(%r13), %rax
movq %r14, 0x18(%rbx)
testq %rax, %rax
cmovneq %rax, %rbp
movq %rbp, 0x20(%rbx)
testb %r15b, %r15b
je 0x84b2c
movq 0x20(%r13), %rax
testq %rax, %rax
je 0x84b2c
cmpq %r14, %rax
je 0x84b2c
movq 0x8(%r13), %rdi
callq 0x84f2f
movq 0x20(%r13), %r9
movq 0x18(%rbx), %rcx
movq %rcx, (%rsp)
leaq 0x41ad1(%rip), %rdi     # 0xc65dc
leaq 0x435cc(%rip), %rsi     # 0xc80de
leaq 0x438b2(%rip), %rcx     # 0xc83cb
movl $0x709, %edx            # imm = 0x709
movq %rax, %r8
xorl %eax, %eax
callq 0x60031
movq 0x18(%rbx), %r14
testq %r14, %r14
je 0x84b65
cmpq $0x0, 0x20(%rbx)
jne 0x84b65
movq 0x8(%r13), %rdi
callq 0x84f2f
leaq 0x41a94(%rip), %rdi     # 0xc65dc
leaq 0x4358f(%rip), %rsi     # 0xc80de
leaq 0x4390d(%rip), %rcx     # 0xc8463
movl $0x70e, %edx            # imm = 0x70E
movq %rax, %r8
xorl %eax, %eax
callq 0x60031
testb $0x1, 0x18(%rsp)
je 0x84bb2
movq 0x8(%r13), %r14
leaq 0x8ef21(%rip), %rdi     # 0x113a98
movq %r14, %rsi
callq 0x843e5
movq %rax, %r15
testq %rax, %rax
jne 0x84bae
movabsq $-0x2653c3ea1bdae530, %rdi # imm = 0xD9AC3C15E4251AD0
movq %r14, %rsi
callq 0x79b94
movq %rax, %r15
leaq 0x8eef5(%rip), %rdi     # 0x113a98
movq %r14, %rsi
movq %rax, %rdx
callq 0x98d4b
movq %r15, 0x78(%rbx)
movb 0x2a(%rbx), %cl
testb %cl, %cl
jne 0x84bbd
movb $0x0, 0x2b(%rbx)
cmpb $0x1, 0x29(%rbx)
jne 0x84bee
movzbl %cl, %eax
xorl %edx, %edx
cmpb $0x0, 0x2b(%rbx)
cmovnel %eax, %edx
movb %dl, 0x2c(%rbx)
cmpq $0x0, 0x30(%rbx)
jne 0x84bfd
cmpq $0x0, 0x18(%rbx)
leaq 0x3bb(%rip), %rdx       # 0x84fa0
leaq 0x3a5(%rip), %rax       # 0x84f91
jmp 0x84c11
movb $0x0, 0x2c(%rbx)
cmpq $0x0, 0x30(%rbx)
je 0x84f06
cmpq $0x0, 0x70(%rsp)
leaq 0x37e(%rip), %rdx       # 0x84f88
leaq 0x353(%rip), %rax       # 0x84f64
cmoveq %rdx, %rax
movq %rax, 0x80(%rbx)
cmpq $0x0, 0x38(%rbx)
leaq 0x7f1(%rip), %r15       # 0x85419
je 0x84c3d
testq %r12, %r12
leaq 0x7da(%rip), %rcx       # 0x8540e
leaq 0x7af(%rip), %rdx       # 0x853ea
jmp 0x84c57
movq %r15, %rdx
testb %cl, %cl
je 0x84c5b
cmpq $0x0, 0x18(%rbx)
leaq 0x7c8(%rip), %rcx       # 0x85418
leaq 0x7c0(%rip), %rdx       # 0x85417
cmoveq %rcx, %rdx
movq %rdx, 0x88(%rbx)
cmpq $0x0, 0x40(%rbx)
leaq 0xa9e(%rip), %r14       # 0x8570c
je 0x84c86
cmpq $0x0, 0x78(%rsp)
leaq 0xa64(%rip), %rdx       # 0x856e1
leaq 0xa2e(%rip), %rcx       # 0x856b2
jmp 0x84ca2
cmpb $0x1, 0x2b(%rbx)
movq %r14, %rcx
jne 0x84ca6
cmpq $0x0, 0x18(%rbx)
leaq 0xa70(%rip), %rdx       # 0x8570b
leaq 0xa51(%rip), %rcx       # 0x856f3
cmoveq %rdx, %rcx
movq %rcx, 0x90(%rbx)
movq 0x68(%rbx), %rcx
testq %rcx, %rcx
leaq 0x11e2(%rip), %rdx      # 0x85e9d
cmoveq %rcx, %rdx
movq %rdx, 0xb8(%rbx)
testb $0x1, 0x38(%rsp)
je 0x84d14
leaq 0x2cd(%rip), %rcx       # 0x84fa1
cmpq %rcx, %rax
je 0x84d06
movq 0x8(%r13), %rdi
callq 0x84f2f
leaq 0x418f3(%rip), %rdi     # 0xc65dc
leaq 0x433ee(%rip), %rsi     # 0xc80de
leaq 0x4378d(%rip), %rcx     # 0xc8484
movl $0x729, %edx            # imm = 0x729
movq %rax, %r8
xorl %eax, %eax
callq 0x60186
leaq 0x119f(%rip), %rax      # 0x85eac
movq %rax, 0x80(%rbx)
testb $0x1, 0x40(%rsp)
je 0x84d5f
cmpq %r15, 0x88(%rbx)
je 0x84d51
movq 0x8(%r13), %rdi
callq 0x84f2f
leaq 0x418a8(%rip), %rdi     # 0xc65dc
leaq 0x433a3(%rip), %rsi     # 0xc80de
leaq 0x437dc(%rip), %rcx     # 0xc851e
movl $0x737, %edx            # imm = 0x737
movq %rax, %r8
xorl %eax, %eax
callq 0x60186
leaq 0x1174(%rip), %rax      # 0x85ecc
movq %rax, 0x88(%rbx)
testb $0x1, 0x20(%rsp)
je 0x84daa
cmpq %r14, 0x90(%rbx)
je 0x84d9c
movq 0x8(%r13), %rdi
callq 0x84f2f
leaq 0x4185d(%rip), %rdi     # 0xc65dc
leaq 0x43358(%rip), %rsi     # 0xc80de
leaq 0x43825(%rip), %rcx     # 0xc85b2
movl $0x745, %edx            # imm = 0x745
movq %rax, %r8
xorl %eax, %eax
callq 0x60186
leaq 0x114f(%rip), %rax      # 0x85ef2
movq %rax, 0x90(%rbx)
movq 0xb8(%rbx), %rax
testb $0x1, 0x48(%rsp)
je 0x84df6
leaq 0x1184(%rip), %r14      # 0x85f43
testq %rax, %rax
je 0x84df1
movq 0x8(%r13), %rdi
callq 0x84f2f
leaq 0x41808(%rip), %rdi     # 0xc65dc
leaq 0x43303(%rip), %rsi     # 0xc80de
leaq 0x43860(%rip), %rcx     # 0xc8642
movl $0x753, %edx            # imm = 0x753
movq %rax, %r8
xorl %eax, %eax
callq 0x60186
movq %r14, %rax
jmp 0x84e12
testq %rax, %rax
jne 0x84e12
cmpq $0x0, 0x18(%rbx)
leaq 0x1185(%rip), %rcx      # 0x85f8c
leaq 0x1166(%rip), %rax      # 0x85f74
cmoveq %rcx, %rax
movq %rax, 0xb8(%rbx)
cmpq $0x0, 0x48(%rbx)
je 0x84e29
leaq 0x1166(%rip), %rax      # 0x85f8d
jmp 0x84e40
cmpq $0x0, 0x18(%rbx)
leaq 0x21d9(%rip), %rcx      # 0x8700e
leaq 0x1168(%rip), %rax      # 0x85fa4
cmoveq %rcx, %rax
movq %rax, 0x98(%rbx)
cmpq $0x0, 0x50(%rbx)
je 0x84e57
leaq 0x21bc(%rip), %rax      # 0x87011
jmp 0x84e6e
cmpq $0x0, 0x18(%rbx)
leaq 0x21fe(%rip), %rcx      # 0x87061
leaq 0x21b9(%rip), %rax      # 0x87023
cmoveq %rcx, %rax
movq %rax, 0xa0(%rbx)
cmpq $0x0, 0x58(%rbx)
je 0x84e8c
leaq 0x2216(%rip), %rcx      # 0x87099
leaq 0x21d8(%rip), %rax      # 0x87062
jmp 0x84eb5
cmpq $0x0, 0x18(%rbx)
leaq 0x21fe(%rip), %rcx      # 0x87096
leaq 0x21c6(%rip), %rax      # 0x87065
cmoveq %rcx, %rax
leaq 0x2270(%rip), %rdx      # 0x8711a
leaq 0x21f4(%rip), %rcx      # 0x870a5
cmoveq %rdx, %rcx
movq %rax, 0xa8(%rbx)
movq %rcx, 0xb0(%rbx)
cmpq $0x0, 0x70(%rbx)
je 0x84ed3
leaq 0x224c(%rip), %rax      # 0x8711d
jmp 0x84eea
cmpq $0x0, 0x18(%rbx)
leaq 0x2285(%rip), %rcx      # 0x87164
leaq 0x2248(%rip), %rax      # 0x8712e
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 0x94(%rip), %rax        # 0x84fa1
jmp 0x84c15