// File: /workspace/github_cpp_makefile_star2_O1/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
movq %r9, %r14
movl %ecx, 0x4(%rsp)
movq (%rsi), %rbx
cmpq (%rdx), %rbx
je 0xb6a0
movq %rsi, %r13
movq %rdi, %r15
movabsq $-0x71c71c71c71c71c7, %r12 # imm = 0x8E38E38E38E38E39
movq %r8, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movl (%r8), %r9d
testl %r9d, %r9d
setne %al
je 0xb586
movl (%rbx), %ecx
movb $0x1, %al
movq %r8, %rdi
cmpl %r9d, %ecx
je 0xb57f
movl 0x8(%rdi), %r9d
testl %r9d, %r9d
setne %al
je 0xb586
addq $0x8, %rdi
jmp 0xb568
movl 0x4(%rdi), %ecx
movl %ecx, 0x8(%rsp)
testb %al, %al
je 0xb6a0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x291e
cmpl 0x4(%rsp), %eax
ja 0xb6a0
movl %eax, 0xc(%rsp)
movq %r14, 0x20(%rsp)
movq %r12, %r14
leaq 0x70(%rbx), %rax
movq %rax, (%r13)
movq %r15, %rdi
movq %rbx, %rsi
movl 0x8(%rsp), %edx
callq 0xae96
movq %rax, %rbp
movq (%r13), %rax
movq 0x10(%rsp), %rcx
cmpq (%rcx), %rax
je 0xb71d
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
imulq %r14, %rcx
cmpq %rcx, %rbp
jae 0xb6b5
leaq (,%rbp,8), %rbx
addq %rbp, %rbx
shlq $0x4, %rbx
leaq (%rax,%rbx), %rdi
addq $0x70, %rdi
movl $0x2, %esi
callq 0xf1be
movq (%r15), %rax
movq 0x8(%r15), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
imulq %r14, %rcx
cmpq %rcx, %rbp
jae 0xb6d3
movq 0x70(%rax,%rbx), %rax
movq 0x20(%rsp), %rcx
movq %rcx, (%rax)
movq %r15, %rdi
movq %r15, %r12
movq %r13, %r15
movq %r13, %rsi
movq 0x10(%rsp), %r13
movq %r13, %rdx
movl 0xc(%rsp), %ecx
callq 0xb0e4
movq (%r12), %rcx
movq 0x8(%r12), %rdx
subq %rcx, %rdx
sarq $0x4, %rdx
imulq %r14, %rdx
cmpq %rdx, %rbp
jae 0xb6f1
movq %r12, %rdi
movq %r14, %r12
movq 0x70(%rcx,%rbx), %rcx
movq %rax, 0x8(%rcx)
movq (%r15), %rbx
movq %rbp, %r14
cmpq (%r13), %rbx
movq 0x18(%rsp), %r8
movq %r15, %r13
movq %rdi, %r15
jne 0xb556
jmp 0xb6a3
movq %r14, %rbp
movq %rbp, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8fee(%rip), %rsi      # 0x146b7
movq %rax, %rdi
callq 0x20b0
jmp 0xb70d
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8fd0(%rip), %rsi      # 0x146b7
movq %rax, %rdi
callq 0x20b0
jmp 0xb70d
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8fb2(%rip), %rsi      # 0x146b7
movq %rax, %rdi
callq 0x20b0
movq 0xe8e4(%rip), %rsi      # 0x19ff8
movq 0xe895(%rip), %rdx      # 0x19fb0
jmp 0xb747
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x8a53(%rip), %rsi      # 0x14184
movq %rax, %rdi
callq 0x23a0
movq 0xe898(%rip), %rsi      # 0x19fd8
movq 0xe879(%rip), %rdx      # 0x19fc0
movq %rbx, %rdi
callq 0x2330
jmp 0xb755
jmp 0xb755
jmp 0xb755
movq %rax, %r14
movq %rbx, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2360