// File: /workspace/github_cpp_makefile_star2_O3/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, 0x8(%rsp)
cmpl $0x1, %edx
jne 0x25ecb
movq (%r14), %rdi
leaq 0x9837(%rip), %rsi      # 0x2f613
callq 0x60d0
testl %eax, %eax
je 0x25ecd
movq 0x8(%rsp), %rbx
leaq 0x20(%rbx), %rdi
movq 0x28(%rbx), %rdx
leaq 0xb5c7(%rip), %rcx      # 0x313c4
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x6550
movq (%r14), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %rdi, %rsi
leaq 0x1e6a5(%rip), %rdx     # 0x444c0
xorl %ecx, %ecx
callq 0x2b498
testb %al, %al
je 0x260b8
movq (%r14), %rax
leaq 0x138(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0xc5fa
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xb561(%rip), %rdx      # 0x313c4
leaq 0x108(%rsp), %rdi
movq %rdx, %rsi
callq 0xc690
leaq 0x128(%rsp), %rsi
leaq 0x108(%rsp), %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x25bf7
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x25ead
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x6340
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x2622b
movq 0x138(%rsp), %rsi
jmp 0x26223
jl 0x25f23
movl %ebp, %ebx
movl $0x40, %r13d
leaq 0x10(%rsp), %r15
leaq 0xb4e3(%rip), %r12      # 0x313c4
movq (%r14), %rsi
addq %r13, %rsi
movq %r15, %rdi
callq 0x258a0
movq %r15, %rdi
movq %r12, %rsi
callq 0x60d0
testl %eax, %eax
jne 0x25f37
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x25f1a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6340
addq $0x58, %r13
decq %rbx
jne 0x25ee1
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x25d5a
jmp 0x2622b
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0xba91(%rip), %rax      # 0x319e0
leaq 0x50(%rsp), %rsi
movq %rax, (%rsi)
leaq 0xba83(%rip), %rax      # 0x319e1
movq %rax, 0x8(%rsi)
leaq 0x70(%rsp), %rdi
callq 0x24216
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x70(%rsp), %rdx
movl $0x1, %ecx
callq 0x23db7
cmpq $0x11, 0x80(%rsp)
jb 0x25f9f
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x25f9f
callq 0x6440
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xb415(%rip), %rdx      # 0x313c4
leaq 0x50(%rsp), %rdi
movq %rdx, %rsi
callq 0xc690
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x25fe2
addq $0x20, %rsi
leaq 0x50(%rsp), %rdi
callq 0x61f0
movq 0x30(%rsp), %rsi
leaq 0xb8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0xa8(%rsp), %rdi
movq %rax, %rsi
callq 0xc5fa
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0xc5fa
leaq 0xa8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
movq 0x8(%rsp), %rdi
movl $0x1, %ecx
callq 0x25bf7
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x2606b
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x6340
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x26088
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x6340
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x2609f
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6340
leaq 0x30(%rsp), %rdi
callq 0xd4b2
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
jmp 0x26219
movq (%r14), %rsi
addq $0x40, %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x258a0
leaq 0xb2f1(%rip), %rsi      # 0x313c4
movq %r15, %rdi
callq 0x60d0
movq (%r14), %rcx
testl %eax, %eax
je 0x26177
leaq 0x178(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0xc5fa
movq (%r14), %rax
leaq 0xf8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0xc5fa
leaq 0x168(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x25bf7
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2616a
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x6340
movq 0x168(%rsp), %rdi
jmp 0x26200
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0xc5fa
movq (%r14), %rax
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0xc5fa
leaq 0x148(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x25bf7
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x261f8
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x6340
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x26210
movq (%r15), %rsi
incq %rsi
callq 0x6340
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2622b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6340
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x26262
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x6340
jmp 0x26262
movq %rax, %rbx
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x262e2
movq 0x158(%rsp), %rsi
jmp 0x262b3
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2629e
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x6340
jmp 0x2629e
movq %rax, %rbx
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x262e2
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x6340
jmp 0x262e2
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x262f3
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x6340
jmp 0x262f3
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x263a9
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x263bb
movq 0x138(%rsp), %rsi
jmp 0x263b3
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x26336
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x6340
jmp 0x26336
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2637e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x6340
jmp 0x2637e
jmp 0x26376
movq %rax, %rbx
cmpq $0x11, 0x80(%rsp)
jb 0x26395
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x26395
callq 0x6440
jmp 0x26395
movq %rax, %rbx
jmp 0x26395
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x26395
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6340
leaq 0x30(%rsp), %rdi
callq 0xd4b2
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x263bb
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x6340
movq %rbx, %rdi
callq 0x6630
nop