// File: /workspace/github_cpp_makefile_star2_O1/cybozu[P]yrmcds/src/memcache/memcache.cpp
// Function: yrmcds::memcache::text_request::parse_flushall(char const*, char const*)
inline void
text_request::parse_flushall(const char* b, const char* e) noexcept {
    m_exptime = g_current_time.load(relaxed);

    while( *b == SP ) ++b;
    if( b == e ) {
        m_valid = true;
        return;
    }

    if( '0' <= *b && *b <= '9' ) {
        const char* exp_end = cfind(b, SP, e-b);
        if( exp_end == nullptr ) exp_end = e;
        bool result;
        std::time_t t = to_uint<std::time_t>(b, result);
        if( ! result ) return;
        m_exptime = (t > EXPTIME_THRESHOLD) ? t :
            (g_current_time.load(relaxed) + t);
        b = exp_end;
    }

    while( *b == SP ) ++b;
    if( b != e ) {
        // noreply ?
        const char* we = cfind(b, SP, e-b);
        std::size_t noreply_len = (we != nullptr) ? (we - b) : (e - b);
        if( noreply_len != 7 ) return;
        if( std::memcmp(b, "noreply", 7) != 0 ) return;
        m_no_reply = true;
        b = (we != nullptr) ? we : e;
    }

    while( *b == SP ) ++b;
    if( b != e ) return; // garbage left

    m_valid = true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x14a9d(%rip), %rax     # 0x46e80
movq (%rax), %rax
movq %rax, 0x38(%rdi)
subq %rsi, %rdx
decq %r15
incq %rdx
movb 0x1(%r15), %al
incq %r15
decq %rdx
cmpb $0x20, %al
je 0x323f3
cmpq %r14, %r15
je 0x3252e
addb $-0x30, %al
cmpb $0x9, %al
ja 0x324b8
movq %r15, %rdi
movl $0x20, %esi
callq 0x7550
movq %rax, %r12
testq %rax, %rax
cmoveq %r14, %r12
movq %rsp, %rbp
movq %r15, %rdi
movq %rbp, %rsi
movl $0xa, %edx
callq 0x76f0
movq %rax, %r13
movq (%rbp), %rbp
movq %r15, %rax
xorq %rbp, %rax
orq %r13, %rax
jne 0x32456
xorl %eax, %eax
xorl %ecx, %ecx
jmp 0x32493
cmpq $-0x1, %r13
jne 0x32466
callq 0x7040
cmpl $0x22, (%rax)
je 0x32450
movzbl (%rbp), %edx
xorl %ecx, %ecx
movl $0x0, %eax
cmpq $0x20, %rdx
ja 0x32493
movabsq $0x100002400, %rsi      # imm = 0x100002400
btq %rdx, %rsi
jae 0x32493
xorl %ecx, %ecx
testq %r13, %r13
setns %al
cmovnsq %r13, %rcx
testb %al, %al
je 0x324b4
cmpq $0x278d00, %rcx         # imm = 0x278D00
jg 0x324ad
leaq 0x149d9(%rip), %rdx     # 0x46e80
movq (%rdx), %rdx
addq %rdx, %rcx
movq %rcx, 0x38(%rbx)
movq %r12, %r15
testb %al, %al
je 0x32532
decq %r15
movq %r15, %r12
incq %r15
cmpb $0x20, 0x1(%r12)
leaq 0x1(%r12), %r12
je 0x324be
cmpq %r14, %r12
je 0x32519
movq %r14, %r13
subq %r15, %r13
movq %r12, %rdi
movl $0x20, %esi
movq %r13, %rdx
callq 0x7550
movq %rax, %rcx
subq %r15, %rcx
testq %rax, %rax
cmoveq %r13, %rcx
cmpq $0x7, %rcx
jne 0x32513
movl $0x65726f6e, %ecx       # imm = 0x65726F6E
xorl (%r12), %ecx
movl $0x796c7065, %edx       # imm = 0x796C7065
xorl 0x3(%r12), %edx
orl %ecx, %edx
je 0x32541
xorl %ecx, %ecx
testb %cl, %cl
je 0x32532
decq %r12
cmpb $0x20, 0x1(%r12)
leaq 0x1(%r12), %r12
je 0x3251c
cmpq %r14, %r12
jne 0x32532
movb $0x1, 0x1c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rax, %rax
movb $0x1, 0x1d(%rbx)
cmoveq %r14, %rax
movb $0x1, %cl
movq %rax, %r12
jmp 0x32515
nop