	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evsig_dealloc_                 ## -- Begin function evsig_dealloc_
	.p2align	4, 0x90
_evsig_dealloc_:                        ## @evsig_dealloc_
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	24(%r14), %rdi
	callq	_event_del
	movq	$0, 32(%r14)
LBB0_2:
	leaq	24(%r14), %rdi
	callq	_event_debug_unassign
	movq	_NSIG@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_evsig_restore_handler_
	movl	(%r15), %eax
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_EVSIGBASE_LOCK
	movq	_evsig_base@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	$0, (%rax)
	movq	_evsig_base_n_signals_added@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_evsig_base_fd@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_10:
	xorl	%eax, %eax
	callq	_EVSIGBASE_UNLOCK
	movq	8(%r14), %rax
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_12
## %bb.11:
	callq	_evutil_closesocket
	movq	8(%r14), %rax
	movl	$-1, (%rax)
LBB0_12:
	movl	4(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_14
## %bb.13:
	callq	_evutil_closesocket
	movq	8(%r14), %rax
	movl	$-1, 4(%rax)
LBB0_14:
	movl	$0, (%r14)
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_mm_free
	movq	$0, 16(%r14)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSIG,4,2                       ## @NSIG
	.comm	_evsig_base,8,3                 ## @evsig_base
	.comm	_evsig_base_n_signals_added,8,3 ## @evsig_base_n_signals_added
	.comm	_evsig_base_fd,4,2              ## @evsig_base_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evsig_dealloc_                 ; -- Begin function evsig_dealloc_
	.p2align	2
_evsig_dealloc_:                        ; @evsig_dealloc_
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #24
	bl	_event_del
	str	xzr, [x19, #32]
LBB0_2:
	add	x0, x19, #24
	bl	_event_debug_unassign
Lloh0:
	adrp	x21, _NSIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NSIG@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x19]
	cmp	x20, x9
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x20, lsl #3]
	cbz	x9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_evsig_restore_handler_
	ldr	w8, [x21]
	b	LBB0_4
LBB0_8:
	bl	_EVSIGBASE_LOCK
Lloh2:
	adrp	x8, _evsig_base@GOTPAGE
Lloh3:
	ldr	x8, [x8, _evsig_base@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x19
	b.ne	LBB0_10
; %bb.9:
Lloh4:
	adrp	x9, _evsig_base_n_signals_added@GOTPAGE
Lloh5:
	ldr	x9, [x9, _evsig_base_n_signals_added@GOTPAGEOFF]
	str	xzr, [x8]
Lloh6:
	str	xzr, [x9]
Lloh7:
	adrp	x8, _evsig_base_fd@GOTPAGE
Lloh8:
	ldr	x8, [x8, _evsig_base_fd@GOTPAGEOFF]
	mov	w9, #-1
Lloh9:
	str	w9, [x8]
LBB0_10:
	bl	_EVSIGBASE_UNLOCK
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.11:
	bl	_evutil_closesocket
	ldr	x8, [x19, #8]
	mov	w9, #-1
	str	w9, [x8]
LBB0_12:
	ldr	w0, [x8, #4]
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.13:
	bl	_evutil_closesocket
	ldr	x8, [x19, #8]
	mov	w9, #-1
	str	w9, [x8, #4]
LBB0_14:
	str	wzr, [x19]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_mm_free
	str	xzr, [x19, #16]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NSIG,4,2                       ; @NSIG
	.comm	_evsig_base,8,3                 ; @evsig_base
	.comm	_evsig_base_n_signals_added,8,3 ; @evsig_base_n_signals_added
	.comm	_evsig_base_fd,4,2              ; @evsig_base_fd
.subsections_via_symbols
