// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
leaq 0x165a69(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0xe0431
movq $0x0, 0x10(%rbx)
movq %r14, (%rsp)
movq %r14, %rdi
callq 0x149d9
movq %rax, %rbx
movq 0x20(%r15), %rdi
callq 0x14917
movq %r15, 0x18(%rsp)
movq %rbx, 0x20(%r15)
movq (%r12), %r15
leaq 0x15c2f5(%rip), %r14    # 0x19f6a0
movl 0x15c2ef(%rip), %eax    # 0x19f6a0
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x43408
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x43408
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x43408
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x437d8
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x43438
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x15c273(%rip), %rdi    # 0x19f6a0
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r12, %rdi
callq *0x30(%r13)
movq %rbx, %rdi
movq %rax, %rdx
callq 0x14c06
movq 0x18(%rsp), %r13
movq %r12, 0x10(%r13)
movq (%r12), %rbx
movl 0x15c243(%rip), %eax    # 0x19f6a0
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r14,%rax,8), %rcx
movq 0x18(%r14,%rax,8), %rdx
andq %rbx, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x434b4
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x434b4
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x434b4
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x437e0
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x434e4
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x15c1c7(%rip), %rdi    # 0x19f6a0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
movabsq $-0x6405245fa6b4cb9a, %rbx # imm = 0x9BFADBA0594B3466
movq %r12, %rdi
callq *0x20(%r15)
movq %rax, 0x18(%r13)
leaq 0x38(%r13), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%r13)
callq 0x437e8
movq %r13, %rdi
callq 0x341b4
movq 0x20(%r13), %rax
cmpq $0x0, 0x50(%rax)
je 0x435f4
callq 0x4f853
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
callq 0xe0676
movq %rax, %r12
leaq 0xb0(%r13), %rbx
leaq 0xf54da(%rip), %rsi     # 0x138a23
movq %rbx, %rdi
callq 0xddb52
movq %rax, %r15
leaq 0x18(%r12), %rdi
movq 0x20(%r13), %rax
movq 0x50(%rax), %rsi
addq $0x20, %rsi
callq 0xff8e
movq %r15, 0x10(%r12)
movq 0x28(%r13), %rax
movq %rax, 0x8(%r12)
cmpb $0x0, 0xd(%r13)
jne 0x43591
movq 0x20(%r12), %rsi
movq 0x18(%r13), %rdi
callq 0x32c57
testb %al, %al
je 0x435f8
leaq 0x40(%r13), %rdi
movq 0x40(%r13), %rsi
movq %r12, %rdx
callq 0x5b4fc
leaq 0x60(%r13), %rdi
movq 0x10(%r12), %rsi
movq 0x50(%r13), %rdx
decq %rdx
callq 0xd2be9
movq 0x18(%r13), %rdi
movq 0x20(%r13), %rax
movq 0x50(%rax), %rax
movq 0x28(%rax), %rsi
callq 0xe39f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xddb52
movq 0x18(%r13), %rdi
movq %r15, %rsi
callq 0xe39f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xddb52
movb $0x1, %bpl
xorl %ebx, %ebx
jmp 0x43633
xorl %ebx, %ebx
jmp 0x4363c
movq (%rsp), %rax
leaq 0x80(%rax), %rbx
movq 0x10(%r12), %rsi
movq %r13, %rdi
callq 0x3417e
leaq 0xf89c5(%rip), %rsi     # 0x13bfdc
xorl %ebp, %ebp
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x13591
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xe0b30
testb %bpl, %bpl
je 0x437c6
movq %rbx, 0x8(%rsp)
movq 0x20(%r13), %rcx
cmpq $0x0, 0x68(%rcx)
setne %bpl
je 0x437af
subq $-0x80, (%rsp)
leaq 0x40(%r13), %rax
movq %rax, 0x30(%rsp)
leaq 0x60(%r13), %rax
movq %rax, 0x28(%rsp)
leaq 0xb0(%r13), %rax
movq %rax, 0x20(%rsp)
xorl %r15d, %r15d
movq %rcx, 0x10(%rsp)
movq 0x60(%rcx), %rax
movq (%rax,%r15,8), %r12
movb $0x1, %r14b
cmpq $0x0, 0x28(%r12)
je 0x43799
cmpq $0x0, 0x50(%r12)
je 0x43799
leaq 0x20(%r12), %r13
callq 0x4f853
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
movabsq $-0x6405245fa6b4cb9a, %rdx # imm = 0x9BFADBA0594B3466
movq %rax, %rcx
callq 0xe0676
movq %rax, %rbx
leaq 0x18(%rax), %rdi
movq %r13, %rsi
movq 0x18(%rsp), %r13
callq 0xff8e
movq 0x50(%r12), %rax
movq %rax, 0x10(%rbx)
movq 0x28(%r13), %rax
movq %rax, 0x8(%rbx)
cmpb $0x0, 0xd(%r13)
jne 0x43702
movq 0x20(%rbx), %rsi
movq 0x18(%r13), %rdi
callq 0x32c57
testb %al, %al
je 0x43761
movq 0x40(%r13), %rsi
movq 0x30(%rsp), %rdi
movq %rbx, %rdx
callq 0x5b4fc
movq 0x10(%rbx), %rsi
movq 0x50(%r13), %rdx
decq %rdx
movq 0x28(%rsp), %rdi
callq 0xd2be9
movq 0x18(%r13), %rdi
movq 0x28(%r12), %rsi
callq 0xe39f
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xddb52
movq 0x18(%r13), %rdi
movq 0x50(%r12), %rsi
callq 0xe39f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xddb52
jmp 0x43794
movq 0x10(%rbx), %rsi
movq %r13, %rdi
callq 0x3417e
xorl %r14d, %r14d
movq (%rsp), %rdi
leaq 0xf8861(%rip), %rsi     # 0x13bfdc
movq %rax, %rdx
xorl %eax, %eax
callq 0x13591
movq %rax, 0x8(%rsp)
leaq 0x38(%rsp), %rdi
callq 0xe0b30
movq 0x10(%rsp), %rcx
testb %r14b, %r14b
je 0x437af
incq %r15
cmpq 0x68(%rcx), %r15
setb %bpl
jb 0x4367f
testb $0x1, %bpl
movq 0x8(%rsp), %rbx
jne 0x437c6
leaq 0x38(%rsp), %rdi
callq 0xe0b30
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
jmp 0x4340c
xorl %r15d, %r15d
jmp 0x434b8