	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_fdma_resume
_st_fdma_resume:                        ## @st_fdma_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_st_fdma_chan
	movq	%rax, %rbx
	movl	4(%rax), %edx
	movq	16(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_FDMA_CH_CMD_OFST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_fchan_read
	movq	_FDMA_CH_CMD_DATA_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_fchan_write
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resume chan:%d\n"

	.comm	_FDMA_CH_CMD_OFST,4,2           ## @FDMA_CH_CMD_OFST
	.comm	_FDMA_CH_CMD_DATA_MASK,8,3      ## @FDMA_CH_CMD_DATA_MASK
	.no_dead_strip	_st_fdma_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_fdma_resume
_st_fdma_resume:                        ; @st_fdma_resume
	.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_st_fdma_chan
	mov	x19, x0
	ldr	w2, [x0, #4]
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _FDMA_CH_CMD_OFST@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FDMA_CH_CMD_OFST@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_fchan_read
Lloh4:
	adrp	x8, _FDMA_CH_CMD_DATA_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FDMA_CH_CMD_DATA_MASK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	and	x1, x8, x0
	ldr	w2, [x20]
	mov	x0, x19
	bl	_fchan_write
LBB0_2:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resume chan:%d\n"

	.comm	_FDMA_CH_CMD_OFST,4,2           ; @FDMA_CH_CMD_OFST
	.comm	_FDMA_CH_CMD_DATA_MASK,8,3      ; @FDMA_CH_CMD_DATA_MASK
	.no_dead_strip	_st_fdma_resume
.subsections_via_symbols
