	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_sprd_voltage_switch
_sdhci_sprd_voltage_switch:             ## @sdhci_sprd_voltage_switch
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_mmc_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TO_SPRD_HOST
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movl	4(%r13), %edi
	callq	_IS_ERR
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	cmpl	$129, (%r12)
	movl	4(%r13), %edi
	jne	LBB0_8
## %bb.5:
	movl	8(%r13), %esi
	callq	_pinctrl_select_state
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mmc_regulator_set_vqmmc
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_11
LBB0_8:
	movl	(%r13), %esi
	callq	_pinctrl_select_state
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mmc_hostname
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	movl	%eax, %esi
	callq	_pr_err
	movl	%r12d, %r15d
	jmp	LBB0_11
LBB0_10:
	movl	$300, %edi                      ## imm = 0x12C
	movl	$500, %esi                      ## imm = 0x1F4
	callq	_usleep_range
	movq	_SDHCI_RESET_CMD@GOTPCREL(%rip), %rax
	movq	_SDHCI_RESET_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sdhci_reset
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Switching signalling voltage failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: failed to select uhs pin state\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: failed to select default pin state\n"

	.comm	_SDHCI_RESET_CMD,4,2            ## @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ## @SDHCI_RESET_DATA
	.no_dead_strip	_sdhci_sprd_voltage_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_sprd_voltage_switch
_sdhci_sprd_voltage_switch:             ; @sdhci_sprd_voltage_switch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	bl	_mmc_priv
	mov	x19, x0
	bl	_TO_SPRD_HOST
	mov	x23, x0
	ldr	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_3
LBB0_1:
	ldr	w0, [x23, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_5
LBB0_2:
	mov	w21, #0
	b	LBB0_11
LBB0_3:
	mov	x0, x20
	mov	x1, x22
	bl	_mmc_regulator_set_vqmmc
	cbz	w0, LBB0_1
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_5:
	ldr	w8, [x22]
	ldr	w0, [x23, #4]
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.6:
	ldr	w1, [x23, #8]
	bl	_pinctrl_select_state
	cbz	w0, LBB0_12
; %bb.7:
	mov	x21, x0
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w1, [x23]
	bl	_pinctrl_select_state
	cbz	w0, LBB0_12
; %bb.9:
	mov	x21, x0
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_pr_err
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #300
	mov	w1, #500
	bl	_usleep_range
Lloh6:
	adrp	x8, _SDHCI_RESET_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_RESET_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SDHCI_RESET_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDHCI_RESET_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_sdhci_reset
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Switching signalling voltage failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: failed to select uhs pin state\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: failed to select default pin state\n"

	.comm	_SDHCI_RESET_CMD,4,2            ; @SDHCI_RESET_CMD
	.comm	_SDHCI_RESET_DATA,4,2           ; @SDHCI_RESET_DATA
	.no_dead_strip	_sdhci_sprd_voltage_switch
.subsections_via_symbols
