	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renesas_sdhi_internal_dmac_enable_dma
_renesas_sdhi_internal_dmac_enable_dma: ## @renesas_sdhi_internal_dmac_enable_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_host_to_priv
	cmpl	$0, 4(%rbx)
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	movq	_DM_CM_INFO1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INFO1_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_renesas_sdhi_internal_dmac_dm_write
LBB0_4:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_CM_INFO1,4,2                ## @DM_CM_INFO1
	.comm	_INFO1_CLEAR,4,2                ## @INFO1_CLEAR
	.no_dead_strip	_renesas_sdhi_internal_dmac_enable_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renesas_sdhi_internal_dmac_enable_dma
_renesas_sdhi_internal_dmac_enable_dma: ; @renesas_sdhi_internal_dmac_enable_dma
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_host_to_priv
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x21, x0
	cbz	w19, LBB0_5
; %bb.3:
	ldr	x2, [x21]
	cbz	x2, LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	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
	br	x2
LBB0_5:
Lloh0:
	adrp	x8, _DM_CM_INFO1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_CM_INFO1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _INFO1_CLEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INFO1_CLEAR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_renesas_sdhi_internal_dmac_dm_write
	ldr	x2, [x21]
	cbnz	x2, LBB0_4
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_CM_INFO1,4,2                ; @DM_CM_INFO1
	.comm	_INFO1_CLEAR,4,2                ; @INFO1_CLEAR
	.no_dead_strip	_renesas_sdhi_internal_dmac_enable_dma
.subsections_via_symbols
