	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msdc_ops_switch_volt
_msdc_ops_switch_volt:                  ## @msdc_ops_switch_volt
	.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, %r15
	movq	%rdi, %rbx
	callq	_mmc_priv
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_IS_ERR
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	(%r15), %eax
	movq	_MMC_SIGNAL_VOLTAGE_330@GOTPCREL(%rip), %rcx
	movq	_MMC_SIGNAL_VOLTAGE_180@GOTPCREL(%rip), %r13
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	cmpl	(%r13), %eax
	je	LBB0_4
## %bb.3:
	movl	12(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mmc_regulator_set_vqmmc
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	12(%r14), %edi
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	movl	%ebx, %r12d
	jmp	LBB0_10
LBB0_6:
	movl	(%r15), %eax
	movl	4(%r14), %edi
	cmpl	(%r13), %eax
	jne	LBB0_8
## %bb.7:
	movl	8(%r14), %esi
	jmp	LBB0_9
LBB0_8:
	movl	(%r14), %esi
LBB0_9:
	callq	_pinctrl_select_state
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_SIGNAL_VOLTAGE_330,4,2     ## @MMC_SIGNAL_VOLTAGE_330
	.comm	_MMC_SIGNAL_VOLTAGE_180,4,2     ## @MMC_SIGNAL_VOLTAGE_180
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported signal voltage!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Regulator set error %d (%d)\n"

	.no_dead_strip	_msdc_ops_switch_volt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msdc_ops_switch_volt
_msdc_ops_switch_volt:                  ; @msdc_ops_switch_volt
	.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	x20, x1
	mov	x21, x0
	bl	_mmc_priv
	mov	x19, x0
	ldr	w0, [x21]
	bl	_IS_ERR
	cbz	w0, LBB0_2
LBB0_1:
	mov	w21, #0
	b	LBB0_6
LBB0_2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x22, _MMC_SIGNAL_VOLTAGE_180@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MMC_SIGNAL_VOLTAGE_180@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_mmc_regulator_set_vqmmc
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19, #12]
	ldr	w3, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #12]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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
LBB0_7:
	ldr	w8, [x20]
	ldr	w9, [x22]
	ldr	w0, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	ldr	w1, [x19, #8]
	b	LBB0_10
LBB0_9:
	ldr	w1, [x19]
LBB0_10:
	bl	_pinctrl_select_state
	b	LBB0_1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_SIGNAL_VOLTAGE_330,4,2     ; @MMC_SIGNAL_VOLTAGE_330
	.comm	_MMC_SIGNAL_VOLTAGE_180,4,2     ; @MMC_SIGNAL_VOLTAGE_180
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported signal voltage!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Regulator set error %d (%d)\n"

	.no_dead_strip	_msdc_ops_switch_volt
.subsections_via_symbols
