// File: /workspace/github_c_makefile_star2_O1/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 $0xd8, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
leaq 0x117022(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0xe0431
movq $0x0, 0x10(%r12)
leaq 0x30(%rsp), %r13
movq %r13, %rdi
callq 0x112ba5
movabsq $0x79b76918ff0af12a, %rsi # imm = 0x79B76918FF0AF12A
movq %r12, %rdi
movq %r13, %rdx
callq 0xe06ab
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x88ece
movq %rax, %r12
testq %rax, %rax
jne 0x9208c
testq %r14, %r14
je 0x92051
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x9203d
movabsq $-0x19831b480b40fba0, %r13 # imm = 0xE67CE4B7F4BF0460
cmpq %r13, 0x8(%rax)
jne 0x9203d
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x9203d
movabsq $-0x240ec4eb25c1f3e8, %rcx # imm = 0xDBF13B14DA3E0C18
cmpq %rcx, 0x8(%rax)
jne 0x9203d
leaq 0x78(%rsp), %rbp
leaq 0x48(%rsp), %rsi
movq %rbp, %rdi
callq 0xe0431
movq $0x1, 0x10(%rbp)
movq %r14, 0x20(%rsp)
movq (%r14), %rdi
callq 0xc8348
movl $0x1, %esi
movq %rbp, %rdi
movq %r13, %rdx
movq %rax, %rcx
callq 0xe0676
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rdi
callq 0xc8348
movl $0x1, %esi
movq %rbp, %rdi
movabsq $-0x240ec4eb25c1f3e8, %r14 # imm = 0xDBF13B14DA3E0C18
movq %r14, %rdx
movq %rax, %rcx
callq 0xe0676
movq %rax, %r13
callq 0x94403
movl $0x1, %esi
movq %rbp, %rdi
movq %r14, %rdx
movq %rax, %rcx
callq 0xe0676
movq 0x18(%r13), %rsi
movq %rax, 0x10(%rsp)
leaq 0x8(%rax), %rdi
callq 0xc4b01
cmpq $0x0, 0x18(%r13)
setg 0x7(%rsp)
jle 0x920ab
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %r13, 0x18(%rsp)
leaq 0xa8(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0x78(%rsp), %rsi
callq 0xe0431
movq %r13, %rax
movq 0x8(%rsp), %r13
movq $0x3, 0x10(%r13)
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x91fda
movq 0x8(%rax,%r14), %rcx
testq %rcx, %rcx
je 0x91fc5
movabsq $-0x240ec4eb25c1f3e8, %rdx # imm = 0xDBF13B14DA3E0C18
cmpq %rdx, 0x8(%rcx)
jne 0x91fc5
callq 0x59ec4
movl $0x3, %esi
movq %r13, %rdi
movabsq $0x717ff038b7471b82, %rdx # imm = 0x717FF038B7471B82
movq %rax, %rcx
callq 0xe0676
movq %rax, %r13
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8c9dc
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax,%r14), %rcx
movq 0x10(%rsp), %rax
movq 0x10(%rax), %r8
addq %r14, %r8
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x918cc
movq %rax, %r13
testq %rax, %rax
je 0x91fbb
movq 0x8(%rsp), %rdi
callq 0xe0b30
movq %r13, %r12
testq %r13, %r13
je 0x9202e
xorl %r13d, %r13d
jmp 0x92008
testq %rax, %rax
je 0x91fda
movq 0x8(%rax,%r14), %rax
testq %rax, %rax
je 0x91fda
movq 0x8(%rax), %rdi
jmp 0x91fdc
xorl %edi, %edi
callq 0xe0cbc
xorl %r13d, %r13d
movq %rbx, %rdi
leaq 0xb1c33(%rip), %rsi     # 0x143c21
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x77b7c
movq %rax, %r12
movq 0x8(%rsp), %rdi
callq 0xe0b30
testb %r13b, %r13b
je 0x920ab
incq %rbp
addq $0x18, %r14
movq 0x18(%rsp), %r13
cmpq 0x18(%r13), %rbp
setl 0x7(%rsp)
jl 0x91efe
jmp 0x920ab
leaq 0x8(%rsp), %rdi
callq 0xe0b11
movb $0x1, %r13b
jmp 0x92008
testq %r14, %r14
je 0x92051
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x92051
movq 0x8(%rax), %rdi
jmp 0x92053
xorl %edi, %edi
callq 0xe0cbc
movq %rax, %r14
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x9206b
movq 0x8(%rax), %rdi
jmp 0x9206d
xorl %edi, %edi
callq 0xe0cbc
leaq 0xb1b54(%rip), %rsi     # 0x143bcd
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x77b7c
movq %rax, %r12
leaq 0x48(%rsp), %rdi
callq 0xe0b30
movq %r12, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x1, 0x7(%rsp)
jne 0x92096
movq 0x10(%rsp), %rdi
callq 0xc8348
movq %rax, %rbx
movq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x112baf
testq %rbx, %rbx
je 0x920db
movq (%rbx), %rdi
callq 0x1123e1
jmp 0x920dd
xorl %eax, %eax
movq %rbx, (%r14)
movq %rax, 0x8(%r14)
movq $0x2, 0x10(%r14)
leaq 0x78(%rsp), %rdi
callq 0xe0b30
xorl %r12d, %r12d
jmp 0x92096