// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/frontend/parser_call.c
// Function: subtilis_parser_lambda
subtilis_exp_t *subtilis_parser_lambda(subtilis_parser_t *p,
				       subtilis_token_t *t,
				       subtilis_error_t *err)
{
	size_t call_index;
	size_t call_reg;
	subtilis_type_t type;
	subtilis_ir_operand_t op1;
	subtilis_exp_t *e = NULL;

	type.type = SUBTILIS_TYPE_VOID;

	call_index = prv_lambda_internal(p, t, &type, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto on_error;

	op1.label = call_index;
	call_reg = subtilis_ir_section_add_instr2(
	    p->current, SUBTILIS_OP_INSTR_GET_PROC_ADDR, op1, err);

	e = subtilis_exp_new_fn(call_reg, &type, err);

on_error:
	subtilis_type_free(&type);

	return e;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x578, %rsp            # imm = 0x578
movq %rdx, %rbx
movq %rsi, %rbp
movq %rdi, %r15
movl $0x8, %eax
movl %eax, 0x1a0(%rsp)
movq $-0x1, 0x8(%rsp)
movl %eax, 0x2e8(%rsp)
movl %eax, 0x430(%rsp)
movq 0x48(%rdi), %r14
movq 0x68(%rdi), %r13
movq %rdx, %rdi
callq 0x2e218
movq %rax, %r12
movq %rax, 0x68(%r15)
cmpl $0x0, (%rbx)
jne 0x1bde6
movl $0x8, 0x58(%rsp)
movq (%r15), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x12edc
cmpl $0x0, (%rbx)
je 0x1be70
xorl %ebp, %ebp
movq %r12, %rdi
callq 0x2e2c2
movq %rbp, %rdi
callq 0x122c0
leaq 0x2e8(%rsp), %rdi
callq 0x2f56e
leaq 0x430(%rsp), %rdi
callq 0x2f56e
movq %r13, 0x68(%r15)
movq %r14, 0x48(%r15)
cmpl $0x0, (%rbx)
je 0x1be23
xorl %ebx, %ebx
jmp 0x1be4e
movq 0x8(%rsp), %rdx
movq %r14, %rdi
movl $0x9b, %esi
movq %rbx, %rcx
callq 0x2be09
leaq 0x1a0(%rsp), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x2b8eb
movq %rax, %rbx
leaq 0x1a0(%rsp), %rdi
callq 0x2f56e
movq %rbx, %rax
addq $0x578, %rsp            # imm = 0x578
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58(%rsp), %rdx
movq %r15, %rdi
movq %rbp, (%rsp)
movq %rbp, %rsi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x1a764
movq %rax, %rbp
cmpl $0x0, (%rbx)
je 0x1bf02
leaq 0x58(%rsp), %rdi
callq 0x2f56e
movq %rbp, %rdi
callq 0x122c0
xorl %ebp, %ebp
cmpl $0x0, (%rbx)
jne 0x1bde8
subq $0x8, %rsp
leaq 0x438(%rsp), %rdx
leaq 0x2f0(%rsp), %rcx
leaq 0x10(%rsp), %r9
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %r8
pushq %rbx
callq 0x1b1a1
addq $0x10, %rsp
cmpl $0x0, (%rbx)
jne 0x1bde6
leaq 0x1a0(%rsp), %rdi
leaq 0x2e8(%rsp), %rsi
movq %rbx, %rdx
callq 0x2f78a
jmp 0x1bde6
movq %rbp, %rdi
callq 0x120f0
movl 0x58(%rsp), %ecx
cmpl $0x8, %ecx
jg 0x1bf50
cmpl $0x4, %ecx
je 0x1bf1d
cmpl $0x8, %ecx
jne 0x1bf5a
testq %rax, %rax
je 0x1bf64
movq (%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x5771f(%rip), %rax     # 0x73653
leaq 0x57eda(%rip), %rcx     # 0x73e15
movq %rbx, %rdi
movl $0xd, %esi
movq %rbp, %rdx
pushq $0x474                  # imm = 0x474
jmp 0x1c077
cmpl $0x9, %ecx
je 0x1bf64
cmpl $0x16, %ecx
je 0x1bf64
cmpq $0x1, %rax
jne 0x1c04e
movq 0x58(%r15), %rax
cmpq $0x7fffffff, 0x30(%rax) # imm = 0x7FFFFFFF
jb 0x1bf90
leaq 0x576da(%rip), %rdx     # 0x73653
movq %rbx, %rdi
movl $0xf, %esi
movl $0x480, %ecx            # imm = 0x480
callq 0x145a4
jmp 0x1be91
movq %rbp, %rdi
callq 0x122c0
movq 0x58(%r15), %rax
movq 0x30(%rax), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0x30(%rax)
leaq 0x576cc(%rip), %rsi     # 0x7367b
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
xorl %eax, %eax
callq 0x12280
movq %rbp, %rdi
callq 0x120f0
leaq 0x1(%rax), %rdi
callq 0x121d0
testq %rax, %rax
je 0x1c02e
movq %rax, %rbp
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x12070
leaq 0x58(%rsp), %rdx
movq %r15, %rdi
movq (%rsp), %rsi
movq %rbx, %rcx
callq 0x1d45f
cmpl $0x0, (%rbx)
jne 0x1be91
leaq 0x430(%rsp), %rdi
leaq 0x58(%rsp), %rsi
movq %rbx, %rdx
callq 0x2f78a
cmpl $0x0, (%rbx)
jne 0x1be91
leaq 0x58(%rsp), %rdi
callq 0x2f56e
jmp 0x1bea5
leaq 0x5761e(%rip), %rdx     # 0x73653
movq %rbx, %rdi
movl $0x1, %esi
movl $0x488, %ecx            # imm = 0x488
callq 0x145a4
xorl %ebp, %ebp
jmp 0x1be91
movq (%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x575f3(%rip), %rax     # 0x73653
leaq 0x57dae(%rip), %rcx     # 0x73e15
movq %rbx, %rdi
movl $0xd, %esi
movq %rbp, %rdx
pushq $0x47b                  # imm = 0x47B
pushq %rax
callq 0x143da
addq $0x10, %rsp
jmp 0x1be91