	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_uart_apdma_device_pause
_mtk_uart_apdma_device_pause:           ## @mtk_uart_apdma_device_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_to_mtk_uart_apdma_chan
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	_VFF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VFF_EN_CLR_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mtk_uart_apdma_write
	movq	_VFF_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VFF_INT_EN_CLR_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mtk_uart_apdma_write
	movl	4(%rbx), %edi
	callq	_synchronize_irq
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VFF_EN,4,2                     ## @VFF_EN
	.comm	_VFF_EN_CLR_B,4,2               ## @VFF_EN_CLR_B
	.comm	_VFF_INT_EN,4,2                 ## @VFF_INT_EN
	.comm	_VFF_INT_EN_CLR_B,4,2           ## @VFF_INT_EN_CLR_B
	.no_dead_strip	_mtk_uart_apdma_device_pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_uart_apdma_device_pause
_mtk_uart_apdma_device_pause:           ; @mtk_uart_apdma_device_pause
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_mtk_uart_apdma_chan
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _VFF_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VFF_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _VFF_EN_CLR_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VFF_EN_CLR_B@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mtk_uart_apdma_write
Lloh6:
	adrp	x8, _VFF_INT_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VFF_INT_EN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _VFF_INT_EN_CLR_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VFF_INT_EN_CLR_B@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mtk_uart_apdma_write
	ldr	w0, [x19, #4]
	bl	_synchronize_irq
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VFF_EN,4,2                     ; @VFF_EN
	.comm	_VFF_EN_CLR_B,4,2               ; @VFF_EN_CLR_B
	.comm	_VFF_INT_EN,4,2                 ; @VFF_INT_EN
	.comm	_VFF_INT_EN_CLR_B,4,2           ; @VFF_INT_EN_CLR_B
	.no_dead_strip	_mtk_uart_apdma_device_pause
.subsections_via_symbols
