	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LWLockAttemptLock
_LWLockAttemptLock:                     ## @LWLockAttemptLock
	.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	%rsi, %r14
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %r12
	cmpq	%rsi, (%r12)
	sete	%al
	movq	_LW_SHARED@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	movq	%rdi, %rbx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_AssertArg
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_pg_atomic_read_u32
	movl	%eax, %edx
	movl	%eax, -44(%rbp)
	movq	_LW_VAL_EXCLUSIVE@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%edx, (%r13)
	je	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pg_atomic_compare_exchange_u32
	testq	%rax, %rax
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%r12)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_LW_LOCK_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %eax
	jmp	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_LW_VAL_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	addl	%edx, %eax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_pg_atomic_compare_exchange_u32
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LW_EXCLUSIVE,8,3               ## @LW_EXCLUSIVE
	.comm	_LW_SHARED,8,3                  ## @LW_SHARED
	.comm	_LW_LOCK_MASK,4,2               ## @LW_LOCK_MASK
	.comm	_LW_VAL_EXCLUSIVE,4,2           ## @LW_VAL_EXCLUSIVE
	.comm	_LW_VAL_SHARED,8,3              ## @LW_VAL_SHARED
	.comm	_MyProc,4,2                     ## @MyProc
	.no_dead_strip	_LWLockAttemptLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LWLockAttemptLock
_LWLockAttemptLock:                     ; @LWLockAttemptLock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _LW_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LW_EXCLUSIVE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x1
Lloh2:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ccmp	x8, x1, #4, ne
	cset	w0, eq
	bl	_AssertArg
	add	x20, x20, #4
	mov	x0, x20
	bl	_pg_atomic_read_u32
	mov	x2, x0
	str	w0, [sp, #12]
Lloh5:
	adrp	x22, _LW_LOCK_MASK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _LW_LOCK_MASK@GOTPAGEOFF]
Lloh7:
	adrp	x23, _LW_VAL_EXCLUSIVE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _LW_VAL_EXCLUSIVE@GOTPAGEOFF]
Lloh9:
	adrp	x24, _LW_VAL_SHARED@GOTPAGE
Lloh10:
	ldr	x24, [x24, _LW_VAL_SHARED@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	tst	w8, w2
	b.eq	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #12
	mov	x0, x20
	bl	_pg_atomic_compare_exchange_u32
	cbnz	x0, LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #12]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x8, x19
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	tst	w8, w2
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w2, w8, w2
	add	x1, sp, #12
	mov	x0, x20
	bl	_pg_atomic_compare_exchange_u32
	cbz	x0, LBB0_3
; %bb.9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LW_EXCLUSIVE,8,3               ; @LW_EXCLUSIVE
	.comm	_LW_SHARED,8,3                  ; @LW_SHARED
	.comm	_LW_LOCK_MASK,4,2               ; @LW_LOCK_MASK
	.comm	_LW_VAL_EXCLUSIVE,4,2           ; @LW_VAL_EXCLUSIVE
	.comm	_LW_VAL_SHARED,8,3              ; @LW_VAL_SHARED
	.comm	_MyProc,4,2                     ; @MyProc
	.no_dead_strip	_LWLockAttemptLock
.subsections_via_symbols
