// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x8
popq %rax
movl %eax, 0x1a0(%rsp)
orq $-0x1, 0x8(%rsp)
movl %eax, 0x2e8(%rsp)
movl %eax, 0x430(%rsp)
movq 0x48(%rdi), %r14
movq 0x68(%rdi), %r13
movq %rdx, %rdi
callq 0x2ca24
movq %rax, %r12
movq %rax, 0x68(%r15)
cmpl $0x0, (%rbx)
jne 0x1b851
movl $0x8, 0x58(%rsp)
movq (%r15), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x12e0e
cmpl $0x0, (%rbx)
je 0x1b8db
xorl %ebp, %ebp
movq %r12, %rdi
callq 0x2cac8
movq %rbp, %rdi
callq 0x122c0
leaq 0x2e8(%rsp), %rdi
callq 0x2dc7c
leaq 0x430(%rsp), %rdi
callq 0x2dc7c
movq %r13, 0x68(%r15)
movq %r14, 0x48(%r15)
cmpl $0x0, (%rbx)
je 0x1b88e
xorl %ebx, %ebx
jmp 0x1b8b9
movq 0x8(%rsp), %rdx
movq %r14, %rdi
movl $0x9b, %esi
movq %rbx, %rcx
callq 0x2a981
leaq 0x1a0(%rsp), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x2a499
movq %rax, %rbx
leaq 0x1a0(%rsp), %rdi
callq 0x2dc7c
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 0x1a3cb
movq %rax, %rbp
cmpl $0x0, (%rbx)
je 0x1b96d
leaq 0x58(%rsp), %rdi
callq 0x2dc7c
movq %rbp, %rdi
callq 0x122c0
xorl %ebp, %ebp
cmpl $0x0, (%rbx)
jne 0x1b853
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 0x1a849
addq $0x10, %rsp
cmpl $0x0, (%rbx)
jne 0x1b851
leaq 0x1a0(%rsp), %rdi
leaq 0x2e8(%rsp), %rsi
movq %rbx, %rdx
callq 0x2de8a
jmp 0x1b851
movq %rbp, %rdi
callq 0x120f0
movl 0x58(%rsp), %ecx
cmpl $0x4, %ecx
je 0x1b98d
cmpl $0x16, %ecx
je 0x1b9c8
cmpl $0x9, %ecx
je 0x1b9c8
cmpl $0x8, %ecx
jne 0x1b9be
testq %rax, %rax
je 0x1b9c8
movq (%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x51c6c(%rip), %rax     # 0x6d610
leaq 0x5241a(%rip), %rcx     # 0x6ddc5
pushq $0xd
popq %rsi
movq %rbx, %rdi
movq %rbp, %rdx
pushq $0x474                  # imm = 0x474
jmp 0x1bad5
cmpq $0x1, %rax
jne 0x1baae
movq 0x58(%r15), %rax
cmpq $0x7fffffff, 0x30(%rax) # imm = 0x7FFFFFFF
jb 0x1b9f2
leaq 0x51c33(%rip), %rdx     # 0x6d610
pushq $0xf
popq %rsi
movq %rbx, %rdi
movl $0x480, %ecx            # imm = 0x480
callq 0x1429e
jmp 0x1b8fc
movq %rbp, %rdi
callq 0x122c0
movq 0x58(%r15), %rax
movq 0x30(%rax), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0x30(%rax)
leaq 0x51c27(%rip), %rsi     # 0x6d638
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 0x1ba90
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 0x1ccc5
cmpl $0x0, (%rbx)
jne 0x1b8fc
leaq 0x430(%rsp), %rdi
leaq 0x58(%rsp), %rsi
movq %rbx, %rdx
callq 0x2de8a
cmpl $0x0, (%rbx)
jne 0x1b8fc
leaq 0x58(%rsp), %rdi
callq 0x2dc7c
jmp 0x1b910
leaq 0x51b79(%rip), %rdx     # 0x6d610
pushq $0x1
popq %rsi
movq %rbx, %rdi
movl $0x488, %ecx            # imm = 0x488
callq 0x1429e
xorl %ebp, %ebp
jmp 0x1b8fc
movq (%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x51b50(%rip), %rax     # 0x6d610
leaq 0x522fe(%rip), %rcx     # 0x6ddc5
pushq $0xd
popq %rsi
movq %rbx, %rdi
movq %rbp, %rdx
pushq $0x47b                  # imm = 0x47B
pushq %rax
callq 0x140cd
popq %rax
popq %rcx
jmp 0x1b8fc