	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_adma_pause
_tegra_adma_pause:                      ## @tegra_adma_pause
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_tegra_adma_chan
	movq	%rax, %r12
	movq	(%rax), %rbx
	movq	_ADMA_CH_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_tdma_ch_read
	movl	%eax, (%rbx)
	movq	_ADMA_CH_CTRL_XFER_PAUSE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	%eax, (%rbx)
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_tdma_ch_write
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	_TEGRA_ADMA_BURST_COMPLETE_TIME@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tegra_adma_is_paused
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	(%r15), %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_tdc2dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADMA_CH_CTRL,4,2               ## @ADMA_CH_CTRL
	.comm	_ADMA_CH_CTRL_XFER_PAUSE_SHIFT,4,2 ## @ADMA_CH_CTRL_XFER_PAUSE_SHIFT
	.comm	_TEGRA_ADMA_BURST_COMPLETE_TIME,4,2 ## @TEGRA_ADMA_BURST_COMPLETE_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to pause DMA channel\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_tegra_adma_pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_adma_pause
_tegra_adma_pause:                      ; @tegra_adma_pause
	.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
	bl	_to_tegra_adma_chan
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _ADMA_CH_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ADMA_CH_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_tdma_ch_read
	str	w0, [x20]
Lloh2:
	adrp	x8, _ADMA_CH_CTRL_XFER_PAUSE_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADMA_CH_CTRL_XFER_PAUSE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w2, w8, w0
	str	w2, [x20]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_tdma_ch_write
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.1:
Lloh5:
	adrp	x20, _TEGRA_ADMA_BURST_COMPLETE_TIME@GOTPAGE
Lloh6:
	ldr	x20, [x20, _TEGRA_ADMA_BURST_COMPLETE_TIME@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tegra_adma_is_paused
	cbz	w0, LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
LBB0_12:
	ldr	w0, [x20]
	bl	_udelay
	mov	x0, x19
	bl	_tdc2dev
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADMA_CH_CTRL,4,2               ; @ADMA_CH_CTRL
	.comm	_ADMA_CH_CTRL_XFER_PAUSE_SHIFT,4,2 ; @ADMA_CH_CTRL_XFER_PAUSE_SHIFT
	.comm	_TEGRA_ADMA_BURST_COMPLETE_TIME,4,2 ; @TEGRA_ADMA_BURST_COMPLETE_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to pause DMA channel\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_tegra_adma_pause
.subsections_via_symbols
