// File: /workspace/github_c_makefile_star2_O1/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 0x115353
movq 0x40(%r15), %rax
cmpq $0x2, %rax
jl 0x13971
addq $0x8, %r15
leaq 0x124a57(%rip), %rsi    # 0x1383c6
jmp 0x13983
cmpq $0x0, 0x38(%r15)
je 0x1399b
addq $0x8, %r15
leaq 0x124a77(%rip), %rsi    # 0x1383fa
movq %r15, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13591
cmpq $0x1, %rax
jne 0x139c2
movabsq $-0x2c53c3baa9910217, %rax # imm = 0xD3AC3C45566EFDE9
cmpq %rax, 0x30(%r15)
jne 0x139c2
leaq 0x124a75(%rip), %rsi    # 0x13842d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1157cb
cmpb $0x0, 0x4c(%r15)
je 0x139d2
leaq 0x124a65(%rip), %rsi    # 0x138435
jmp 0x139e0
cmpb $0x1, 0x4b(%r15)
jne 0x139ea
leaq 0x124a5c(%rip), %rsi    # 0x13843c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1157cb
movq 0x28(%r15), %r12
movq (%r14), %r13
leaq 0x18bca8(%rip), %rdx    # 0x19f6a0
movl 0x18bca2(%rip), %eax    # 0x19f6a0
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 0x13a55
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r13, %rdx
je 0x13a55
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r13, %rdx
je 0x13a55
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r13, %rdx
jne 0x13be1
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x13a85
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r13, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x18bc26(%rip), %rdi    # 0x19f6a0
movq %r13, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %r12, %rsi
callq *0x48(%rbp)
leaq 0x1249ae(%rip), %rsi    # 0x138443
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1157cb
cmpq $0x1, 0x40(%r15)
jne 0x13af6
movq 0x30(%r15), %rax
leaq 0x124998(%rip), %rsi    # 0x13844c
movabsq $0x65c9718e19e3df34, %rcx # imm = 0x65C9718E19E3DF34
cmpq %rcx, %rax
je 0x13aec
movabsq $-0x12e90733f18038df, %rcx # imm = 0xED16F8CC0E7FC721
cmpq %rcx, %rax
je 0x13aec
movabsq $-0x2c53c3baa9910217, %rcx # imm = 0xD3AC3C45566EFDE9
cmpq %rcx, %rax
jne 0x13bd1
leaq 0x124964(%rip), %rsi    # 0x138450
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1157cb
movq 0x50(%r15), %r15
movq (%r14), %r12
movl 0x18bb9d(%rip), %eax    # 0x19f6a0
cltq
leaq (%rax,%rax,2), %rax
leaq 0x18bb90(%rip), %rdx    # 0x19f6a0
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 0x13b61
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0x13b61
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0x13b61
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0x13be8
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x13b91
movabsq $-0x1e682f89ce03d7c8, %rdi # imm = 0xE197D07631FC2838
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x18bb1a(%rip), %rdi    # 0x19f6a0
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %r15, %rsi
callq *0x48(%r13)
leaq 0x13c0c2(%rip), %rsi    # 0x14fc64
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1157cb
leaq 0x128d12(%rip), %rsi    # 0x13c8c8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1157cb
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x8, %r15
leaq 0x124877(%rip), %rsi    # 0x138453
jmp 0x13983
xorl %ebp, %ebp
jmp 0x13a59
xorl %r13d, %r13d
jmp 0x13b65