	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_suspend_all_unlock        ## -- Begin function _thr_suspend_all_unlock
	.p2align	4, 0x90
__thr_suspend_all_unlock:               ## @_thr_suspend_all_unlock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	__suspend_all_lock@GOTPCREL(%rip), %rsi
	callq	_THR_LOCK_ACQUIRE
	movq	__single_thread@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	__suspend_all_waiters@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	__suspend_all_cycle@GOTPCREL(%rip), %rdi
	incl	(%rdi)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	__thr_umtx_wake
LBB0_2:
	movq	__suspend_all_lock@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_THR_LOCK_RELEASE               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__suspend_all_lock,4,2          ## @_suspend_all_lock
	.comm	__single_thread,8,3             ## @_single_thread
	.comm	__suspend_all_waiters,8,3       ## @_suspend_all_waiters
	.comm	__suspend_all_cycle,4,2         ## @_suspend_all_cycle
	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_suspend_all_unlock        ; -- Begin function _thr_suspend_all_unlock
	.p2align	2
__thr_suspend_all_unlock:               ; @_thr_suspend_all_unlock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, __suspend_all_lock@GOTPAGE
Lloh1:
	ldr	x1, [x1, __suspend_all_lock@GOTPAGEOFF]
	bl	_THR_LOCK_ACQUIRE
Lloh2:
	adrp	x8, __single_thread@GOTPAGE
Lloh3:
	ldr	x8, [x8, __single_thread@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x8, __suspend_all_waiters@GOTPAGE
Lloh6:
	ldr	x8, [x8, __suspend_all_waiters@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, __suspend_all_cycle@GOTPAGE
Lloh9:
	ldr	x0, [x0, __suspend_all_cycle@GOTPAGEOFF]
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
Lloh10:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #0
	bl	__thr_umtx_wake
LBB0_2:
Lloh13:
	adrp	x1, __suspend_all_lock@GOTPAGE
Lloh14:
	ldr	x1, [x1, __suspend_all_lock@GOTPAGEOFF]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_THR_LOCK_RELEASE
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	__suspend_all_lock,4,2          ; @_suspend_all_lock
	.comm	__single_thread,8,3             ; @_single_thread
	.comm	__suspend_all_waiters,8,3       ; @_suspend_all_waiters
	.comm	__suspend_all_cycle,4,2         ; @_suspend_all_cycle
	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
