// File: /workspace/github_c_makefile_star2_O0/perdisci[P]LSH/minhash.cpp
// Function: rp::MinHash::minhash_universal(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<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>>>> const&)
vector<uint32_t> MinHash::minhash_universal(const set<string>& s_set) {

    vector<uint32_t> mh_sig(sig_len,UINT32_MAX);
    for(string s : s_set) {
        uint64_t xxh = static_cast<uint64_t>(XXH64(s.data(),s.size(),seed));
        vector<uint32_t> rh = random_uint32_universal_hash(xxh);
        for(int i=0; i<sig_len; i++) {
            if(rh[i] < mh_sig[i])
                mh_sig[i] = rh[i];
        }
    }
    
    return std::move(mh_sig);
}

// Assembly:
subq $0xf8, %rsp
movq %rdi, 0x28(%rsp)
movq %rdi, %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movq %rdx, 0xe0(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x38(%rsp)
movl 0x50(%rax), %eax
movq %rax, 0x40(%rsp)
movl $0xffffffff, 0xc4(%rsp) # imm = 0xFFFFFFFF
leaq 0xc3(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0x196d0
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rcx
leaq 0xc8(%rsp), %rdi
leaq 0xc4(%rsp), %rdx
callq 0x196e0
jmp 0x18e1f
leaq 0xc3(%rsp), %rdi
callq 0xb7c0
movq 0xe0(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x19760
movq %rax, 0xa0(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x19790
movq %rax, 0x98(%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x197c0
testb $0x1, %al
jne 0x18e84
jmp 0x19012
leaq 0xa0(%rsp), %rdi
callq 0x197e0
movq %rax, %rsi
leaq 0x78(%rsp), %rdi
callq 0x81a0
jmp 0x18ea0
leaq 0x78(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x85d0
movq 0x10(%rsp), %rdi
movq %rax, 0x18(%rsp)
callq 0x8350
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq 0x38(%rsp), %rax
movl 0x54(%rax), %eax
movl %eax, %edx
callq 0x1e1f0
movq %rax, 0x20(%rsp)
jmp 0x18edc
movq 0x38(%rsp), %rsi
movq 0x20(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rdx
leaq 0x58(%rsp), %rdi
callq 0x18b90
jmp 0x18efc
movl $0x0, 0x54(%rsp)
movq 0x38(%rsp), %rcx
movl 0x54(%rsp), %eax
cmpl 0x50(%rcx), %eax
jae 0x18fec
movslq 0x54(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x19810
movl (%rax), %eax
movl %eax, 0xc(%rsp)
movslq 0x54(%rsp), %rsi
leaq 0xc8(%rsp), %rdi
callq 0x19810
movq %rax, %rcx
movl 0xc(%rsp), %eax
cmpl (%rcx), %eax
jae 0x18fda
movslq 0x54(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x19810
movl (%rax), %eax
movl %eax, 0x8(%rsp)
movslq 0x54(%rsp), %rsi
leaq 0xc8(%rsp), %rdi
callq 0x19810
movl 0x8(%rsp), %ecx
movl %ecx, (%rax)
jmp 0x18fda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
leaq 0xc3(%rsp), %rdi
callq 0xb7c0
jmp 0x1904b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
jmp 0x1903e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x8928
jmp 0x1903e
jmp 0x18fdc
movl 0x54(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x54(%rsp)
jmp 0x18f04
leaq 0x58(%rsp), %rdi
callq 0xbe70
leaq 0x78(%rsp), %rdi
callq 0x8928
leaq 0xa0(%rsp), %rdi
callq 0x19830
jmp 0x18e66
movq 0x28(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x19860
leaq 0xc8(%rsp), %rdi
callq 0xbe70
movq 0x30(%rsp), %rax
addq $0xf8, %rsp
retq
leaq 0xc8(%rsp), %rdi
callq 0xbe70
movq 0xb8(%rsp), %rdi
callq 0x8820
nopl (%rax,%rax)