	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LWLockWaitListLock
_LWLockWaitListLock:                    ## @LWLockWaitListLock
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_LW_FLAG_LOCKED@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_pg_atomic_fetch_or_u32
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.1:
	movl	%eax, %r15d
	leaq	-40(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_finish_spin_delay
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_pg_atomic_fetch_or_u32
	movl	%eax, %r15d
	testl	%eax, (%r12)
	je	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r14, %rdi
	callq	_init_local_spin_delay
	testl	%r15d, (%r12)
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_perform_spin_delay
	movq	%rbx, %rdi
	callq	_pg_atomic_read_u32
	testl	%eax, (%r12)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LW_FLAG_LOCKED,4,2             ## @LW_FLAG_LOCKED
	.no_dead_strip	_LWLockWaitListLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LWLockWaitListLock
_LWLockWaitListLock:                    ; @LWLockWaitListLock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _LW_FLAG_LOCKED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LW_FLAG_LOCKED@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_pg_atomic_fetch_or_u32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	bl	_finish_spin_delay
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pg_atomic_fetch_or_u32
	mov	x20, x0
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	x0, sp, #8
	bl	_init_local_spin_delay
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #8
	bl	_perform_spin_delay
	mov	x0, x19
	bl	_pg_atomic_read_u32
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_4
	b	LBB0_2
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LW_FLAG_LOCKED,4,2             ; @LW_FLAG_LOCKED
	.no_dead_strip	_LWLockWaitListLock
.subsections_via_symbols
