	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mmcif_release_dma
_sh_mmcif_release_dma:                  ## @sh_mmcif_release_dma
	.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
	movq	%rdi, %rbx
	movq	_MMCIF_CE_BUF_ACC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BUF_ACC_DMAREN@GOTPCREL(%rip), %rax
	movq	_BUF_ACC_DMAWEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_sh_mmcif_bitclr
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	$0, 16(%rbx)
	callq	_dma_release_channel
LBB0_2:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	$0, 8(%rbx)
	callq	_dma_release_channel
LBB0_4:
	movl	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMCIF_CE_BUF_ACC,4,2           ## @MMCIF_CE_BUF_ACC
	.comm	_BUF_ACC_DMAREN,4,2             ## @BUF_ACC_DMAREN
	.comm	_BUF_ACC_DMAWEN,4,2             ## @BUF_ACC_DMAWEN
	.no_dead_strip	_sh_mmcif_release_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mmcif_release_dma
_sh_mmcif_release_dma:                  ; @sh_mmcif_release_dma
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MMCIF_CE_BUF_ACC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMCIF_CE_BUF_ACC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BUF_ACC_DMAREN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BUF_ACC_DMAREN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _BUF_ACC_DMAWEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BUF_ACC_DMAWEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_sh_mmcif_bitclr
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [x19, #16]
	bl	_dma_release_channel
LBB0_2:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	str	xzr, [x19, #8]
	bl	_dma_release_channel
LBB0_4:
	str	wzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MMCIF_CE_BUF_ACC,4,2           ; @MMCIF_CE_BUF_ACC
	.comm	_BUF_ACC_DMAREN,4,2             ; @BUF_ACC_DMAREN
	.comm	_BUF_ACC_DMAWEN,4,2             ; @BUF_ACC_DMAWEN
	.no_dead_strip	_sh_mmcif_release_dma
.subsections_via_symbols
