// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_arg_s_to_self_item_st
er_t xoico_arg_s_to_self_item_st( const xoico_arg_s* o, const xoico_host* host, st_s* st )
{
    // xoico_arg.x:121:1
    
    st_s_clear(st);
    if( o->typespec.indirection > 1 ) return  x_source_point_s_parse_error_fa(&(o->source_point),"Indirection > 1 is not allowed as functor argument." );
    if( o->typespec.transient       ) return  x_source_point_s_parse_error_fa(&(o->source_point),"Transient type is not allowed as functor argument." );
    
    if( o->typespec.indirection == 1 && o->typespec.access_class == TYPEOF_mutable )
    {
        st_s_push_fa(st,"hidden " );
    }
    
    if( o->typespec.flag_aware )
    {
        st_s_push_fa(st,"aware " );
    }
    else if( o->typespec.flag_obliv )
    {
        st_s_push_fa(st,"obliv " );
    }
    
    st_s_push_fa(st,"#<sc_t> ", xoico_host_a_nameof(host,o->typespec.type ) );
    
    if( o->typespec.indirection == 1 )
    {
        switch( o->typespec.access_class )
        {
            case TYPEOF_discardable: st_s_push_fa(st,"=> " ); break;
            case TYPEOF_mutable:     st_s_push_fa(st,"* "  ); break;
            case TYPEOF_const:       st_s_push_fa(st,"=> " ); break;
            default: return  x_source_point_s_parse_error_fa(&(o->source_point),"Functor argument: Unhandled access class." ); break;
        }
    }
    
    st_s_push_fa(st,"#<sc_t>", xoico_host_a_nameof(host,o->name ) );
    st_s_push_fa(st,";" );
    
    return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rdi
callq 0x10a41a
movq 0x40(%r15), %rax
cmpq $0x2, %rax
jl 0x1362f
addq $0x8, %r15
leaq 0x119d99(%rip), %rsi    # 0x12d3c6
jmp 0x13641
cmpq $0x0, 0x38(%r15)
je 0x13659
addq $0x8, %r15
leaq 0x119db9(%rip), %rsi    # 0x12d3fa
movq %r15, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13254
cmpq $0x1, %rax
jne 0x13680
movabsq $-0x2c53c3baa9910217, %rax # imm = 0xD3AC3C45566EFDE9
cmpq %rax, 0x30(%r15)
jne 0x13680
leaq 0x119db7(%rip), %rsi    # 0x12d42d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a8a5
cmpb $0x0, 0x4c(%r15)
je 0x13690
leaq 0x119da7(%rip), %rsi    # 0x12d435
jmp 0x1369e
cmpb $0x1, 0x4b(%r15)
jne 0x136a8
leaq 0x119d9e(%rip), %rsi    # 0x12d43c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a8a5
movq 0x28(%r15), %r12
movq (%r14), %r13
leaq 0x17efea(%rip), %rdx    # 0x1926a0
movl 0x17efe4(%rip), %eax    # 0x1926a0
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r13, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r13, %rdx
je 0x1370f
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x1370f
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x1370f
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x13718
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x1373f
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r13, %rsi
callq 0xe9bc5
movq %rax, %rbp
leaq 0x17ef6c(%rip), %rdi    # 0x1926a0
movq %r13, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
movq %r12, %rsi
callq *0x48(%rbp)
leaq 0x119cf4(%rip), %rsi    # 0x12d443
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x10a8a5
cmpq $0x1, 0x40(%r15)
jne 0x137b0
movq 0x30(%r15), %rax
leaq 0x119cde(%rip), %rsi    # 0x12d44c
movabsq $0x65c9718e19e3df34, %rcx # imm = 0x65C9718E19E3DF34
cmpq %rcx, %rax
je 0x137a6
movabsq $-0x12e90733f18038df, %rcx # imm = 0xED16F8CC0E7FC721
cmpq %rcx, %rax
je 0x137a6
movabsq $-0x2c53c3baa9910217, %rcx # imm = 0xD3AC3C45566EFDE9
cmpq %rcx, %rax
jne 0x13887
leaq 0x119caa(%rip), %rsi    # 0x12d450
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a8a5
movq 0x50(%r15), %r15
movq (%r14), %r12
movl 0x17eee3(%rip), %eax    # 0x1926a0
cltq
leaq (%rax,%rax,2), %rax
leaq 0x17eed6(%rip), %rdx    # 0x1926a0
movq 0x20(%rdx,%rax,8), %rcx
movq 0x18(%rdx,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0x13817
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x13817
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x13817
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x13820
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x13847
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r12, %rsi
callq 0xe9bc5
movq %rax, %r13
leaq 0x17ee64(%rip), %rdi    # 0x1926a0
movq %r12, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
movq %r15, %rsi
callq *0x48(%r13)
leaq 0x13141d(%rip), %rsi    # 0x144c75
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x10a8a5
leaq 0x11e05c(%rip), %rsi    # 0x1318c8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x10a8a5
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x8, %r15
leaq 0x119bc1(%rip), %rsi    # 0x12d453
jmp 0x13641