// File: /workspace/github_cpp_makefile_star2_O1/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 0x282ea
movq (%r14), %rdi
leaq 0x9413(%rip), %rsi      # 0x31613
callq 0x70d0
testl %eax, %eax
je 0x282ea
leaq 0x20(%rbx), %rdi
movq 0x28(%rbx), %rdx
leaq 0xb1a8(%rip), %rcx      # 0x333c4
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
movq (%r14), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rsi
addq %rdi, %rsi
leaq 0x1e286(%rip), %rdx     # 0x464c0
xorl %ecx, %ecx
callq 0x2d836
testb %al, %al
je 0x28541
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 0xe87a
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xb142(%rip), %rdx      # 0x333c4
leaq 0x108(%rsp), %rdi
movq %rdx, %rsi
callq 0xe90a
leaq 0x128(%rsp), %rsi
leaq 0x108(%rsp), %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x2801d
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x282cc
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x286b4
movq 0x138(%rsp), %rsi
jmp 0x286ac
movq %rbx, 0x28(%rsp)
movl %ebp, 0x4(%rsp)
testl %ebp, %ebp
setg %r12b
jle 0x2852b
movq (%r14), %rsi
addq $0x40, %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x27cc4
leaq 0xb0aa(%rip), %rsi      # 0x333c4
movq %r15, %rdi
callq 0x70d0
testl %eax, %eax
jne 0x28398
movl 0x4(%rsp), %eax
movq %rax, 0x68(%rsp)
leaq -0x1(%rax), %r13
movl $0x98, %ebp
xorl %ebx, %ebx
leaq 0x8(%rsp), %r15
leaq 0xb07e(%rip), %r12      # 0x333c4
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x28362
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7340
cmpq %rbx, %r13
je 0x2852b
movq (%r14), %rsi
addq %rbp, %rsi
movq %r15, %rdi
callq 0x27cc4
movq %r15, %rdi
movq %r12, %rsi
callq 0x70d0
addq $0x58, %rbp
incq %rbx
testl %eax, %eax
je 0x28346
cmpq 0x68(%rsp), %rbx
setb %r12b
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0xb650(%rip), %rax      # 0x33a00
leaq 0x48(%rsp), %rsi
movq %rax, (%rsi)
leaq 0xb642(%rip), %rax      # 0x33a01
movq %rax, 0x8(%rsi)
leaq 0x70(%rsp), %rdi
callq 0x26606
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x70(%rsp), %rdx
movl $0x1, %ecx
callq 0x261ad
cmpq $0x11, 0x80(%rsp)
jb 0x28400
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x28400
callq 0x7440
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xafb4(%rip), %rdx      # 0x333c4
leaq 0x48(%rsp), %rdi
movq %rdx, %rsi
callq 0xe90a
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
subq %rsi, %rax
cmpq $0x40, %rax
jne 0x2843e
addq $0x20, %rsi
leaq 0x48(%rsp), %rdi
callq 0x71f0
movq 0x30(%rsp), %rax
leaq 0xb8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0xe87a
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0xe87a
leaq 0xa8(%rsp), %rsi
leaq 0x88(%rsp), %rdx
movq 0x28(%rsp), %rdi
movl $0x1, %ecx
callq 0x2801d
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x284c8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x284e5
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x284fc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x7340
leaq 0x30(%rsp), %rdi
callq 0xf6ee
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x28522
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7340
testb %r12b, %r12b
jne 0x286b4
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movl 0x4(%rsp), %edx
callq 0x28180
jmp 0x286b4
movq (%r14), %rsi
addq $0x40, %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x27cc4
leaq 0xae68(%rip), %rsi      # 0x333c4
movq %r15, %rdi
callq 0x70d0
movq (%r14), %rcx
testl %eax, %eax
je 0x28600
leaq 0x178(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0xe87a
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 0xe87a
leaq 0x168(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x2801d
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0x285f3
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0x168(%rsp), %rdi
jmp 0x28689
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0xe87a
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 0xe87a
leaq 0x148(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x2801d
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x28681
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x28699
movq (%r15), %rsi
incq %rsi
callq 0x7340
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x286b4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7340
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 0x286eb
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x7340
jmp 0x286eb
movq %rax, %rbx
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x2876b
movq 0x158(%rsp), %rsi
jmp 0x2873c
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r14, %rdi
je 0x28727
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x7340
jmp 0x28727
movq %rax, %rbx
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x2876b
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x7340
jmp 0x2876b
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x2877c
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x7340
jmp 0x2877c
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x28832
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x28844
movq 0x138(%rsp), %rsi
jmp 0x2883c
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x287bf
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x7340
jmp 0x287bf
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x28807
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x7340
jmp 0x28807
jmp 0x287ff
movq %rax, %rbx
cmpq $0x11, 0x80(%rsp)
jb 0x2881e
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2881e
callq 0x7440
jmp 0x2881e
movq %rax, %rbx
jmp 0x2881e
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2881e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x7340
leaq 0x30(%rsp), %rdi
callq 0xf6ee
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x28844
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7340
movq %rbx, %rdi
callq 0x7630