// File: /workspace/github_cpp_makefile_star2_O1/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 %rdi, %rbx
movq 0x18(%rdx), %rax
testq %rax, %rax
je 0x9e13
movq %rdx, %r15
movq %rsi, %r14
movslq 0x8(%rsi), %rcx
cmpq %rcx, %rax
jae 0x9e31
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
jmp 0x9e41
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
leaq 0x8(%rbx), %rdi
leaq 0x8d452(%rip), %rsi     # 0x97276
movq %rsp, %rdx
callq 0x16132
jmp 0xa0bb
leaq 0x10(%r15), %rsi
leaq 0x28(%rsp), %rdi
xorl %edx, %edx
callq 0x52a0
movq 0x8(%r14), %rdx
cmpq 0x30(%rsp), %rdx
jne 0x9e6a
testq %rdx, %rdx
je 0xa014
movq 0x28(%rsp), %rsi
movq (%r14), %rdi
callq 0x5280
testl %eax, %eax
je 0xa014
movq 0x8(%r15), %r15
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8d24a(%rip), %rsi     # 0x970c8
leaq 0x8d25b(%rip), %rdx     # 0x970e0
leaq 0x48(%rsp), %rdi
callq 0x2670a
leaq 0x8f15d(%rip), %rsi     # 0x98ff3
leaq 0x48(%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 0x9ec7
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x9ece
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 0x9f1f
movq %rsi, %r13
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x9f28
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 0x8f0aa(%rip), %rsi     # 0x98ff3
callq 0x5420
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9f7f
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x9f87
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 0x984c
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x9fcb
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rsp), %rdi
cmpq %r13, %rdi
leaq 0x58(%rsp), %r13
je 0x9fe6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9ffd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xa014
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%r14), %r15
movq $-0x1, %rcx
cmpq 0x30(%rsp), %r15
jne 0xa048
movq %r15, %rcx
testq %r15, %r15
je 0xa048
movq 0x28(%rsp), %rsi
movq (%r14), %rdi
movq %r15, %rdx
callq 0x5280
xorl %ecx, %ecx
negl %eax
sbbq %rcx, %rcx
orq %r15, %rcx
leaq 0x8(%rsp), %rdi
movq %rcx, -0x8(%rdi)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
addq %rsi, %r15
movq %r15, %rdx
callq 0x36590
movl (%rsp), %eax
movl %eax, (%rbx)
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rcx
cmpq %r12, %rcx
je 0xa08f
movq %rcx, 0x8(%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x18(%rbx)
jmp 0xa097
movups (%r12), %xmm0
movups %xmm0, (%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa0bb
movq 0x38(%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 0xa0f5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0xa0f5
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xa110
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0xa110
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0xa12c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0xa12c
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0xa14f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0xa14f
jmp 0xa14c
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa16a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq %rbx, %rdi
callq 0x53d0