	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dma_isr
_tegra_dma_isr:                         ## @tegra_dma_isr
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	leaq	16(%rbx), %rdi
	movl	%r14d, %esi
	callq	_trace_tegra_dma_isr
	movq	_TEGRA_APBDMA_CHAN_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_tdc_read
	movq	%rax, %r14
	movq	_TEGRA_APBDMA_STATUS_ISE_EOC@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_tdc_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*8(%rbx)
	leaq	4(%rbx), %rdi
	callq	_tasklet_schedule
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_tdc2dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_dev_info
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEGRA_APBDMA_CHAN_STATUS,4,2   ## @TEGRA_APBDMA_CHAN_STATUS
	.comm	_TEGRA_APBDMA_STATUS_ISE_EOC,8,3 ## @TEGRA_APBDMA_STATUS_ISE_EOC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interrupt already served status 0x%08lx\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_tegra_dma_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_dma_isr
_tegra_dma_isr:                         ; @tegra_dma_isr
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_spin_lock_irqsave
	add	x0, x19, #16
	mov	x1, x20
	bl	_trace_tegra_dma_isr
Lloh0:
	adrp	x21, _TEGRA_APBDMA_CHAN_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TEGRA_APBDMA_CHAN_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_tdc_read
	mov	x20, x0
Lloh2:
	adrp	x8, _TEGRA_APBDMA_STATUS_ISE_EOC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TEGRA_APBDMA_STATUS_ISE_EOC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_tdc_write
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	add	x0, x19, #4
	bl	_tasklet_schedule
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_tdc2dev
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_info
Lloh9:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TEGRA_APBDMA_CHAN_STATUS,4,2   ; @TEGRA_APBDMA_CHAN_STATUS
	.comm	_TEGRA_APBDMA_STATUS_ISE_EOC,8,3 ; @TEGRA_APBDMA_STATUS_ISE_EOC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interrupt already served status 0x%08lx\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_tegra_dma_isr
.subsections_via_symbols
