	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_Deselect                   ## -- Begin function EXI_Deselect
	.p2align	4, 0x90
_EXI_Deselect:                          ## @EXI_Deselect
	.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, %r15
	movq	_eximap@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	__CPU_ISR_Disable
	movl	(%rbx,%r15,4), %eax
	movq	_EXI_FLAG_SELECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx,%r15,4)
	movq	__exiReg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%r15,4), %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	%r14d, %edx
	andl	$1029, %edx                     ## imm = 0x405
	movl	%edx, (%rax,%rcx,4)
	movq	_EXI_FLAG_ATTACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx,%r15,4)
	je	LBB0_8
## %bb.2:
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_IRQ_EXI0_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_EXI_CHANNEL_1@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	_IRQ_EXI1_EXT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_IRQMASK
	movl	%eax, %edi
	callq	___UnmaskIrq
LBB0_8:
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_11
## %bb.9:
	movq	_EXI_DEVICE0@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	___exi_probe
	testq	%rax, %rax
	je	LBB0_4
LBB0_11:
	movl	$1, %ebx
	jmp	LBB0_12
LBB0_4:
	xorl	%ebx, %ebx
LBB0_12:
	callq	__CPU_ISR_Restore
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eximap,8,3                     ## @eximap
	.comm	_EXI_FLAG_SELECT,4,2            ## @EXI_FLAG_SELECT
	.comm	__exiReg,8,3                    ## @_exiReg
	.comm	_EXI_FLAG_ATTACH,4,2            ## @EXI_FLAG_ATTACH
	.comm	_EXI_CHANNEL_0,8,3              ## @EXI_CHANNEL_0
	.comm	_IRQ_EXI0_EXT,4,2               ## @IRQ_EXI0_EXT
	.comm	_EXI_CHANNEL_1,8,3              ## @EXI_CHANNEL_1
	.comm	_IRQ_EXI1_EXT,4,2               ## @IRQ_EXI1_EXT
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_EXI_DEVICE0,4,2                ## @EXI_DEVICE0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_Deselect                   ; -- Begin function EXI_Deselect
	.p2align	2
_EXI_Deselect:                          ; @EXI_Deselect
	.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	x21, [x8]
	bl	__CPU_ISR_Disable
	ldr	w8, [x21, x19, lsl #2]
Lloh3:
	adrp	x9, _EXI_FLAG_SELECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXI_FLAG_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.1:
	bic	w8, w8, w9
	lsl	x9, x19, #2
	str	w8, [x21, x9]
Lloh6:
	adrp	x8, __exiReg@GOTPAGE
Lloh7:
	ldr	x8, [x8, __exiReg@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w10, #20
	mul	x10, x19, x10
	ldr	w20, [x8, x10]
	mov	w11, #1029
	and	w11, w20, w11
	str	w11, [x8, x10]
	ldr	w8, [x21, x9]
Lloh9:
	adrp	x9, _EXI_FLAG_ATTACH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EXI_FLAG_ATTACH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
Lloh12:
	adrp	x8, _EXI_CHANNEL_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXI_CHANNEL_0@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _IRQ_EXI0_EXT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_EXI0_EXT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x8, _EXI_CHANNEL_1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXI_CHANNEL_1@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.5:
Lloh20:
	adrp	x8, _IRQ_EXI1_EXT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_EXI1_EXT@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_IRQMASK
	bl	___UnmaskIrq
LBB0_7:
Lloh22:
	adrp	x8, _EXI_CHANNEL_2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EXI_CHANNEL_2@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_10
; %bb.8:
Lloh25:
	adrp	x8, _EXI_DEVICE0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EXI_DEVICE0@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	___exi_probe
	cbz	x0, LBB0_11
LBB0_10:
	mov	w19, #1
	b	LBB0_12
LBB0_11:
	mov	x19, #0
LBB0_12:
	bl	__CPU_ISR_Restore
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_eximap,8,3                     ; @eximap
	.comm	_EXI_FLAG_SELECT,4,2            ; @EXI_FLAG_SELECT
	.comm	__exiReg,8,3                    ; @_exiReg
	.comm	_EXI_FLAG_ATTACH,4,2            ; @EXI_FLAG_ATTACH
	.comm	_EXI_CHANNEL_0,8,3              ; @EXI_CHANNEL_0
	.comm	_IRQ_EXI0_EXT,4,2               ; @IRQ_EXI0_EXT
	.comm	_EXI_CHANNEL_1,8,3              ; @EXI_CHANNEL_1
	.comm	_IRQ_EXI1_EXT,4,2               ; @IRQ_EXI1_EXT
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_EXI_DEVICE0,4,2                ; @EXI_DEVICE0
.subsections_via_symbols
