	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_omap_start_signal_voltage_switch
_sdhci_omap_start_signal_voltage_switch: ## @sdhci_omap_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_mmc_priv
	movq	%rax, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %rbx
	movq	(%rax), %r14
	movl	(%r15), %eax
	movq	_MMC_SIGNAL_VOLTAGE_330@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.1:
	movq	_SDHCI_OMAP_CAPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_omap_readl
	movq	_CAPA_VS33@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.6:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_omap_conf_bus_power
	movq	_SDHCI_OMAP_AC12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_omap_readl
	movq	_AC12_V1V8_SIGEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_IOV_3V3@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_3:
	movq	_MMC_SIGNAL_VOLTAGE_180@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.4:
	movq	_SDHCI_OMAP_CAPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_omap_readl
	movq	_CAPA_VS18@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_omap_conf_bus_power
	movq	_SDHCI_OMAP_AC12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_omap_readl
	movl	%eax, %edx
	movq	_AC12_V1V8_SIGEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IOV_1V8@GOTPCREL(%rip), %r15
LBB0_7:
	movq	_SDHCI_OMAP_AC12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sdhci_omap_writel
	movl	(%r15), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sdhci_omap_enable_iov
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_10
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_dbg
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_SIGNAL_VOLTAGE_330,4,2     ## @MMC_SIGNAL_VOLTAGE_330
	.comm	_SDHCI_OMAP_CAPA,4,2            ## @SDHCI_OMAP_CAPA
	.comm	_CAPA_VS33,4,2                  ## @CAPA_VS33
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SDHCI_OMAP_AC12,4,2            ## @SDHCI_OMAP_AC12
	.comm	_AC12_V1V8_SIGEN,4,2            ## @AC12_V1V8_SIGEN
	.comm	_IOV_3V3,4,2                    ## @IOV_3V3
	.comm	_MMC_SIGNAL_VOLTAGE_180,4,2     ## @MMC_SIGNAL_VOLTAGE_180
	.comm	_CAPA_VS18,4,2                  ## @CAPA_VS18
	.comm	_IOV_1V8,4,2                    ## @IOV_1V8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to switch IO voltage to %dmV\n"

L_.str.1:                               ## @.str.1
	.asciz	"IO voltage switched to %dmV\n"

	.no_dead_strip	_sdhci_omap_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 sdhci_omap_start_signal_voltage_switch
_sdhci_omap_start_signal_voltage_switch: ; @sdhci_omap_start_signal_voltage_switch
	.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	x21, x1
	bl	_mmc_priv
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SDHCI_OMAP_CAPA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDHCI_OMAP_CAPA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_omap_readl
Lloh6:
	adrp	x8, _CAPA_VS33@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAPA_VS33@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_sdhci_omap_conf_bus_power
Lloh9:
	adrp	x8, _SDHCI_OMAP_AC12@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_OMAP_AC12@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_omap_readl
Lloh12:
	adrp	x8, _AC12_V1V8_SIGEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AC12_V1V8_SIGEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w2, w0, w8
Lloh15:
	adrp	x21, _IOV_3V3@GOTPAGE
Lloh16:
	ldr	x21, [x21, _IOV_3V3@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh17:
	adrp	x9, _MMC_SIGNAL_VOLTAGE_180@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MMC_SIGNAL_VOLTAGE_180@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
Lloh20:
	adrp	x8, _SDHCI_OMAP_CAPA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SDHCI_OMAP_CAPA@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_omap_readl
Lloh23:
	adrp	x8, _CAPA_VS18@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAPA_VS18@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_sdhci_omap_conf_bus_power
Lloh26:
	adrp	x8, _SDHCI_OMAP_AC12@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SDHCI_OMAP_AC12@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_omap_readl
Lloh29:
	adrp	x8, _AC12_V1V8_SIGEN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AC12_V1V8_SIGEN@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w2, w8, w0
Lloh32:
	adrp	x21, _IOV_1V8@GOTPAGE
Lloh33:
	ldr	x21, [x21, _IOV_1V8@GOTPAGEOFF]
LBB0_6:
Lloh34:
	adrp	x8, _SDHCI_OMAP_AC12@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SDHCI_OMAP_AC12@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sdhci_omap_writel
	ldr	w21, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_sdhci_omap_enable_iov
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.7:
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_10
LBB0_8:
Lloh39:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_9:
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
LBB0_10:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_SIGNAL_VOLTAGE_330,4,2     ; @MMC_SIGNAL_VOLTAGE_330
	.comm	_SDHCI_OMAP_CAPA,4,2            ; @SDHCI_OMAP_CAPA
	.comm	_CAPA_VS33,4,2                  ; @CAPA_VS33
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SDHCI_OMAP_AC12,4,2            ; @SDHCI_OMAP_AC12
	.comm	_AC12_V1V8_SIGEN,4,2            ; @AC12_V1V8_SIGEN
	.comm	_IOV_3V3,4,2                    ; @IOV_3V3
	.comm	_MMC_SIGNAL_VOLTAGE_180,4,2     ; @MMC_SIGNAL_VOLTAGE_180
	.comm	_CAPA_VS18,4,2                  ; @CAPA_VS18
	.comm	_IOV_1V8,4,2                    ; @IOV_1V8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to switch IO voltage to %dmV\n"

l_.str.1:                               ; @.str.1
	.asciz	"IO voltage switched to %dmV\n"

	.no_dead_strip	_sdhci_omap_start_signal_voltage_switch
.subsections_via_symbols
