	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_hc_select_default
_msm_hc_select_default:                 ## @msm_hc_select_default
	.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
	movq	%rdi, %rbx
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	8(%rax), %r14
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movq	_CORE_PWRSAVE_DLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	8(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
LBB0_2:
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movq	_CORE_HC_MCLK_SEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_CORE_HC_MCLK_SEL_DFLT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movq	_CORE_HC_SELECT_IN_EN@GOTPCREL(%rip), %rcx
	movq	_CORE_HC_SELECT_IN_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CORE_PWRSAVE_DLL,4,2           ## @CORE_PWRSAVE_DLL
	.comm	_CORE_HC_MCLK_SEL_MASK,4,2      ## @CORE_HC_MCLK_SEL_MASK
	.comm	_CORE_HC_MCLK_SEL_DFLT,4,2      ## @CORE_HC_MCLK_SEL_DFLT
	.comm	_CORE_HC_SELECT_IN_EN,4,2       ## @CORE_HC_SELECT_IN_EN
	.comm	_CORE_HC_SELECT_IN_MASK,4,2     ## @CORE_HC_SELECT_IN_MASK
	.no_dead_strip	_msm_hc_select_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_hc_select_default
_msm_hc_select_default:                 ; @msm_hc_select_default
	.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
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	ldr	x20, [x0, #8]
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh0:
	adrp	x8, _CORE_PWRSAVE_DLL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CORE_PWRSAVE_DLL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20, #8]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh3:
	adrp	x8, _CORE_HC_MCLK_SEL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CORE_HC_MCLK_SEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CORE_HC_MCLK_SEL_DFLT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CORE_HC_MCLK_SEL_DFLT@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh8:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh9:
	adrp	x8, _CORE_HC_SELECT_IN_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CORE_HC_SELECT_IN_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _CORE_HC_SELECT_IN_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CORE_HC_SELECT_IN_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wmb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CORE_PWRSAVE_DLL,4,2           ; @CORE_PWRSAVE_DLL
	.comm	_CORE_HC_MCLK_SEL_MASK,4,2      ; @CORE_HC_MCLK_SEL_MASK
	.comm	_CORE_HC_MCLK_SEL_DFLT,4,2      ; @CORE_HC_MCLK_SEL_DFLT
	.comm	_CORE_HC_SELECT_IN_EN,4,2       ; @CORE_HC_SELECT_IN_EN
	.comm	_CORE_HC_SELECT_IN_MASK,4,2     ; @CORE_HC_SELECT_IN_MASK
	.no_dead_strip	_msm_hc_select_default
.subsections_via_symbols
