// File: /workspace/github_c_makefile_star2_O1/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 0x4de8b
movq (%rbx), %r15
leaq 0x15beed(%rip), %r13    # 0x1a9ab0
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 0x4dc1e
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x4dc1e
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x4dc1e
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x4df7d
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x4dc4e
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x15be6d(%rip), %rdi    # 0x1a9ab0
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xee96c(%rip), %rdx     # 0x13c5c1
movq %r12, %rdi
movq %rbx, %rsi
callq 0x10908b
movq 0x8(%r14), %rdi
movq 0x10(%r14), %rsi
movq %rbx, %rdx
callq 0x3467f
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 0x4dcce
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x4dcce
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x4dcce
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x4df85
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x4dcfe
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x15bdbd(%rip), %rdi    # 0x1a9ab0
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xeb035(%rip), %rdx     # 0x138d3a
movq %r12, %rdi
movq %rbx, %rsi
callq 0x10908b
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0x4dd3a
leaq 0xeee50(%rip), %rdi     # 0x13cb70
leaq 0xea569(%rip), %rsi     # 0x138290
leaq 0xf154b(%rip), %rcx     # 0x13f279
movl $0x281b, %edx           # imm = 0x281B
xorl %eax, %eax
callq 0xc80f6
movq (%r14), %r15
leaq 0x15476c(%rip), %rax    # 0x1a24b0
movl 0x154766(%rip), %ecx    # 0x1a24b0
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 0x4dda2
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x4dda2
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x4dda2
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x4df8d
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x4ddd2
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x1546e9(%rip), %rdi    # 0x1a24b0
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %rbx, %rsi
callq *0x50(%r12)
testq %rax, %rax
jne 0x4df59
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 0x4de44
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0x4de44
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0x4de44
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0x4df9a
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0x4de74
movabsq $0x5ea8cabb93ff3b7e, %rdi # imm = 0x5EA8CABB93FF3B7E
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0x15bc47(%rip), %rdi    # 0x1a9ab0
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xed560(%rip), %rdx     # 0x13b3db
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10908b
jmp 0x4df6d
movq 0x18(%r14), %r14
testq %r14, %r14
jne 0x4deb5
leaq 0xeecd5(%rip), %rdi     # 0x13cb70
leaq 0xea3ee(%rip), %rsi     # 0x138290
leaq 0xf13d0(%rip), %rcx     # 0x13f279
movl $0x2820, %edx           # imm = 0x2820
xorl %eax, %eax
callq 0xc80f6
movq (%r14), %r15
leaq 0x1545f1(%rip), %rax    # 0x1a24b0
movl 0x1545eb(%rip), %ecx    # 0x1a24b0
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 0x4df19
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r15, %rdx
je 0x4df19
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r15, %rdx
je 0x4df19
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r15, %rdx
jne 0x4df95
movq (%rax,%rcx), %r12
testq %r12, %r12
jne 0x4df49
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %r15, %rsi
callq 0xf3f85
movq %rax, %r12
leaq 0x154572(%rip), %rdi    # 0x1a24b0
movq %r15, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %rbx, %rsi
callq *0x50(%r12)
testq %rax, %rax
je 0x4df6d
movq %rax, %r14
leaq 0x15ae6d(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
jmp 0x4df70
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %r12d, %r12d
jmp 0x4dc22
xorl %r12d, %r12d
jmp 0x4dcd2
xorl %r12d, %r12d
jmp 0x4dda6
xorl %r12d, %r12d
jmp 0x4df1d
xorl %r15d, %r15d
jmp 0x4de48