	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_select_hs
_mmc_select_hs:                         ## @mmc_select_hs
	.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, %r14
	movq	_EXT_CSD_CMD_SET_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXT_CSD_HS_TIMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EXT_CSD_TIMING_HS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rdi), %r8d
	movq	_MMC_TIMING_MMC_HS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	pushq	$1
	pushq	$1
	pushq	$1
	callq	___mmc_switch
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_pr_warn
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ## @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_HS_TIMING,4,2          ## @EXT_CSD_HS_TIMING
	.comm	_EXT_CSD_TIMING_HS,4,2          ## @EXT_CSD_TIMING_HS
	.comm	_MMC_TIMING_MMC_HS,4,2          ## @MMC_TIMING_MMC_HS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: switch to high-speed failed, err:%d\n"

	.no_dead_strip	_mmc_select_hs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_select_hs
_mmc_select_hs:                         ; @mmc_select_hs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _EXT_CSD_CMD_SET_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXT_CSD_CMD_SET_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _EXT_CSD_HS_TIMING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXT_CSD_HS_TIMING@GOTPAGEOFF]
Lloh5:
	adrp	x9, _EXT_CSD_TIMING_HS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EXT_CSD_TIMING_HS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	ldr	w3, [x9]
	ldr	w4, [x0, #4]
Lloh9:
	adrp	x8, _MMC_TIMING_MMC_HS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMC_TIMING_MMC_HS@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	w8, #1
	str	w8, [sp]
	mov	w6, #1
	mov	w7, #1
	bl	___mmc_switch
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_mmc_hostname
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_warn
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_CSD_CMD_SET_NORMAL,4,2     ; @EXT_CSD_CMD_SET_NORMAL
	.comm	_EXT_CSD_HS_TIMING,4,2          ; @EXT_CSD_HS_TIMING
	.comm	_EXT_CSD_TIMING_HS,4,2          ; @EXT_CSD_TIMING_HS
	.comm	_MMC_TIMING_MMC_HS,4,2          ; @MMC_TIMING_MMC_HS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: switch to high-speed failed, err:%d\n"

	.no_dead_strip	_mmc_select_hs
.subsections_via_symbols
