	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_Select                     ## -- Begin function EXI_Select
	.p2align	4, 0x90
_EXI_Select:                            ## @EXI_Select
	.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, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_eximap@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	__CPU_ISR_Disable
	movq	%r12, %r14
	shlq	$4, %r14
	movl	(%rbx,%r14), %eax
	movq	_EXI_FLAG_SELECT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	testl	%eax, %ecx
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	callq	__CPU_ISR_Restore
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	(%rbx,%r14), %r8
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rdx
	cmpq	%r12, (%rdx)
	je	LBB0_11
## %bb.4:
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_8
## %bb.5:
	movq	_EXI_FLAG_ATTACH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.6:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r12, %rdi
	callq	___exi_probe
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	(%r8), %eax
	movq	_EXI_FLAG_SELECT@GOTPCREL(%rip), %rsi
LBB0_8:
	movq	_EXI_FLAG_LOCKED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.9:
	cmpq	%r15, 8(%rbx,%r14)
	jne	LBB0_1
## %bb.10:
	movl	(%rsi), %ecx
LBB0_11:
	orl	%ecx, %eax
	movl	%eax, (%r8)
	movq	__exiReg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r12,%r12,4), %rdx
	movl	$1029, %esi                     ## imm = 0x405
	andl	(%rax,%rdx,4), %esi
	movl	$128, %edi
	movl	%r15d, %ecx
	shll	%cl, %edi
	shll	$4, %r13d
	orl	%edi, %r13d
	orl	%esi, %r13d
	movl	%r13d, (%rax,%rdx,4)
	movq	_EXI_FLAG_ATTACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ebx
	testl	%eax, (%r8)
	je	LBB0_2
## %bb.12:
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_14
## %bb.13:
	movq	_IRQ_EXI0_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_EXI_CHANNEL_1@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_2
## %bb.15:
	movq	_IRQ_EXI1_EXT@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edi
	callq	_IRQMASK
	movl	%eax, %edi
	callq	___MaskIrq
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_eximap,8,3                     ## @eximap
	.comm	_EXI_FLAG_SELECT,4,2            ## @EXI_FLAG_SELECT
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_EXI_DEVICE_0,8,3               ## @EXI_DEVICE_0
	.comm	_EXI_FLAG_ATTACH,4,2            ## @EXI_FLAG_ATTACH
	.comm	_EXI_FLAG_LOCKED,4,2            ## @EXI_FLAG_LOCKED
	.comm	__exiReg,8,3                    ## @_exiReg
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EXI_Select                     ; -- Begin function EXI_Select
	.p2align	2
_EXI_Select:                            ; @EXI_Select
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _eximap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eximap@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	bl	__CPU_ISR_Disable
	add	x22, x23, x19, lsl #4
	ldr	w8, [x22]
Lloh3:
	adrp	x24, _EXI_FLAG_SELECT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EXI_FLAG_SELECT@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	x19, #0
	b	LBB0_17
LBB0_2:
Lloh5:
	adrp	x10, _EXI_CHANNEL_2@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EXI_CHANNEL_2@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x10, x19
	b.eq	LBB0_10
; %bb.3:
Lloh8:
	adrp	x9, _EXI_DEVICE_0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EXI_DEVICE_0@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x21
	b.ne	LBB0_7
; %bb.4:
Lloh11:
	adrp	x9, _EXI_FLAG_ATTACH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EXI_FLAG_ATTACH@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	___exi_probe
	cbz	x0, LBB0_1
; %bb.6:
	ldr	w8, [x22]
LBB0_7:
Lloh14:
	adrp	x9, _EXI_FLAG_LOCKED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EXI_FLAG_LOCKED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.8:
	add	x9, x23, x19, lsl #4
	ldr	x9, [x9, #8]
	cmp	x9, x21
	b.ne	LBB0_1
; %bb.9:
	ldr	w9, [x24]
LBB0_10:
	orr	w8, w8, w9
	str	w8, [x22]
Lloh17:
	adrp	x8, __exiReg@GOTPAGE
Lloh18:
	ldr	x8, [x8, __exiReg@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	mov	w9, #20
	mul	x9, x19, x9
	ldr	w10, [x8, x9]
	mov	w11, #1029
	and	w10, w10, w11
	mov	w11, #128
	lsl	w11, w11, w21
	orr	w11, w11, w20, lsl #4
	orr	w10, w11, w10
	str	w10, [x8, x9]
	ldr	w8, [x22]
Lloh20:
	adrp	x9, _EXI_FLAG_ATTACH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EXI_FLAG_ATTACH@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.11:
Lloh23:
	adrp	x8, _EXI_CHANNEL_0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXI_CHANNEL_0@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_13
; %bb.12:
Lloh26:
	adrp	x8, _IRQ_EXI0_EXT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQ_EXI0_EXT@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh28:
	adrp	x8, _EXI_CHANNEL_1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EXI_CHANNEL_1@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_16
; %bb.14:
Lloh31:
	adrp	x8, _IRQ_EXI1_EXT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IRQ_EXI1_EXT@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	bl	_IRQMASK
	bl	___MaskIrq
LBB0_16:
	mov	w19, #1
LBB0_17:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_eximap,8,3                     ; @eximap
	.comm	_EXI_FLAG_SELECT,4,2            ; @EXI_FLAG_SELECT
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_EXI_DEVICE_0,8,3               ; @EXI_DEVICE_0
	.comm	_EXI_FLAG_ATTACH,4,2            ; @EXI_FLAG_ATTACH
	.comm	_EXI_FLAG_LOCKED,4,2            ; @EXI_FLAG_LOCKED
	.comm	__exiReg,8,3                    ; @_exiReg
	.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
.subsections_via_symbols
