	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dma_runtime_resume
_tegra_dma_runtime_resume:              ## @tegra_dma_runtime_resume
	.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
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movl	24(%rax), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_TEGRA_APBDMA_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	callq	_tdma_write
	movq	_TEGRA_APBDMA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_tdma_write
	movq	_TEGRA_APBDMA_IRQ_MASK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_tdma_write
	movq	8(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_TEGRA_APBDMA_CHAN_APBSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_tdc_write
	movq	_TEGRA_APBDMA_CHAN_APBPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_tdc_write
	movq	_TEGRA_APBDMA_CHAN_AHBSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_tdc_write
	movq	_TEGRA_APBDMA_CHAN_AHBPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_tdc_write
	movq	_TEGRA_APBDMA_CHAN_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TEGRA_APBDMA_CSR_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	24(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_tdc_write
	movq	8(%r14), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%rax), %rcx
	addq	$28, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r13
	cmpl	$0, (%r13,%rbx)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%r13), %r15
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_TEGRA_APBDMA_CHAN_WCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13,%rbx), %edx
	movq	%r15, %rdi
	callq	_tdc_write
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clk_enable failed: %d\n"

	.comm	_TEGRA_APBDMA_GENERAL,4,2       ## @TEGRA_APBDMA_GENERAL
	.comm	_TEGRA_APBDMA_CONTROL,4,2       ## @TEGRA_APBDMA_CONTROL
	.comm	_TEGRA_APBDMA_IRQ_MASK_SET,4,2  ## @TEGRA_APBDMA_IRQ_MASK_SET
	.comm	_TEGRA_APBDMA_CHAN_WCOUNT,4,2   ## @TEGRA_APBDMA_CHAN_WCOUNT
	.comm	_TEGRA_APBDMA_CHAN_APBSEQ,4,2   ## @TEGRA_APBDMA_CHAN_APBSEQ
	.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_AHBPTR,4,2   ## @TEGRA_APBDMA_CHAN_AHBPTR
	.comm	_TEGRA_APBDMA_CHAN_CSR,4,2      ## @TEGRA_APBDMA_CHAN_CSR
	.comm	_TEGRA_APBDMA_CSR_ENB,4,2       ## @TEGRA_APBDMA_CSR_ENB
	.no_dead_strip	_tegra_dma_runtime_resume
.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_resume
_tegra_dma_runtime_resume:              ; @tegra_dma_runtime_resume
	.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	x21, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _TEGRA_APBDMA_GENERAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEGRA_APBDMA_GENERAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_tdma_write
Lloh3:
	adrp	x8, _TEGRA_APBDMA_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEGRA_APBDMA_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_tdma_write
Lloh6:
	adrp	x8, _TEGRA_APBDMA_IRQ_MASK_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TEGRA_APBDMA_IRQ_MASK_SET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_tdma_write
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x21, #0
	mov	x22, #0
Lloh9:
	adrp	x24, _TEGRA_APBDMA_CHAN_APBPTR@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TEGRA_APBDMA_CHAN_APBPTR@GOTPAGEOFF]
Lloh11:
	adrp	x25, _TEGRA_APBDMA_CHAN_AHBSEQ@GOTPAGE
Lloh12:
	ldr	x25, [x25, _TEGRA_APBDMA_CHAN_AHBSEQ@GOTPAGEOFF]
Lloh13:
	adrp	x26, _TEGRA_APBDMA_CHAN_AHBPTR@GOTPAGE
Lloh14:
	ldr	x26, [x26, _TEGRA_APBDMA_CHAN_AHBPTR@GOTPAGEOFF]
Lloh15:
	adrp	x27, _TEGRA_APBDMA_CHAN_CSR@GOTPAGE
Lloh16:
	ldr	x27, [x27, _TEGRA_APBDMA_CHAN_CSR@GOTPAGEOFF]
Lloh17:
	adrp	x28, _TEGRA_APBDMA_CSR_ENB@GOTPAGE
Lloh18:
	ldr	x28, [x28, _TEGRA_APBDMA_CSR_ENB@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x8, _TEGRA_APBDMA_CHAN_APBSEQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TEGRA_APBDMA_CHAN_APBSEQ@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x23, x23, x21
	ldr	w2, [x23, #8]
	mov	x0, x20
	bl	_tdc_write
	ldr	w1, [x24]
	ldr	w2, [x23, #12]
	mov	x0, x20
	bl	_tdc_write
	ldr	w1, [x25]
	ldr	w2, [x23, #16]
	mov	x0, x20
	bl	_tdc_write
	ldr	w1, [x26]
	ldr	w2, [x23, #20]
	mov	x0, x20
	bl	_tdc_write
	ldr	w1, [x27]
	ldr	w8, [x23, #24]
	ldr	w9, [x28]
	bic	w2, w8, w9
	mov	x0, x20
	bl	_tdc_write
	ldr	x8, [x19, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x8]
	add	x21, x21, #28
	cmp	x22, x9
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #16]
	add	x20, x23, x21
	ldr	w9, [x20]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh22:
	adrp	x8, _TEGRA_APBDMA_CHAN_WCOUNT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TEGRA_APBDMA_CHAN_WCOUNT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x8, x23, x21
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_tdc_write
	b	LBB0_3
LBB0_8:
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	x20, x0
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
LBB0_10:
	mov	x0, x20
	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	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clk_enable failed: %d\n"

	.comm	_TEGRA_APBDMA_GENERAL,4,2       ; @TEGRA_APBDMA_GENERAL
	.comm	_TEGRA_APBDMA_CONTROL,4,2       ; @TEGRA_APBDMA_CONTROL
	.comm	_TEGRA_APBDMA_IRQ_MASK_SET,4,2  ; @TEGRA_APBDMA_IRQ_MASK_SET
	.comm	_TEGRA_APBDMA_CHAN_WCOUNT,4,2   ; @TEGRA_APBDMA_CHAN_WCOUNT
	.comm	_TEGRA_APBDMA_CHAN_APBSEQ,4,2   ; @TEGRA_APBDMA_CHAN_APBSEQ
	.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_AHBPTR,4,2   ; @TEGRA_APBDMA_CHAN_AHBPTR
	.comm	_TEGRA_APBDMA_CHAN_CSR,4,2      ; @TEGRA_APBDMA_CHAN_CSR
	.comm	_TEGRA_APBDMA_CSR_ENB,4,2       ; @TEGRA_APBDMA_CSR_ENB
	.no_dead_strip	_tegra_dma_runtime_resume
.subsections_via_symbols
