// File: /workspace/github_cpp_makefile_star2_O3/philpoore[P]Math/./src/Parser.cpp
// Function: Parser::expect(TokenType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Token Parser::expect(TokenType type, string msg = "") {
    Token t = peek();
    if (t.type != type) {
        string output = msg;
        if (output.size()) {
            output += ": ";
        }
        output +=
            "Expected token " + to_string(type) + " but found " + to_string(t);
        error(output);
        return Token();
    } else {
        return consume();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rcx, -0xb0(%rbp)
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
movslq 0x1c(%rsi), %rax
movq (%rsi), %r13
leaq (%rax,%rax,2), %r12
shlq $0x4, %r12
movl (%r13,%r12), %eax
leaq -0xf8(%rbp), %rdi
movl %eax, -0x8(%rdi)
leaq -0xe8(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%r13,%r12), %rsi
movq 0x10(%r13,%r12), %rdx
addq %rsi, %rdx
callq 0xb26a
movq 0x28(%r13,%r12), %rax
leaq -0xe8(%rbp), %r13
movq %rax, 0x10(%r13)
cmpl %r14d, -0x18(%r13)
jne 0x8486
movslq 0x1c(%r15), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x1c(%r15)
movq (%r15), %r14
leaq (%rax,%rax,2), %r15
shlq $0x4, %r15
movl (%r14,%r15), %eax
movl %eax, (%rbx)
leaq 0x8(%rbx), %rdi
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rbx)
movq 0x8(%r14,%r15), %rsi
movq 0x10(%r14,%r15), %rdx
addq %rsi, %rdx
callq 0xb26a
addq %r15, %r14
movq 0x28(%r14), %rax
movq %rax, 0x28(%rbx)
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0x8471
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3240
movq %rbx, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xb0(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0xb26a
cmpq $0x0, -0xa0(%rbp)
je 0x84cb
leaq 0x4e7d(%rip), %rsi      # 0xd33c
leaq -0xa8(%rbp), %rdi
callq 0x33a0
leaq -0x150(%rbp), %rdi
movl %r14d, %esi
callq 0x483c
leaq 0x4e7a(%rip), %rcx      # 0xd35b
leaq -0x150(%rbp), %rdi
movl $0xf, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3260
leaq -0xc0(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x851a
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x852b
movq %rdx, -0xd0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xc0(%rbp)
movq 0x8(%rax), %rdx
leaq -0xd0(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x4e1b(%rip), %rsi      # 0xd36b
callq 0x33a0
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x8577
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x8585
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl -0x100(%rbp), %eax
leaq -0x128(%rbp), %rdi
movl %eax, -0x8(%rdi)
leaq -0x118(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
callq 0xb26a
movq -0xd8(%rbp), %rax
leaq -0x130(%rbp), %rsi
movq %rax, 0x28(%rsi)
leaq -0x68(%rbp), %rdi
callq 0x43de
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %r8
movq -0x60(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x8609
movq -0x78(%rbp), %rdi
leaq -0x58(%rbp), %rsi
movq -0x10(%rsi), %rsi
cmpq %rdi, %rax
jbe 0x862d
movl $0xf, %edi
leaq -0x58(%rbp), %r9
cmpq %r9, %rsi
je 0x8628
movq -0x58(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x863b
leaq -0x88(%rbp), %rdi
callq 0x30d0
jmp 0x8648
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3260
leaq -0x38(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
jne 0x8664
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0x866f
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x30d0
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x86b8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x86d1
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x86f3
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x870b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x8726
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3240
leaq -0x140(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8745
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x3240
leaq -0x160(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x170(%rbp), %rdi
callq 0xb26a
leaq -0x170(%rbp), %rsi
callq 0x8030
movq %rax, %rbx
movq -0x170(%rbp), %rdi
cmpq %r14, %rdi
je 0x8861
movq -0x160(%rbp), %rsi
jmp 0x8852
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x87b9
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x87b9
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x87d7
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x87d7
movq %rax, %rbx
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x87fe
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x87fe
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x881b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x881b
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x883b
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x883b
movq %rax, %rbx
leaq -0x140(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8861
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x8861
jmp 0x885e
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x8883
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x8883
jmp 0x8880
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0x889e
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3240
movq %rbx, %rdi
callq 0x3370