// File: /workspace/github_c_makefile_star2_O1/perdisci[P]LSH/minhash.cpp
// Function: rp::MinHash::minhash_xor(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_xor(const set<string>& s_set) {
    
    static boost::hash<std::string> boost_hash_fn;
    
    static std::default_random_engine rand_eng(seed);
    static std::uniform_int_distribution<uint32_t> srandom;
        
    static vector<uint32_t> rn;
        
    vector<uint32_t> mh_sig(sig_len,std::numeric_limits<uint32_t>::max());
    for(string s : s_set) {
        std::size_t boosth = boost_hash_fn(s);
        for(int i=0; i<sig_len; i++) {
            if(rn.size()<sig_len)
                rn.push_back(srandom(rand_eng));
            uint32_t h = boosth^rn[i];
            if(h < mh_sig[i]) {
                mh_sig[i] = h;
            }
        }
    }
        
    return mh_sig;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movb 0xe8ff(%rip), %al       # 0x1b390
testb %al, %al
je 0xcc3c
movb 0xe901(%rip), %al       # 0x1b3a0
testb %al, %al
je 0xcc49
movb 0xe913(%rip), %al       # 0x1b3c0
testb %al, %al
je 0xcc53
movl 0x50(%r15), %esi
leaq 0x8(%rsp), %rdx
movl $0xffffffff, (%rdx)     # imm = 0xFFFFFFFF
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
callq 0xcc9c
movq 0x18(%r14), %r12
addq $0x8, %r14
movq %r14, 0x28(%rsp)
cmpq %r14, %r12
je 0xcc2a
movabsq $-0x395b586ca42e166b, %r14 # imm = 0xC6A4A7935BD1E995
movl $0xe6546b64, %ebp       # imm = 0xE6546B64
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x833e
movq %r12, 0x30(%rsp)
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xcb5e
movq 0x8(%rsp), %rcx
xorl %edx, %edx
xorl %r12d, %r12d
movsbq (%rcx,%rdx), %rsi
imulq %r14, %rsi
movq %rsi, %rdi
shrq $0x2f, %rdi
xorq %rsi, %rdi
imulq %r14, %rdi
xorq %r12, %rdi
imulq %r14, %rdi
movq %rdi, %r12
addq %rbp, %r12
incq %rdx
cmpq %rdx, %rax
jne 0xcb30
jmp 0xcb61
xorl %r12d, %r12d
movl 0x50(%r15), %eax
testl %eax, %eax
je 0xcbfe
xorl %r13d, %r13d
movq 0xe839(%rip), %rcx      # 0x1b3b0
subq 0xe82a(%rip), %rcx      # 0x1b3a8
sarq $0x2, %rcx
movl %eax, %eax
cmpq %rax, %rcx
jae 0xcbd3
leaq 0xe808(%rip), %rdi      # 0x1b398
leaq 0xe7f1(%rip), %rsi      # 0x1b388
movq %rdi, %rdx
callq 0xd1e2
movl %eax, 0x4(%rsp)
movq 0xe806(%rip), %rsi      # 0x1b3b0
cmpq 0xe807(%rip), %rsi      # 0x1b3b8
je 0xcbc2
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xe7f0(%rip)      # 0x1b3b0
jmp 0xcbd3
leaq 0xe7df(%rip), %rdi      # 0x1b3a8
leaq 0x4(%rsp), %rdx
callq 0xce10
movq 0xe7ce(%rip), %rax      # 0x1b3a8
movl (%rax,%r13,4), %eax
xorl %r12d, %eax
movq (%rbx), %rcx
cmpl (%rcx,%r13,4), %eax
jae 0xcbee
movl %eax, (%rcx,%r13,4)
incq %r13
movl 0x50(%r15), %eax
cmpq %rax, %r13
jb 0xcb70
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xcc12
callq 0x6300
movq 0x30(%rsp), %rdi
callq 0x6390
movq %rax, %r12
cmpq 0x28(%rsp), %rax
jne 0xcaf6
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x6729
jmp 0xca99
callq 0x6765
jmp 0xcaa7
callq 0x6796
jmp 0xcab5
movq %rax, %r14
jmp 0xcc79
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xcc79
callq 0x6300
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xcc86
callq 0x6300
movq %r14, %rdi
callq 0x65b0