	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtnf_pcie_pearl_interrupt
_qtnf_pcie_pearl_interrupt:             ## @qtnf_pcie_pearl_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_get_bus_priv
	movq	%rax, %rbx
	incl	36(%rax)
	movl	4(%rax), %edi
	callq	_PCIE_HDP_INT_STATUS
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r15d
	leaq	32(%rbx), %rdi
	callq	_qtnf_shm_ipc_irq_handler
	leaq	28(%rbx), %rdi
	callq	_qtnf_shm_ipc_irq_handler
	testl	%r15d, (%rbx)
	je	LBB0_11
## %bb.1:
	movq	_PCIE_HDP_INT_RX_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_3
## %bb.2:
	incl	16(%rbx)
LBB0_3:
	movq	_PCIE_HDP_INT_TX_BITS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	incl	12(%rbx)
LBB0_5:
	movq	_PCIE_HDP_INT_HHBM_UF@GOTPCREL(%rip), %rdx
	testl	%r15d, (%rdx)
	je	LBB0_7
## %bb.6:
	incl	8(%rbx)
LBB0_7:
	testl	%r15d, %ecx
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_qtnf_dis_rxdone_irq
	movq	%r14, %rdi
	callq	_napi_schedule
	movl	(%r12), %eax
	andl	%r15d, %eax
LBB0_9:
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_qtnf_dis_txdone_irq
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_tasklet_hi_schedule
LBB0_11:
	movl	4(%rbx), %edi
	callq	_PCIE_HDP_INT_STATUS
	movl	$-1, %edi
	movl	%eax, %esi
	callq	_qtnf_non_posted_write
	cmpl	$0, 20(%rbx)
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_qtnf_deassert_intx
LBB0_13:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE_HDP_INT_RX_BITS,4,2       ## @PCIE_HDP_INT_RX_BITS
	.comm	_PCIE_HDP_INT_TX_BITS,4,2       ## @PCIE_HDP_INT_TX_BITS
	.comm	_PCIE_HDP_INT_HHBM_UF,4,2       ## @PCIE_HDP_INT_HHBM_UF
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_qtnf_pcie_pearl_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtnf_pcie_pearl_interrupt
_qtnf_pcie_pearl_interrupt:             ; @qtnf_pcie_pearl_interrupt
	.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	x20, x1
	mov	x0, x1
	bl	_get_bus_priv
	mov	x19, x0
	ldr	w8, [x0, #36]
	add	w8, w8, #1
	str	w8, [x0, #36]
	ldr	w0, [x0, #4]
	bl	_PCIE_HDP_INT_STATUS
	bl	_readl
	mov	x21, x0
	add	x0, x19, #32
	bl	_qtnf_shm_ipc_irq_handler
	add	x0, x19, #28
	bl	_qtnf_shm_ipc_irq_handler
	ldr	w8, [x19]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.1:
Lloh0:
	adrp	x8, _PCIE_HDP_INT_RX_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE_HDP_INT_RX_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w8, w8, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x19, #16]
	add	w9, w9, #1
	str	w9, [x19, #16]
LBB0_3:
Lloh3:
	adrp	x22, _PCIE_HDP_INT_TX_BITS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PCIE_HDP_INT_TX_BITS@GOTPAGEOFF]
	ldr	w9, [x22]
	ands	w9, w9, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w10, [x19, #12]
	add	w10, w10, #1
	str	w10, [x19, #12]
LBB0_5:
Lloh5:
	adrp	x10, _PCIE_HDP_INT_HHBM_UF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCIE_HDP_INT_HHBM_UF@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w21
	b.eq	LBB0_7
; %bb.6:
	ldr	w10, [x19, #8]
	add	w10, w10, #1
	str	w10, [x19, #8]
LBB0_7:
	cbz	w8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_qtnf_dis_rxdone_irq
	mov	x0, x20
	bl	_napi_schedule
	ldr	w8, [x22]
	and	w9, w8, w21
LBB0_9:
	cbz	w9, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_qtnf_dis_txdone_irq
	add	x0, x19, #24
	bl	_tasklet_hi_schedule
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_PCIE_HDP_INT_STATUS
	mov	x1, x0
	mov	w0, #-1
	bl	_qtnf_non_posted_write
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_qtnf_deassert_intx
LBB0_13:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE_HDP_INT_RX_BITS,4,2       ; @PCIE_HDP_INT_RX_BITS
	.comm	_PCIE_HDP_INT_TX_BITS,4,2       ; @PCIE_HDP_INT_TX_BITS
	.comm	_PCIE_HDP_INT_HHBM_UF,4,2       ; @PCIE_HDP_INT_HHBM_UF
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_qtnf_pcie_pearl_interrupt
.subsections_via_symbols
