	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deliver_signal_unlocked
_deliver_signal_unlocked:               ## @deliver_signal_unlocked
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_sigset_has
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_sigset_add
	movl	$8, %edi
	callq	_malloc
	movl	%r14d, 4(%rax)
	leaq	52(%r15), %rdi
	movq	%rax, %rsi
	callq	_list_add_tail
	movl	8(%r15), %edi
	notl	%edi
	andl	4(%r15), %edi
	movl	%r14d, %esi
	callq	_sigset_has
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%r14d, %edi
	callq	_signal_is_blockable
	testq	%rax, %rax
	jne	LBB0_12
LBB0_3:
	movq	_current@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_12
## %bb.4:
	movl	48(%r15), %edi
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pthread_kill
	movq	16(%r15), %rdi
	callq	_unlock
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_lock
	cmpq	$0, 40(%r15)
	je	LBB0_11
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rdi
	addq	$4, %rdi
	callq	_pthread_mutex_trylock
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r15), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_pthread_self
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pthread_equal
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_unlock
	movq	%r14, %rdi
	callq	_lock
	cmpq	$0, 40(%r15)
	jne	LBB0_6
	jmp	LBB0_11
LBB0_9:
	movq	40(%r15), %rdi
	callq	_notify
	movq	32(%r15), %rdi
	callq	_unlock
	jmp	LBB0_11
LBB0_8:
	movq	40(%r15), %rdi
	callq	_notify
LBB0_11:
	movq	%r14, %rdi
	callq	_unlock
	movq	16(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lock                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_EBUSY,8,3                      ## @EBUSY
	.no_dead_strip	_deliver_signal_unlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deliver_signal_unlocked
_deliver_signal_unlocked:               ; @deliver_signal_unlocked
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_sigset_has
	cbz	x0, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_sigset_add
	mov	w0, #8
	bl	_malloc
	mov	x1, x0
	str	w20, [x0, #4]
	add	x0, x19, #52
	bl	_list_add_tail
	ldp	w8, w9, [x19, #4]
	bic	w0, w8, w9
	mov	x1, x20
	bl	_sigset_has
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_signal_is_blockable
	cbnz	x0, LBB0_1
LBB0_4:
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_1
; %bb.5:
	ldr	w0, [x19, #48]
Lloh3:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_pthread_kill
	ldr	x0, [x19, #16]
	bl	_unlock
	add	x20, x19, #24
	mov	x0, x20
	bl	_lock
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_12
; %bb.6:
Lloh6:
	adrp	x22, _EBUSY@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EBUSY@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, #4
	bl	_pthread_mutex_trylock
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #32]
	ldr	w21, [x8]
	bl	_pthread_self
	mov	x1, x0
	mov	x0, x21
	bl	_pthread_equal
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_unlock
	mov	x0, x20
	bl	_lock
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_7
	b	LBB0_12
LBB0_10:
	ldr	x0, [x19, #40]
	bl	_notify
	ldr	x0, [x19, #32]
	bl	_unlock
	b	LBB0_12
LBB0_11:
	ldr	x0, [x19, #40]
	bl	_notify
LBB0_12:
	mov	x0, x20
	bl	_unlock
	ldr	x0, [x19, #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
	b	_lock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_EBUSY,8,3                      ; @EBUSY
	.no_dead_strip	_deliver_signal_unlocked
.subsections_via_symbols
