	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_dma_resume_chan
_mxs_dma_resume_chan:                   ## @mxs_dma_resume_chan
	.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
	callq	_to_mxs_dma_chan
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movl	4(%rax), %r15d
	movq	%rbx, %rdi
	callq	_dma_is_apbh
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_apbh_is_old
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_HW_APBHX_CTRL0@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_HW_APBHX_CHANNEL_CTRL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	$1, %edi
	movl	%r15d, %ecx
	shll	%cl, %edi
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	_STMP_OFFSET_REG_CLR@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	movq	_DMA_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_APBHX_CTRL0,8,3             ## @HW_APBHX_CTRL0
	.comm	_STMP_OFFSET_REG_CLR,8,3        ## @STMP_OFFSET_REG_CLR
	.comm	_HW_APBHX_CHANNEL_CTRL,8,3      ## @HW_APBHX_CHANNEL_CTRL
	.comm	_DMA_IN_PROGRESS,4,2            ## @DMA_IN_PROGRESS
	.no_dead_strip	_mxs_dma_resume_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_dma_resume_chan
_mxs_dma_resume_chan:                   ; @mxs_dma_resume_chan
	.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_mxs_dma_chan
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w21, [x0, #4]
	mov	x0, x20
	bl	_dma_is_apbh
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_apbh_is_old
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _HW_APBHX_CTRL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_APBHX_CTRL0@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _HW_APBHX_CHANNEL_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HW_APBHX_CHANNEL_CTRL@GOTPAGEOFF]
LBB0_4:
	mov	w9, #1
	lsl	w0, w9, w21
	ldr	x9, [x20]
	ldr	x8, [x8]
Lloh4:
	adrp	x10, _STMP_OFFSET_REG_CLR@GOTPAGE
Lloh5:
	ldr	x10, [x10, _STMP_OFFSET_REG_CLR@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	add	x8, x8, x9
	add	x1, x8, x10
	bl	_writel
Lloh7:
	adrp	x8, _DMA_IN_PROGRESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_IN_PROGRESS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_APBHX_CTRL0,8,3             ; @HW_APBHX_CTRL0
	.comm	_STMP_OFFSET_REG_CLR,8,3        ; @STMP_OFFSET_REG_CLR
	.comm	_HW_APBHX_CHANNEL_CTRL,8,3      ; @HW_APBHX_CHANNEL_CTRL
	.comm	_DMA_IN_PROGRESS,4,2            ; @DMA_IN_PROGRESS
	.no_dead_strip	_mxs_dma_resume_chan
.subsections_via_symbols
