// File: /workspace/github_c_makefile_star2_O2/johsteffens[P]beth/lib/bcore/bcore.xo.c
// Function: x_btcl_net_eval_node_modifier
er_t x_btcl_net_eval_node_modifier( x_btcl_frame_s* frame, x_source* source, sr_s* node_sr )
{
    // bcore_x_btcl_net.x:154:1
    BLM_INIT_LEVEL(0);
    (*(node_sr)) = sr_clone( (*(node_sr)) );
    x_btcl_net_node_s* node = ((x_btcl_net_node_s*)BLM_LEVEL_T_PUSH(0,x_btcl_net_node_s,((x_btcl_net_node_s*)bcore_fork(((x_btcl_net_node_s*)(node_sr->o))))));
    
    bl_t do_loop = true;
    while( do_loop )
    {BLM_INIT_LEVEL(1);
        sr_s* branch_sr = ((sr_s*)BLM_LEVEL_T_PUSH(1,sr_s,sr_s_create()));
        const x_source_point_s* sp = x_source_point_s_setup_from_source(((x_source_point_s*)BLM_LEVEL_T_PUSH(1,x_source_point_s,x_source_point_s_create())),source );
    
        if( x_source_parse_bl(source," #?'.'") )
        {
            if( !x_btcl_is_identifier(source ) ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Identifier expected.\n" ))
            tp_t branch_name = bcore_name_enroll(x_btcl_frame_s_nameof(frame,x_btcl_frame_s_get_identifier(frame,source, true ) ) );
            BLM_TRY(x_source_parse_fa(source," =" ))
            BLM_TRY(x_btcl_frame_s_eval(frame,0, source, branch_sr ))
    
            // convert functions to functors
            if( sr_s_type(branch_sr) == ((tp_t)(TYPEOF_x_btcl_function_s)) )
            {BLM_INIT_LEVEL(3);
                x_btcl_functor_s* functor = ((x_btcl_functor_s*)BLM_LEVEL_T_PUSH(3,x_btcl_functor_s,x_btcl_functor_s_create()));
                BLM_TRY(x_btcl_functor_s_setup(functor,((x_source_point_s*)BLM_LEVEL_T_PUSH(3,x_source_point_s,x_source_point_s__(x_source_point_s_create(),source ))), ((x_btcl_function_s*)(branch_sr->o)), frame ))
                sr_s_asm(branch_sr,((x_btcl_functor_s*)bcore_fork(functor)) );
            BLM_DOWN();}
    
            x_btcl_net_node_s_push_plain_branch(node,branch_name, true, sp, branch_sr );
        }
        else if( x_source_parse_bl(source," #?':'") )
        {
            if( !x_btcl_is_identifier(source ) ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Identifier expected.\n" ))
            tp_t branch_name = bcore_name_enroll(x_btcl_frame_s_nameof(frame,x_btcl_frame_s_get_identifier(frame,source, true ) ) );
            if( x_source_parse_bl(source," #?'='") )
            {
                BLM_TRY(x_btcl_frame_s_eval(frame,0, source, branch_sr ))
                x_btcl_net_node_s_push_socket_branch(node,branch_name, true, sp, branch_sr );
            }
            else
            {BLM_INIT_LEVEL(4);
                /// sockets without explicit assignment are initialized with constant '0'
                x_btcl_net_node_s_push_socket_branch(node,branch_name, true, sp, sr_s_from_f3(((sr_s*)BLM_LEVEL_T_PUSH(4,sr_s,sr_s_create())),0 ) );
            BLM_DOWN();}
        }
        else
        {
            BLM_TRY(x_btcl_frame_s_eval(frame,0, source, branch_sr ))
    
            // convert functions to functors
            if( sr_s_type(branch_sr) == ((tp_t)(TYPEOF_x_btcl_function_s)) )
            {BLM_INIT_LEVEL(3);
                x_btcl_functor_s* functor = ((x_btcl_functor_s*)BLM_LEVEL_T_PUSH(3,x_btcl_functor_s,x_btcl_functor_s_create()));
                BLM_TRY(x_btcl_functor_s_setup(functor,((x_source_point_s*)BLM_LEVEL_T_PUSH(3,x_source_point_s,x_source_point_s__(x_source_point_s_create(),source ))), ((x_btcl_function_s*)(branch_sr->o)), frame ))
                sr_s_asm(branch_sr,((x_btcl_functor_s*)bcore_fork(functor)) );
            BLM_DOWN();}
    
            x_btcl_net_node_s_push_plain_branch(node,0, false, sp, branch_sr );
        }
    
        do_loop = false;
    
        if( x_source_parse_bl(source," #?','"  ) ) do_loop = true;
        if( x_source_parse_bl(source," #=?')'" ) ) do_loop = false;
    BLM_DOWN();}
    
    x_stamp_t_mutated(((x_stamp*)(node_sr->o)),sr_s_type(node_sr) );
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0xd87da(%rip), %rax     # 0x117dd0
movq (%rax), %rsi
leaq 0x78(%rsp), %r12
movq %r12, %rdi
callq 0x717f5
andq $0x0, 0x10(%r12)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
leaq 0xa8(%rsp), %r13
movq %r13, %rdi
callq 0x8cdc6
movq 0x10(%r13), %rax
movq %rax, 0x10(%r14)
movups (%r13), %xmm0
movups %xmm0, (%r14)
movq %r14, 0x38(%rsp)
movq (%r14), %rdi
callq 0x6026d
movabsq $-0x1948b20c22462ae4, %rdx # imm = 0xE6B74DF3DDB9D51C
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0x71967
movq %rax, 0x30(%rsp)
movq %r15, 0x28(%rsp)
leaq 0xa8(%rsp), %rdi
movq %rdi, 0x18(%rsp)
leaq 0x78(%rsp), %rsi
callq 0x717f5
movq 0x18(%rsp), %r14
movq $0x1, 0x10(%r14)
xorl %eax, %eax
callq 0x8d285
movq %r14, %rdi
pushq $0x1
popq %r12
movq %r12, %rsi
movabsq $0x79b76918ff0af12a, %rdx # imm = 0x79B76918FF0AF12A
movq %rax, %rcx
callq 0x71967
movq %rax, %rbp
callq 0x2dde5
movq %r14, %rdi
movq %r12, %rsi
movabsq $0x717ff038b7471b82, %rdx # imm = 0x717FF038B7471B82
movq %rax, %rcx
callq 0x71967
movq %rax, %r13
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3d596
movq %rbx, %rdi
leaq 0x6b01e(%rip), %rsi     # 0xaa709
callq 0x2ef75
movq %rbx, %rdi
testb %al, %al
je 0x3f84c
callq 0x3ac50
testb %al, %al
je 0x3fab0
movq %r15, %rdi
movq %rbx, %rsi
pushq $0x1
popq %rdx
callq 0x3ab5e
movq %r15, %rdi
movq %rax, %rsi
callq 0x3a55d
movq %rax, %rdi
callq 0x7227a
movq %rax, %r14
movq %rbx, %rdi
leaq 0x6c905(%rip), %rsi     # 0xac03b
xorl %eax, %eax
callq 0x2ef9c
testq %rax, %rax
jne 0x3fac1
movq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x3afac
testq %rax, %rax
jne 0x3fac1
testq %rbp, %rbp
je 0x3f83c
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x3f83c
movabsq $-0x19831b480b40fba0, %rcx # imm = 0xE67CE4B7F4BF0460
cmpq %rcx, 0x8(%rax)
jne 0x3f83c
movq 0x18(%rsp), %rsi
leaq 0x48(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x717f5
movq 0x20(%rsp), %r12
movq %r12, 0x40(%rsp)
movq $0x3, 0x10(%r12)
callq 0x47164
movq %r12, %rdi
pushq $0x3
popq %rsi
movabsq $0x73f13731f3140e07, %rdx # imm = 0x73F13731F3140E07
movq %rax, %rcx
callq 0x71967
movq %rax, %r15
callq 0x2dde5
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3d596
movq 0x40(%rsp), %rdi
pushq $0x3
popq %rsi
movabsq $0x717ff038b7471b82, %rdx # imm = 0x717FF038B7471B82
movq %r12, %rcx
callq 0x71967
movq (%rbp), %rdx
movq %r15, %rdi
movq %rax, %rsi
movq 0x28(%rsp), %rcx
callq 0x3a87e
testq %rax, %rax
jne 0x3faf9
movq %r15, %rdi
callq 0x6026d
movq %rbp, %rdi
movq %rax, %rsi
callq 0x3c408
leaq 0x20(%rsp), %rdi
callq 0x71b48
movq 0x28(%rsp), %r15
movq 0x30(%rsp), %rdi
movq %r14, %rsi
pushq $0x1
popq %rdx
jmp 0x3f9d8
leaq 0x6b72a(%rip), %rsi     # 0xaaf7d
callq 0x2ef75
testb %al, %al
je 0x3f8e3
movq %rbx, %rdi
callq 0x3ac50
testb %al, %al
pushq $0x1
popq %r12
je 0x3fab0
movq %r15, %rdi
movq %rbx, %rsi
movl %r12d, %edx
callq 0x3ab5e
movq %r15, %rdi
movq %rax, %rsi
callq 0x3a55d
movq %rax, %rdi
callq 0x7227a
movq %rax, %r14
movq %rbx, %rdi
leaq 0x76781(%rip), %rsi     # 0xb6023
callq 0x2ef75
testb %al, %al
je 0x3fa24
movq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x3afac
testq %rax, %rax
jne 0x3fac1
movq 0x30(%rsp), %rdi
movq %r14, %rsi
pushq $0x1
popq %rdx
movq %r13, %rcx
movq %rbp, %r8
callq 0x46c9c
jmp 0x3f9e3
movq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x3afac
testq %rax, %rax
jne 0x3fac1
testq %rbp, %rbp
je 0x3f9cf
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x3f9cf
movabsq $-0x19831b480b40fba0, %rcx # imm = 0xE67CE4B7F4BF0460
cmpq %rcx, 0x8(%rax)
jne 0x3f9cf
movq 0x18(%rsp), %rsi
leaq 0x48(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x717f5
movq 0x20(%rsp), %r15
movq $0x3, 0x10(%r15)
callq 0x47164
movq %r15, %rdi
pushq $0x3
popq %rsi
movabsq $0x73f13731f3140e07, %rdx # imm = 0x73F13731F3140E07
movq %rax, %rcx
callq 0x71967
movq %rax, %r14
callq 0x2dde5
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3d596
movq %r15, %rdi
movq 0x28(%rsp), %r15
pushq $0x3
popq %rsi
movabsq $0x717ff038b7471b82, %rdx # imm = 0x717FF038B7471B82
movq %r12, %rcx
callq 0x71967
movq (%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rcx
callq 0x3a87e
testq %rax, %rax
jne 0x3faf9
movq %r14, %rdi
callq 0x6026d
movq %rbp, %rdi
movq %rax, %rsi
callq 0x3c408
leaq 0x20(%rsp), %rdi
callq 0x71b48
movq 0x30(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r13, %rcx
movq %rbp, %r8
callq 0x4422f
movq %rbx, %rdi
leaq 0x6c96c(%rip), %rsi     # 0xac359
callq 0x2ef75
movl %eax, %ebp
movq %rbx, %rdi
leaq 0x6aaf2(%rip), %rsi     # 0xaa4f0
callq 0x2ef75
movl %eax, %r14d
leaq 0x18(%rsp), %rdi
callq 0x71b48
testb %r14b, %r14b
jne 0x3fa99
testb %bpl, %bpl
jne 0x3f66c
jmp 0x3fa99
movq 0x18(%rsp), %rsi
leaq 0x48(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x717f5
movq 0x20(%rsp), %r15
movq $0x4, 0x10(%r15)
xorl %eax, %eax
callq 0x8d285
movq %r15, %rdi
movq 0x28(%rsp), %r15
pushq $0x4
popq %rsi
movabsq $0x79b76918ff0af12a, %rdx # imm = 0x79B76918FF0AF12A
movq %rax, %rcx
callq 0x71967
xorps %xmm0, %xmm0
movq %rax, %rdi
callq 0x8d45e
movq 0x30(%rsp), %rdi
movq %r14, %rsi
movl %r12d, %edx
movq %r13, %rcx
movq %rax, %r8
callq 0x46c9c
leaq 0x20(%rsp), %rdi
callq 0x71b48
jmp 0x3f9e3
movq 0x38(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x3fad0
movq 0x8(%rax), %rsi
jmp 0x3fad2
leaq 0x7657b(%rip), %rsi     # 0xb6032
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3667e
movq %rax, %r12
movq 0x18(%rsp), %rdi
callq 0x71b64
jmp 0x3fae4
xorl %esi, %esi
callq 0x3705d
leaq 0x78(%rsp), %rdi
callq 0x71b64
xorl %r12d, %r12d
movq %r12, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movq 0x20(%rsp), %rdi
jmp 0x3fac9