// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btcl_frame_s_eval_op_functional
er_t x_btcl_frame_s_eval_op_functional( x_btcl_frame_s* o, x_source* source, sr_s* sr )
{
    // bcore_x_btcl_op.x:175:1
    
    if( sr_s_o_type(sr) == ((tp_t)(TYPEOF_x_btcl_function_s)) )
    {BLM_INIT_LEVEL(1);
        BLM_TRY(x_btcl_function_s_call_via_evaluation(((x_btcl_function_s*)BLM_LEVEL_T_PUSH(1,x_btcl_function_s,((x_btcl_function_s*)bcore_fork(((x_btcl_function_s*)(sr->o)))))),source, o, sr ))
    BLM_DOWN();}
    else if( sr_s_o_type(sr) == ((tp_t)(TYPEOF_x_btcl_block_s)) )
    {
        return  x_source_parse_error_fa(source,"Attempt to evaluate a block as function. Join the block with a signature to create a function.\n" );
    }
    else if( sr_s_o_type(sr) == ((tp_t)(TYPEOF_x_btcl_net_node_s)) )
    {
        if( !x_source_parse_bl(source," #=?')'" ) )
        {BLM_INIT_LEVEL(3);
            BLM_TRY(x_btcl_net_eval_node_modifier(x_btcl_frame_s_setup(((x_btcl_frame_s*)BLM_LEVEL_T_PUSH(3,x_btcl_frame_s,x_btcl_frame_s_create())),o ), source, sr ))
        BLM_DOWN();}
        x_btcl_clone_if_weak(sr );
    }
    else if( sr_s_o_type(sr) == ((tp_t)(TYPEOF_x_btcl_functor_s)) )
    {
        if( !x_source_parse_bl(source," #=?')'" ) )
        {BLM_INIT_LEVEL(3);
            BLM_TRY(x_btcl_functor_eval_modifier(x_btcl_frame_s_setup(((x_btcl_frame_s*)BLM_LEVEL_T_PUSH(3,x_btcl_frame_s,x_btcl_frame_s_create())),o ), source, sr ))
        BLM_DOWN();}
        x_btcl_clone_if_weak(sr );
    }
    else
    {
        if( !x_source_parse_bl(source," #=?')'" ) )
        {BLM_INIT_LEVEL(2);
            BLM_TRY(x_btcl_frame_s_eval_op_modifier(x_btcl_frame_s_setup(((x_btcl_frame_s*)BLM_LEVEL_T_PUSH(2,x_btcl_frame_s,x_btcl_frame_s_create())),o ),source, sr ))
        BLM_DOWN();}
        x_btcl_clone_if_weak(sr );
    }
    return  0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0x3f366
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x3f366
movabsq $-0x19831b480b40fba0, %r12 # imm = 0xE67CE4B7F4BF0460
cmpq %r12, 0x8(%rax)
jne 0x3f227
leaq 0xd8c08(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x10(%rsp), %r13
movq %r13, 0x8(%rsp)
movq %r13, %rdi
callq 0x717f5
movq $0x1, 0x10(%r13)
movq (%rbx), %rdi
callq 0x6026d
pushq $0x1
popq %rsi
movq %r13, %rdi
movq %r12, %rdx
movq %rax, %rcx
callq 0x71967
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x3f411
testq %rax, %rax
jne 0x3f3dc
leaq 0x8(%rsp), %rdi
callq 0x71b48
jmp 0x3f3fd
movabsq $0x7313f38fdcab8a79, %rcx # imm = 0x7313F38FDCAB8A79
cmpq %rcx, 0x8(%rax)
jne 0x3f255
leaq 0x76bcb(%rip), %rsi     # 0xb5e09
movq %r14, %rdi
xorl %eax, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x3667e
movabsq $-0x1948b20c22462ae4, %rcx # imm = 0xE6B74DF3DDB9D51C
cmpq %rcx, 0x8(%rax)
jne 0x3f2df
leaq 0x6b284(%rip), %rsi     # 0xaa4f0
movq %r14, %rdi
callq 0x2ef75
testb %al, %al
jne 0x3f3f5
leaq 0xd8b4d(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x10(%rsp), %r12
movq %r12, 0x8(%rsp)
movq %r12, %rdi
callq 0x717f5
movq $0x3, 0x10(%r12)
callq 0x3a466
pushq $0x3
popq %rsi
movabsq $-0x8f0f83b86d2b0b3, %rdx # imm = 0xF70F07C4792D4F4D
movq %r12, %rdi
movq %rax, %rcx
callq 0x71967
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x3a4c3
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3f5d5
jmp 0x3f3d7
movabsq $0x73f13731f3140e07, %rcx # imm = 0x73F13731F3140E07
cmpq %rcx, 0x8(%rax)
jne 0x3f366
leaq 0x6b1fa(%rip), %rsi     # 0xaa4f0
movq %r14, %rdi
callq 0x2ef75
testb %al, %al
jne 0x3f3f5
leaq 0xd8ac3(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x10(%rsp), %r12
movq %r12, 0x8(%rsp)
movq %r12, %rdi
callq 0x717f5
movq $0x3, 0x10(%r12)
callq 0x3a466
pushq $0x3
popq %rsi
movabsq $-0x8f0f83b86d2b0b3, %rdx # imm = 0xF70F07C4792D4F4D
movq %r12, %rdi
movq %rax, %rcx
callq 0x71967
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x3a4c3
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3fb03
jmp 0x3f3d7
leaq 0x6b183(%rip), %rsi     # 0xaa4f0
movq %r14, %rdi
callq 0x2ef75
testb %al, %al
jne 0x3f3f5
leaq 0xd8a50(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x10(%rsp), %r12
movq %r12, 0x8(%rsp)
movq %r12, %rdi
callq 0x717f5
movq $0x2, 0x10(%r12)
callq 0x3a466
pushq $0x2
popq %rsi
movabsq $-0x8f0f83b86d2b0b3, %rdx # imm = 0xF70F07C4792D4F4D
movq %r12, %rdi
movq %rax, %rcx
callq 0x71967
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x3a4c3
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3fc5e
testq %rax, %rax
je 0x3f3eb
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x71b64
jmp 0x3f400
leaq 0x8(%rsp), %rdi
callq 0x71b48
movq %rbx, %rdi
callq 0x3c21d
xorl %r14d, %r14d
movq %r14, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq