// File: /workspace/github_cpp_makefile_star2_O3/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 0x22e13
leaq -0x1(%rdx), %rax
cmpq $0x6, %rax
movl $0x6, %edi
cmovbq %rax, %rdi
movq (%rsi), %rcx
incq %rdi
xorl %r8d, %r8d
leaq 0x124a5(%rip), %r9      # 0x35167
movb (%rcx,%r8), %r10b
cmpb (%r8,%r9), %r10b
jne 0x22dd6
incq %r8
cmpq %r8, %rdi
jne 0x22cc2
cmpq $0x6, %rax
jb 0x22ddb
leaq 0x40(%rbx), %rdi
movq 0x48(%rbx), %rdx
leaq 0x12476(%rip), %rcx     # 0x35167
movl $0x7, %r8d
xorl %esi, %esi
callq 0x6550
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 0xc5fa
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x22045
leaq 0x60(%rbx), %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rsi
callq 0x6410
movq (%r15), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x22d58
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6340
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x22d6e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6340
cmpl $0x3, %ebp
jl 0x22e6b
movq (%r14), %rsi
je 0x22e5b
movq 0x48(%rsi), %rax
testq %rax, %rax
je 0x22e5b
decq %rax
cmpq $0x2, %rax
movl $0x2, %ecx
cmovbq %rax, %rcx
movq 0x40(%rsi), %rdx
incq %rcx
xorl %edi, %edi
leaq 0xc71e(%rip), %r8       # 0x2f4cb
movb (%rdx,%rdi), %r9b
cmpb (%rdi,%r8), %r9b
jne 0x22e5b
incq %rdi
cmpq %rdi, %rcx
jne 0x22dad
cmpq $0x2, %rax
jb 0x22e5b
addq $0x60, %rsi
jmp 0x22e5f
testq %rdx, %rdx
je 0x22e13
cmpq $0x6, %rax
movl $0x6, %edx
cmovbq %rax, %rdx
incq %rdx
xorl %edi, %edi
leaq 0xc5b3(%rip), %r8       # 0x2f3a7
movb (%rcx,%rdi), %r9b
cmpb (%rdi,%r8), %r9b
jne 0x22e13
incq %rdi
cmpq %rdi, %rdx
jne 0x22df4
cmpq $0x6, %rax
jb 0x22e13
movb $0x1, 0x121(%rbx)
leaq 0x40(%rbx), %rdi
callq 0x61f0
movq (%r14), %rsi
cmpl $0x2, %ebp
jl 0x22e43
addq $0x20, %rsi
leaq 0x60(%rbx), %rdi
callq 0x61f0
cmpl $0x4, %ebp
jb 0x22e6b
movq (%r14), %rsi
addq $0x60, %rsi
subq $-0x80, %rbx
jmp 0x22e47
addq $0x60, %rbx
movq %rbx, %rdi
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x61f0
addq $0x40, %rsi
subq $-0x80, %rbx
movq %rbx, %rdi
callq 0x61f0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x22e91
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6340
movq %rbx, %rdi
callq 0x6630