// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movb %dl, %al
movq 0x10(%rbp), %rdx
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
leaq 0x17fbef(%rip), %rax    # 0x1b2330
movq (%rax), %rax
movq %rax, -0x40(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xbfe80
movq -0x78(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq $0x0, 0x10(%rax)
cmpq $0x0, -0x28(%rbp)
je 0x3281f
testb $0x1, -0x19(%rbp)
je 0x327c5
movq -0x18(%rbp), %rdi
leaq 0x11b3f4(%rip), %rsi    # 0x14db81
movb $0x0, %al
callq 0x4a20
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x327c3
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x88(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
jmp 0x32811
movq -0x18(%rbp), %rdi
leaq 0x1051fa(%rip), %rsi    # 0x1379ca
movb $0x0, %al
callq 0x4a20
movq %rax, -0x90(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x3280f
movq -0x90(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
jmp 0x32811
movq -0x38(%rbp), %rdi
callq 0x2f780
jmp 0x3299c
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0xd0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0xbfe80
movq -0xd8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq $0x1, 0x10(%rax)
movq -0x18(%rbp), %rdi
leaq 0x1052e8(%rip), %rsi    # 0x137b5b
movb $0x0, %al
callq 0x4a20
movq %rax, -0xe0(%rbp)
cmpq $0x0, -0xe0(%rbp)
je 0x328b5
movq -0xe0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xd8(%rbp), %rdi
callq 0xc0720
movq -0xe8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
movq -0xa0(%rbp), %rax
movq %rax, -0x198(%rbp)
callq 0x35ee0
movq -0x198(%rbp), %rdi
movq %rax, %rcx
movl $0x1, %esi
movabsq $-0x7850996cdf80346a, %rdx # imm = 0x87AF6693207FCB96
callq 0xc01a0
movq %rax, -0xf0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x190(%rbp)
callq 0x5d20
movq -0x190(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
callq 0xc01a0
movq %rax, -0xf8(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0xf0(%rbp), %rdx
movq -0xf8(%rbp), %rcx
callq 0x27f50
movq %rax, -0x100(%rbp)
cmpq $0x0, -0x100(%rbp)
je 0x3297a
movq -0x100(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0xd8(%rbp), %rdi
callq 0xc0720
movq -0x108(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
movq -0xf8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0xc06e0
movq -0x40(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x30(%rbp), %rdi
callq 0x5d70
movq -0x1a0(%rbp), %rdi
movq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
movabsq $-0x641110359430e9c5, %rdx # imm = 0x9BEEEFCA6BCF163B
callq 0xc01a0
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movabsq $-0x12e90733f18038df, %rcx # imm = 0xED16F8CC0E7FC721
movq %rcx, 0x10(%rax)
movq -0x38(%rbp), %rdi
leaq 0x104ed8(%rip), %rsi    # 0x1378cc
callq 0x23300
movq %rax, -0x118(%rbp)
cmpq $0x0, -0x118(%rbp)
je 0x32a31
movq -0x118(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x120(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
testb $0x1, -0x19(%rbp)
je 0x32a83
movq -0x18(%rbp), %rdi
leaq 0x11b13f(%rip), %rsi    # 0x14db81
movb $0x0, %al
callq 0x4a20
movq %rax, -0x128(%rbp)
cmpq $0x0, -0x128(%rbp)
je 0x32a81
movq -0x128(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x130(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
jmp 0x32acf
movq -0x18(%rbp), %rdi
leaq 0x1228bc(%rip), %rsi    # 0x15534a
movb $0x0, %al
callq 0x4a20
movq %rax, -0x138(%rbp)
cmpq $0x0, -0x138(%rbp)
je 0x32acd
movq -0x138(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x140(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
jmp 0x32acf
movq -0x110(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x32b0f
movq -0x18(%rbp), %rdi
leaq 0x10507b(%rip), %rsi    # 0x137b63
movb $0x0, %al
callq 0x4c80
movq %rax, -0x148(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x148(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
movq -0x110(%rbp), %rax
cmpq $0x1, 0x20(%rax)
je 0x32b4f
movq -0x18(%rbp), %rdi
leaq 0x105066(%rip), %rsi    # 0x137b8e
movb $0x0, %al
callq 0x4c80
movq %rax, -0x150(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x150(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
movq -0x10(%rbp), %rdi
movq -0x110(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x22e00
movq %rax, -0x158(%rbp)
cmpq $0x0, -0x158(%rbp)
je 0x32b9b
movq -0x158(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x160(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
movq -0x38(%rbp), %rdi
leaq 0x105018(%rip), %rsi    # 0x137bbe
callq 0x23300
movq %rax, -0x168(%rbp)
cmpq $0x0, -0x168(%rbp)
je 0x32be3
movq -0x168(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x170(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x24e80
movq -0x38(%rbp), %rdi
leaq 0x103aeb(%rip), %rsi    # 0x1366e6
callq 0x23300
movq %rax, -0x178(%rbp)
cmpq $0x0, -0x178(%rbp)
je 0x32c35
movq -0x178(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x180(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x32c6b
cmpq $0x0, 0x10(%rbp)
je 0x32c4c
movq 0x10(%rbp), %rdi
movq -0x110(%rbp), %rsi
callq 0x5ce0
movq $0x0, -0x188(%rbp)
movq -0x78(%rbp), %rdi
callq 0xc0720
movq -0x188(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
nopl (%rax,%rax)