	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_suspend_all_lock          ## -- Begin function _thr_suspend_all_lock
	.p2align	4, 0x90
__thr_suspend_all_lock:                 ## @_thr_suspend_all_lock
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	__suspend_all_lock@GOTPCREL(%rip), %rsi
	callq	_THR_LOCK_ACQUIRE
	movq	__single_thread@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	__suspend_all_waiters@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	__suspend_all_cycle@GOTPCREL(%rip), %r15
	movl	(%r15), %r15d
	incl	%eax
	movq	__suspend_all_waiters@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	movq	__suspend_all_lock@GOTPCREL(%rip), %r13
	movq	%r13, %rsi
	callq	_THR_LOCK_RELEASE
	movq	__suspend_all_cycle@GOTPCREL(%rip), %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	__thr_umtx_wait_uint
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_THR_LOCK_ACQUIRE
	movl	(%r12), %eax
	decl	%eax
	movl	%eax, (%r12)
	cmpq	$0, (%r14)
	jne	LBB0_2
LBB0_3:
	movq	%rbx, (%r14)
	movq	__suspend_all_lock@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_cycle,4,2         ## @_suspend_all_cycle
	.comm	__suspend_all_waiters,4,2       ## @_suspend_all_waiters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__thr_suspend_all_lock          ; -- Begin function _thr_suspend_all_lock
	.p2align	2
__thr_suspend_all_lock:                 ; @_thr_suspend_all_lock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x1, __suspend_all_lock@GOTPAGE
Lloh1:
	ldr	x1, [x1, __suspend_all_lock@GOTPAGEOFF]
	bl	_THR_LOCK_ACQUIRE
Lloh2:
	adrp	x23, __single_thread@GOTPAGE
Lloh3:
	ldr	x23, [x23, __single_thread@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.1:
Lloh4:
	adrp	x24, __suspend_all_waiters@GOTPAGE
Lloh5:
	ldr	x24, [x24, __suspend_all_waiters@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh6:
	adrp	x20, __suspend_all_cycle@GOTPAGE
Lloh7:
	ldr	x20, [x20, __suspend_all_cycle@GOTPAGEOFF]
Lloh8:
	adrp	x21, __suspend_all_lock@GOTPAGE
Lloh9:
	ldr	x21, [x21, __suspend_all_lock@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x20]
	add	w8, w8, #1
	str	w8, [x24]
	mov	x0, x19
	mov	x1, x21
	bl	_THR_LOCK_RELEASE
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	bl	__thr_umtx_wait_uint
	mov	x0, x19
	mov	x1, x21
	bl	_THR_LOCK_ACQUIRE
	ldr	w8, [x24]
	sub	w8, w8, #1
	str	w8, [x24]
	ldr	x9, [x23]
	cbnz	x9, LBB0_2
LBB0_3:
	str	x19, [x23]
Lloh10:
	adrp	x1, __suspend_all_lock@GOTPAGE
Lloh11:
	ldr	x1, [x1, __suspend_all_lock@GOTPAGEOFF]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_THR_LOCK_RELEASE
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__suspend_all_lock,4,2          ; @_suspend_all_lock
	.comm	__single_thread,8,3             ; @_single_thread
	.comm	__suspend_all_cycle,4,2         ; @_suspend_all_cycle
	.comm	__suspend_all_waiters,4,2       ; @_suspend_all_waiters
.subsections_via_symbols
