	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_exclusive
_get_exclusive:                         ## @get_exclusive
	.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	%rdi, %r14
	movq	8(%rdi), %r15
	movq	16(%r15), %rdi
	callq	_spin_lock
	movl	4(%r15), %ebx
	addl	(%r15), %ebx
	addl	8(%r15), %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_ubi_assert
	cmpl	$2, %ebx
	jl	LBB0_2
## %bb.1:
	movl	24(%r15), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_dbg_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	$0, (%r15)
	movl	$1, 8(%r15)
	movl	(%r14), %ebx
	movq	_UBI_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_3:
	movq	16(%r15), %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d users for volume %d"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_UBI_EXCLUSIVE,4,2              ## @UBI_EXCLUSIVE
	.no_dead_strip	_get_exclusive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_exclusive
_get_exclusive:                         ; @get_exclusive
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0, #8]
	ldr	x0, [x21, #16]
	bl	_spin_lock
	ldp	w8, w9, [x21]
	ldr	w10, [x21, #8]
	add	w8, w9, w8
	add	w20, w8, w10
	cmp	w20, #0
	cset	w0, gt
	bl	_ubi_assert
	cmp	w20, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w2, [x21, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dbg_err
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	str	xzr, [x21]
	mov	w8, #1
	str	w8, [x21, #8]
	ldr	w20, [x19]
Lloh5:
	adrp	x8, _UBI_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UBI_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	ldr	x0, [x21, #16]
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d users for volume %d"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_UBI_EXCLUSIVE,4,2              ; @UBI_EXCLUSIVE
	.no_dead_strip	_get_exclusive
.subsections_via_symbols
