// File: /workspace/github_cpp_makefile_star2_O2/yayuntian[P]user_agent/bot.cpp
// Function: checkBot(UserAgent&, std::vector<Section, std::allocator<Section>>&, int)
void checkBot(UserAgent& p, vector<Section>& sections, int slen) {
    if (slen == 1 && sections[0].name != "Mozilla") {
        p.mozilla = "";
        if (boost::regex_search(sections[0].name, botRegexp)) {
            setSimple(p, sections[0].name, "", true);
            return;
        }

        string name = getFromSite(sections[0].comment);
        if (name != "") {
            setSimple(p, sections[0].name, sections[0].version, true);
            return;
        }

        setSimple(p, sections[0].name, sections[0].version, false);
    } else {
        for (int i = 0; i < slen; i++) {
            string name = getFromSite(sections[i].comment);
            if (name != "") {
                vector<string> s;
                split(s, name, is_any_of("/"));
                string version = "";
                if (s.size() == 2) {
                    version = s[1];
                }
                setSimple(p, s[0], version, true);
                return;
            }
        }
        fixOther(p, sections, slen);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x1, %edx
jne 0x20d7a
movq (%r14), %rdi
leaq 0x892d(%rip), %rsi      # 0x29613
callq 0x1ec6a
testb %al, %al
je 0x20d7a
leaq 0x20(%rbx), %rdi
leaq 0xa6c6(%rip), %rsi      # 0x2b3c4
callq 0x7700
movq (%r14), %rdi
leaq 0x207e3(%rip), %rsi     # 0x414f0
xorl %edx, %edx
callq 0x21176
testb %al, %al
je 0x20ed3
movq (%r14), %rsi
leaq 0xe8(%rsp), %rdi
callq 0x7490
leaq 0xa691(%rip), %rsi      # 0x2b3c4
leaq 0xc8(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0xa55c
leaq 0xe8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
pushq $0x1
popq %rcx
movq %rbx, %rdi
callq 0x20bb0
leaq 0xc8(%rsp), %rdi
callq 0x7748
leaq 0xe8(%rsp), %rdi
jmp 0x20f83
movq %rbx, 0x8(%rsp)
xorl %r13d, %r13d
testl %ebp, %ebp
movl $0x0, %eax
cmovgl %ebp, %eax
imulq $0x58, %rax, %rbx
leaq 0x30(%rsp), %r15
leaq 0xa628(%rip), %r12      # 0x2b3c4
cmpq %r13, %rbx
je 0x20dd1
movq (%r14), %rax
leaq (%rax,%r13), %rsi
addq $0x40, %rsi
movq %r15, %rdi
callq 0x20950
movq %r15, %rdi
movq %r12, %rsi
callq 0x1ec6a
testb %al, %al
jne 0x20de5
movq %r15, %rdi
callq 0x7748
addq $0x58, %r13
jmp 0x20d9c
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x20c6f
jmp 0x20f88
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0xac0e(%rip), %rsi      # 0x2ba08
leaq 0x50(%rsp), %rdi
callq 0x1ecf8
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
pushq $0x1
popq %rcx
callq 0x1ec74
movq 0x8(%rsp), %rbx
leaq 0x50(%rsp), %rdi
callq 0x1ed24
leaq 0xa593(%rip), %rsi      # 0x2b3c4
leaq 0x68(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xa55c
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x20e66
addq $0x20, %rsi
leaq 0x68(%rsp), %rdi
callq 0x71f0
movq 0x10(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x7490
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x7490
leaq 0xa8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
pushq $0x1
popq %rcx
movq %rbx, %rdi
callq 0x20bb0
leaq 0x88(%rsp), %rdi
callq 0x7748
leaq 0xa8(%rsp), %rdi
callq 0x7748
leaq 0x68(%rsp), %rdi
callq 0x7748
leaq 0x10(%rsp), %rdi
callq 0xb230
jmp 0x20f7e
movq (%r14), %rsi
addq $0x40, %rsi
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x20950
leaq 0xa4d6(%rip), %rsi      # 0x2b3c4
movq %r15, %rdi
callq 0x1ec6a
movq (%r14), %rsi
testb %al, %al
je 0x20f37
leaq 0x168(%rsp), %r15
movq %r15, %rdi
callq 0x7490
movq (%r14), %rsi
addq $0x20, %rsi
leaq 0x148(%rsp), %r14
movq %r14, %rdi
callq 0x7490
pushq $0x1
popq %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x20bb0
jmp 0x20f6e
leaq 0x128(%rsp), %r15
movq %r15, %rdi
callq 0x7490
movq (%r14), %rsi
addq $0x20, %rsi
leaq 0x108(%rsp), %r14
movq %r14, %rdi
callq 0x7490
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x20bb0
movq %r14, %rdi
callq 0x7748
movq %r15, %rdi
callq 0x7748
leaq 0x30(%rsp), %rdi
callq 0x7748
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x108(%rsp), %rdi
callq 0x7748
jmp 0x20fc1
movq %rax, %rbx
leaq 0x148(%rsp), %rdi
callq 0x7748
jmp 0x20fce
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
jmp 0x20fd6
movq %rax, %rbx
leaq 0x168(%rsp), %rdi
callq 0x7748
jmp 0x21052
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x7748
jmp 0x20ff7
movq %rax, %rbx
jmp 0x21052
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
jmp 0x21057
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x7748
jmp 0x21016
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x7748
jmp 0x2103e
jmp 0x21036
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x1ed24
jmp 0x21048
movq %rax, %rbx
jmp 0x21048
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x7748
leaq 0x10(%rsp), %rdi
callq 0xb230
leaq 0x30(%rsp), %rdi
callq 0x7748
movq %rbx, %rdi
callq 0x7640