	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_set_power
_sdhci_set_power:                       ## @sdhci_set_power
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpw	$-1, %si
	je	LBB0_4
## %bb.1:
	movl	$1, %eax
	movl	%esi, %ecx
	shll	%cl, %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_2
## %bb.13:
	cltq
	leaq	l_switch.table.sdhci_set_power(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r14d
	cmpl	%r14d, 4(%rbx)
	je	LBB0_14
## %bb.6:
	movl	%r14d, 4(%rbx)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.7:
	movl	(%rbx), %eax
	movq	_SDHCI_QUIRK_SINGLE_POWER_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.8:
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sdhci_writeb
	movl	(%rbx), %eax
LBB0_9:
	movq	_SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sdhci_writeb
LBB0_11:
	movq	_SDHCI_POWER_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sdhci_writeb
	movq	_SDHCI_QUIRK_DELAY_AFTER_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.12:
	movl	$10, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
LBB0_4:
	cmpl	$0, 4(%rbx)
	je	LBB0_14
## %bb.5:
	movl	$0, 4(%rbx)
	jmp	LBB0_3
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	callq	_BUG
LBB0_3:
	movq	_SDHCI_POWER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdhci_writeb                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_SDHCI_POWER_CONTROL,4,2        ## @SDHCI_POWER_CONTROL
	.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
	.no_dead_strip	_sdhci_set_power
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sdhci_set_power
l_switch.table.sdhci_set_power:
	.quad	_SDHCI_POWER_330
	.quad	_SDHCI_POWER_330
	.quad	_SDHCI_POWER_300
	.quad	_SDHCI_POWER_300
	.quad	_SDHCI_POWER_180

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_set_power
_sdhci_set_power:                       ; @sdhci_set_power
	.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
	mov	w8, #65535
	cmp	w1, w8
	b.eq	LBB0_10
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w1
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_13
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.sdhci_set_power@PAGE
Lloh1:
	add	x9, x9, l_switch.table.sdhci_set_power@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w20, [x8]
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.eq	LBB0_12
; %bb.3:
	str	w20, [x19, #4]
	cbz	w20, LBB0_14
; %bb.4:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _SDHCI_QUIRK_SINGLE_POWER_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SDHCI_QUIRK_SINGLE_POWER_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x21, _SDHCI_POWER_CONTROL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SDHCI_POWER_CONTROL@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_sdhci_writeb
	ldr	w8, [x19]
LBB0_6:
Lloh7:
	adrp	x9, _SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_sdhci_writeb
LBB0_8:
Lloh10:
	adrp	x8, _SDHCI_POWER_ON@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SDHCI_POWER_ON@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w1, w8, w20
	ldr	w2, [x21]
	mov	x0, x19
	bl	_sdhci_writeb
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _SDHCI_QUIRK_DELAY_AFTER_POWER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SDHCI_QUIRK_DELAY_AFTER_POWER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	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_10:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
; %bb.11:
	str	wzr, [x19, #4]
	b	LBB0_14
LBB0_12:
	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_13:
	bl	_BUG
LBB0_14:
Lloh16:
	adrp	x8, _SDHCI_POWER_CONTROL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SDHCI_POWER_CONTROL@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	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_writeb
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_SDHCI_POWER_CONTROL,4,2        ; @SDHCI_POWER_CONTROL
	.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
	.no_dead_strip	_sdhci_set_power
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sdhci_set_power
l_switch.table.sdhci_set_power:
	.quad	_SDHCI_POWER_330
	.quad	_SDHCI_POWER_330
	.quad	_SDHCI_POWER_300
	.quad	_SDHCI_POWER_300
	.quad	_SDHCI_POWER_180

.subsections_via_symbols
