	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renesas_sdhi_reset_scc
_renesas_sdhi_reset_scc:                ## @renesas_sdhi_reset_scc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_CTL_SD_CARD_CLK_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_CLK_CTL_SCLKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movl	%r15d, %esi
	callq	_sd_ctrl_read16
	andl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_sd_ctrl_write16
	movq	_SH_MOBILE_SDHI_SCC_CKSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SH_MOBILE_SDHI_SCC_CKSEL_DTSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_sd_scc_read32
	andl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sd_scc_write32                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_SD_CARD_CLK_CTL,4,2        ## @CTL_SD_CARD_CLK_CTL
	.comm	_CLK_CTL_SCLKEN,4,2             ## @CLK_CTL_SCLKEN
	.comm	_SH_MOBILE_SDHI_SCC_CKSEL,4,2   ## @SH_MOBILE_SDHI_SCC_CKSEL
	.comm	_SH_MOBILE_SDHI_SCC_CKSEL_DTSEL,4,2 ## @SH_MOBILE_SDHI_SCC_CKSEL_DTSEL
	.no_dead_strip	_renesas_sdhi_reset_scc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renesas_sdhi_reset_scc
_renesas_sdhi_reset_scc:                ; @renesas_sdhi_reset_scc
	.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
Lloh0:
	adrp	x8, _CTL_SD_CARD_CLK_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_SD_CARD_CLK_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _CLK_CTL_SCLKEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLK_CTL_SCLKEN@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x1, x21
	bl	_sd_ctrl_read16
	bic	w2, w0, w22
	mov	x0, x20
	mov	x1, x21
	bl	_sd_ctrl_write16
Lloh6:
	adrp	x8, _SH_MOBILE_SDHI_SCC_CKSEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SH_MOBILE_SDHI_SCC_CKSEL@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _SH_MOBILE_SDHI_SCC_CKSEL_DTSEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SH_MOBILE_SDHI_SCC_CKSEL_DTSEL@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_sd_scc_read32
	bic	w3, w0, w22
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	b	_sd_scc_write32
	.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	_CTL_SD_CARD_CLK_CTL,4,2        ; @CTL_SD_CARD_CLK_CTL
	.comm	_CLK_CTL_SCLKEN,4,2             ; @CLK_CTL_SCLKEN
	.comm	_SH_MOBILE_SDHI_SCC_CKSEL,4,2   ; @SH_MOBILE_SDHI_SCC_CKSEL
	.comm	_SH_MOBILE_SDHI_SCC_CKSEL_DTSEL,4,2 ; @SH_MOBILE_SDHI_SCC_CKSEL_DTSEL
	.no_dead_strip	_renesas_sdhi_reset_scc
.subsections_via_symbols
