// File: /workspace/github_c_makefile_star2_O3/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_result_cast_s_to_sink
er_t xoico_che_result_cast_s_to_sink( const xoico_che_result_cast_s* o, x_sink* sink )
{
    // xoico_che_result.x:218:5
    
    if( o->active )
    {
        x_sink_push_sc(sink,"((" );
        xoico_che_s_typespec_to_sink(o->che,o->target_typespec, sink );
        x_sink_push_sc(sink,")(" );
        BLM_TRY(xoico_che_result_a_to_sink(BCORE_PASS_TEST(xoico_che_result,o->expression),sink ))
        x_sink_push_sc(sink,"))" );
    }
    else
    {
        BLM_TRY(xoico_che_result_a_to_sink(BCORE_PASS_TEST(xoico_che_result,o->expression),sink ))
    }
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x1, 0x20(%rdi)
jne 0x48ac3
movq (%rbx), %r15
leaq 0x1542a5(%rip), %r13    # 0x19cab0
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x48862
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x48862
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x48862
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x4886b
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x48892
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x154229(%rip), %rdi    # 0x19cab0
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0xe8d28(%rip), %rdx     # 0x1315c1
movq %r12, %rdi
movq %rbx, %rsi
callq 0xfe4f3
movq 0x8(%r14), %rdi
movq 0x10(%r14), %rsi
movq %rbx, %rdx
callq 0x3246c
movq (%rbx), %r15
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %r15, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x4890e
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x4890e
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x4890e
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x48917
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x4893e
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x15417d(%rip), %rdi    # 0x19cab0
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0xe53f5(%rip), %rdx     # 0x12dd3a
movq %r12, %rdi
movq %rbx, %rsi
callq 0xfe4f3
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0x4897a
leaq 0xe9210(%rip), %rdi     # 0x131b70
leaq 0xe4929(%rip), %rsi     # 0x12d290
leaq 0xeb90b(%rip), %rcx     # 0x134279
movl $0x281b, %edx           # imm = 0x281B
xorl %eax, %eax
callq 0xbe592
movq (%r14), %r15
leaq 0x14cb2c(%rip), %rax    # 0x1954b0
movl 0x14cb26(%rip), %ecx    # 0x1954b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r15, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x489de
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x489de
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x489de
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x489e7
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x48a0e
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x14caad(%rip), %rdi    # 0x1954b0
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
movq %rbx, %rsi
callq *0x50(%r12)
testq %rax, %rax
jne 0x48b91
movq (%rbx), %r14
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %r14, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r14, %rdx
je 0x48a7c
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x48a7c
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x48a7c
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x48a85
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x48aac
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r14, %rsi
callq 0xe9bc5
movq %rax, %r15
leaq 0x15400f(%rip), %rdi    # 0x19cab0
movq %r14, %rsi
movq %rax, %rdx
callq 0x115fac
leaq 0xe7928(%rip), %rdx     # 0x1303db
movq %r15, %rdi
movq %rbx, %rsi
callq 0xfe4f3
jmp 0x48ba5
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0x48aed
leaq 0xe909d(%rip), %rdi     # 0x131b70
leaq 0xe47b6(%rip), %rsi     # 0x12d290
leaq 0xeb798(%rip), %rcx     # 0x134279
movl $0x2820, %edx           # imm = 0x2820
xorl %eax, %eax
callq 0xbe592
movq (%r14), %r15
leaq 0x14c9b9(%rip), %rax    # 0x1954b0
movl 0x14c9b3(%rip), %ecx    # 0x1954b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r15, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r15, %rdx
je 0x48b51
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x48b51
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x48b51
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x48b5a
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x48b81
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r15, %rsi
callq 0xe9bc5
movq %rax, %r12
leaq 0x14c93a(%rip), %rdi    # 0x1954b0
movq %r15, %rsi
movq %rax, %rdx
callq 0x115fac
movq %r14, %rdi
movq %rbx, %rsi
callq *0x50(%r12)
testq %rax, %rax
je 0x48ba5
movq %rax, %r14
leaq 0x153235(%rip), %rax    # 0x19bdd0
movq (%rax), %rdi
callq 0xd6d2c
jmp 0x48ba8
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq