	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_start_signal_voltage_switch ## -- Begin function sdhci_start_signal_voltage_switch
	.p2align	4, 0x90
_sdhci_start_signal_voltage_switch:     ## @sdhci_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, %r12
	movq	%rdi, %r15
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_SDHCI_SPEC_300@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jl	LBB0_26
## %bb.1:
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movl	%eax, %r13d
	movl	(%r12), %eax
	cmpl	$130, %eax
	je	LBB0_20
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_26
## %bb.4:
	movq	_SDHCI_SIGNALING_330@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_5
## %bb.6:
	movq	_SDHCI_CTRL_VDD_180@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r13d
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_sdhci_writew
	movl	(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_7
LBB0_9:
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$5500, %esi                     ## imm = 0x157C
	callq	_usleep_range
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movq	_SDHCI_CTRL_VDD_180@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.10:
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_20:
	movq	_SDHCI_SIGNALING_120@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_5
## %bb.21:
	movl	(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_26
## %bb.22:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mmc_regulator_set_vqmmc
	testl	%eax, %eax
	je	LBB0_26
## %bb.23:
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_24
LBB0_12:
	movq	_SDHCI_SIGNALING_180@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_5
## %bb.13:
	movl	(%r15), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_14
LBB0_16:
	movq	_SDHCI_CTRL_VDD_180@GOTPCREL(%rip), %r12
	orl	(%r12), %r13d
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_sdhci_writew
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_18:
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	testl	%eax, (%r12)
	jne	LBB0_26
## %bb.19:
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str.3(%rip), %rdi
LBB0_11:
	movl	%eax, %esi
	callq	_pr_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mmc_regulator_set_vqmmc
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_24
LBB0_14:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mmc_regulator_set_vqmmc
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str.2(%rip), %rdi
LBB0_24:
	movl	%eax, %esi
	callq	_pr_warn
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_25:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_26:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_SPEC_300,8,3             ## @SDHCI_SPEC_300
	.comm	_SDHCI_HOST_CONTROL2,4,2        ## @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_SIGNALING_330,4,2        ## @SDHCI_SIGNALING_330
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SDHCI_CTRL_VDD_180,4,2         ## @SDHCI_CTRL_VDD_180
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Switching to 3.3V signalling voltage failed\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"%s: 3.3V regulator output did not became stable\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_SDHCI_SIGNALING_180,4,2        ## @SDHCI_SIGNALING_180
L_.str.2:                               ## @.str.2
	.asciz	"%s: Switching to 1.8V signalling voltage failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: 1.8V regulator output did not became stable\n"

	.comm	_SDHCI_SIGNALING_120,4,2        ## @SDHCI_SIGNALING_120
L_.str.4:                               ## @.str.4
	.asciz	"%s: Switching to 1.2V signalling voltage failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_start_signal_voltage_switch ; -- Begin function sdhci_start_signal_voltage_switch
	.p2align	2
_sdhci_start_signal_voltage_switch:     ; @sdhci_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
	mov	x19, x0
	bl	_mmc_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SDHCI_SPEC_300@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDHCI_SPEC_300@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_17
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x23, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_sdhci_readw
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.2:
	mov	x22, x0
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.4:
	ldr	w8, [x20, #8]
Lloh5:
	adrp	x9, _SDHCI_SIGNALING_330@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SDHCI_SIGNALING_330@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.5:
Lloh8:
	adrp	x24, _SDHCI_CTRL_VDD_180@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SDHCI_CTRL_VDD_180@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w1, w22, w8
	ldr	w2, [x23]
	mov	x0, x20
	bl	_sdhci_writew
	ldr	w0, [x19]
	bl	_IS_ERR
	cbz	w0, LBB0_19
LBB0_6:
	mov	w0, #5000
	mov	w1, #5500
	bl	_usleep_range
	ldr	w1, [x23]
	mov	x0, x20
	bl	_sdhci_readw
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_17
; %bb.7:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_25
LBB0_8:
	ldr	w8, [x20, #8]
Lloh12:
	adrp	x9, _SDHCI_SIGNALING_120@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDHCI_SIGNALING_120@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.9:
	ldr	w0, [x19]
	bl	_IS_ERR
	cbnz	w0, LBB0_17
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	bl	_mmc_regulator_set_vqmmc
	cbz	w0, LBB0_27
; %bb.11:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_12:
	ldr	w8, [x20, #8]
Lloh17:
	adrp	x9, _SDHCI_SIGNALING_180@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SDHCI_SIGNALING_180@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.13:
	ldr	w0, [x19]
	bl	_IS_ERR
	cbz	w0, LBB0_21
LBB0_14:
Lloh20:
	adrp	x21, _SDHCI_CTRL_VDD_180@GOTPAGE
Lloh21:
	ldr	x21, [x21, _SDHCI_CTRL_VDD_180@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w1, w8, w22
	ldr	w2, [x23]
	mov	x0, x20
	bl	_sdhci_writew
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x20
	blr	x8
LBB0_16:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_sdhci_readw
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_24
LBB0_17:
	mov	w0, #0
	b	LBB0_27
LBB0_18:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_26
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	bl	_mmc_regulator_set_vqmmc
	cbz	w0, LBB0_6
; %bb.20:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_23
LBB0_21:
	mov	x0, x19
	mov	x1, x21
	bl	_mmc_regulator_set_vqmmc
	cbz	w0, LBB0_14
; %bb.22:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_23:
	bl	_pr_warn
Lloh28:
	adrp	x8, _EIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_26
LBB0_24:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_25:
	bl	_pr_warn
Lloh32:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_SPEC_300,8,3             ; @SDHCI_SPEC_300
	.comm	_SDHCI_HOST_CONTROL2,4,2        ; @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_SIGNALING_330,4,2        ; @SDHCI_SIGNALING_330
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SDHCI_CTRL_VDD_180,4,2         ; @SDHCI_CTRL_VDD_180
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Switching to 3.3V signalling voltage failed\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"%s: 3.3V regulator output did not became stable\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_SDHCI_SIGNALING_180,4,2        ; @SDHCI_SIGNALING_180
l_.str.2:                               ; @.str.2
	.asciz	"%s: Switching to 1.8V signalling voltage failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: 1.8V regulator output did not became stable\n"

	.comm	_SDHCI_SIGNALING_120,4,2        ; @SDHCI_SIGNALING_120
l_.str.4:                               ; @.str.4
	.asciz	"%s: Switching to 1.2V signalling voltage failed\n"

.subsections_via_symbols
