// File: /workspace/github_cpp_makefile_star2_O1/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/SignalImpl.hpp
// Function: BSignals::details::SignalImpl<unsigned int>::emitSignalThreadSafe(unsigned int const&)
inline void emitSignalThreadSafe(const Args& ... p){
        while (connectBufferDirty.load(std::memory_order_acquire)){
            connectBufferLock.lock();
            if (!connectBufferDirty.load(std::memory_order_acquire)){
                connectBufferLock.unlock();
                break;
            }
            for (auto const &kvpair : connectBuffer){
                connectSlotFunction(kvpair.first, kvpair.second.scheme, kvpair.second.slot);
            }
            connectBuffer.clear();
            connectBufferDirty.store(false, std::memory_order_release);
            connectBufferLock.unlock();
            slotLock.lock();
            for (auto it = slots.begin(); it!= slots.end();){
                if (!it->second->isAlive()){
                    it = slots.erase(it);
                }
                else{
                    ++it;
                }
            }
            slotLock.unlock();
        }
        slotLock.lock_shared();
        for (auto const &kvpair : slots){
            if (kvpair.second->isAlive()){
                kvpair.second->execute(p...);
            }
        }
        slotLock.unlock_shared();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, 0x20(%rsp)
movq %rdi, %r14
movb 0xe0(%rdi), %al
testb $0x1, %al
je 0x15227
leaq 0xb8(%r14), %rax
movq %rax, 0x8(%rsp)
leaq 0xe8(%r14), %rax
movq %rax, 0x28(%rsp)
leaq 0xf0(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x18(%r14), %rax
movq %rax, 0x10(%rsp)
leaq 0x88(%r14), %rax
movq %rax, 0x30(%rsp)
leaq 0x90(%r14), %rbp
leaq 0x38(%rsp), %rbx
movq 0x8(%rsp), %rdi
callq 0xb830
testl %eax, %eax
jne 0x1528a
movb 0xe0(%r14), %al
testb $0x1, %al
je 0x1521d
movq 0x100(%r14), %r12
cmpq 0x18(%rsp), %r12
je 0x151a1
movl 0x20(%r12), %r15d
movl 0x28(%r12), %r13d
leaq 0x30(%r12), %rsi
movq %rbx, %rdi
callq 0x12bf6
movq %r14, %rdi
movl %r15d, %esi
movl %r13d, %edx
movq %rbx, %rcx
callq 0x12d0c
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x1518f
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movq %r12, %rdi
callq 0xb3a0
movq %rax, %r12
cmpq 0x18(%rsp), %rax
jne 0x15150
movq 0x28(%rsp), %rdi
callq 0x152c0
movb $0x0, 0xe0(%r14)
movq 0x8(%rsp), %rdi
callq 0xb3f0
movq 0x10(%rsp), %rdi
callq 0xd82c
movq 0xa0(%r14), %r12
cmpq %rbp, %r12
je 0x15202
movq 0x28(%r12), %rax
movb 0x28(%rax), %r13b
movq %r12, %rdi
callq 0xb3a0
movq %rax, %r15
testb $0x1, %r13b
jne 0x151fa
movq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x152ee
movq %r15, %r12
cmpq %rbp, %r15
jne 0x151d3
movq 0x10(%rsp), %rdi
callq 0xd88c
movb 0xe0(%r14), %al
testb $0x1, %al
jne 0x15121
jmp 0x15227
movq 0x8(%rsp), %rdi
callq 0xb3f0
leaq 0x18(%r14), %rbx
movq %rbx, %rdi
callq 0xd89e
movq 0xa0(%r14), %r15
addq $0x90, %r14
cmpq %r14, %r15
movq 0x20(%rsp), %r12
je 0x15273
movq 0x28(%r15), %rax
movb 0x28(%rax), %al
testb $0x1, %al
je 0x15263
movq 0x28(%r15), %rdi
movq (%rdi), %rax
movq %r12, %rsi
callq *0x10(%rax)
movq %r15, %rdi
callq 0xb3a0
movq %rax, %r15
cmpq %r14, %rax
jne 0x1524b
movq %rbx, %rdi
callq 0xd8cc
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0xb370
jmp 0x152b7
movq %rax, %rbx
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x152af
leaq 0x38(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0xba10
movq %rax, %rdi
callq 0xd81f
nop