// File: /workspace/github_cpp_makefile_star2_O3/joncampbell123[P]haxcc/haxpp.cpp
// Function: parse_expr_ltr(expression&, __gnu_cxx::__normal_iterator<token*, std::vector<token, std::allocator<token>>>&, __gnu_cxx::__normal_iterator<token*, std::vector<token, std::allocator<token>>> const&, unsigned int, tokenlist_entry const*, unsigned long)
expression::node::node_t parse_expr_ltr(expression &expr,token_string::iterator &ti,const token_string::iterator &tie,unsigned int min_prec,const tokenlist_entry *match_token,expression::node::node_t headnode) {
    token::token_t repl;
    unsigned int prec;

    while (ti != tie && match_token_list(repl,*ti,match_token) && (prec=token::precedence(*ti,false)) <= min_prec) {
        const expression::node::node_t opnode = expr.newnode(*(ti++),repl);

        if (ti != tie) {
            expr.getnode(opnode).children.resize(2);
            expr.getnode(opnode).children[0] = headnode;
            expr.getnode(opnode).children[1] = parse_expr(expr,ti,tie,prec-1u);
            headnode = opnode;
        }
        else {
            throw invalid_argument("missing rvalue");
        }
    }

    return headnode;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, 0x4(%rsp)
movq %rsi, 0x10(%rsp)
movq (%rsi), %r14
cmpq (%rdx), %r14
je 0xb9ef
movq %rdx, %r15
movq %rdi, %r12
leaq 0x8(%r8), %rbp
movl (%r8), %ecx
testl %ecx, %ecx
je 0xb9ef
movl (%r14), %eax
movq %rbp, %r13
cmpl %ecx, %eax
je 0xb8cd
movl (%r13), %ecx
addq $0x8, %r13
testl %ecx, %ecx
jne 0xb8b8
jmp 0xb9ef
movq %r9, 0x8(%rsp)
movq %r8, 0x20(%rsp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x291e
cmpl 0x4(%rsp), %eax
ja 0xba04
movl %eax, %ebx
movq %rbp, 0x18(%rsp)
movl -0x4(%r13), %edx
leaq 0x70(%r14), %rax
movq 0x10(%rsp), %rbp
movq %rax, (%rbp)
movq %r12, %rdi
movq %r14, %rsi
callq 0xae2e
movq %rax, %r13
movq (%rbp), %rax
cmpq (%r15), %rax
je 0xba73
movq (%r12), %rax
movq 0x8(%r12), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
movabsq $-0x71c71c71c71c71c7, %rbp # imm = 0x8E38E38E38E38E39
imulq %rbp, %rcx
cmpq %rcx, %r13
jae 0xba0b
leaq (,%r13,8), %r14
addq %r13, %r14
shlq $0x4, %r14
leaq (%rax,%r14), %rdi
addq $0x70, %rdi
movl $0x2, %esi
callq 0xf148
movq (%r12), %rax
movq 0x8(%r12), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
imulq %rbp, %rcx
cmpq %rcx, %r13
jae 0xba29
movq 0x70(%rax,%r14), %rax
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
decl %ebx
movq %r12, %rdi
movq 0x10(%rsp), %rbp
movq %rbp, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq 0xb07c
movq (%r12), %rcx
movq 0x8(%r12), %rdx
subq %rcx, %rdx
sarq $0x4, %rdx
movabsq $-0x71c71c71c71c71c7, %rsi # imm = 0x8E38E38E38E38E39
imulq %rsi, %rdx
cmpq %rdx, %r13
jae 0xba47
movq 0x70(%rcx,%r14), %rcx
movq %rax, 0x8(%rcx)
movq (%rbp), %r14
movq %r13, %r9
cmpq (%r15), %r14
movq 0x20(%rsp), %r8
movq 0x18(%rsp), %rbp
jne 0xb8a7
jmp 0xb9f2
movq %r9, %r13
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rsp), %r13
jmp 0xb9f2
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8d28(%rip), %rsi      # 0x14747
movq %rax, %rdi
callq 0x20b0
jmp 0xba63
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8d0a(%rip), %rsi      # 0x14747
movq %rax, %rdi
callq 0x20b0
jmp 0xba63
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8cec(%rip), %rsi      # 0x14747
movq %rax, %rdi
callq 0x20b0
movq 0xe58e(%rip), %rsi      # 0x19ff8
movq 0xe53f(%rip), %rdx      # 0x19fb0
jmp 0xba9d
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x878d(%rip), %rsi      # 0x14214
movq %rax, %rdi
callq 0x23a0
movq 0xe542(%rip), %rsi      # 0x19fd8
movq 0xe523(%rip), %rdx      # 0x19fc0
movq %rbx, %rdi
callq 0x2330
jmp 0xbaab
jmp 0xbaab
jmp 0xbaab
movq %rax, %r14
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2360