// File: /workspace/github_cpp_makefile_star2_O1/yayuntian[P]user_agent/operatingSystem.cpp
// Function: osName(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>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void osName(vector<string>& osSplit, string& name, string& version) {
    size_t os_len = osSplit.size();
    OSInfo osInfo;

    if (os_len == 1) {
        name = osSplit[0];
        version = "";
    } else {
        vector<string> nameSplit = split_v(osSplit, 0, os_len - 1);
        version = osSplit[os_len - 1];

        if (nameSplit.size() > 2 && nameSplit[0] == "Intel" &&
                nameSplit[1] == "Mac") {
            nameSplit = split_v(nameSplit, 1, nameSplit.size());
        }
        name = join(nameSplit, " ");

        if (contains(version, "x86") || contains(version, "i686")) {
            version = "";
        } else if (version == "X" && name == "Mac OS") {
            name = name + " " + version;
            version = "";
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %rbx
movq %rsi, %rcx
movq (%rdi), %rsi
movq 0x8(%rdi), %r15
subq %rsi, %r15
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0xb8(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
cmpq $0x20, %r15
jne 0x2542c
movq %rcx, %rdi
callq 0x71f0
movq 0x8(%rbx), %rdx
leaq 0xdfaa(%rip), %rcx      # 0x333c4
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
jmp 0x256bd
movq %rdi, %r12
movq %rcx, (%rsp)
sarq $0x5, %r15
decq %r15
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
movl %r15d, %ecx
callq 0x2531d
shlq $0x5, %r15
addq (%r12), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x71f0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
subq %rdi, %rax
cmpq $0x41, %rax
jb 0x25511
leaq 0x11e00(%rip), %rsi     # 0x3727d
callq 0x70d0
testl %eax, %eax
jne 0x25511
movq 0x8(%rsp), %rdi
addq $0x20, %rdi
leaq 0xb9bf(%rip), %rsi      # 0x30e59
callq 0x70d0
testl %eax, %eax
jne 0x25511
leaq 0x8(%rsp), %rsi
movq 0x8(%rsi), %rcx
subq (%rsi), %rcx
shrq $0x5, %rcx
leaq 0x48(%rsp), %rdi
movl $0x1, %edx
callq 0x2531d
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movups 0x8(%rsp), %xmm0
movq 0x18(%rsp), %rax
leaq 0x48(%rsp), %r15
movups (%r15), %xmm1
movups %xmm1, 0x8(%rsp)
movq 0x10(%r15), %rcx
movq %rcx, 0x18(%rsp)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups %xmm1, (%r15)
movq $0x0, 0x10(%r15)
callq 0xf6ee
movq %r15, %rdi
callq 0xf6ee
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %rbp
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
cmpq %rbp, %r14
je 0x2554f
movq (%r14), %rcx
movq 0x8(%r14), %r8
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73b0
addq $0x20, %r14
cmpq %rbp, %r14
je 0x25597
leaq 0xe832(%rip), %r15      # 0x33d8d
leaq 0x20(%rsp), %r12
movq 0x28(%rsp), %rsi
movl $0x1, %r8d
movq %r12, %rdi
xorl %edx, %edx
movq %r15, %rcx
callq 0x73b0
movq 0x28(%rsp), %rsi
movq (%r14), %rcx
movq 0x8(%r14), %r8
movq %r12, %rdi
xorl %edx, %edx
callq 0x73b0
addq $0x20, %r14
cmpq %rbp, %r14
jne 0x25560
leaq 0x20(%rsp), %r15
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x7410
movq (%r15), %rdi
movq %r13, %r15
cmpq %r13, %rdi
je 0x255c0
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7340
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
leaq (%rcx,%rdx), %rax
movq %rax, %r9
movq %rax, %rsi
testq %rdx, %rdx
leaq 0x78(%rsp), %r14
leaq 0x98(%rsp), %rbp
leaq 0xb8(%rsp), %r13
je 0x2563c
leaq -0x1(%rdx), %rdi
leaq 0x11c8d(%rip), %r8      # 0x37283
movq %rcx, %rsi
xorl %r10d, %r10d
movb (%rsi,%r10), %r9b
cmpb (%r10,%r8), %r9b
jne 0x2561e
leaq 0x1(%r10), %r11
cmpq %r10, %rdi
je 0x25618
cmpq $0x2, %r10
movq %r11, %r10
jne 0x255fc
leaq (%rsi,%r11), %r9
jmp 0x25625
leaq (%rsi,%r10), %r9
movq %r10, %r11
cmpq $0x3, %r11
je 0x2563c
incq %rsi
decq %rdi
cmpq %rax, %rsi
jne 0x255f9
movq %rax, %r9
movq %rax, %rsi
cmpq %r9, %rsi
jne 0x2569f
testq %rdx, %rdx
je 0x2568e
leaq -0x1(%rdx), %rsi
leaq 0x11c36(%rip), %rdi     # 0x37287
xorl %r8d, %r8d
movb (%rcx,%r8), %r9b
cmpb (%r8,%rdi), %r9b
jne 0x25676
leaq 0x1(%r8), %r9
cmpq %r8, %rsi
je 0x25670
cmpq $0x3, %r8
movq %r9, %r8
jne 0x25654
leaq (%rcx,%r9), %r10
jmp 0x2567d
leaq (%rcx,%r8), %r10
movq %r8, %r9
cmpq $0x4, %r9
je 0x25693
incq %rcx
decq %rsi
cmpq %rax, %rcx
jne 0x25651
movq %rax, %rcx
jmp 0x25696
movq %r10, %rax
cmpq %rax, %rcx
je 0x25720
leaq 0xdd1e(%rip), %rcx      # 0x333c4
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x7550
leaq 0x8(%rsp), %rdi
callq 0xf6ee
movq 0xa8(%rsp), %rdi
cmpq %r13, %rdi
je 0x256da
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x256f7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x2570e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x7340
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11b78(%rip), %rsi     # 0x3729f
movq %rbx, %rdi
callq 0x70d0
testl %eax, %eax
jne 0x256b3
leaq 0x11b52(%rip), %rsi     # 0x3728c
movq (%rsp), %rdi
callq 0x70d0
testl %eax, %eax
jne 0x256b3
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xe87a
leaq 0xe619(%rip), %rsi      # 0x33d8d
leaq 0x48(%rsp), %rdi
callq 0x76c0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
leaq 0x48(%rsp), %rdi
callq 0x70e0
movq %r15, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x257b2
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x257b9
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %r15, %r13
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x7410
movq (%r15), %rdi
cmpq %r13, %rdi
je 0x257f9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
leaq 0xb8(%rsp), %r13
je 0x25818
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x7340
movq 0x8(%rbx), %rdx
jmp 0x2569f
jmp 0x25823
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x25865
movq 0x58(%rsp), %rsi
jmp 0x2585d
jmp 0x2583f
jmp 0x2583f
jmp 0x2584b
jmp 0x25844
movq %rax, %rbx
jmp 0x25865
movq %rax, %rbx
jmp 0x2586f
jmp 0x2584b
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x25865
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7340
leaq 0x8(%rsp), %rdi
callq 0xf6ee
leaq 0x68(%rsp), %rdi
callq 0x263cc
movq %rbx, %rdi
callq 0x7630