// File: /workspace/github_cpp_makefile_star2_O1/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 0xb374
movq 0x28(%r13,%r12), %rax
leaq -0xe8(%rbp), %r13
movq %rax, 0x10(%r13)
cmpl %r14d, -0x18(%r13)
jne 0x8552
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 0xb374
addq %r15, %r14
movq 0x28(%r14), %rax
movq %rax, 0x28(%rbx)
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0x853d
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 0xb374
cmpq $0x0, -0xa0(%rbp)
je 0x8597
leaq 0x4db1(%rip), %rsi      # 0xd33c
leaq -0xa8(%rbp), %rdi
callq 0x33a0
leaq -0x150(%rbp), %rdi
movl %r14d, %esi
callq 0x48cb
leaq 0x4dae(%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 0x85e6
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x85f7
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 0x4d4f(%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 0x8643
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x8651
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 0xb374
movq -0xd8(%rbp), %rax
leaq -0x130(%rbp), %rsi
movq %rax, 0x28(%rsi)
leaq -0x68(%rbp), %rdi
callq 0x446c
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %r8
movq -0x60(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x86d5
movq -0x78(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x86f2
movl $0xf, %esi
leaq -0x58(%rbp), %rdi
cmpq %rdi, -0x68(%rbp)
je 0x86ed
movq -0x58(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x8704
movq -0x68(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x30d0
jmp 0x8711
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 0x872d
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
jmp 0x8738
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 0x8781
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x879a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x87bc
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x87d4
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3240
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x87ef
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3240
leaq -0x140(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x880e
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 0xb374
leaq -0x170(%rbp), %rsi
callq 0x80fc
movq %rax, %rbx
movq -0x170(%rbp), %rdi
cmpq %r14, %rdi
je 0x892a
movq -0x160(%rbp), %rsi
jmp 0x891b
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8882
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x8882
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x88a0
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x88a0
movq %rax, %rbx
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x88c7
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x88c7
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x88e4
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x88e4
movq %rax, %rbx
movq -0xd0(%rbp), %rdi
cmpq %r14, %rdi
je 0x8904
movq -0xc0(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x8904
movq %rax, %rbx
leaq -0x140(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x892a
movq -0x140(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x892a
jmp 0x8927
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x894c
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x3240
jmp 0x894c
jmp 0x8949
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0x8967
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3240
movq %rbx, %rdi
callq 0x3370
nop