// File: /workspace/github_c_makefile_star2_O0/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_setup
er_t xoico_che_s_setup( xoico_che_s* o, const xoico_host* host, const xoico_signature_s* signature )
{
    // xoico_che.x:2093:1
    BLM_INIT_LEVEL(0);
    xoico_signature_s_attach( &(o->signature ),  xoico_signature_s_clone(signature));
    BLM_TRY(xoico_signature_s_relent(o->signature,host, xoico_host_a_obj_type(host) ))
    
    o->host     = ((xoico_host*)(host));
    o->compiler = xoico_host_a_compiler(host);
    o->block_level     = 0;
    o->try_block_level = 0;
    xoico_che_stack_var_s_clear(&(o->stack_var));
    xoico_che_s_init_level0(o);
    
    if( o->signature->arg_o )
    {
        xoico_che_stack_var_unit_s* unit = ((xoico_che_stack_var_unit_s*)BLM_LEVEL_T_PUSH(0,xoico_che_stack_var_unit_s,xoico_che_stack_var_unit_s_create()));
        tp_t tp_member_obj_name  = xoico_che_s_entypeof(o,"o" );
    
        xoico_typespec_s_copy(&(unit->typespec),&(o->signature->arg_o->typespec ));
        unit->name = tp_member_obj_name;
        unit->level = o->block_level;
    
        if( !o->waive_unknown_type && !xoico_che_s_is_type(o,unit->typespec.type ) )
        {
            BLM_RETURNV(er_t, x_source_point_s_parse_error_fa(&(signature->source_point),"Declaration: Argument '#<sc_t>' has an unknown type.", xoico_che_s_nameof(o,unit->name ) ))
        }
    
        xoico_che_stack_var_s_push_unit(&(o->stack_var),unit );
        bcore_hmap_name_s_set_sc(&(o->hmap_name),xoico_compiler_s_nameof(o->compiler,o->signature->arg_o->typespec.type ) );
        bcore_hmap_name_s_set_sc(&(o->hmap_name),xoico_compiler_s_nameof(o->compiler,tp_member_obj_name ) );
    }
    
    {const xoico_args_s* __a=&(o->signature->args );if(__a)for(sz_t __i=0;__i<__a->size;__i++){xoico_arg_s* arg=__a->data[__i];
    {
        if( arg->typespec.type && arg->name )
        {
            xoico_che_stack_var_unit_s* unit = ((xoico_che_stack_var_unit_s*)BLM_LEVEL_T_PUSH(0,xoico_che_stack_var_unit_s,xoico_che_stack_var_unit_s_create()));
            xoico_typespec_s_copy(&(unit->typespec),&(arg->typespec ));
            unit->name = arg->name;
            unit->level = o->block_level;
    
            if( !o->waive_unknown_type && !xoico_che_s_is_type(o,unit->typespec.type ) )
            {
                BLM_RETURNV(er_t, x_source_point_s_parse_error_fa(&(signature->source_point),"Declaration: Argument '#<sc_t>' has an unknown type.", xoico_che_s_nameof(o,unit->name ) ))
            }
    
            xoico_che_stack_var_s_push_unit(&(o->stack_var),unit );
            bcore_hmap_name_s_set_sc(&(o->hmap_name),xoico_compiler_s_nameof(o->compiler,arg->typespec.type ) );
            bcore_hmap_name_s_set_sc(&(o->hmap_name),xoico_compiler_s_nameof(o->compiler,arg->name ) );
        }
    }
    }}BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
leaq 0x1856e2(%rip), %rax    # 0x1b2330
movq (%rax), %rax
movq %rax, -0x28(%rbp)
leaq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0xbfe80
movq -0x60(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x10(%rbp), %rax
addq $0x20, %rax
movq %rax, -0xd0(%rbp)
movq -0x20(%rbp), %rdi
callq 0x8c60
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0xc210
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x6b70
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq %rax, %rdx
callq 0x8df0
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
je 0x2cd07
movq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0x70(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2d118
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rdi
callq 0x5170
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
callq 0x2d130
movq -0x10(%rbp), %rdi
callq 0x22890
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
cmpq $0x0, 0x50(%rax)
je 0x2cede
movq -0x28(%rbp), %rax
movq %rax, -0xd8(%rbp)
callq 0x37260
movq -0xd8(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x6405245fa6b4cb9a, %rdx # imm = 0x9BFADBA0594B3466
callq 0xc01a0
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x106fd7(%rip), %rsi    # 0x133d7b
callq 0x236c0
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rdi
addq $0x18, %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x50(%rax), %rsi
addq $0x20, %rsi
callq 0x5ce0
movq -0x80(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0x78(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
testb $0x1, 0xd(%rax)
jne 0x2ce5f
movq -0x10(%rbp), %rdi
movq -0x78(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x257d0
testb $0x1, %al
jne 0x2ce5f
movq -0x20(%rbp), %rax
addq $0x80, %rax
movq %rax, -0xe0(%rbp)
movq -0x10(%rbp), %rdi
movq -0x78(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x22840
movq -0xe0(%rbp), %rdi
movq %rax, %rdx
leaq 0x10a4af(%rip), %rsi    # 0x1372e7
movb $0x0, %al
callq 0x7d20
movq %rax, -0x88(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2d118
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movq -0x78(%rbp), %rsi
callq 0x22cc0
movq -0x10(%rbp), %rax
addq $0xb0, %rax
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x50(%rax), %rax
movq 0x28(%rax), %rsi
callq 0x51d0
movq -0xf0(%rbp), %rdi
movq %rax, %rsi
callq 0xba9a0
movq -0x10(%rbp), %rax
addq $0xb0, %rax
movq %rax, -0xe8(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x80(%rbp), %rsi
callq 0x51d0
movq -0xe8(%rbp), %rdi
movq %rax, %rsi
callq 0xba9a0
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
addq $0x58, %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x2d0f9
movq $0x0, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq -0x90(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x2d0f7
movq -0x90(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x98(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x2d0de
movq -0xa0(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x2d0de
movq -0x28(%rbp), %rax
movq %rax, -0xf8(%rbp)
callq 0x37260
movq -0xf8(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x6405245fa6b4cb9a, %rdx # imm = 0x9BFADBA0594B3466
callq 0xc01a0
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
addq $0x18, %rdi
movq -0xa0(%rbp), %rsi
addq $0x20, %rsi
callq 0x5ce0
movq -0xa0(%rbp), %rax
movq 0x50(%rax), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
testb $0x1, 0xd(%rax)
jne 0x2d05a
movq -0x10(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x257d0
testb $0x1, %al
jne 0x2d05a
movq -0x20(%rbp), %rax
addq $0x80, %rax
movq %rax, -0x100(%rbp)
movq -0x10(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x22840
movq -0x100(%rbp), %rdi
movq %rax, %rdx
leaq 0x10a2b4(%rip), %rsi    # 0x1372e7
movb $0x0, %al
callq 0x7d20
movq %rax, -0xb0(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x2d118
movq -0x10(%rbp), %rdi
addq $0x38, %rdi
movq -0xa8(%rbp), %rsi
callq 0x22cc0
movq -0x10(%rbp), %rax
addq $0xb0, %rax
movq %rax, -0x110(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0xa0(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x51d0
movq -0x110(%rbp), %rdi
movq %rax, %rsi
callq 0xba9a0
movq -0x10(%rbp), %rax
addq $0xb0, %rax
movq %rax, -0x108(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0xa0(%rbp), %rax
movq 0x50(%rax), %rsi
callq 0x51d0
movq -0x108(%rbp), %rdi
movq %rax, %rsi
callq 0xba9a0
jmp 0x2d0e0
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x2cf0a
jmp 0x2d0f9
movq $0x0, -0xb8(%rbp)
movq -0x60(%rbp), %rdi
callq 0xc0720
movq -0xb8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)