	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function revoke_exclusive
_revoke_exclusive:                      ## @revoke_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	16(%rbx), %rdi
	callq	_spin_lock
	xorl	%r12d, %r12d
	cmpl	$0, (%rbx)
	movl	$0, %edi
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	sete	%dil
LBB0_2:
	callq	_ubi_assert
	cmpl	$1, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %eax
	movq	_UBI_EXCLUSIVE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	sete	%r12b
LBB0_4:
	movl	%r12d, %edi
	callq	_ubi_assert
	movl	$0, 8(%rbx)
	movq	_UBI_READONLY@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	$1, (%rbx)
	jmp	LBB0_9
LBB0_6:
	movq	_UBI_READWRITE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_8
## %bb.7:
	movl	$1, 4(%rbx)
	jmp	LBB0_9
LBB0_8:
	movl	$1, 8(%rbx)
LBB0_9:
	movq	16(%rbx), %rdi
	callq	_spin_unlock
	movl	%r14d, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UBI_EXCLUSIVE,4,2              ## @UBI_EXCLUSIVE
	.comm	_UBI_READONLY,4,2               ## @UBI_READONLY
	.comm	_UBI_READWRITE,4,2              ## @UBI_READWRITE
	.no_dead_strip	_revoke_exclusive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function revoke_exclusive
_revoke_exclusive:                      ; @revoke_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, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	x0, [x21, #16]
	bl	_spin_lock
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w8, [x21, #4]
	cmp	w8, #0
	cset	w0, eq
LBB0_3:
	bl	_ubi_assert
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _UBI_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UBI_EXCLUSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	bl	_ubi_assert
	str	wzr, [x21, #8]
Lloh3:
	adrp	x8, _UBI_READONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UBI_READONLY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _UBI_READWRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UBI_READWRITE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x21, #4]
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [x21, #8]
LBB0_11:
	ldr	x0, [x21, #16]
	bl	_spin_unlock
	str	w19, [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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UBI_EXCLUSIVE,4,2              ; @UBI_EXCLUSIVE
	.comm	_UBI_READONLY,4,2               ; @UBI_READONLY
	.comm	_UBI_READWRITE,4,2              ; @UBI_READWRITE
	.no_dead_strip	_revoke_exclusive
.subsections_via_symbols
