	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_start_host                 ## -- Begin function mmc_start_host
	.p2align	4, 0x90
_mmc_start_host:                        ## @mmc_start_host
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_freqs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	callq	_max
	movl	%eax, 28(%rbx)
	movq	$0, 16(%rbx)
	movq	_MMC_POWER_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_MMC_CAP2_NO_PRESCAN_POWERUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mmc_claim_host
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mmc_power_up
	movq	%rbx, %rdi
	callq	_mmc_release_host
LBB0_2:
	movq	%rbx, %rdi
	callq	_mmc_gpiod_request_cd_irq
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__mmc_detect_change             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_freqs,8,3                      ## @freqs
	.comm	_MMC_POWER_UNDEFINED,4,2        ## @MMC_POWER_UNDEFINED
	.comm	_MMC_CAP2_NO_PRESCAN_POWERUP,4,2 ## @MMC_CAP2_NO_PRESCAN_POWERUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_start_host                 ; -- Begin function mmc_start_host
	.p2align	2
_mmc_start_host:                        ; @mmc_start_host
	.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	x19, x0
Lloh0:
	adrp	x8, _freqs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _freqs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_max
	str	w0, [x19, #28]
	str	xzr, [x19, #16]
Lloh3:
	adrp	x8, _MMC_POWER_UNDEFINED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_POWER_UNDEFINED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _MMC_CAP2_NO_PRESCAN_POWERUP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_CAP2_NO_PRESCAN_POWERUP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mmc_claim_host
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_mmc_power_up
	mov	x0, x19
	bl	_mmc_release_host
LBB0_2:
	mov	x0, x19
	bl	_mmc_gpiod_request_cd_irq
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__mmc_detect_change
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_freqs,8,3                      ; @freqs
	.comm	_MMC_POWER_UNDEFINED,4,2        ; @MMC_POWER_UNDEFINED
	.comm	_MMC_CAP2_NO_PRESCAN_POWERUP,4,2 ; @MMC_CAP2_NO_PRESCAN_POWERUP
.subsections_via_symbols
