// File: /workspace/github_cpp_makefile_star2_O3/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 0x14fa7
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 0x1500a
movb 0xe0(%r14), %al
testb $0x1, %al
je 0x14f9d
movq 0x100(%r14), %r12
cmpq 0x18(%rsp), %r12
je 0x14f21
movl 0x20(%r12), %r15d
movl 0x28(%r12), %r13d
leaq 0x30(%r12), %rsi
movq %rbx, %rdi
callq 0x12a3a
movq %r14, %rdi
movl %r15d, %esi
movl %r13d, %edx
movq %rbx, %rcx
callq 0x12b42
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x14f0f
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movq %r12, %rdi
callq 0xb3a0
movq %rax, %r12
cmpq 0x18(%rsp), %rax
jne 0x14ed0
movq 0x28(%rsp), %rdi
callq 0x15040
movb $0x0, 0xe0(%r14)
movq 0x8(%rsp), %rdi
callq 0xb3f0
movq 0x10(%rsp), %rdi
callq 0xd7dc
movq 0xa0(%r14), %r12
cmpq %rbp, %r12
je 0x14f82
movq 0x28(%r12), %rax
movb 0x28(%rax), %r13b
movq %r12, %rdi
callq 0xb3a0
movq %rax, %r15
testb $0x1, %r13b
jne 0x14f7a
movq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x1506e
movq %r15, %r12
cmpq %rbp, %r15
jne 0x14f53
movq 0x10(%rsp), %rdi
callq 0xd83c
movb 0xe0(%r14), %al
testb $0x1, %al
jne 0x14ea1
jmp 0x14fa7
movq 0x8(%rsp), %rdi
callq 0xb3f0
leaq 0x18(%r14), %rbx
movq %rbx, %rdi
callq 0xd84e
movq 0xa0(%r14), %r15
addq $0x90, %r14
cmpq %r14, %r15
movq 0x20(%rsp), %r12
je 0x14ff3
movq 0x28(%r15), %rax
movb 0x28(%rax), %al
testb $0x1, %al
je 0x14fe3
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 0x14fcb
movq %rbx, %rdi
callq 0xd87c
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0xb370
jmp 0x15037
movq %rax, %rbx
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x1502f
leaq 0x38(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0xba10
movq %rax, %rdi
callq 0xd7cf
nop