	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_Unlock                     ## -- Begin function EXI_Unlock
	.p2align	4, 0x90
_EXI_Unlock:                            ## @EXI_Unlock
	.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	%rdi, %r15
	movq	_eximap@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rdi, %rbx
	shlq	$4, %rbx
	callq	__CPU_ISR_Disable
	movl	(%r13,%rbx), %eax
	movq	_EXI_FLAG_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_1
## %bb.2:
	leaq	(%rbx,%r13), %rsi
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rsi)
	movq	%r15, %rdi
	callq	___exi_setinterrupts
	movl	12(%r13,%rbx), %eax
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	(%rbx,%r13), %rcx
	addq	$12, %rcx
	decl	%eax
	movl	%eax, (%rcx)
	leaq	(%rbx,%r13), %rdi
	addq	$8, %rdi
	callq	___lwp_queue_getI
	movq	%rax, %r12
	leaq	16(%rax), %rsi
	movq	__lckdev_queue@GOTPCREL(%rip), %rdi
	callq	___lwp_queue_appendI
	movq	8(%r12), %rdx
	movl	(%r12), %ecx
	movl	$-2, %eax
	roll	%cl, %eax
	andl	%eax, 4(%r13,%rbx)
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	%ecx, %esi
	callq	*%rdx
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	callq	__CPU_ISR_Restore
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eximap,8,3                     ## @eximap
	.comm	_EXI_FLAG_LOCKED,4,2            ## @EXI_FLAG_LOCKED
	.comm	__lckdev_queue,4,2              ## @_lckdev_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_Unlock                     ; -- Begin function EXI_Unlock
	.p2align	2
_EXI_Unlock:                            ; @EXI_Unlock
	.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
Lloh0:
	adrp	x8, _eximap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eximap@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	add	x21, x22, x0, lsl #4
	bl	__CPU_ISR_Disable
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _EXI_FLAG_LOCKED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXI_FLAG_LOCKED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	___exi_setinterrupts
	ldr	w8, [x21, #12]!
	mov	w20, #1
	cbz	w8, LBB0_5
; %bb.2:
	sub	w8, w8, #1
	str	w8, [x21]
	add	x22, x22, x19, lsl #4
	add	x0, x22, #8
	bl	___lwp_queue_getI
	mov	x21, x0
	add	x1, x0, #16
Lloh6:
	adrp	x0, __lckdev_queue@GOTPAGE
Lloh7:
	ldr	x0, [x0, __lckdev_queue@GOTPAGEOFF]
	bl	___lwp_queue_appendI
	ldr	x8, [x21, #8]
	ldr	w1, [x21]
	lsl	w9, w20, w1
	ldr	w10, [x22, #4]
	bic	w9, w10, w9
	str	w9, [x22, #4]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	blr	x8
	mov	w20, #1
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	bl	__CPU_ISR_Restore
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_eximap,8,3                     ; @eximap
	.comm	_EXI_FLAG_LOCKED,4,2            ; @EXI_FLAG_LOCKED
	.comm	__lckdev_queue,4,2              ; @_lckdev_queue
.subsections_via_symbols
