// File: /workspace/github_cpp_makefile_star2_O3/joncampbell123[P]haxcc/haxpp.cpp
// Function: parse_expr_rtl(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_rtl(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);
            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 0xb626
movq %rdx, %r15
movq %rdi, %r12
leaq 0x8(%r8), %rbp
movl (%r8), %ecx
testl %ecx, %ecx
je 0xb626
movl (%r14), %eax
movq %rbp, %r13
cmpl %ecx, %eax
je 0xb506
movl (%r13), %ecx
addq $0x8, %r13
testl %ecx, %ecx
jne 0xb4f1
jmp 0xb626
movq %r9, 0x8(%rsp)
movq %r8, 0x20(%rsp)
movq %r14, %rdi
xorl %esi, %esi
callq 0x291e
cmpl 0x4(%rsp), %eax
ja 0xb63b
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 0xb6aa
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 0xb642
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 0xb660
movq 0x70(%rax,%r14), %rax
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
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 0xb67e
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 0xb4e0
jmp 0xb629
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 0xb629
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x90f1(%rip), %rsi      # 0x14747
movq %rax, %rdi
callq 0x20b0
jmp 0xb69a
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x90d3(%rip), %rsi      # 0x14747
movq %rax, %rdi
callq 0x20b0
jmp 0xb69a
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x90b5(%rip), %rsi      # 0x14747
movq %rax, %rdi
callq 0x20b0
movq 0xe957(%rip), %rsi      # 0x19ff8
movq 0xe908(%rip), %rdx      # 0x19fb0
jmp 0xb6d4
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8b56(%rip), %rsi      # 0x14214
movq %rax, %rdi
callq 0x23a0
movq 0xe90b(%rip), %rsi      # 0x19fd8
movq 0xe8ec(%rip), %rdx      # 0x19fc0
movq %rbx, %rdi
callq 0x2330
jmp 0xb6e2
jmp 0xb6e2
jmp 0xb6e2
movq %rax, %r14
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2360