// File: /workspace/github_cpp_makefile_star2_O3/pfnet-research[P]pml/src/parser.cpp
// Function: parser::let_expr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long&)
expr_result_t let_expr(std::string const& input, size_t& pos) {

    EXPECT(let_token, Let);
    EXPECT(var_token, Ident);
    EXPECT(eq_token, Eq);

    auto init_result = expr(input, pos);
    if (init_result.is_error())
        return init_result;
    auto init = init_result.ok();

    EXPECT(in_token, In);

    auto body_result = expr(input, pos);
    if (body_result.is_error())
        return body_result;
    auto body = body_result.ok();

    return expr_result_t::ok(make<ast::let_expr_t>(
                var_token.lexime, init, body
            ));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rdx
leaq 0x220(%rsp), %r12
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x1c56e
cmpb $0x0, 0x30(%r12)
je 0x20cfb
leaq 0x220(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x150(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x160(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x158(%rsp), %rdx
addq 0x148(%rsp), %rdx
movq %rdx, (%r14)
leaq 0x1e8(%rsp), %rdi
movq %r15, %rsi
movl $0xa, %ecx
callq 0x1c56e
cmpb $0x0, 0x218(%rsp)
je 0x20d18
leaq 0x1e8(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x120(%rsp), %r12
movaps %xmm0, -0x10(%r12)
leaq 0x130(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xac68
movq 0x128(%rsp), %rdx
addq 0x118(%rsp), %rdx
movq %rdx, (%r14)
leaq 0x1b0(%rsp), %rdi
movq %r15, %rsi
movl $0xd, %ecx
callq 0x1c56e
cmpb $0x0, 0x1e0(%rsp)
je 0x20d35
leaq 0x1b0(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x70(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x78(%rsp), %rax
addq 0x68(%rsp), %rax
movq %rax, (%r14)
leaq 0xc8(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2120b
movb 0xf8(%rsp), %al
testb %al, %al
je 0x20d52
leaq 0xc8(%rsp), %rdi
callq 0x24dac
movq (%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x20dbe
movq 0x412c6(%rip), %rcx     # 0x61fb0
cmpb $0x0, (%rcx)
je 0x20dba
incl 0x8(%rax)
jmp 0x20dbe
leaq 0x220(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24d5e
jmp 0x21057
leaq 0x1e8(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24d5e
jmp 0x21019
leaq 0x1b0(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24d5e
jmp 0x20fdb
movb %al, 0x30(%rbx)
leaq 0xe8(%rsp), %rax
movups -0x20(%rax), %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rbx)
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x20d87
movq %rdx, 0x10(%rbx)
movq 0xe8(%rsp), %rcx
movq %rcx, 0x20(%rbx)
jmp 0x20d8d
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0xe0(%rsp), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0xd8(%rsp)
movq $0x0, 0xe0(%rsp)
movb $0x0, 0xe8(%rsp)
jmp 0x20fac
lock
incl 0x8(%rax)
movq (%r14), %rdx
leaq 0x178(%rsp), %rdi
movq %r15, %rsi
movl $0x2, %ecx
callq 0x1c56e
cmpb $0x0, 0x1a8(%rsp)
je 0x20e80
leaq 0x178(%rsp), %rdi
callq 0x24814
movups (%rax), %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x50(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xac68
movq 0x48(%rsp), %rax
addq 0x38(%rsp), %rax
movq %rax, (%r14)
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2120b
movb 0xc0(%rsp), %al
testb %al, %al
je 0x20e9d
leaq 0x90(%rsp), %rdi
callq 0x24dac
movq (%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x20f06
movq 0x41141(%rip), %rcx     # 0x61fb0
cmpb $0x0, (%rcx)
je 0x20f02
incl 0x8(%rax)
jmp 0x20f06
leaq 0x178(%rsp), %rdi
callq 0x247ba
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24d5e
jmp 0x20f7c
movb %al, 0x30(%rbx)
leaq 0xb0(%rsp), %rax
movups -0x20(%rax), %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rbx), %rcx
movq %rcx, 0x10(%rbx)
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x20ed2
movq %rdx, 0x10(%rbx)
movq 0xb0(%rsp), %rcx
movq %rcx, 0x20(%rbx)
jmp 0x20ed8
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0xa8(%rsp), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0xa0(%rsp)
movq $0x0, 0xa8(%rsp)
movb $0x0, 0xb0(%rsp)
jmp 0x20f53
lock
incl 0x8(%rax)
leaq 0x108(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x100(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x20(%rsp), %r8
leaq 0x10(%rsp), %r9
movq %r12, %rcx
callq 0x25560
movb $0x1, 0x30(%rbx)
movaps 0x100(%rsp), %xmm0
movups %xmm0, (%rbx)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x20f53
callq 0xa946
leaq 0x90(%rsp), %rdi
callq 0x19f1e
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x20f7c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x198(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20f9d
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x20fac
callq 0xa946
leaq 0xc8(%rsp), %rdi
callq 0x19f1e
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x20fdb
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x1d0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20ffc
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x120(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21019
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x208(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2103a
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x92e0
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0x21057
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x240(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21078
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x210a4
callq 0xa946
jmp 0x210a4
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x19f1e
jmp 0x210b6
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x210d9
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x210d9
jmp 0x210d6
movq %rax, %rbx
leaq 0x198(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x210ff
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x210ff
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x21113
callq 0xa946
jmp 0x21113
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x19f1e
jmp 0x21125
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x2114e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2114e
jmp 0x2114b
movq %rax, %rbx
leaq 0x1d0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21174
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x21174
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21198
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x21198
jmp 0x21195
movq %rax, %rbx
leaq 0x208(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x211be
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x211be
movq %rax, %rbx
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0x211e2
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x211e2
jmp 0x211df
movq %rax, %rbx
leaq 0x240(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21203
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x92e0
movq %rbx, %rdi
callq 0x94e0