// File: /workspace/github_c_makefile_star2_O3/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 0xe9d3(%rip), %al       # 0x1a390
testb %al, %al
je 0xbb6c
movb 0xe9d5(%rip), %al       # 0x1a3a0
testb %al, %al
je 0xbb79
movb 0xe9e7(%rip), %al       # 0x1a3c0
testb %al, %al
je 0xbb83
movl 0x50(%r15), %esi
leaq 0x8(%rsp), %rdx
movl $0xffffffff, (%rdx)     # imm = 0xFFFFFFFF
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
callq 0xbbcc
movq 0x18(%r14), %r13
addq $0x8, %r14
movq %r14, 0x28(%rsp)
cmpq %r14, %r13
je 0xbb5a
movabsq $-0x395b586ca42e166b, %r14 # imm = 0xC6A4A7935BD1E995
movl $0xe6546b64, %ebp       # imm = 0xE6546B64
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%r13), %rsi
movq 0x28(%r13), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x734c
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xba83
xorl %ecx, %ecx
xorl %r12d, %r12d
movsbq (%rdi,%rcx), %rdx
imulq %r14, %rdx
movq %rdx, %rsi
shrq $0x2f, %rsi
xorq %rdx, %rsi
imulq %r14, %rsi
xorq %r12, %rsi
imulq %r14, %rsi
movq %rsi, %r12
addq %rbp, %r12
incq %rcx
cmpq %rcx, %rax
jne 0xba55
jmp 0xba86
xorl %r12d, %r12d
movl 0x50(%r15), %ecx
testl %ecx, %ecx
je 0xbb35
movq %r13, 0x30(%rsp)
movq 0xe90a(%rip), %rax      # 0x1a3a8
xorl %r13d, %r13d
movq 0xe908(%rip), %rdx      # 0x1a3b0
subq %rax, %rdx
sarq $0x2, %rdx
movl %ecx, %ecx
cmpq %rcx, %rdx
jae 0xbb07
leaq 0xe8db(%rip), %rdi      # 0x1a398
leaq 0xe8c4(%rip), %rsi      # 0x1a388
movq %rdi, %rdx
callq 0xc122
movl %eax, 0x4(%rsp)
movq 0xe8d9(%rip), %rsi      # 0x1a3b0
cmpq 0xe8da(%rip), %rsi      # 0x1a3b8
je 0xbaef
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xe8c3(%rip)      # 0x1a3b0
jmp 0xbb00
leaq 0xe8b2(%rip), %rdi      # 0x1a3a8
leaq 0x4(%rsp), %rdx
callq 0xbd48
movq 0xe8a1(%rip), %rax      # 0x1a3a8
movl (%rax,%r13,4), %ecx
xorl %r12d, %ecx
movq (%rbx), %rdx
cmpl (%rdx,%r13,4), %ecx
jae 0xbb1b
movl %ecx, (%rdx,%r13,4)
incq %r13
movl 0x50(%r15), %ecx
cmpq %rcx, %r13
jb 0xbaa1
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %r13
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xbb44
callq 0x5300
movq %r13, %rdi
callq 0x5390
movq %rax, %r13
cmpq 0x28(%rsp), %rax
jne 0xba22
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x5727
jmp 0xb9c5
callq 0x5763
jmp 0xb9d3
callq 0x5794
jmp 0xb9e1
movq %rax, %r14
jmp 0xbba9
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xbba9
callq 0x5300
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xbbb6
callq 0x5300
movq %r14, %rdi
callq 0x55b0