// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore_sources.c
// Function: bcore_source_point_s_source_reference_to_sink
void bcore_source_point_s_source_reference_to_sink( const bcore_source_point_s* o, bl_t file_name_only, bcore_sink* sink )
{
    if( !o->source ) return;

    BLM_INIT();
    sz_t index = bcore_source_a_get_index( o->source );
    bcore_source_a_set_index( o->source, o->index );

    bcore_source_context_s* context = BLM_CREATE( bcore_source_context_s );
    bcore_source_a_get_context( o->source, context );

    if( context->file_path )
    {
        st_s* file = BLM_CLONE( st_s, context->file_path );
        if( file_name_only )
        {
            st_s_copy( file, BLM_A_PUSH( st_s_create_sc( bcore_file_name( file->sc ) ) ) );
        }
        bcore_sink_a_push_fa( sink, "#<sc_t>", file->sc );
    }

    bcore_sink_a_push_fa( sink, ":#<sz_t>:#<sz_t>", context->line, context->col );

    bcore_source_a_set_index( o->source, index );
    BLM_DOWN();
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0xf16fa
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movl %esi, 0x4(%rsp)
leaq 0xb7a4a(%rip), %rax     # 0x1a8dd0
movq (%rax), %rsi
leaq 0x28(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xe0431
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rbx), %r15
movq (%r15), %r12
leaq 0xb8918(%rip), %r13     # 0x1a9cc8
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %r12, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0xf140b
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0xf140b
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0xf140b
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0xf16fb
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0xf143b
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r12, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0xb8898(%rip), %rdi     # 0x1a9cc8
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, 0x20(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x10aa5d
movq %rax, 0x18(%rsp)
movq 0x8(%rbx), %r15
movq 0x10(%rbx), %r12
movq (%r15), %rbp
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0xf14b6
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0xf14b6
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0xf14b6
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0xf1702
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0xf14e6
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0xb87ed(%rip), %rdi     # 0x1a9cc8
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x10aa6e
xorl %eax, %eax
callq 0x109f7a
movabsq $0x420d5f875454e1c, %rsi # imm = 0x420D5F875454E1C
movq 0x8(%rsp), %rdi
movq %rax, %rdx
callq 0xe0582
movq %rax, %r15
movq 0x8(%rbx), %r12
movq (%r12), %rbp
movl (%r13), %eax
cltq
leaq (%rax,%rax,2), %rax
movq 0x20(%r13,%rax,8), %rcx
movq 0x18(%r13,%rax,8), %rdx
andq %rbp, %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rax
movq (%rcx,%rdx), %rdx
movl $0x8, %ecx
cmpq %rbp, %rdx
je 0xf1578
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbp, %rdx
je 0xf1578
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbp, %rdx
je 0xf1578
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbp, %rdx
jne 0xf170a
movq (%rax,%rcx), %r14
testq %r14, %r14
jne 0xf15a8
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %rbp, %rsi
callq 0xf3f85
movq %rax, %r14
leaq 0xb872b(%rip), %rdi     # 0x1a9cc8
movq %rbp, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x10a65c
movq 0x8(%r15), %rdi
testq %rdi, %rdi
movq 0x20(%rsp), %r14
je 0xf162b
callq 0x115213
movabsq $-0x503db0e6e1c2e704, %rsi # imm = 0xAFC24F191E3D18FC
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq %rax, %rdx
callq 0xe0582
movq %rax, %r12
cmpb $0x0, 0x4(%rsp)
je 0xf1615
movq 0x8(%r12), %rdi
callq 0xc9049
movq %rax, %rdi
callq 0x114e47
movq %rbp, %rdi
movq %rax, %rsi
callq 0xe081c
movq %r12, %rdi
movq %rax, %rsi
callq 0x114440
movq 0x8(%r12), %rdx
leaq 0x5e643(%rip), %rsi     # 0x14fc64
movq %r14, %rdi
xorl %eax, %eax
callq 0x109273
movq 0x18(%r15), %rdx
movq 0x20(%r15), %rcx
leaq 0x50ee1(%rip), %rsi     # 0x14251b
movq %r14, %rdi
xorl %eax, %eax
callq 0x109273
movq 0x8(%rbx), %rbx
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 0xf16a2
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r14, %rdx
je 0xf16a2
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r14, %rdx
je 0xf16a2
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r14, %rdx
jne 0xf1712
movq (%rax,%rcx), %r15
testq %r15, %r15
jne 0xf16d2
movabsq $-0x7e8ee9b9b4bbaa8, %rdi # imm = 0xF817116464B44558
movq %r14, %rsi
callq 0xf3f85
movq %rax, %r15
leaq 0xb8601(%rip), %rdi     # 0x1a9cc8
movq %r14, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r15, %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %rdx
callq 0x10aa6e
leaq 0x10(%rsp), %rdi
callq 0xe0b11
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0xf140f
xorl %r14d, %r14d
jmp 0xf14ba
xorl %r14d, %r14d
jmp 0xf157c
xorl %r15d, %r15d
jmp 0xf16a6