// File: /workspace/github_cpp_makefile_star2_O2/shangjingbo1226[P]MACFP/src/methods/../utils/my_string.h
// Function: String::String(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
String(string s) : s(s) {
        vector<int> a;
        map<char, int> remap;
        vector<bool> occur(256, false);
        for (size_t i = 0; i < s.size(); ++ i) {
            occur[s[i] + 128] = true;
        }
        for (int ch = -128; ch < 128; ++ ch) {
            if (occur[ch + 128]) {
                int new_id = remap.size();
                remap[ch] = new_id;
            }
        }
        for (size_t i = 0; i < s.size(); ++ i) {
            a.push_back(remap[s[i]]);
        }
        sa = new SuffixArray(a);

        h = new ULL[s.size() + 1];
        pw = new ULL[s.size() + 1];
        h[0] = 0;
        pw[0] = 1;
        for (size_t i = 0; i < s.size(); ++ i) {
            h[i + 1] = h[i] * MAGIC + (a[i] + 1);
            pw[i + 1] = pw[i] * MAGIC;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movq %rdi, %r13
callq 0x2240
andq $0x0, 0x20(%rsp)
leaq 0x60(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x6(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x30(%rsp), %rdi
leaq 0x7(%rsp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x534c
xorl %ebx, %ebx
leaq 0x30(%rsp), %r15
cmpq 0x8(%r14), %rbx
jae 0x4c73
movq (%r14), %rax
movsbq (%rax,%rbx), %rsi
subq $-0x80, %rsi
movq %r15, %rdi
callq 0x53b0
orq %rdx, (%rax)
incq %rbx
jmp 0x4c51
movq %r13, 0x8(%rsp)
pushq $-0x80
popq %rbp
movq $-0x100, %rbx
leaq 0x30(%rsp), %r15
leaq 0x6(%rsp), %r13
testq %rbx, %rbx
je 0x4ccc
leaq 0x80(%rbp), %rsi
movq %r15, %rdi
callq 0x53b0
testq %rdx, (%rax)
je 0x4cc4
movq 0x80(%rsp), %r12
leal -0x80(%rbx), %eax
movb %al, 0x6(%rsp)
leaq 0x58(%rsp), %rdi
movq %r13, %rsi
callq 0x53ce
movl %r12d, (%rax)
incq %rbp
incq %rbx
jmp 0x4c8c
xorl %ebx, %ebx
leaq 0x58(%rsp), %r15
leaq 0x10(%rsp), %r12
movq 0x8(%rsp), %r13
cmpq 0x8(%r14), %rbx
jae 0x4d01
movq (%r14), %rsi
addq %rbx, %rsi
movq %r15, %rdi
callq 0x541c
movq %r12, %rdi
movq %rax, %rsi
callq 0x49c6
incq %rbx
jmp 0x4cdd
movl $0xe8, %edi
callq 0x21b0
movq %rax, %r15
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x546a
movq %r15, 0x20(%r13)
movq 0x8(%r14), %r12
leaq 0x1(%r12), %rax
shrq $0x3d, %rax
leaq 0x8(,%r12,8), %rcx
xorl %r15d, %r15d
negq %rax
sbbq %r15, %r15
orq %rcx, %r15
movq %r15, %rdi
callq 0x2030
movq %rax, %r14
movq %rax, 0x28(%r13)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x30(%r13)
andq $0x0, (%r14)
movq $0x1, (%rax)
pushq $0x1
popq %rcx
xorl %esi, %esi
movq 0x10(%rsp), %rdx
xorl %edi, %edi
cmpq %rdi, %r12
je 0x4d9e
imulq $0xabcdef, %rsi, %rsi   # imm = 0xABCDEF
movslq (%rdx,%rdi,4), %r8
addq %r8, %rsi
incq %rsi
movq %rsi, 0x8(%r14,%rdi,8)
imulq $0xabcdef, %rcx, %rcx   # imm = 0xABCDEF
movq %rcx, 0x8(%rax,%rdi,8)
incq %rdi
jmp 0x4d72
leaq 0x30(%rsp), %rdi
callq 0x57b0
leaq 0x58(%rsp), %rdi
callq 0x6bcc
leaq 0x10(%rsp), %rdi
callq 0x66a2
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0xe8, %esi
movq %r15, %rdi
callq 0x21c0
jmp 0x4df8
movq %rax, %r14
jmp 0x4e02
jmp 0x4df5
jmp 0x4de9
movq %rax, %r14
movq 0x8(%rsp), %r13
jmp 0x4df8
jmp 0x4df5
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x57b0
leaq 0x58(%rsp), %rdi
callq 0x6bcc
leaq 0x10(%rsp), %rdi
callq 0x66a2
movq %r13, %rdi
callq 0x2378
movq %r14, %rdi
callq 0x2310