	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lock
___lock:                                ## @__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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, %r15d
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdx
	callq	___find_or_insert
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	-32(%rbp), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	$0, 8(%rbx)
	movl	$1, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movl	$1, (%rcx)
	movl	%r15d, 4(%rcx)
	movq	%rcx, (%r14)
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx)
	setg	%al
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	___lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lock
___lock:                                ; @__lock
	.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, x4
	mov	x21, x3
	mov	x20, x2
	add	x3, sp, #8
	mov	x2, x21
	bl	___find_or_insert
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	str	xzr, [x21, #8]
	mov	w8, #1
	stp	w8, w20, [x21]
	str	x21, [x19]
	b	LBB0_5
LBB0_4:
	mov	w9, #1
	stp	w9, w20, [x8]
	str	x8, [x19]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, gt
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	___lock
.subsections_via_symbols
