// File: /workspace/github_cpp_makefile_star2_O2/MisakiFx[P]P2PDownload/./httplib.h
// Function: httplib::detail::read_content_chunked(httplib::Stream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
inline bool read_content_chunked(Stream &strm, std::string &out) {
            const auto bufsiz = 16;
            char buf[bufsiz];

            stream_line_reader reader(strm, buf, bufsiz);

            if (!reader.getline()) { return false; }

            auto chunk_len = std::stoi(reader.ptr(), 0, 16);

            while (chunk_len > 0) {
                std::string chunk;
                if (!read_content_with_length(strm, chunk, chunk_len, nullptr)) {
                    return false;
                }

                if (!reader.getline()) { return false; }

                if (strcmp(reader.ptr(), "\r\n")) { break; }

                out += chunk;

                if (!reader.getline()) { return false; }

                chunk_len = std::stoi(reader.ptr(), 0, 16);
            }

            if (chunk_len == 0) {
                // Reader terminator after chunks
                if (!reader.getline() || strcmp(reader.ptr(), "\r\n")) return false;
            }

            return true;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, -0x58(%rbp)
leaq -0x80(%rbp), %rcx
movq %rdi, -0x60(%rbp)
movq %rdi, -0x20(%rcx)
leaq -0xf0(%rbp), %rax
movq %rax, -0x18(%rcx)
movq $0x10, -0x10(%rcx)
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0xa0(%rbp), %rdi
callq 0x1b1ac
testb %al, %al
je 0x1f319
leaq -0x98(%rbp), %r13
cmpq $0x0, 0x20(%r13)
leaq -0x80(%rbp), %rax
cmoveq %r13, %rax
movq (%rax), %rsi
leaq -0x50(%rbp), %rdi
leaq -0xe0(%rbp), %rdx
callq 0x81d0
leaq -0x50(%rbp), %rdi
pushq $0x10
popq %rdx
xorl %esi, %esi
callq 0x1f4e8
movl %eax, %ebx
leaq -0x50(%rbp), %r12
movq %r12, %rdi
callq 0x8aa8
leaq -0xc0(%rbp), %r15
testl %ebx, %ebx
jle 0x1f345
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
andq $0x0, -0x48(%rbp)
movb $0x0, -0x40(%rbp)
movl %ebx, %edx
xorps %xmm0, %xmm0
movaps %xmm0, -0xc0(%rbp)
movaps %xmm0, -0xb0(%rbp)
movq -0x60(%rbp), %rdi
movq %r12, %rsi
movq %r15, %rcx
callq 0x1f418
movl %eax, %ebx
movq %r15, %r14
movq %r15, %rdi
callq 0x16248
testb %bl, %bl
leaq -0xe0(%rbp), %r15
je 0x1f310
leaq -0xa0(%rbp), %rdi
callq 0x1b1ac
testb %al, %al
je 0x1f310
cmpq $0x0, -0x78(%rbp)
leaq -0x80(%rbp), %rax
cmoveq %r13, %rax
movq (%rax), %rax
cmpb $0xd, (%rax)
jne 0x1f31d
cmpb $0xa, 0x1(%rax)
jne 0x1f31d
cmpb $0x0, 0x2(%rax)
jne 0x1f31d
movq -0x58(%rbp), %rdi
movq %r12, %rsi
callq 0x8a50
leaq -0xa0(%rbp), %rdi
callq 0x1b1ac
testb %al, %al
je 0x1f310
cmpq $0x0, -0x78(%rbp)
leaq -0x80(%rbp), %rax
cmoveq %r13, %rax
movq (%rax), %rsi
movq %r15, %rdi
leaq -0x29(%rbp), %rdx
callq 0x81d0
movq %r15, %rdi
xorl %esi, %esi
pushq $0x10
popq %rdx
callq 0x1f4e8
movl %eax, %ebx
movq %r15, %rdi
callq 0x8aa8
movq %r12, %rdi
callq 0x8aa8
movq %r14, %r15
jmp 0x1f225
leaq -0x50(%rbp), %rdi
callq 0x8aa8
xorl %ebx, %ebx
jmp 0x1f328
leaq -0x50(%rbp), %rdi
callq 0x8aa8
movb $0x1, %bl
leaq -0x80(%rbp), %rdi
callq 0x8aa8
movl %ebx, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jne 0x1f326
leaq -0xa0(%rbp), %rdi
callq 0x1b1ac
testb %al, %al
je 0x1f319
cmpq $0x0, -0x78(%rbp)
leaq -0x80(%rbp), %rax
cmovneq %rax, %r13
movq (%r13), %rax
cmpb $0xd, (%rax)
jne 0x1f319
cmpb $0xa, 0x1(%rax)
jne 0x1f319
cmpb $0x0, 0x2(%rax)
jne 0x1f319
jmp 0x1f326
jmp 0x1f381
jmp 0x1f3aa
jmp 0x1f381
movq %rax, %rbx
jmp 0x1f3b6
movq %rax, %rbx
leaq -0xe0(%rbp), %rdi
callq 0x8aa8
jmp 0x1f3ad
jmp 0x1f3aa
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x16248
jmp 0x1f3ad
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x8aa8
leaq -0x80(%rbp), %rdi
callq 0x8aa8
movq %rbx, %rdi
callq 0x8990