	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_set_power_noreg          ## -- Begin function sdhci_set_power_noreg
	.p2align	4, 0x90
_sdhci_set_power_noreg:                 ## @sdhci_set_power_noreg
	.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	%rdi, %r14
	movq	_MMC_POWER_OFF@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpb	%sil, (%rax)
	je	LBB0_8
## %bb.1:
	movl	%edx, %r15d
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.2:
	movl	$3, %ecx
	btl	%eax, %ecx
	jb	LBB0_6
## %bb.3:
	movl	$12, %ecx
	btl	%eax, %ecx
	jae	LBB0_7
## %bb.4:
	movq	_SDHCI_POWER_300@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_SDHCI_POWER_330@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	cmpl	%ebx, 8(%r14)
	je	LBB0_9
	jmp	LBB0_11
LBB0_7:
	movq	_SDHCI_POWER_180@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	cmpl	%ebx, 8(%r14)
	jne	LBB0_11
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	12(%r14), %edi
	callq	_mmc_hostname
	movzwl	%r15w, %ecx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_WARN
	cmpl	%ebx, 8(%r14)
	je	LBB0_9
LBB0_11:
	movl	%ebx, 8(%r14)
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.12:
	movl	4(%r14), %eax
	movq	_SDHCI_QUIRK_SINGLE_POWER_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.13:
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sdhci_writeb
	movl	4(%r14), %eax
LBB0_14:
	movq	_SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sdhci_writeb
LBB0_16:
	movq	_SDHCI_POWER_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sdhci_writeb
	movq	_SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_sdhci_runtime_pm_bus_on
LBB0_18:
	movq	_SDHCI_QUIRK_DELAY_AFTER_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_9
## %bb.19:
	movl	$10, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
LBB0_20:
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sdhci_writeb
	movq	_SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.21:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_runtime_pm_bus_off       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_POWER_OFF,1,0              ## @MMC_POWER_OFF
	.comm	_SDHCI_POWER_180,4,2            ## @SDHCI_POWER_180
	.comm	_SDHCI_POWER_300,4,2            ## @SDHCI_POWER_300
	.comm	_SDHCI_POWER_330,4,2            ## @SDHCI_POWER_330
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Invalid vdd %#x\n"

	.comm	_SDHCI_POWER_CONTROL,4,2        ## @SDHCI_POWER_CONTROL
	.comm	_SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON,4,2 ## @SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON
	.comm	_SDHCI_QUIRK_SINGLE_POWER_WRITE,4,2 ## @SDHCI_QUIRK_SINGLE_POWER_WRITE
	.comm	_SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER,4,2 ## @SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER
	.comm	_SDHCI_POWER_ON,4,2             ## @SDHCI_POWER_ON
	.comm	_SDHCI_QUIRK_DELAY_AFTER_POWER,4,2 ## @SDHCI_QUIRK_DELAY_AFTER_POWER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdhci_set_power_noreg          ; -- Begin function sdhci_set_power_noreg
	.p2align	2
_sdhci_set_power_noreg:                 ; @sdhci_set_power_noreg
	.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	x19, x0
Lloh0:
	adrp	x8, _MMC_POWER_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_POWER_OFF@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_9
LBB0_2:
	mov	x20, x2
	mov	w9, #1
	lsl	w8, w9, w2
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_22
; %bb.3:
	lsl	w9, w9, w8
	tst	w9, #0x3
	b.ne	LBB0_6
; %bb.4:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0xc
	b.eq	LBB0_7
; %bb.5:
Lloh2:
	adrp	x8, _SDHCI_POWER_300@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDHCI_POWER_300@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _SDHCI_POWER_330@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SDHCI_POWER_330@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _SDHCI_POWER_180@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_POWER_180@GOTPAGEOFF]
LBB0_8:
	ldr	w20, [x8]
LBB0_9:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_11
LBB0_10:
	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_11:
	str	w20, [x19, #8]
	cbz	w20, LBB0_20
; %bb.12:
	ldr	w8, [x19, #4]
Lloh8:
	adrp	x9, _SDHCI_QUIRK_SINGLE_POWER_WRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDHCI_QUIRK_SINGLE_POWER_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x21, _SDHCI_POWER_CONTROL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _SDHCI_POWER_CONTROL@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.13:
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_sdhci_writeb
	ldr	w8, [x19, #4]
LBB0_14:
Lloh13:
	adrp	x9, _SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_sdhci_writeb
LBB0_16:
Lloh16:
	adrp	x8, _SDHCI_POWER_ON@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDHCI_POWER_ON@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w1, w8, w20
	ldr	w2, [x21]
	mov	x0, x19
	bl	_sdhci_writeb
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_sdhci_runtime_pm_bus_on
LBB0_18:
	ldr	w8, [x19, #4]
Lloh22:
	adrp	x9, _SDHCI_QUIRK_DELAY_AFTER_POWER@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SDHCI_QUIRK_DELAY_AFTER_POWER@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.19:
	mov	w0, #10
	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
	b	_mdelay
LBB0_20:
Lloh25:
	adrp	x8, _SDHCI_POWER_CONTROL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SDHCI_POWER_CONTROL@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sdhci_writeb
	ldr	w8, [x19]
Lloh28:
	adrp	x9, _SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.21:
	mov	x0, x19
	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
	b	_sdhci_runtime_pm_bus_off
LBB0_22:
	ldr	w0, [x19, #12]
	bl	_mmc_hostname
	mov	x2, x0
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x20
	bl	_WARN
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_POWER_OFF,1,0              ; @MMC_POWER_OFF
	.comm	_SDHCI_POWER_180,4,2            ; @SDHCI_POWER_180
	.comm	_SDHCI_POWER_300,4,2            ; @SDHCI_POWER_300
	.comm	_SDHCI_POWER_330,4,2            ; @SDHCI_POWER_330
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Invalid vdd %#x\n"

	.comm	_SDHCI_POWER_CONTROL,4,2        ; @SDHCI_POWER_CONTROL
	.comm	_SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON,4,2 ; @SDHCI_QUIRK2_CARD_ON_NEEDS_BUS_ON
	.comm	_SDHCI_QUIRK_SINGLE_POWER_WRITE,4,2 ; @SDHCI_QUIRK_SINGLE_POWER_WRITE
	.comm	_SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER,4,2 ; @SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER
	.comm	_SDHCI_POWER_ON,4,2             ; @SDHCI_POWER_ON
	.comm	_SDHCI_QUIRK_DELAY_AFTER_POWER,4,2 ; @SDHCI_QUIRK_DELAY_AFTER_POWER
.subsections_via_symbols
