	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dma_runtime_suspend
_tegra_dma_runtime_suspend:             ## @tegra_dma_runtime_suspend
	.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
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_TEGRA_APBDMA_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tdma_read
	movl	%eax, 24(%r14)
	movq	8(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%rax), %rcx
	addq	$56, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r12
	cmpl	$0, (%r12,%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%rbx), %r15
	movq	_TEGRA_APBDMA_CHAN_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tdc_read
	movq	%rax, 48(%r12,%rbx)
	movq	_TEGRA_APBDMA_CHAN_AHBPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tdc_read
	movq	%rax, 40(%r12,%rbx)
	movq	_TEGRA_APBDMA_CHAN_APBPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tdc_read
	movq	%rax, 32(%r12,%rbx)
	movq	_TEGRA_APBDMA_CHAN_AHBSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tdc_read
	movq	%rax, 24(%r12,%rbx)
	movq	_TEGRA_APBDMA_CHAN_APBSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tdc_read
	movq	%rax, 16(%r12,%rbx)
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TEGRA_APBDMA_CHAN_WCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_tdc_read
	movq	%rax, 8(%r12,%rbx)
	movq	8(%r14), %rax
	jmp	LBB0_5
LBB0_6:
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEGRA_APBDMA_GENERAL,4,2       ## @TEGRA_APBDMA_GENERAL
	.comm	_TEGRA_APBDMA_CHAN_CSR,4,2      ## @TEGRA_APBDMA_CHAN_CSR
	.comm	_TEGRA_APBDMA_CHAN_AHBPTR,4,2   ## @TEGRA_APBDMA_CHAN_AHBPTR
	.comm	_TEGRA_APBDMA_CHAN_APBPTR,4,2   ## @TEGRA_APBDMA_CHAN_APBPTR
	.comm	_TEGRA_APBDMA_CHAN_AHBSEQ,4,2   ## @TEGRA_APBDMA_CHAN_AHBSEQ
	.comm	_TEGRA_APBDMA_CHAN_APBSEQ,4,2   ## @TEGRA_APBDMA_CHAN_APBSEQ
	.comm	_TEGRA_APBDMA_CHAN_WCOUNT,4,2   ## @TEGRA_APBDMA_CHAN_WCOUNT
	.no_dead_strip	_tegra_dma_runtime_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_dma_runtime_suspend
_tegra_dma_runtime_suspend:             ; @tegra_dma_runtime_suspend
	.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
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _TEGRA_APBDMA_GENERAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEGRA_APBDMA_GENERAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tdma_read
	str	w0, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh3:
	adrp	x23, _TEGRA_APBDMA_CHAN_CSR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TEGRA_APBDMA_CHAN_CSR@GOTPAGEOFF]
Lloh5:
	adrp	x24, _TEGRA_APBDMA_CHAN_AHBPTR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _TEGRA_APBDMA_CHAN_AHBPTR@GOTPAGEOFF]
Lloh7:
	adrp	x25, _TEGRA_APBDMA_CHAN_APBPTR@GOTPAGE
Lloh8:
	ldr	x25, [x25, _TEGRA_APBDMA_CHAN_APBPTR@GOTPAGEOFF]
Lloh9:
	adrp	x26, _TEGRA_APBDMA_CHAN_AHBSEQ@GOTPAGE
Lloh10:
	ldr	x26, [x26, _TEGRA_APBDMA_CHAN_AHBSEQ@GOTPAGEOFF]
Lloh11:
	adrp	x27, _TEGRA_APBDMA_CHAN_APBSEQ@GOTPAGE
Lloh12:
	ldr	x27, [x27, _TEGRA_APBDMA_CHAN_APBSEQ@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x8]
	add	x21, x21, #56
	cmp	x22, x9
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #16]
	add	x20, x28, x21
	ldr	w9, [x20]
	cbz	w9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_tdc_read
	str	x0, [x20, #48]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_tdc_read
	str	x0, [x20, #40]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_tdc_read
	str	x0, [x20, #32]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_tdc_read
	str	x0, [x20, #24]
	ldr	w1, [x27]
	mov	x0, x20
	bl	_tdc_read
	str	x0, [x20, #16]
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh13:
	adrp	x8, _TEGRA_APBDMA_CHAN_WCOUNT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TEGRA_APBDMA_CHAN_WCOUNT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tdc_read
	add	x8, x28, x21
	str	x0, [x8, #8]
	ldr	x8, [x19, #8]
	b	LBB0_2
LBB0_6:
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
	mov	w0, #0
	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	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TEGRA_APBDMA_GENERAL,4,2       ; @TEGRA_APBDMA_GENERAL
	.comm	_TEGRA_APBDMA_CHAN_CSR,4,2      ; @TEGRA_APBDMA_CHAN_CSR
	.comm	_TEGRA_APBDMA_CHAN_AHBPTR,4,2   ; @TEGRA_APBDMA_CHAN_AHBPTR
	.comm	_TEGRA_APBDMA_CHAN_APBPTR,4,2   ; @TEGRA_APBDMA_CHAN_APBPTR
	.comm	_TEGRA_APBDMA_CHAN_AHBSEQ,4,2   ; @TEGRA_APBDMA_CHAN_AHBSEQ
	.comm	_TEGRA_APBDMA_CHAN_APBSEQ,4,2   ; @TEGRA_APBDMA_CHAN_APBSEQ
	.comm	_TEGRA_APBDMA_CHAN_WCOUNT,4,2   ; @TEGRA_APBDMA_CHAN_WCOUNT
	.no_dead_strip	_tegra_dma_runtime_suspend
.subsections_via_symbols
