// File: /workspace/github_cpp_makefile_star2_O3/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 $0x28, %rsp
movq %rsi, %r12
movq %rdi, %r14
movl (%rsi), %eax
xorl %r15d, %r15d
leaq 0x58e5(%rip), %rbx      # 0xa044
movq $0x0, 0x8(%rsp)
movq %rsi, %rbp
xorl %r13d, %r13d
cmpl $0x4, %eax
ja 0x4a3a
movl %eax, %ecx
movslq (%rbx,%rcx,4), %rcx
addq %rbx, %rcx
jmpq *%rcx
movl $0x28, %edi
callq 0x3220
movq %rax, %r13
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
leaq 0xa4f3(%rip), %rax      # 0xec98
movq %rax, (%r13)
movq %r13, %rax
addq $0x18, %rax
movq %rax, 0x8(%r13)
movb $0x0, 0x18(%r13)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4ec7
movq %rax, %rbp
movq (%r14), %rdi
movq %r13, (%r14)
testq %rdi, %rdi
je 0x47d8
movq (%rdi), %rax
callq *0x38(%rax)
cmpq %r12, %rbp
je 0x4a00
cmpl $0x3, (%rbp)
je 0x4aa6
testq %r15, %r15
jne 0x482c
movl $0x20, %edi
callq 0x3220
movq %rax, %r15
leaq 0xa41c(%rip), %rax      # 0xec20
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movq $0x0, 0x18(%r15)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4827
movq (%rdi), %rax
callq *0x38(%rax)
movq %r15, 0x8(%rsp)
movq (%r14), %rax
movq %rax, (%rsp)
movq $0x0, (%r14)
leaq 0x8(%r15), %rdi
movq %rsp, %rsi
callq 0x8210
jmp 0x4933
addq $0x28, %rbp
movq $0x0, (%rsp)
movq %rsp, %rdi
movq %rbp, %rsi
callq 0x473f
cmpq %r12, %rax
je 0x4964
cmpl $0x5, (%rax)
jne 0x4b3e
addq $0x28, %rax
movq (%r14), %rdi
movq (%rsp), %rcx
movq %rcx, (%r14)
movq %rdi, (%rsp)
movq %rax, %rbp
movq %rax, %r13
jmp 0x4968
movl $0x28, %edi
callq 0x3220
movq %rax, %r13
movq %rax, %rdi
callq 0x654a
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4db7
movq %rax, %rbp
movq (%r14), %rdi
movq %r13, (%r14)
testq %rdi, %rdi
je 0x48c5
movq (%rdi), %rax
callq *0x38(%rax)
cmpq %r12, %rbp
je 0x4a00
cmpl $0x3, (%rbp)
je 0x4af0
testq %r15, %r15
jne 0x4919
movl $0x20, %edi
callq 0x3220
movq %rax, %r15
leaq 0xa32f(%rip), %rax      # 0xec20
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movq $0x0, 0x18(%r15)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4914
movq (%rdi), %rax
callq *0x38(%rax)
movq %r15, 0x8(%rsp)
movq (%r14), %rax
movq %rax, (%rsp)
movq $0x0, (%r14)
leaq 0x8(%r15), %rdi
movq %rsp, %rsi
callq 0x8210
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4942
movq (%rdi), %rax
callq *0x38(%rax)
movl (%rbp), %eax
cmpl $0x5, %eax
jne 0x495c
movl $0x3, %ecx
movl $0x5, %eax
movq %rbp, %r13
jmp 0x49f1
movq %rbp, %r13
jmp 0x49ef
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4973
movq (%rdi), %rax
callq *0x38(%rax)
cmpl $0x3, (%rbp)
je 0x4a5c
testq %r15, %r15
jne 0x49be
movl $0x20, %edi
callq 0x3220
movq %rax, %r15
leaq 0xa28a(%rip), %rax      # 0xec20
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movq $0x0, 0x18(%r15)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x49b9
movq (%rdi), %rax
callq *0x38(%rax)
movq %r15, 0x8(%rsp)
movq (%r14), %rax
movq %rax, (%rsp)
movq $0x0, (%r14)
leaq 0x8(%r15), %rdi
movq %rsp, %rsi
callq 0x8210
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x49e7
movq (%rdi), %rax
callq *0x38(%rax)
movl (%rbp), %eax
cmpl $0x5, %eax
je 0x4a0b
xorl %ecx, %ecx
testl %ecx, %ecx
je 0x476e
cmpl $0x3, %ecx
je 0x4a03
jmp 0x4a3a
movq %rbp, %r13
movq %r13, %r12
testq %r15, %r15
je 0x4a3a
movq 0x8(%r15), %rax
movq 0x10(%r15), %rdx
subq %rax, %rdx
movq (%r14), %rcx
cmpq $0x8, %rdx
jne 0x4a2a
movq (%rax), %rdx
movq %rdx, (%r14)
movq %rcx, (%rax)
jmp 0x4a37
movq 0x8(%rsp), %rax
movq %rax, (%r14)
movq %rcx, 0x8(%rsp)
movq %r13, %r12
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4a4a
movq (%rdi), %rax
callq *0x38(%rax)
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x6, 0x28(%rbp)
leaq 0x28(%r13), %rax
cmoveq %rax, %r13
testq %r15, %r15
je 0x4a37
movq (%r14), %rax
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq $0x0, (%r14)
leaq 0x8(%r15), %rdi
callq 0x8210
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4a98
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x10(%rsp)
jmp 0x4a0b
cmpl $0x6, 0x28(%rbp)
leaq 0x28(%rbp), %r13
cmovneq %rbp, %r13
testq %r15, %r15
je 0x4a37
movq (%r14), %rax
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movq $0x0, (%r14)
leaq 0x8(%r15), %rdi
callq 0x8210
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x4ae2
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x18(%rsp)
jmp 0x4a0b
cmpl $0x6, 0x28(%rbp)
leaq 0x28(%rbp), %r13
cmovneq %rbp, %r13
testq %r15, %r15
je 0x4a37
movq (%r14), %rax
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq $0x0, (%r14)
leaq 0x8(%r15), %rdi
callq 0x8210
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4b30
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x20(%rsp)
jmp 0x4a0b
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
movq 0x18(%r12), %rsi
movq %rax, %rdi
callq 0x637c
leaq 0x9fa9(%rip), %rsi      # 0xeb08
movq 0xa45a(%rip), %rdx      # 0xefc0
movq %r15, %rdi
callq 0x3350
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4b81
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x20(%rsp)
jmp 0x4c09
movq %rax, %r14
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x4b9f
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x18(%rsp)
jmp 0x4c09
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4bbd
movq (%rdi), %rax
callq *0x38(%rax)
movq $0x0, 0x10(%rsp)
jmp 0x4c09
jmp 0x4bdf
movq %rax, %r14
movq %r15, %rdi
callq 0x31a0
jmp 0x4be2
jmp 0x4c06
jmp 0x4bdf
jmp 0x4bdf
jmp 0x4bdf
movq %rax, %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4c09
movq (%rdi), %rax
callq *0x38(%rax)
jmp 0x4c09
jmp 0x4c06
movq %rax, %r14
movq %r13, %rdi
callq 0x31f0
jmp 0x4c09
jmp 0x4c06
jmp 0x4c06
movq %rax, %r14
cmpq $0x0, 0x8(%rsp)
je 0x4c1c
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq %r14, %rdi
callq 0x3360