	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_sd_start_signal_voltage_switch
_uniphier_sd_start_signal_voltage_switch: ## @uniphier_sd_start_signal_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, %rbx
	callq	_mmc_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_uniphier_sd_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	leaq	16(%r14), %rax
	movq	_UNIPHIER_SD_VOLT_330@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	leaq	8(%r14), %rax
	movq	_UNIPHIER_SD_VOLT_180@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %r13d
	movq	(%rax), %r15
	movq	_UNIPHIER_SD_VOLT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_UNIPHIER_SD_VOLT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%edi, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r13d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	_UNIPHIER_SD_VOLT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_pinctrl_select_state
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_SD_VOLT_330,4,2       ## @UNIPHIER_SD_VOLT_330
	.comm	_UNIPHIER_SD_VOLT_180,4,2       ## @UNIPHIER_SD_VOLT_180
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_UNIPHIER_SD_VOLT,8,3           ## @UNIPHIER_SD_VOLT
	.comm	_UNIPHIER_SD_VOLT_MASK,4,2      ## @UNIPHIER_SD_VOLT_MASK
	.no_dead_strip	_uniphier_sd_start_signal_voltage_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_sd_start_signal_voltage_switch
_uniphier_sd_start_signal_voltage_switch: ; @uniphier_sd_start_signal_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	x21, x1
	bl	_mmc_priv
	mov	x20, x0
	bl	_uniphier_sd_priv
	mov	x19, x0
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	add	x8, x19, #16
Lloh0:
	adrp	x9, _UNIPHIER_SD_VOLT_330@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNIPHIER_SD_VOLT_330@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	add	x8, x19, #8
Lloh2:
	adrp	x9, _UNIPHIER_SD_VOLT_180@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UNIPHIER_SD_VOLT_180@GOTPAGEOFF]
LBB0_4:
	ldr	w21, [x9]
	ldr	x22, [x8]
	ldr	x8, [x20]
Lloh4:
	adrp	x23, _UNIPHIER_SD_VOLT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _UNIPHIER_SD_VOLT@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh6:
	adrp	x8, _UNIPHIER_SD_VOLT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNIPHIER_SD_VOLT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w24, w0, w8
	mov	x0, x8
	mov	x1, x21
	bl	_FIELD_PREP
	orr	w0, w24, w0
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19]
	mov	x1, x22
	bl	_pinctrl_select_state
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_SD_VOLT_330,4,2       ; @UNIPHIER_SD_VOLT_330
	.comm	_UNIPHIER_SD_VOLT_180,4,2       ; @UNIPHIER_SD_VOLT_180
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_UNIPHIER_SD_VOLT,8,3           ; @UNIPHIER_SD_VOLT
	.comm	_UNIPHIER_SD_VOLT_MASK,4,2      ; @UNIPHIER_SD_VOLT_MASK
	.no_dead_strip	_uniphier_sd_start_signal_voltage_switch
.subsections_via_symbols
