// File: /workspace/github_c_makefile_star2_O1/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 0x2e528
movq %rax, %r12
movq %rax, 0x68(%r15)
cmpl $0x0, (%rbx)
je 0x1bd5c
xorl %ebp, %ebp
jmp 0x1bdb9
movl $0x8, 0x58(%rsp)
movq (%r15), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x12eda
cmpl $0x0, (%rbx)
movq %rbp, (%rsp)
jne 0x1bdae
leaq 0x58(%rsp), %rdx
movq %r15, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x1a77f
movq %rax, %rbp
cmpl $0x0, (%rbx)
je 0x1be95
leaq 0x58(%rsp), %rdi
callq 0x2f843
movq %rbp, %rdi
callq 0x122c0
xorl %ebp, %ebp
cmpl $0x0, (%rbx)
je 0x1be41
movq %r12, %rdi
callq 0x2e5e7
movq %rbp, %rdi
callq 0x122c0
leaq 0x2e8(%rsp), %rdi
callq 0x2f843
leaq 0x430(%rsp), %rdi
callq 0x2f843
movq %r13, 0x68(%r15)
movq %r14, 0x48(%r15)
cmpl $0x0, (%rbx)
je 0x1bdf4
xorl %ebx, %ebx
jmp 0x1be1f
movq 0x8(%rsp), %rdx
movq %r14, %rdi
movl $0x9b, %esi
movq %rbx, %rcx
callq 0x2c189
leaq 0x1a0(%rsp), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x2bc67
movq %rax, %rbx
leaq 0x1a0(%rsp), %rdi
callq 0x2f843
movq %rbx, %rax
addq $0x578, %rsp            # imm = 0x578
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
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 0x1b0b7
addq $0x10, %rsp
cmpl $0x0, (%rbx)
jne 0x1bd58
leaq 0x1a0(%rsp), %rdi
leaq 0x2e8(%rsp), %rsi
movq %rbx, %rdx
callq 0x2fa5f
jmp 0x1bd58
movq %rbp, %rdi
callq 0x120f0
movl 0x58(%rsp), %ecx
cmpl $0x8, %ecx
jg 0x1bee3
cmpl $0x4, %ecx
je 0x1beb0
cmpl $0x8, %ecx
jne 0x1beed
testq %rax, %rax
je 0x1bef7
movq (%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x57759(%rip), %rax     # 0x73620
leaq 0x57f27(%rip), %rcx     # 0x73df5
movq %rbx, %rdi
movl $0xd, %esi
movq %rbp, %rdx
pushq $0x474                  # imm = 0x474
jmp 0x1c00a
cmpl $0x9, %ecx
je 0x1bef7
cmpl $0x16, %ecx
je 0x1bef7
cmpq $0x1, %rax
jne 0x1bfe1
movq 0x58(%r15), %rax
cmpq $0x7fffffff, 0x30(%rax) # imm = 0x7FFFFFFF
jb 0x1bf23
leaq 0x57714(%rip), %rdx     # 0x73620
movq %rbx, %rdi
movl $0xf, %esi
movl $0x480, %ecx            # imm = 0x480
callq 0x145f4
jmp 0x1bd9c
movq %rbp, %rdi
callq 0x122c0
movq 0x58(%r15), %rax
movq 0x30(%rax), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0x30(%rax)
leaq 0x57708(%rip), %rsi     # 0x7364a
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 0x1bfc1
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 0x1d335
cmpl $0x0, (%rbx)
jne 0x1bd9c
leaq 0x430(%rsp), %rdi
leaq 0x58(%rsp), %rsi
movq %rbx, %rdx
callq 0x2fa5f
cmpl $0x0, (%rbx)
jne 0x1bd9c
leaq 0x58(%rsp), %rdi
callq 0x2f843
jmp 0x1bdb0
leaq 0x57658(%rip), %rdx     # 0x73620
movq %rbx, %rdi
movl $0x1, %esi
movl $0x488, %ecx            # imm = 0x488
callq 0x145f4
xorl %ebp, %ebp
jmp 0x1bd9c
movq (%r15), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x5762d(%rip), %rax     # 0x73620
leaq 0x57dfb(%rip), %rcx     # 0x73df5
movq %rbx, %rdi
movl $0xd, %esi
movq %rbp, %rdx
pushq $0x47b                  # imm = 0x47B
pushq %rax
callq 0x1442a
addq $0x10, %rsp
jmp 0x1bd9c