// File: /workspace/github_c_makefile_star2_O2/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 0xef6d(%rip), %al       # 0x1a388
testb %al, %al
je 0xb533
movb 0xef6f(%rip), %al       # 0x1a398
testb %al, %al
je 0xb572
movb 0xef81(%rip), %al       # 0x1a3b8
testb %al, %al
je 0xb5a8
movl 0x50(%r15), %esi
leaq 0x18(%rsp), %r13
orl $-0x1, (%r13)
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r13, %rdx
callq 0xb652
movq 0x18(%r14), %rax
addq $0x8, %r14
movq %r14, 0x8(%rsp)
leaq 0xef0f(%rip), %r12      # 0x1a380
leaq 0xef28(%rip), %rbp      # 0x1a3a0
cmpq 0x8(%rsp), %rax
je 0xb521
movq %rax, 0x10(%rsp)
leaq 0x20(%rax), %rsi
movq %r13, %rdi
callq 0x6430
movq %r13, %rdi
callq 0xb6a8
movq %rax, %r13
xorl %r14d, %r14d
movl 0x50(%r15), %ecx
cmpq %rcx, %r14
jae 0xb505
movq 0xeef6(%rip), %rdx      # 0x1a3a8
movq 0xeee7(%rip), %rax      # 0x1a3a0
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rcx, %rdx
jae 0xb4ec
leaq 0xeec4(%rip), %rdi      # 0x1a390
movq %r12, %rsi
callq 0xb626
movl %eax, 0x4(%rsp)
movq %rbp, %rdi
leaq 0x4(%rsp), %rsi
callq 0xb72e
movq 0xeeb4(%rip), %rax      # 0x1a3a0
movl (%rax,%r14,4), %eax
xorl %r13d, %eax
movq (%rbx), %rcx
cmpl (%rcx,%r14,4), %eax
jae 0xb500
movl %eax, (%rcx,%r14,4)
incq %r14
jmp 0xb4a2
leaq 0x18(%rsp), %r13
movq %r13, %rdi
callq 0x6658
movq 0x10(%rsp), %rdi
callq 0x6370
jmp 0xb478
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xee4e(%rip), %rdi      # 0x1a388
callq 0x65d0
testl %eax, %eax
je 0xb423
movl 0x54(%r15), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %edx, %edx
divl %ecx
cmpl $0x1, %edx
adcl $0x0, %edx
movq %rdx, 0xee1f(%rip)      # 0x1a380
leaq 0xee20(%rip), %rdi      # 0x1a388
callq 0x61f0
jmp 0xb423
leaq 0xee1f(%rip), %rdi      # 0x1a398
callq 0x65d0
testl %eax, %eax
je 0xb431
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0xedf9(%rip)      # 0x1a390
leaq 0xedfa(%rip), %rdi      # 0x1a398
callq 0x61f0
jmp 0xb431
leaq 0xee09(%rip), %rdi      # 0x1a3b8
callq 0x65d0
testl %eax, %eax
je 0xb43f
xorps %xmm0, %xmm0
movups %xmm0, 0xedda(%rip)     # 0x1a3a0
andq $0x0, 0xede2(%rip)      # 0x1a3b0
leaq 0xedcb(%rip), %rsi      # 0x1a3a0
leaq 0x70(%rip), %rdi        # 0xb64c
leaq 0xed4d(%rip), %rdx      # 0x1a330
callq 0x62d0
leaq 0xedc9(%rip), %rdi      # 0x1a3b8
callq 0x61f0
jmp 0xb43f
movq %rax, %r14
jmp 0xb60d
jmp 0xb600
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x6658
movq %rbx, %rdi
callq 0x781e
movq %r14, %rdi
callq 0x65a0
nop