// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btcl_functor_f3_s_from_functor
er_t x_btcl_functor_f3_s_from_functor( x_btcl_functor_f3_s* o, const x_btcl_functor_s* functor )
{
    // bcore_x_btcl_functor_f3.x:84:5
    
    sz_t args = x_btcl_functor_s_args(functor);
    x_array_set_size(((x_array*)(&(o->arg_arr))),args );
    for(sz_t i = 0; i < args; i++ ) o->arg_arr.data[ i ].name = functor->arg_arr.data[ i ].name;
    x_source_point_s_copy(&(o->sp),&(functor->sp ));
    x_btcl_operator_f3_a_attach( &(o->op_tree ), (x_btcl_operator_f3*)( x_btcl_operator_f3_create_op(functor->op_tree )));
    BLM_TRY(x_btcl_functor_f3_s_setup_tree(o))
    return  0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rsi), %r15
movq 0x8(%rdi), %r12
leaq 0x103852(%rip), %rax    # 0x1a8e20
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0xa5628
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0xa5628
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0xa5628
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0xa57a5
movq (%rax,%rcx), %rbp
leaq 0x8(%rbx), %r13
testq %rbp, %rbp
jne 0xa565c
movabsq $-0x5073d588c3beb52e, %rdi # imm = 0xAF8C2A773C414AD2
movq %r12, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x1037cf(%rip), %rdi    # 0x1a8e20
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %rbp, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xf69d8
testq %r15, %r15
jle 0xa5696
movl $0x8, %eax
movl $0x10, %ecx
movq 0x10(%r14), %rdx
movq (%rdx,%rax), %rdx
movq 0x10(%rbx), %rsi
movq %rdx, (%rsi,%rcx)
addq $0x20, %rax
addq $0x18, %rcx
decq %r15
jne 0xa5679
leaq 0x30(%rbx), %rdi
leaq 0x30(%r14), %rsi
callq 0x59df2
movq 0x28(%r14), %rdi
callq 0xa0527
movq %rax, %r14
testq %rax, %rax
je 0xa56c6
movq (%r14), %rsi
movabsq $0x1fba9a06a1e203d8, %rdi # imm = 0x1FBA9A06A1E203D8
callq 0x1222bd
movq 0x28(%rbx), %r15
testq %r15, %r15
je 0xa5770
movq (%r15), %r12
leaq 0x103d8b(%rip), %rax    # 0x1a9468
movl (%rax), %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %r12, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %r12, %rdx
je 0xa5733
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %r12, %rdx
je 0xa5733
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %r12, %rdx
je 0xa5733
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %r12, %rdx
jne 0xa57ac
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0xa5763
movabsq $0x782b96602f424981, %rdi # imm = 0x782B96602F424981
movq %r12, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x103d10(%rip), %rdi    # 0x1a9468
movq %r12, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r13, %rdi
movq %r15, %rsi
callq *0xb8(%r13)
movq %r14, 0x28(%rbx)
movq %rbx, %rdi
callq 0xa50c5
movq %rax, %rbx
testq %rax, %rax
je 0xa5793
leaq 0x103645(%rip), %rax    # 0x1a8dd0
movq (%rax), %rdi
callq 0xe0b30
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0xa562c
xorl %r13d, %r13d
jmp 0xa5737