	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at_dma_interrupt
_at_dma_interrupt:                      ## @at_dma_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
	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, %r14
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_EBCIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_readl
	movl	%eax, %ebx
	movq	_EBCISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_readl
	movl	%eax, %r15d
	andl	%ebx, %r15d
	je	LBB0_10
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_EBCIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_readl
	movl	%eax, %ebx
	movq	_EBCISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_readl
	movl	%eax, %r15d
	andl	%ebx, %r15d
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	12(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_dev_vdbg
	cmpl	$0, 8(%r14)
	jle	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$4, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	addq	%r12, %r14
	movq	%r14, %rdi
	callq	_tasklet_schedule
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movslq	8(%r14), %rax
	addq	$12, %r12
	cmpq	%rax, %rbx
	jge	LBB0_2
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %r14
	movl	%ebx, %edi
	callq	_AT_DMA_BTC
	movl	%r15d, %r13d
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_AT_DMA_ERR
	orl	%r15d, %eax
	movl	%r13d, %r15d
	testl	%r13d, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%ebx, %edi
	callq	_AT_DMA_ERR
	testl	%r15d, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_CHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_AT_DMA_RES
	orl	-4(%r14,%r12), %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %r15d
	movl	%eax, %edx
	callq	_dma_writel
	movq	_ATC_IS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r14,%r12), %rsi
	addq	$4, %rsi
	callq	_set_bit
	jmp	LBB0_8
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	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	_EBCIMR,4,2                     ## @EBCIMR
	.comm	_EBCISR,4,2                     ## @EBCISR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt: status = 0x%08x, 0x%08x, 0x%08x\n"

	.comm	_CHDR,4,2                       ## @CHDR
	.comm	_ATC_IS_ERROR,4,2               ## @ATC_IS_ERROR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_at_dma_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at_dma_interrupt
_at_dma_interrupt:                      ; @at_dma_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
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _EBCIMR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBCIMR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_readl
	mov	x23, x0
Lloh6:
	adrp	x8, _EBCISR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBCISR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_readl
	ands	w22, w0, w23
	b.eq	LBB0_10
; %bb.1:
	mov	x2, x0
Lloh9:
	adrp	x27, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x27, [x27, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	adrp	x28, _CHDR@GOTPAGE
Lloh12:
	ldr	x28, [x28, _CHDR@GOTPAGEOFF]
Lloh13:
	adrp	x25, _ATC_IS_ERROR@GOTPAGE
Lloh14:
	ldr	x25, [x25, _ATC_IS_ERROR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _EBCIMR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBCIMR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_readl
	mov	x23, x0
Lloh18:
	adrp	x8, _EBCISR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBCISR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_readl
	mov	x2, x0
	ands	w22, w0, w23
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x19, #12]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	mov	x4, x22
	bl	_dev_vdbg
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	mov	x23, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x20, x26
	add	x0, x8, #4
	bl	_tasklet_schedule
	ldr	w21, [x27]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x26, x26, #12
	cmp	x23, x8
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x20, [x19]
	mov	x0, x23
	bl	_AT_DMA_BTC
	mov	x24, x0
	mov	x0, x23
	bl	_AT_DMA_ERR
	orr	w8, w0, w24
	tst	w8, w22
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x23
	bl	_AT_DMA_ERR
	tst	w0, w22
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w21, [x28]
	mov	x0, x23
	bl	_AT_DMA_RES
	add	x24, x20, x26
	ldr	w8, [x24], #8
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_dma_writel
	ldr	w0, [x25]
	mov	x1, x24
	bl	_set_bit
	b	LBB0_5
LBB0_10:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_EBCIMR,4,2                     ; @EBCIMR
	.comm	_EBCISR,4,2                     ; @EBCISR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt: status = 0x%08x, 0x%08x, 0x%08x\n"

	.comm	_CHDR,4,2                       ; @CHDR
	.comm	_ATC_IS_ERROR,4,2               ; @ATC_IS_ERROR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_at_dma_interrupt
.subsections_via_symbols
