	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __exi_setinterrupts
___exi_setinterrupts:                   ## @__exi_setinterrupts
	.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	%rsi, %r14
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	_eximap@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_IRQ_EXI0_EXI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IRQMASK
	movl	%eax, %ebx
	movq	_IRQ_EXI2_EXI@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_IRQMASK
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	___MaskIrq
	movq	_EXI_FLAG_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_15
## %bb.2:
	cmpq	$0, 8(%r14)
	jne	LBB0_4
## %bb.3:
	shlq	$4, %r15
	cmpq	$0, 8(%r12,%r15)
	je	LBB0_15
LBB0_4:
	movq	_IRQ_EXI0_EXI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IRQMASK
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_IRQMASK
	orl	%ebx, %eax
	jmp	LBB0_14
LBB0_5:
	movq	_EXI_CHANNEL_1@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_9
## %bb.6:
	movq	_IRQ_EXI1_EXI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_IRQMASK
	movl	%eax, %edi
	callq	___MaskIrq
	movq	_EXI_FLAG_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_15
## %bb.7:
	cmpq	$0, 8(%r14)
	je	LBB0_15
## %bb.8:
	movl	(%rbx), %edi
	jmp	LBB0_13
LBB0_9:
	cmpq	%rdi, %r15
	jne	LBB0_15
## %bb.10:
	movq	_IRQ_EXI0_EXI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IRQMASK
	movl	%eax, %edi
	callq	___MaskIrq
	movq	_EXI_FLAG_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_IRQ_PI_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IRQ_GetHandler
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	_IRQ_EXI2_EXI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_13:
	callq	_IRQMASK
LBB0_14:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___UnmaskIrq                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_eximap,8,3                     ## @eximap
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_EXI_CHANNEL_0,8,3              ## @EXI_CHANNEL_0
	.comm	_IRQ_EXI0_EXI,4,2               ## @IRQ_EXI0_EXI
	.comm	_IRQ_EXI2_EXI,4,2               ## @IRQ_EXI2_EXI
	.comm	_EXI_FLAG_LOCKED,4,2            ## @EXI_FLAG_LOCKED
	.comm	_EXI_CHANNEL_1,8,3              ## @EXI_CHANNEL_1
	.comm	_IRQ_EXI1_EXI,4,2               ## @IRQ_EXI1_EXI
	.comm	_IRQ_PI_DEBUG,4,2               ## @IRQ_PI_DEBUG
	.no_dead_strip	___exi_setinterrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __exi_setinterrupts
___exi_setinterrupts:                   ; @__exi_setinterrupts
	.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	x19, x1
Lloh0:
	adrp	x8, _EXI_CHANNEL_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXI_CHANNEL_2@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _EXI_CHANNEL_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXI_CHANNEL_0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _eximap@GOTPAGE
Lloh7:
	ldr	x8, [x8, _eximap@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
Lloh9:
	adrp	x22, _IRQ_EXI0_EXI@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IRQ_EXI0_EXI@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_IRQMASK
	mov	x20, x0
Lloh11:
	adrp	x23, _IRQ_EXI2_EXI@GOTPAGE
Lloh12:
	ldr	x23, [x23, _IRQ_EXI2_EXI@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_IRQMASK
	orr	w0, w0, w20
	bl	___MaskIrq
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _EXI_FLAG_LOCKED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EXI_FLAG_LOCKED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.2:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	add	x8, x24, x21, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
LBB0_4:
	ldr	w0, [x22]
	bl	_IRQMASK
	mov	x19, x0
	ldr	w0, [x23]
	bl	_IRQMASK
	orr	w0, w0, w19
	b	LBB0_15
LBB0_5:
Lloh16:
	adrp	x8, _EXI_CHANNEL_1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXI_CHANNEL_1@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_9
; %bb.6:
Lloh19:
	adrp	x20, _IRQ_EXI1_EXI@GOTPAGE
Lloh20:
	ldr	x20, [x20, _IRQ_EXI1_EXI@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_IRQMASK
	bl	___MaskIrq
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _EXI_FLAG_LOCKED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EXI_FLAG_LOCKED@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w0, [x20]
	b	LBB0_14
LBB0_9:
	cmp	x21, x0
	b.ne	LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _IRQ_EXI0_EXI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQ_EXI0_EXI@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_IRQMASK
	bl	___MaskIrq
	ldr	w8, [x19]
Lloh27:
	adrp	x9, _EXI_FLAG_LOCKED@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EXI_FLAG_LOCKED@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_11:
	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
LBB0_12:
Lloh30:
	adrp	x8, _IRQ_PI_DEBUG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IRQ_PI_DEBUG@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_IRQ_GetHandler
	cbz	x0, LBB0_11
; %bb.13:
Lloh33:
	adrp	x8, _IRQ_EXI2_EXI@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQ_EXI2_EXI@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
LBB0_14:
	bl	_IRQMASK
LBB0_15:
	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
	b	___UnmaskIrq
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_eximap,8,3                     ; @eximap
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_EXI_CHANNEL_0,8,3              ; @EXI_CHANNEL_0
	.comm	_IRQ_EXI0_EXI,4,2               ; @IRQ_EXI0_EXI
	.comm	_IRQ_EXI2_EXI,4,2               ; @IRQ_EXI2_EXI
	.comm	_EXI_FLAG_LOCKED,4,2            ; @EXI_FLAG_LOCKED
	.comm	_EXI_CHANNEL_1,8,3              ; @EXI_CHANNEL_1
	.comm	_IRQ_EXI1_EXI,4,2               ; @IRQ_EXI1_EXI
	.comm	_IRQ_PI_DEBUG,4,2               ; @IRQ_PI_DEBUG
	.no_dead_strip	___exi_setinterrupts
.subsections_via_symbols
