// File: /workspace/github_c_makefile_star2_O1/johsteffens[P]beth/xoico/src/xoico.xo.c
// Function: xoico_che_s_trans_builtin_fork
er_t xoico_che_s_trans_builtin_fork( xoico_che_s* o, x_source* source, bl_t source_without_brackets, const xoico_che_result* result_expr, const xoico_typespec_s* typespec_expr, xoico_che_result* result_out, xoico_typespec_s* typespec_out )
{
    // xoico_che_builtin.x:367:1
    BLM_INIT_LEVEL(0);
    if( result_expr ) // member call
    {
        if( source_without_brackets )
        {
            BLM_TRY(x_source_parse_fa(source," " ))
        }
        else
        {
            BLM_TRY(x_source_parse_fa(source," ( " ))
        }
        xoico_che_result_a_clear(result_out);
    }
    else // direct call
    {BLM_INIT_LEVEL(1);
        BLM_TRY(x_source_parse_fa(source,"fork ( " ))
        xoico_che_result_arr_s* result = ((xoico_che_result_arr_s*)BLM_LEVEL_T_PUSH(1,xoico_che_result_arr_s,xoico_che_result_arr_s_create()));
        xoico_typespec_s* typespec = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(0,xoico_typespec_s,xoico_typespec_s_create()));
        BLM_TRY(xoico_che_s_trans_expression(o,source,((xoico_che_result*)( result)), typespec ))
        typespec_expr = typespec;
        result_expr =((const xoico_che_result*)( result));
    BLM_DOWN();}
    
    xoico_typespec_s* typespec_fork = ((xoico_typespec_s*)BLM_LEVEL_T_PUSH(0,xoico_typespec_s,xoico_typespec_s_clone(typespec_expr)));
    typespec_fork->access_class = TYPEOF_discardable;
    
    BLM_TRY(xoico_che_result_a_push_sc(result_out,"((" ))
    
    if( source_without_brackets )
    {
        BLM_TRY(x_source_parse_fa(source," " ))
    }
    else
    {
        BLM_TRY(x_source_parse_fa(source," )" ))
    }
    
    if( typespec_fork->type        == 0 ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Operator 'fork': Expression not tractable." ))
    if( typespec_fork->indirection != 1 ) BLM_RETURNV(er_t, x_source_parse_error_fa(source,"Operator 'fork': Expression's indirection != 1." ))
    
    BLM_TRY(xoico_che_s_push_typespec(o,typespec_fork, result_out ))
    BLM_TRY(xoico_che_result_a_push_sc(result_out,")bcore_fork(" ))
    xoico_che_result_a_push_result_c(result_out,result_expr );
    BLM_TRY(xoico_che_result_a_push_sc(result_out,"))" ))
    
    if( typespec_out ) xoico_typespec_s_copy(typespec_out,typespec_fork );
    
    BLM_RETURNV(er_t, 0)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r9, %r14
movq %r8, %r13
movq %rcx, %r12
movl %edx, %r15d
movq %rsi, %rbp
movq %rdi, 0x20(%rsp)
leaq 0x160161(%rip), %rax    # 0x1a8dd0
movq (%rax), %rsi
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0xe0431
movq $0x0, 0x10(%rbx)
testq %r12, %r12
movl %r15d, 0x1c(%rsp)
je 0x48c9f
testb %r15b, %r15b
je 0x48cf7
leaq 0x105d10(%rip), %rsi    # 0x14e9ad
jmp 0x48cfe
movq %r14, 0x8(%rsp)
leaq 0x58(%rsp), %rdi
movq %rdi, 0x10(%rsp)
leaq 0x28(%rsp), %rsi
callq 0xe0431
movq 0x10(%rsp), %rbx
movq $0x1, 0x10(%rbx)
leaq 0xf3b84(%rip), %rsi     # 0x13c850
movq %rbp, %rdi
xorl %eax, %eax
callq 0xda10
movq %rax, %r15
testq %rax, %rax
je 0x48dca
movq 0x10(%rsp), %rdi
callq 0xe0b30
xorl %r14d, %r14d
xorl %r12d, %r12d
jmp 0x48e59
leaq 0xf39c1(%rip), %rsi     # 0x13c6bf
movq %rbp, %rdi
xorl %eax, %eax
callq 0xda10
movq %rax, %r15
testq %rax, %rax
je 0x48d1f
leaq 0x28(%rsp), %rdi
callq 0xe0b30
jmp 0x48f96
movq %rbp, (%rsp)
movq (%r14), %rbx
leaq 0x159783(%rip), %rax    # 0x1a24b0
movl 0x15977d(%rip), %ecx    # 0x1a24b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbx, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x48d8b
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x48d8b
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x48d8b
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x49097
movq (%rax,%rcx), %rbp
testq %rbp, %rbp
jne 0x48dbb
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %rbp
leaq 0x159700(%rip), %rdi    # 0x1a24b0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
movq %r14, %rdi
callq *0x10(%rbp)
movq (%rsp), %rbp
jmp 0x48e67
callq 0x4c277
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rcx
callq 0xe0676
movq %rax, %r12
callq 0x10060
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movq %rax, %rbx
movq 0x20(%rsp), %rdi
movq %rbp, (%rsp)
movq %rbp, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x3dbae
movq %rax, %rbp
testq %rax, %rax
sete %r14b
je 0x48e3b
movq 0x10(%rsp), %rdi
callq 0xe0b30
movq %rbp, %r15
testq %rbp, %rbp
je 0x48e45
xorl %r12d, %r12d
jmp 0x48e55
leaq 0x10(%rsp), %rdi
callq 0xe0b11
movb $0x1, %r14b
movq %rbx, %r13
movq (%rsp), %rbp
testb %r14b, %r14b
movq 0x8(%rsp), %r14
je 0x48f96
movq %r13, %rdi
callq 0x101d1
leaq 0x28(%rsp), %rdi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
xorl %esi, %esi
movq %rax, %rcx
callq 0xe0676
movabsq $-0x12e90733f18038df, %rcx # imm = 0xED16F8CC0E7FC721
movq %rax, 0x8(%rsp)
movq %rcx, 0x10(%rax)
movq (%r14), %rbx
leaq 0x15960b(%rip), %rax    # 0x1a24b0
movl 0x159605(%rip), %ecx    # 0x1a24b0
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rax,%rcx,8), %rdx
movq 0x18(%rax,%rcx,8), %rcx
andq %rbx, %rcx
shlq $0x4, %rcx
leaq (%rdx,%rcx), %rax
movq (%rdx,%rcx), %rdx
movl $0x8, %ecx
cmpq %rbx, %rdx
je 0x48f03
movq 0x10(%rax), %rdx
movl $0x18, %ecx
cmpq %rbx, %rdx
je 0x48f03
movq 0x20(%rax), %rdx
movl $0x28, %ecx
cmpq %rbx, %rdx
je 0x48f03
movq 0x30(%rax), %rdx
movl $0x38, %ecx
cmpq %rbx, %rdx
jne 0x4906d
movq (%rax,%rcx), %r13
testq %r13, %r13
jne 0x48f33
movabsq $-0x3dfc7e0a250a30dc, %rdi # imm = 0xC20381F5DAF5CF24
movq %rbx, %rsi
callq 0xf3f85
movq %rax, %r13
leaq 0x159588(%rip), %rdi    # 0x1a24b0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x12128c
leaq 0xf3687(%rip), %rsi     # 0x13c5c1
movq %r14, %rdi
callq *0x20(%r13)
movq %rax, %rbx
testq %rax, %rax
je 0x48f56
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r15
testq %rbx, %rbx
jne 0x48f96
cmpb $0x0, 0x1c(%rsp)
je 0x48f6b
leaq 0x105a44(%rip), %rsi    # 0x14e9ad
jmp 0x48f72
leaq 0x10cfca(%rip), %rsi    # 0x155f3c
movq %rbp, %rdi
xorl %eax, %eax
callq 0xda10
movq %rax, %rbx
testq %rax, %rax
je 0x48f91
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r15
testq %rbx, %rbx
je 0x48fab
movq %r15, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %rsi
cmpq $0x0, 0x8(%rsi)
je 0x49075
cmpq $0x1, 0x20(%rsi)
jne 0x4907e
movq 0x20(%rsp), %rdi
movq %r14, %rdx
callq 0x34734
movq %rax, %rbx
testq %rax, %rax
je 0x48fe8
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r15
testq %rbx, %rbx
jne 0x48f96
leaq 0xf38bf(%rip), %rsi     # 0x13c8b3
movq %r14, %rdi
callq 0x34bcc
movq %rax, %rbx
testq %rax, %rax
je 0x49011
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r15
testq %rbx, %rbx
jne 0x48f96
movq %r14, %rdi
movq %r12, %rsi
callq 0x3a736
leaq 0xf23b3(%rip), %rsi     # 0x13b3db
movq %r14, %rdi
callq 0x34bcc
movq %rax, %rbx
testq %rax, %rax
je 0x49045
leaq 0x28(%rsp), %rdi
callq 0xe0b30
movq %rbx, %r15
testq %rbx, %rbx
jne 0x48f96
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x49065
movq 0x8(%rsp), %rsi
callq 0xff8e
xorl %r15d, %r15d
jmp 0x48d10
xorl %r13d, %r13d
jmp 0x48f07
leaq 0xf37dc(%rip), %rsi     # 0x13c858
jmp 0x49085
leaq 0xf37fe(%rip), %rsi     # 0x13c883
movq %rbp, %rdi
xorl %eax, %eax
callq 0xddb2
movq %rax, %r15
jmp 0x48d10
xorl %ebp, %ebp
jmp 0x48d8f