	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_power_up                   ## -- Begin function mmc_power_up
	.p2align	4, 0x90
_mmc_power_up:                          ## @mmc_power_up
	.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), %rax
	movq	_MMC_POWER_ON@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_mmc_pwrseq_pre_power_on
	movl	%r14d, %edi
	callq	_fls
	decq	%rax
	movq	%rax, 16(%rbx)
	movq	_MMC_POWER_UP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_mmc_set_initial_state
	movq	%rbx, %rdi
	callq	_mmc_set_initial_signal_voltage
	movl	8(%rbx), %edi
	callq	_mmc_delay
	movq	%rbx, %rdi
	callq	_mmc_pwrseq_post_power_on
	movl	24(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_mmc_set_ios
	movl	8(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_delay                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_POWER_ON,8,3               ## @MMC_POWER_ON
	.comm	_MMC_POWER_UP,8,3               ## @MMC_POWER_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_power_up                   ; -- Begin function mmc_power_up
	.p2align	2
_mmc_power_up:                          ; @mmc_power_up
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _MMC_POWER_ON@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMC_POWER_ON@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	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_2:
	mov	x20, x1
	mov	x19, x0
	bl	_mmc_pwrseq_pre_power_on
	mov	x0, x20
	bl	_fls
	sub	x8, x0, #1
	str	x8, [x19, #16]
Lloh2:
	adrp	x8, _MMC_POWER_UP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMC_POWER_UP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_mmc_set_initial_state
	mov	x0, x19
	bl	_mmc_set_initial_signal_voltage
	ldr	w0, [x19, #8]
	bl	_mmc_delay
	mov	x0, x19
	bl	_mmc_pwrseq_post_power_on
	ldr	w8, [x19, #24]
	str	w8, [x19, #12]
	ldr	x8, [x21]
	str	x8, [x19]
	mov	x0, x19
	bl	_mmc_set_ios
	ldr	w0, [x19, #8]
	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	_mmc_delay
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_POWER_ON,8,3               ; @MMC_POWER_ON
	.comm	_MMC_POWER_UP,8,3               ; @MMC_POWER_UP
.subsections_via_symbols
