// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btcl_frame_s_eval_op_func_list_unfold_transform
er_t x_btcl_frame_s_eval_op_func_list_unfold_transform( x_btcl_frame_s* o, s2_t op_priority, x_source* source, sr_s* sr )
{
    // bcore_x_btcl_op.x:290:1
    BLM_INIT_LEVEL(0);
    sr_s sb;BLM_T_INIT_SPUSH(sr_s, &sb);; BLM_TRY(x_btcl_frame_s_eval(o,op_priority, source,&( sb )))
    
    if( sr_s_type(sr) == ((tp_t)(TYPEOF_x_btcl_function_s)) && sr_s_type(&(sb)) == ((tp_t)(TYPEOF_x_btcl_list_s)) )
    {BLM_INIT_LEVEL(1);
        x_btcl_function_s* f = ((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))))));
        x_btcl_list_s* list = ((x_btcl_list_s*)BLM_LEVEL_T_PUSH(1,x_btcl_list_s,((x_btcl_list_s*)bcore_fork(((x_btcl_list_s*)(sb.o))))));
        x_btcl_list_s* list_r = ((x_btcl_list_s*)BLM_LEVEL_T_PUSH(1,x_btcl_list_s,x_btcl_list_s_create()));
        x_btcl_list_s_set_size(list_r,x_btcl_list_s_size(list) );
        for(sz_t i = 0; i < x_btcl_list_s_size(list); i++ )
        {BLM_INIT_LEVEL(3);
            if( sr_s_type(&(list->arr.data[ i ])) != ((tp_t)(TYPEOF_x_btcl_list_s)) ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Operator '*.:' : List element '#<sz_t>' of type '#<sc_t>' is not a list.\n", i, bnameof( sr_s_type(&(list->arr.data[ i ])) ) ))
            BLM_TRY(x_btcl_function_s_call_via_arg_list(f,x_source_point_s__(((x_source_point_s*)BLM_LEVEL_T_PUSH(3,x_source_point_s,x_source_point_s_create())),source ), o, ((x_btcl_list_s*)(list->arr.data[ i ].o)),&( list_r->arr.data[ i ] )))
        BLM_DOWN();}
    
        sr_s_asm(sr,((x_btcl_list_s*)bcore_fork(list_r)) );
    
        BLM_RETURNV(er_t, 0)
    BLM_DOWN();}
    
    BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Operator #<sc_t> * #<sc_t> is not defined.\n", bnameof( sr_s_o_type(sr) ), bnameof( sr_s_o_type(&(sb)) ) ))
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
leaq 0xd78e2(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x717f5
andq $0x0, 0x10(%r12)
leaq 0x20(%rsp), %r13
movq %r13, %rdi
callq 0x8d1bc
movabsq $0x79b76918ff0af12a, %rsi # imm = 0x79B76918FF0AF12A
movq %r12, %rdi
movq %r13, %rdx
callq 0x71998
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x3afac
testq %rax, %rax
jne 0x4072a
testq %r14, %r14
je 0x406ec
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x406ec
movabsq $-0x19831b480b40fba0, %r12 # imm = 0xE67CE4B7F4BF0460
cmpq %r12, 0x8(%rax)
jne 0x406f0
movq 0x28(%rsp), %rcx
testq %rcx, %rcx
je 0x406f0
movabsq $-0x240ec4eb25c1f3e8, %rdx # imm = 0xDBF13B14DA3E0C18
cmpq %rdx, 0x8(%rcx)
jne 0x406f0
leaq 0x68(%rsp), %r13
leaq 0x38(%rsp), %rsi
movq %r13, %rdi
callq 0x717f5
movq $0x1, 0x10(%r13)
movq %r14, 0x10(%rsp)
movq (%r14), %rdi
callq 0x6026d
pushq $0x1
popq %rbp
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x71967
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x6026d
movq %r13, %rdi
movq %rbp, %rsi
movabsq $-0x240ec4eb25c1f3e8, %r14 # imm = 0xDBF13B14DA3E0C18
movq %r14, %rdx
movq %rax, %rcx
callq 0x71967
movq %rax, %r12
callq 0x41317
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %r13
movq %r14, %rdx
movq %rax, %rcx
callq 0x71967
movq 0x18(%r12), %rsi
movq %rax, 0x8(%rsp)
leaq 0x8(%rax), %rdi
callq 0x5d326
xorl %r14d, %r14d
xorl %r12d, %r12d
cmpq 0x18(%r13), %r12
jge 0x40750
leaq 0x98(%rsp), %rdi
movq %rdi, (%rsp)
leaq 0x68(%rsp), %rsi
callq 0x717f5
movq (%rsp), %rbp
movq $0x3, 0x10(%rbp)
movq 0x10(%r13), %rax
testq %rax, %rax
je 0x4074c
movq 0x8(%rax,%r14), %rax
testq %rax, %rax
je 0x4074c
movabsq $-0x240ec4eb25c1f3e8, %rcx # imm = 0xDBF13B14DA3E0C18
cmpq %rcx, 0x8(%rax)
jne 0x40775
callq 0x2dde5
movq %rbp, %rdi
pushq $0x3
popq %rsi
movabsq $0x717ff038b7471b82, %rdx # imm = 0x717FF038B7471B82
movq %rax, %rcx
callq 0x71967
movq %rax, %rbp
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3d596
movq 0x10(%r13), %rax
movq (%rax,%r14), %rcx
movq 0x8(%rsp), %rax
movq 0x10(%rax), %r8
addq %r14, %r8
movq 0x18(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x40085
testq %rax, %rax
jne 0x40795
movq %rsp, %rdi
callq 0x71b48
incq %r12
addq $0x18, %r14
jmp 0x40625
xorl %edi, %edi
jmp 0x406f4
movq 0x8(%rax), %rdi
callq 0x71db6
movq %rax, %r14
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x4070c
movq 0x8(%rax), %rdi
jmp 0x4070e
xorl %edi, %edi
callq 0x71db6
leaq 0x75757(%rip), %rsi     # 0xb5e71
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x3667e
movq %rax, %rbp
leaq 0x38(%rsp), %rdi
callq 0x71b64
movq %rbp, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edi, %edi
jmp 0x40779
movq 0x8(%rsp), %rdi
callq 0x6026d
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x3c408
leaq 0x68(%rsp), %rdi
callq 0x71b64
xorl %ebp, %ebp
jmp 0x40737
movq 0x8(%rax), %rdi
callq 0x71db6
leaq 0x75740(%rip), %rsi     # 0xb5ec5
movq %rbx, %rdi
movq %r12, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x3667e
movq %rax, %rbp
movq (%rsp), %rdi
jmp 0x40732