// File: /workspace/github_cpp_makefile_star2_O1/pointwiseproduct[P]untyped_lambda/untyped_lambda.cpp
// Function: parsing_phase::expr(std::unique_ptr<internal_data::expr, std::default_delete<internal_data::expr>>&, __gnu_cxx::__normal_iterator<tokenize_phase2::token_t const*, std::vector<tokenize_phase2::token_t, std::allocator<tokenize_phase2::token_t>>>)
token_seq_type::const_iterator expr(std::unique_ptr<internal_data::expr> &e, token_seq_type::const_iterator first){
        token_seq_type::const_iterator r;
        token_seq_type::const_iterator iter = first;
        internal_data::sequence *seq = nullptr;
        std::unique_ptr<internal_data::expr> seq_expr(nullptr);
        while(true){
            auto case_seq_new = [&](){
                if(!seq){
                    seq_expr.reset(new internal_data::sequence());
                    seq = static_cast<internal_data::sequence*>(seq_expr.get());
                }
                seq->push_back(std::move(e));
            };

            if(iter->kind == kind_t::lambda){
                internal_data::lambda *ptr = new internal_data::lambda();
                iter = lambda(iter, *ptr);
                e.reset(ptr);
                r = iter;
                if(iter == first){
                    break;
                }

                if(iter->kind == kind_t::dot){
                    ++iter;
                    if(iter->kind == kind_t::end){
                        ++r;
                    }
                    if(seq){
                        seq->push_back(std::move(e));
                    }
                    break;
                }
                case_seq_new();
                if(iter->kind == kind_t::rparen){
                    break;
                }
            }else if(iter->kind == kind_t::variable){
                internal_data::variable *ptr = new internal_data::variable();
                iter = variable(iter, *ptr);
                e.reset(ptr);
                r = iter;
                if(iter == first){
                    break;
                }

                if(iter->kind == kind_t::dot){
                    ++iter;
                    if(iter->kind == kind_t::end){
                        ++r;
                    }
                    if(seq){
                        seq->push_back(std::move(e));
                    }
                    break;
                }
                case_seq_new();
                if(iter->kind == kind_t::rparen){
                    break;
                }
            }else if(iter->kind == kind_t::lparen){
                if(iter->kind == kind_t::lparen){
                    ++iter;
                    std::unique_ptr<internal_data::expr> f;
                    token_seq_type::const_iterator s = expr(f, iter);
                    if(s != first){
                        iter = s;
                        if(iter->kind == kind_t::rparen){
                            ++s;
                            ++iter;
                            e.swap(f);
                            r = s;
                        }else{
                            throw parsing_error(first->line);
                        }
                    }
                }

                if(iter->kind == kind_t::dot){
                    ++iter;
                    if(iter->kind == kind_t::end){
                        ++r;
                    }
                    if(seq){
                        seq->push_back(std::move(e));
                    }
                    break;
                }
                case_seq_new();
                if(iter->kind == kind_t::rparen){
                    break;
                }
            }else if(iter->kind != kind_t::dot){
                return first;
            }
        }
        if(seq){
            if(seq->vec.size() != 1){
                e.swap(seq_expr);
            }else{
                e.swap(seq->vec[0]);
            }
        }
        return r;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq %rdi, 0x10(%rsp)
xorl %ebx, %ebx
xorl %r13d, %r13d
movq %rsi, 0x18(%rsp)
xorl %r12d, %r12d
movl (%r15), %eax
movl $0x1, %ebp
cmpq $0x4, %rax
ja 0x4a3c
leaq 0x5872(%rip), %rcx      # 0xa044
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x28, %edi
callq 0x3220
movq %rax, %rbp
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
xorl %ecx, %ecx
movq %rcx, 0x20(%rax)
leaq 0xa499(%rip), %rax      # 0xec98
movq %rax, (%rbp)
movq %rbp, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbp)
movq %rcx, 0x10(%rbp)
movb $0x0, 0x18(%rbp)
movq %r15, %rdi
movq %rbp, %rsi
callq 0x503e
movq %rax, %r12
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq %rbp, (%rax)
testq %rdi, %rdi
je 0x483a
movq (%rdi), %rax
callq *0x38(%rax)
movl $0x3, %ebp
cmpq 0x18(%rsp), %r12
je 0x4a47
cmpl $0x3, (%r12)
jne 0x4ae4
cmpl $0x6, 0x28(%r12)
leaq 0x28(%r12), %r15
cmoveq %r15, %r12
testq %rbx, %rbx
je 0x4bf7
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x28(%rsp)
movq $0x0, (%rcx)
movq %rbx, %r14
leaq 0x8(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x83da
movq %r13, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x48a5
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x28(%rsp)
jmp 0x4bfd
movq %rbx, %r14
movq %r13, %rbx
jmp 0x4c03
movl $0x28, %edi
callq 0x3220
movq %rax, %rbp
movq %rax, %rdi
callq 0x671a
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4f2e
movq %rax, %r12
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq %rbp, (%rax)
testq %rdi, %rdi
je 0x48f7
movq (%rdi), %rax
callq *0x38(%rax)
movl $0x3, %ebp
cmpq 0x18(%rsp), %r12
je 0x4a47
cmpl $0x3, (%r12)
jne 0x4b66
cmpl $0x6, 0x28(%r12)
leaq 0x28(%r12), %r15
cmoveq %r15, %r12
testq %rbx, %rbx
je 0x4bf7
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x30(%rsp)
movq $0x0, (%rcx)
leaq 0x8(%rbx), %rdi
leaq 0x30(%rsp), %rsi
callq 0x83da
movq %rbx, %r14
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x495f
movq (%rdi), %rax
callq *0x38(%rax)
movq %r13, %rbx
movq $0x0, 0x30(%rsp)
jmp 0x4bfd
addq $0x28, %r15
movq $0x0, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x4796
cmpq 0x18(%rsp), %rax
je 0x49b9
cmpl $0x5, (%rax)
jne 0x4c7b
addq $0x28, %rax
movq 0x10(%rsp), %rsi
movq (%rsi), %rcx
movq 0x8(%rsp), %rdx
movq %rdx, (%rsi)
movq %rcx, 0x8(%rsp)
movq %rax, %r15
movq %rax, %r12
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x49c9
movq (%rdi), %rax
callq *0x38(%rax)
cmpl $0x3, (%r15)
jne 0x4a54
movq %rbx, %rcx
movq %r13, %rbx
leaq 0x28(%r15), %r13
leaq 0x28(%r12), %rax
cmpl $0x6, 0x28(%r15)
cmoveq %rax, %r12
movl $0x3, %ebp
testq %rcx, %rcx
je 0x4c1b
movq 0x10(%rsp), %rdx
movq (%rdx), %rax
movq %rax, 0x20(%rsp)
movq $0x0, (%rdx)
movq %rcx, %r14
leaq 0x8(%rcx), %rdi
leaq 0x20(%rsp), %rsi
callq 0x83da
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4a2e
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x20(%rsp)
jmp 0x4c08
movq %rbx, %r14
movq %r13, %rbx
jmp 0x4c05
movq %rbx, %r14
movq %r13, %rbx
xorl %eax, %eax
jmp 0x4bf2
testq %rbx, %rbx
jne 0x4a98
movl $0x20, %edi
callq 0x3220
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
leaq 0xa1a9(%rip), %rax      # 0xec20
movq %rax, (%rbx)
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
testq %r13, %r13
je 0x4a95
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
movq %rbx, %r13
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x8(%rsp)
movq $0x0, (%rcx)
movq %rbx, %r14
leaq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x83da
movq %r13, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4ad0
movq (%rdi), %rax
callq *0x38(%rax)
movl $0x3, %ebp
cmpl $0x5, (%r15)
jne 0x4c03
jmp 0x4c05
testq %rbx, %rbx
jne 0x4b28
movl $0x20, %edi
callq 0x3220
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
leaq 0xa119(%rip), %rax      # 0xec20
movq %rax, (%rbx)
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
testq %r13, %r13
je 0x4b25
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
movq %rbx, %r13
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x8(%rsp)
movq $0x0, (%rcx)
movq %rbx, %r14
leaq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x83da
movq %r13, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4be2
movq (%rdi), %rax
callq *0x38(%rax)
jmp 0x4be2
testq %rbx, %rbx
jne 0x4baa
movl $0x20, %edi
callq 0x3220
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
leaq 0xa097(%rip), %rax      # 0xec20
movq %rax, (%rbx)
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
testq %r13, %r13
je 0x4ba7
movq (%r13), %rax
movq %r13, %rdi
callq *0x38(%rax)
movq %rbx, %r13
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x8(%rsp)
movq $0x0, (%rcx)
leaq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x83da
movq %rbx, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4bdf
movq (%rdi), %rax
callq *0x38(%rax)
movq %r13, %rbx
xorl %ecx, %ecx
cmpl $0x5, (%r12)
setne %al
sete %cl
leal (%rcx,%rcx,2), %ebp
movq %r12, %r15
jmp 0x4bff
movq %rbx, %r14
movq %r13, %rbx
xorl %eax, %eax
testb %al, %al
je 0x4c05
xorl %ebp, %ebp
movq %r15, %r13
movq %r13, %r15
testl %ebp, %ebp
movq %rbx, %r13
movq %r14, %rbx
je 0x47b9
jmp 0x4c20
movq %rcx, %r14
jmp 0x4c08
cmpl $0x3, %ebp
jne 0x4c51
testq %rbx, %rbx
je 0x4c4c
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rax, %rcx
movq 0x10(%rsp), %rdx
movq (%rdx), %rdi
cmpq $0x8, %rcx
jne 0x4c5b
movq (%rax), %rcx
movq %rcx, (%rdx)
movq %rdi, (%rax)
movq %r13, %rdi
jmp 0x4c5e
movq %r13, %rdi
movq 0x18(%rsp), %r12
jmp 0x4c5e
movq %r13, (%rdx)
testq %rdi, %rdi
je 0x4c69
movq (%rdi), %rax
callq *0x38(%rax)
movq %r12, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rbx
movl $0x10, %edi
callq 0x3130
movq %rax, %r14
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rsi
movq %r14, %rdi
callq 0x654c
leaq 0x9e65(%rip), %rsi      # 0xeb08
movq 0xa316(%rip), %rdx      # 0xefc0
movq %r14, %rdi
callq 0x3350
jmp 0x4d7f
movq %r13, %rbx
movq %rax, %r15
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x4ccd
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x28(%rsp)
jmp 0x4d85
movq %r13, %rbx
movq %rax, %r15
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x4cf1
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x30(%rsp)
jmp 0x4d85
jmp 0x4d30
jmp 0x4d30
movq %rax, %r15
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4d16
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x20(%rsp)
jmp 0x4d85
jmp 0x4d68
movq %rax, %r15
movq %r14, %rdi
callq 0x31a0
jmp 0x4d6b
movq %r13, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4d46
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x4d85
jmp 0x4d7f
jmp 0x4d7f
movq %r13, %rbx
movq %rax, %r15
movq %rbp, %rdi
callq 0x31f0
jmp 0x4d85
movq %r13, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4d85
movq (%rdi), %rax
callq *0x38(%rax)
jmp 0x4d85
jmp 0x4d7f
movq %r13, %rbx
movq %rax, %r15
testq %rbx, %rbx
je 0x4d93
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
movq %r15, %rdi
callq 0x3360