	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_edma_device_pause
_dw_edma_device_pause:                  ## @dw_edma_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
	callq	_dchan2dw_edma_chan
	cmpl	$0, 16(%rax)
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rcx
	movq	_EDMA_ST_BUSY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.3:
	movq	8(%rax), %rcx
	movq	_EDMA_REQ_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.4:
	movq	_EDMA_REQ_PAUSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EDMA_ST_BUSY,8,3               ## @EDMA_ST_BUSY
	.comm	_EDMA_REQ_NONE,8,3              ## @EDMA_REQ_NONE
	.comm	_EDMA_REQ_PAUSE,8,3             ## @EDMA_REQ_PAUSE
	.no_dead_strip	_dw_edma_device_pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_edma_device_pause
_dw_edma_device_pause:                  ; @dw_edma_device_pause
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_dchan2dw_edma_chan
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EDMA_ST_BUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EDMA_ST_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _EDMA_REQ_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EDMA_REQ_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #0
Lloh6:
	adrp	x9, _EDMA_REQ_PAUSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EDMA_REQ_PAUSE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [x0, #8]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EDMA_ST_BUSY,8,3               ; @EDMA_ST_BUSY
	.comm	_EDMA_REQ_NONE,8,3              ; @EDMA_REQ_NONE
	.comm	_EDMA_REQ_PAUSE,8,3             ; @EDMA_REQ_PAUSE
	.no_dead_strip	_dw_edma_device_pause
.subsections_via_symbols
