// File: /workspace/github_cpp_makefile_star2_O3/sighingnow[P]compile-pascal/pl0_parser.cpp
// Function: pl0_string_literal_helper(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, input_t*)
pair<int, string> pl0_string_literal_helper(const string & str, input_t *text) {
    if (text->empty()) { return make_pair(-1, "\0"); }
    string s = text->take(str.length());
    if (str != s) { pl0_parser_error(text->locate(), string("expected literal string ") + "\"" + str + "\""); }
    return make_pair(str == s ? str.length() : (-1), str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r12
movq %rdi, %rbx
movq 0x18(%rdx), %rdx
testq %rdx, %rdx
je 0x9f35
movq %rsi, %r14
movq 0x8(%rsi), %rax
movslq %eax, %rcx
cmpq %rcx, %rdx
jae 0x9f53
leaq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
testq %rax, %rax
jne 0x9f8e
jmp 0x9fec
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
leaq 0x8(%rbx), %rdi
leaq 0x87330(%rip), %rsi     # 0x91276
movq %rsp, %rdx
callq 0x16148
jmp 0xa1e2
leaq 0x10(%r12), %rsi
leaq 0x48(%rsp), %r15
movq %r15, %rdi
xorl %edx, %edx
callq 0x52a0
movq 0x8(%r15), %r15
cmpq %r15, 0x8(%r14)
jne 0x9f8e
testq %r15, %r15
je 0x9fec
movq 0x48(%rsp), %rsi
movq (%r14), %rdi
movq %r15, %rdx
callq 0x5280
testl %eax, %eax
je 0xa145
movq 0x8(%r12), %r15
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x87125(%rip), %rsi     # 0x910c8
leaq 0x87136(%rip), %rdx     # 0x910e0
leaq 0x28(%rsp), %rdi
callq 0x253d0
leaq 0x89038(%rip), %rsi     # 0x92ff3
leaq 0x28(%rsp), %rdi
callq 0x5420
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9ff4
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x9ffb
xorl %r15d, %r15d
jmp 0xa145
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x50d0
leaq 0x10(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa04c
movq %rsi, %r13
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xa055
movups (%rcx), %xmm0
movq %rsi, %r13
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x88f7d(%rip), %rsi     # 0x92ff3
callq 0x5420
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa0ac
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0xa0b4
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
callq 0x9961
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0xa0f8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rsp), %rdi
cmpq %r13, %rdi
leaq 0x38(%rsp), %r13
je 0xa113
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0xa12a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xa141
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%r14), %r15
movq $-0x1, %r12
cmpq 0x50(%rsp), %r15
jne 0xa16f
testq %r15, %r15
je 0xa16c
movq 0x48(%rsp), %rsi
movq (%r14), %rdi
movq %r15, %rdx
callq 0x5280
testl %eax, %eax
jne 0xa16f
movq %r15, %r12
leaq 0x8(%rsp), %rdi
movq %r12, -0x8(%rdi)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
addq %rsi, %r15
movq %r15, %rdx
callq 0x351dc
movl (%rsp), %eax
movl %eax, (%rbx)
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rcx
cmpq %r12, %rcx
je 0xa1b6
movq %rcx, 0x8(%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x18(%rbx)
jmp 0xa1be
movups (%r12), %xmm0
movups %xmm0, (%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa1e2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0xa21c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0xa21c
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xa237
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0xa237
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0xa253
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0xa253
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xa276
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0xa276
jmp 0xa273
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa291
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
movq %rbx, %rdi
callq 0x53d0