	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_msm_set_regulator_caps
_sdhci_msm_set_regulator_caps:          ## @sdhci_msm_set_regulator_caps
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %r15
	movq	(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	8(%r13), %r14
	movq	(%r15), %rdi
	callq	_IS_ERR
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1700000, %esi                  ## imm = 0x19F0A0
	movl	$1950000, %edx                  ## imm = 0x1DC130
	callq	_regulator_is_supported_voltage
	xorl	%r12d, %r12d
	movq	_CORE_1_8V_SUPPORT@GOTPCREL(%rip), %rcx
	movl	$0, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rcx), %r14d
LBB0_3:
	movq	%rbx, %rdi
	movl	$2700000, %esi                  ## imm = 0x2932E0
	movl	$3600000, %edx                  ## imm = 0x36EE80
	callq	_regulator_is_supported_voltage
	movq	_CORE_3_0V_SUPPORT@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movl	(%rcx), %r12d
LBB0_5:
	orl	%r14d, %r12d
	je	LBB0_6
## %bb.7:
	movq	%rcx, %r14
	movl	(%r13), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_readl_relaxed
	movq	_CORE_IO_PAD_PWR_SWITCH_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_REQ_IO_HIGH@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_10
## %bb.8:
	testl	%r12d, (%r14)
	je	LBB0_10
## %bb.9:
	movq	_CORE_IO_PAD_PWR_SWITCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	jmp	LBB0_13
LBB0_6:
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_10:
	movq	_REQ_IO_LOW@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_12
## %bb.11:
	movq	_CORE_1_8V_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_13
LBB0_12:
	movq	_CORE_IO_PAD_PWR_SWITCH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_13:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rsi
	addq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_14:
	orl	%r12d, 4(%r13)
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CORE_1_8V_SUPPORT,4,2          ## @CORE_1_8V_SUPPORT
	.comm	_CORE_3_0V_SUPPORT,4,2          ## @CORE_3_0V_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: 1.8/3V not supported for vqmmc\n"

	.comm	_CORE_IO_PAD_PWR_SWITCH_EN,4,2  ## @CORE_IO_PAD_PWR_SWITCH_EN
	.comm	_REQ_IO_HIGH,4,2                ## @REQ_IO_HIGH
	.comm	_CORE_IO_PAD_PWR_SWITCH,4,2     ## @CORE_IO_PAD_PWR_SWITCH
	.comm	_REQ_IO_LOW,4,2                 ## @REQ_IO_LOW
L_.str.1:                               ## @.str.1
	.asciz	"%s: supported caps: 0x%08x\n"

	.no_dead_strip	_sdhci_msm_set_regulator_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_msm_set_regulator_caps
_sdhci_msm_set_regulator_caps:          ; @sdhci_msm_set_regulator_caps
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	x22, [x19]
	mov	x0, x19
	bl	_mmc_priv
	mov	x21, x0
	ldr	x23, [x20, #8]
	ldr	x0, [x19]
	bl	_IS_ERR
	cbz	w0, LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_11
LBB0_2:
	mov	x0, x22
	mov	w1, #61600
	movk	w1, #25, lsl #16
	mov	w2, #49456
	movk	w2, #29, lsl #16
	bl	_regulator_is_supported_voltage
Lloh0:
	adrp	x24, _CORE_1_8V_SUPPORT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CORE_1_8V_SUPPORT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	x0, #0
	csel	w26, wzr, w8, eq
	mov	x0, x22
	mov	w1, #13024
	movk	w1, #41, lsl #16
	mov	w2, #61056
	movk	w2, #54, lsl #16
	bl	_regulator_is_supported_voltage
Lloh2:
	adrp	x25, _CORE_3_0V_SUPPORT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CORE_3_0V_SUPPORT@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w8, w26
	cbz	w22, LBB0_6
; %bb.3:
	ldr	w26, [x20]
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh4:
	adrp	x8, _CORE_IO_PAD_PWR_SWITCH_EN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CORE_IO_PAD_PWR_SWITCH_EN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w0, w8, w0
Lloh7:
	adrp	x8, _REQ_IO_HIGH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REQ_IO_HIGH@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x25]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _CORE_IO_PAD_PWR_SWITCH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CORE_IO_PAD_PWR_SWITCH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w0, w0, w8
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x8, _REQ_IO_LOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REQ_IO_LOW@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w26
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_10
LBB0_9:
Lloh18:
	adrp	x8, _CORE_IO_PAD_PWR_SWITCH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CORE_IO_PAD_PWR_SWITCH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_10:
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel_relaxed
LBB0_11:
	ldr	w8, [x20, #4]
	orr	w8, w8, w22
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_mmc_hostname
	mov	x1, x0
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pr_debug
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CORE_1_8V_SUPPORT,4,2          ; @CORE_1_8V_SUPPORT
	.comm	_CORE_3_0V_SUPPORT,4,2          ; @CORE_3_0V_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: 1.8/3V not supported for vqmmc\n"

	.comm	_CORE_IO_PAD_PWR_SWITCH_EN,4,2  ; @CORE_IO_PAD_PWR_SWITCH_EN
	.comm	_REQ_IO_HIGH,4,2                ; @REQ_IO_HIGH
	.comm	_CORE_IO_PAD_PWR_SWITCH,4,2     ; @CORE_IO_PAD_PWR_SWITCH
	.comm	_REQ_IO_LOW,4,2                 ; @REQ_IO_LOW
l_.str.1:                               ; @.str.1
	.asciz	"%s: supported caps: 0x%08x\n"

	.no_dead_strip	_sdhci_msm_set_regulator_caps
.subsections_via_symbols
