	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_Lock                       ## -- Begin function EXI_Lock
	.p2align	4, 0x90
_EXI_Lock:                              ## @EXI_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	%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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_eximap@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	(%rdi,%rdi,2), %r13
	callq	__CPU_ISR_Disable
	movl	(%r12,%r13,8), %eax
	movq	_EXI_FLAG_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_8
## %bb.2:
	movl	4(%r12,%r13,8), %eax
	movl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	btl	%r15d, %eax
	jb	LBB0_8
## %bb.6:
	movq	__lckdev_queue@GOTPCREL(%rip), %rdi
	callq	___lwp_queue_getI
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	20(%r12,%r13,8)
	leaq	(%r12,%r13,8), %rcx
	addq	$4, %rcx
	orl	%ebx, (%rcx)
	movq	%r15, (%rax)
	movq	%r14, 16(%rax)
	leaq	(%r12,%r13,8), %rdi
	addq	$16, %rdi
	addq	$8, %rax
	movq	%rax, %rsi
	callq	___lwp_queue_appendI
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	leaq	(%r12,%r13,8), %rsi
	movq	%r15, 8(%r12,%r13,8)
	orl	%eax, %ecx
	movl	%ecx, (%rsi)
	movq	%rbx, %rdi
	callq	___exi_setinterrupts
	movl	$1, %ebx
LBB0_9:
	callq	__CPU_ISR_Restore
	movq	%rbx, %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_Lock                       ; -- Begin function EXI_Lock
	.p2align	2
_EXI_Lock:                              ; @EXI_Lock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _eximap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eximap@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	w8, #24
	madd	x22, x0, x8, x23
	bl	__CPU_ISR_Disable
	ldr	w8, [x22]
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_6
; %bb.1:
	cbz	x20, LBB0_5
; %bb.2:
	mov	w8, #24
	madd	x22, x21, x8, x23
	ldr	w8, [x22, #4]!
	mov	w9, #1
	lsl	w24, w9, w19
	tst	w8, w24
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x0, __lckdev_queue@GOTPAGE
Lloh7:
	ldr	x0, [x0, __lckdev_queue@GOTPAGEOFF]
	bl	___lwp_queue_getI
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #24
	madd	x8, x21, x8, x23
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	str	w9, [x8, #20]
	ldr	w9, [x22]
	orr	w9, w9, w24
	str	w9, [x22]
	str	x19, [x0]
	str	x20, [x0, #16]
	add	x8, x8, #16
	add	x1, x0, #8
	mov	x0, x8
	bl	___lwp_queue_appendI
LBB0_5:
	mov	x19, #0
	b	LBB0_7
LBB0_6:
	mov	w10, #24
	madd	x10, x21, x10, x23
	str	x19, [x10, #8]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x21
	mov	x1, x22
	bl	___exi_setinterrupts
	mov	w19, #1
LBB0_7:
	bl	__CPU_ISR_Restore
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 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
