// File: /workspace/github_cpp_makefile_star2_O2/MisakiFx[P]P2PDownload/./httplib.h
// Function: httplib::detail::read_headers(httplib::Stream&, std::multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, httplib::detail::ci, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
inline bool read_headers(Stream &strm, Headers &headers) {
            static std::regex re(R"((.+?):\s*(.+?)\s*\r\n)");

            const auto bufsiz = 2048;
            char buf[bufsiz];

            stream_line_reader reader(strm, buf, bufsiz);

            for (;;) {
                if (!reader.getline()) { return false; }
                if (!strcmp(reader.ptr(), "\r\n")) { break; }
                std::cmatch m;
                if (std::regex_match(reader.ptr(), m, re)) {
                    auto key = std::string(m[1]);
                    auto val = std::string(m[2]);
                    headers.emplace(key, val);
                }
            }

            return true;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x8b8, %rsp            # imm = 0x8B8
movq %rsi, -0x58(%rbp)
movq %rdi, %rbx
movb 0x1d12f(%rip), %al      # 0x38a40
testb %al, %al
je 0x1ba78
leaq -0x78(%rbp), %rcx
movq %rbx, -0x20(%rcx)
leaq -0x8e0(%rbp), %rax
movq %rax, -0x18(%rcx)
movq $0x800, -0x10(%rcx)     # imm = 0x800
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x98(%rbp), %r15
leaq -0x50(%rbp), %r13
leaq -0xd8(%rbp), %r14
leaq -0xb8(%rbp), %rbx
movq %r15, %rdi
callq 0x1b1ac
movl %eax, %r12d
testb %al, %al
je 0x1ba5a
cmpq $0x0, -0x70(%rbp)
leaq -0x78(%rbp), %rax
leaq -0x90(%rbp), %rcx
cmoveq %rcx, %rax
movq (%rax), %rdi
cmpb $0xd, (%rdi)
jne 0x1b99c
cmpb $0xa, 0x1(%rdi)
jne 0x1b99c
cmpb $0x0, 0x2(%rdi)
je 0x1ba5a
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
movq %r13, %rsi
leaq 0x1d06f(%rip), %rdx     # 0x38a20
xorl %ecx, %ecx
callq 0x1cb31
testb %al, %al
je 0x1ba4d
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rcx
subq %rsi, %rcx
je 0x1b9e8
movq %rcx, %rax
cqto
pushq $0x18
popq %rdi
idivq %rdi
addq $-0x5, %rax
cmpq $-0x3, %rax
ja 0x1b9e8
addq $0x18, %rsi
jmp 0x1b9ef
addq %rcx, %rsi
addq $-0x48, %rsi
movq %r14, %rdi
callq 0x1ee26
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rcx
subq %rsi, %rcx
je 0x1ba1f
movq %rcx, %rax
cqto
pushq $0x18
popq %rdi
idivq %rdi
addq $-0x6, %rax
cmpq $-0x4, %rax
ja 0x1ba1f
addq $0x30, %rsi
jmp 0x1ba26
addq %rcx, %rsi
addq $-0x48, %rsi
movq %rbx, %rdi
callq 0x1ee26
movq -0x58(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1efee
movq %rbx, %rdi
callq 0x8aa8
movq %r14, %rdi
callq 0x8aa8
movq %r13, %rdi
callq 0x1d19a
jmp 0x1b95d
leaq -0x78(%rbp), %rdi
callq 0x8aa8
movl %r12d, %eax
addq $0x8b8, %rsp            # imm = 0x8B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1cfc1(%rip), %rdi     # 0x38a40
callq 0x89c0
testl %eax, %eax
je 0x1b919
leaq 0x1cf8d(%rip), %rdi     # 0x38a20
leaq 0x9910(%rip), %rsi      # 0x253aa
pushq $0x10
popq %rdx
callq 0xa008
leaq -0x11a17(%rip), %rdi    # 0xa092
leaq 0x1cf70(%rip), %rsi     # 0x38a20
leaq 0x1caa1(%rip), %rdx     # 0x38558
callq 0x84a0
leaq 0x1cf7d(%rip), %rdi     # 0x38a40
callq 0x8360
jmp 0x1b919
movq %rax, %rbx
leaq 0x1cf69(%rip), %rdi     # 0x38a40
callq 0x8350
jmp 0x1bb1c
jmp 0x1bb02
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x8aa8
jmp 0x1baf4
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x8aa8
jmp 0x1bb05
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x1d19a
jmp 0x1bb13
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
callq 0x8aa8
movq %rbx, %rdi
callq 0x8990