// File: /workspace/github_cpp_makefile_star2_O1/yayuntian[P]user_agent/operatingSystem.cpp
// Function: opera(UserAgent&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, int)
void opera(UserAgent& p, vector<string>& comment, int slen) {
    if (starts_with(comment[0], "Windows")) {
        p.platform = "Windows";
        p.os = normalizeOS(comment[0]);
        if (slen > 2) {
            if (slen > 3 && starts_with(comment[2], "MRA")) {
                p.localization = comment[3];
            } else {
                p.localization = comment[2];
            }
        }
    } else {
        if (starts_with(comment[0], "Android")) {
            p.mobile = true;
        }
        p.platform = comment[0];
        if (slen > 1) {
            p.os = comment[1];
            if (slen > 3) {
                p.localization = comment[3];
            }
        } else {
            p.os = comment[0];
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rsi
movq 0x8(%rsi), %rdx
testq %rdx, %rdx
je 0x25237
leaq -0x1(%rdx), %rax
cmpq $0x6, %rax
movl $0x6, %edi
cmovbq %rax, %rdi
movq (%rsi), %rcx
incq %rdi
xorl %r8d, %r8d
leaq 0x120c1(%rip), %r9      # 0x371b7
movb (%rcx,%r8), %r10b
cmpb (%r8,%r9), %r10b
jne 0x251fa
incq %r8
cmpq %r8, %rdi
jne 0x250f6
cmpq $0x6, %rax
jb 0x251fa
leaq 0x40(%rbx), %rdi
movq 0x48(%rbx), %rdx
leaq 0x12092(%rip), %rcx     # 0x371b7
movl $0x7, %r8d
xorl %esi, %esi
callq 0x7550
movq (%r14), %rax
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %r15
movq %r15, %rdi
callq 0xe87a
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x24481
leaq 0x60(%rbx), %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rsi
callq 0x7410
movq (%r15), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2518c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7340
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x251a2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7340
cmpl $0x3, %ebp
jl 0x25276
je 0x251f1
movq (%r14), %rsi
movq 0x48(%rsi), %rax
testq %rax, %rax
je 0x251f1
decq %rax
cmpq $0x2, %rax
movl $0x2, %ecx
cmovbq %rax, %rcx
movq 0x40(%rsi), %rdx
incq %rcx
xorl %edi, %edi
leaq 0xc2f2(%rip), %r8       # 0x314cb
movb (%rdx,%rdi), %r9b
cmpb (%rdi,%r8), %r9b
jne 0x251f1
incq %rdi
cmpq %rdi, %rcx
jne 0x251d9
cmpq $0x2, %rax
jae 0x25262
movq (%r14), %rsi
addq $0x40, %rsi
jmp 0x25266
testq %rdx, %rdx
je 0x25237
cmpq $0x6, %rax
movl $0x6, %edx
cmovbq %rax, %rdx
incq %rdx
xorl %edi, %edi
leaq 0xc18f(%rip), %r8       # 0x313a7
movb (%rcx,%rdi), %r9b
cmpb (%rdi,%r8), %r9b
jne 0x25237
incq %rdi
cmpq %rdi, %rdx
jne 0x25218
cmpq $0x6, %rax
jb 0x25237
movb $0x1, 0x121(%rbx)
leaq 0x40(%rbx), %rdi
callq 0x71f0
movq (%r14), %rsi
movl $0x60, %eax
cmpl $0x2, %ebp
jl 0x2526b
addq $0x20, %rsi
leaq 0x60(%rbx), %rdi
callq 0x71f0
cmpl $0x4, %ebp
jl 0x25276
movq (%r14), %rsi
addq $0x60, %rsi
movl $0x80, %eax
addq %rax, %rbx
movq %rbx, %rdi
callq 0x71f0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x2529c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7340
movq %rbx, %rdi
callq 0x7630