	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmci_sig_volt_switch
_mmci_sig_volt_switch:                  ## @mmci_sig_volt_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_IS_ERR
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.4:
	movl	(%r12), %edi
	movl	$2700000, %esi                  ## imm = 0x2932E0
	movl	$3600000, %edx                  ## imm = 0x36EE80
	jmp	LBB0_7
LBB0_6:
	movl	(%r12), %edi
	movl	$1100000, %esi                  ## imm = 0x10C8E0
	movl	$1300000, %edx                  ## imm = 0x13D620
	jmp	LBB0_7
LBB0_5:
	movl	(%r12), %edi
	movl	$1700000, %esi                  ## imm = 0x19F0A0
	movl	$1950000, %edx                  ## imm = 0x1DC130
LBB0_7:
	callq	_regulator_set_voltage
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
	movl	%r15d, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Voltage switch failed\n"

	.no_dead_strip	_mmci_sig_volt_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmci_sig_volt_switch
_mmci_sig_volt_switch:                  ; @mmci_sig_volt_switch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_IS_ERR
	cbz	w0, LBB0_3
LBB0_1:
	mov	w20, #0
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.6:
	ldr	w0, [x19]
	mov	w1, #13024
	movk	w1, #41, lsl #16
	mov	w2, #61056
	movk	w2, #54, lsl #16
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19]
	mov	w1, #51424
	movk	w1, #16, lsl #16
	mov	w2, #54816
	movk	w2, #19, lsl #16
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19]
	mov	w1, #61600
	movk	w1, #25, lsl #16
	mov	w2, #49456
	movk	w2, #29, lsl #16
LBB0_9:
	bl	_regulator_set_voltage
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.10:
	mov	x0, x19
	bl	_mmc_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Voltage switch failed\n"

	.no_dead_strip	_mmci_sig_volt_switch
.subsections_via_symbols
