	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pd_irq
_pd_irq:                                ## @pd_irq
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dma_readl
	movl	%eax, %ebx
	movq	_STS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dma_readl
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	12(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_dev_dbg
	cmpl	$0, 8(%r13)
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	movl	%r14d, %eax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%r14, %r15
	movq	%r15, %rdi
	callq	_tasklet_schedule
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	8(%r13), %rax
	addq	$8, %r14
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r15
	cmpq	$7, %rbx
	ja	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_DMA_STATUS_IRQ
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_DMA_STATUS0_ERR
	testl	%r12d, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r14), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_set_bit
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r14, %r15
	movq	%r15, %rdi
	callq	_tasklet_schedule
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-8(%rbx), %edi
	callq	_DMA_STATUS_IRQ
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_DMA_STATUS2_ERR
	testl	%r12d, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r14), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_set_bit
	jmp	LBB0_11
LBB0_1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_13:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.14:
	movq	_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_writel
LBB0_15:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.16:
	movq	_STS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_writel
LBB0_17:
	orl	%r14d, %ebx
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_STS0,4,2                       ## @STS0
	.comm	_STS2,4,2                       ## @STS2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pd_irq sts0: %x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pd_irq
_pd_irq:                                ; @pd_irq
	.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
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x24, _STS0@GOTPAGE
Lloh4:
	ldr	x24, [x24, _STS0@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_dma_readl
	mov	x21, x0
Lloh5:
	adrp	x8, _STS2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STS2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_readl
	mov	x20, x0
	ldr	w0, [x19, #12]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x26, #0
	mov	x22, #0
Lloh10:
	adrp	x28, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x28, [x28, _IRQ_HANDLED@GOTPAGEOFF]
	mov	x27, x25
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x23, x26
	bl	_tasklet_schedule
	ldr	w25, [x28]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	add	x26, x26, #8
	cmp	x22, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19]
	cmp	x22, #7
	b.hi	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_DMA_STATUS_IRQ
	tst	w0, w21
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_DMA_STATUS0_ERR
	tst	w0, w21
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x23, x26
	add	x1, x8, #4
	mov	w0, #0
	bl	_set_bit
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x23, x26
	bl	_tasklet_schedule
	ldr	w27, [x28]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w0, w22, #8
	bl	_DMA_STATUS_IRQ
	tst	w0, w20
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_DMA_STATUS2_ERR
	tst	w0, w20
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x23, x26
	add	x1, x8, #4
	mov	w0, #0
	bl	_set_bit
	b	LBB0_2
LBB0_12:
	mov	x27, x25
LBB0_13:
	cbz	w27, LBB0_15
; %bb.14:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_dma_writel
LBB0_15:
	cbz	w25, LBB0_17
; %bb.16:
Lloh12:
	adrp	x8, _STS2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STS2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_dma_writel
LBB0_17:
	orr	w0, w25, w27
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_STS0,4,2                       ; @STS0
	.comm	_STS2,4,2                       ; @STS2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pd_irq sts0: %x\n"

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