// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c868
cmpb $0x0, 0x30(%r12)
je 0x20ee3
leaq 0x220(%rsp), %rdi
callq 0x2494c
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 0xad30
movq 0x158(%rsp), %rdx
addq 0x148(%rsp), %rdx
movq %rdx, (%r14)
leaq 0x1e8(%rsp), %rdi
movq %r15, %rsi
movl $0xa, %ecx
callq 0x1c868
cmpb $0x0, 0x218(%rsp)
je 0x20f00
leaq 0x1e8(%rsp), %rdi
callq 0x2494c
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 0xad30
movq 0x128(%rsp), %rdx
addq 0x118(%rsp), %rdx
movq %rdx, (%r14)
leaq 0x1b0(%rsp), %rdi
movq %r15, %rsi
movl $0xd, %ecx
callq 0x1c868
cmpb $0x0, 0x1e0(%rsp)
je 0x20f1d
leaq 0x1b0(%rsp), %rdi
callq 0x2494c
movups (%rax), %xmm0
leaq 0x80(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x90(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xad30
movq 0x88(%rsp), %rax
addq 0x78(%rsp), %rax
movq %rax, (%r14)
leaq 0xd8(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x21367
movb 0x108(%rsp), %al
testb %al, %al
je 0x20f3a
leaq 0xd8(%rsp), %rdi
callq 0x24ee2
movq (%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x20fa6
movq 0x420de(%rip), %rcx     # 0x62fb0
cmpb $0x0, (%rcx)
je 0x20fa2
incl 0x8(%rax)
jmp 0x20fa6
leaq 0x220(%rsp), %rdi
callq 0x248f2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24e94
jmp 0x21214
leaq 0x1e8(%rsp), %rdi
callq 0x248f2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24e94
jmp 0x211ea
leaq 0x1b0(%rsp), %rdi
callq 0x248f2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24e94
jmp 0x211c0
movb %al, 0x30(%rbx)
leaq 0xf8(%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 0x20f6f
movq %rdx, 0x10(%rbx)
movq 0xf8(%rsp), %rcx
movq %rcx, 0x20(%rbx)
jmp 0x20f75
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0xf0(%rsp), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0xe8(%rsp)
movq $0x0, 0xf0(%rsp)
movb $0x0, 0xf8(%rsp)
jmp 0x2118e
lock
incl 0x8(%rax)
movq (%r14), %rdx
leaq 0x178(%rsp), %rdi
movq %r15, %rsi
movl $0x2, %ecx
callq 0x1c868
cmpb $0x0, 0x1a8(%rsp)
je 0x21068
leaq 0x178(%rsp), %rdi
callq 0x2494c
movups (%rax), %xmm0
leaq 0x50(%rsp), %rdi
movaps %xmm0, -0x10(%rdi)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
callq 0xad30
movq 0x58(%rsp), %rax
addq 0x48(%rsp), %rax
movq %rax, (%r14)
leaq 0xa0(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x21367
movb 0xd0(%rsp), %al
testb %al, %al
je 0x21085
leaq 0xa0(%rsp), %rdi
callq 0x24ee2
movq (%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x210ee
movq 0x41f59(%rip), %rcx     # 0x62fb0
cmpb $0x0, (%rcx)
je 0x210ea
incl 0x8(%rax)
jmp 0x210ee
leaq 0x178(%rsp), %rdi
callq 0x248f2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x24e94
jmp 0x21172
movb %al, 0x30(%rbx)
leaq 0xc0(%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 0x210ba
movq %rdx, 0x10(%rbx)
movq 0xc0(%rsp), %rcx
movq %rcx, 0x20(%rbx)
jmp 0x210c0
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0xb8(%rsp), %rcx
movq %rcx, 0x18(%rbx)
movq %rax, 0xb0(%rsp)
movq $0x0, 0xb8(%rsp)
movb $0x0, 0xc0(%rsp)
jmp 0x21149
lock
incl 0x8(%rax)
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x30(%rsp), %r8
leaq 0x20(%rsp), %r9
movq %r12, %rcx
callq 0x256a8
movaps 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x10(%rsp)
movb $0x1, 0x30(%rbx)
movups %xmm0, (%rbx)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x2113a
callq 0xaa12
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x21149
callq 0xaa12
leaq 0xa0(%rsp), %rdi
callq 0x1a10e
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x21172
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x178(%rsp), %rdi
callq 0x28218
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2118e
callq 0xaa12
leaq 0xd8(%rsp), %rdi
callq 0x1a10e
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x211c0
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x1b0(%rsp), %rdi
callq 0x28218
movq 0x120(%rsp), %rdi
cmpq %rbp, %rdi
je 0x211ea
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x1e8(%rsp), %rdi
callq 0x28218
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0x21214
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x92e0
leaq 0x220(%rsp), %rdi
callq 0x28218
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 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2124d
callq 0xaa12
jmp 0x2124d
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x1a10e
jmp 0x2125f
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x21282
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x21282
jmp 0x2127f
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x28218
jmp 0x21294
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x212a8
callq 0xaa12
jmp 0x212a8
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x1a10e
jmp 0x212ba
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x212e6
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x212e6
jmp 0x212e3
movq %rax, %rbx
leaq 0x1b0(%rsp), %rdi
callq 0x28218
jmp 0x212f8
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2131c
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x2131c
jmp 0x21319
movq %rax, %rbx
leaq 0x1e8(%rsp), %rdi
callq 0x28218
movq 0x150(%rsp), %rdi
cmpq %r13, %rdi
je 0x21352
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x92e0
jmp 0x21352
movq %rax, %rbx
jmp 0x21329
jmp 0x2134f
movq %rax, %rbx
leaq 0x220(%rsp), %rdi
callq 0x28218
movq %rbx, %rdi
callq 0x94e0