	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpci200_interrupt
_tpci200_interrupt:                     ## @tpci200_interrupt
	.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, %r15
	movq	8(%rsi), %rax
	movq	8(%rax), %rdi
	callq	_ioread16
	movl	%eax, %r14d
	movq	_TPCI200_SLOT_INT_MASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	_TPCI200_NB_SLOT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.3:
	movq	_TPCI200_A_INT1@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	_TPCI200_NB_SLOT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addl	$2, %r13d
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	movq	_TPCI200_A_INT0@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	testl	%r14d, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_rcu_dereference
	movq	%rax, %rdi
	callq	_tpci200_slot_irq
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_info
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tpci200_disable_irq
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPCI200_SLOT_INT_MASK,4,2      ## @TPCI200_SLOT_INT_MASK
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_TPCI200_NB_SLOT,4,2            ## @TPCI200_NB_SLOT
	.comm	_TPCI200_A_INT0,4,2             ## @TPCI200_A_INT0
	.comm	_TPCI200_A_INT1,4,2             ## @TPCI200_A_INT1
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No registered ISR for slot [%d:%d]!. IRQ will be disabled.\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tpci200_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpci200_interrupt
_tpci200_interrupt:                     ; @tpci200_interrupt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	x0, [x8, #8]
	bl	_ioread16
Lloh0:
	adrp	x8, _TPCI200_SLOT_INT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPCI200_SLOT_INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_rcu_read_lock
Lloh3:
	adrp	x23, _TPCI200_NB_SLOT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TPCI200_NB_SLOT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w24, #0
	mov	x21, #0
Lloh5:
	adrp	x25, _TPCI200_A_INT0@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TPCI200_A_INT0@GOTPAGEOFF]
Lloh7:
	adrp	x26, _TPCI200_A_INT1@GOTPAGE
Lloh8:
	ldr	x26, [x26, _TPCI200_A_INT1@GOTPAGEOFF]
Lloh9:
	adrp	x27, _ENODEV@GOTPAGE
Lloh10:
	ldr	x27, [x27, _ENODEV@GOTPAGEOFF]
Lloh11:
	adrp	x22, l_.str@PAGE
Lloh12:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x23]
	add	w24, w24, #2
	cmp	x21, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	lsl	w8, w8, w24
	tst	w8, w20
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x21, lsl #2]
	bl	_rcu_dereference
	bl	_tpci200_slot_irq
	ldr	w8, [x27]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	w2, [x19]
	mov	x1, x22
	mov	x3, x21
	bl	_dev_info
	mov	x0, x19
	mov	x1, x21
	bl	_tpci200_disable_irq
	b	LBB0_3
LBB0_7:
	bl	_rcu_read_unlock
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TPCI200_SLOT_INT_MASK,4,2      ; @TPCI200_SLOT_INT_MASK
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_TPCI200_NB_SLOT,4,2            ; @TPCI200_NB_SLOT
	.comm	_TPCI200_A_INT0,4,2             ; @TPCI200_A_INT0
	.comm	_TPCI200_A_INT1,4,2             ; @TPCI200_A_INT1
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No registered ISR for slot [%d:%d]!. IRQ will be disabled.\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tpci200_interrupt
.subsections_via_symbols
