	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_select_timing
_mmc_select_timing:                     ## @mmc_select_timing
	.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
	callq	_mmc_can_ext_csd
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	(%rbx), %eax
	movq	_EXT_CSD_CARD_TYPE_HS400ES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_mmc_select_hs400es
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_3:
	movq	_EXT_CSD_CARD_TYPE_HS200@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_mmc_select_hs200
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movq	_EXT_CSD_CARD_TYPE_HS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_mmc_select_hs
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	callq	_mmc_set_bus_speed
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_CSD_CARD_TYPE_HS400ES,4,2  ## @EXT_CSD_CARD_TYPE_HS400ES
	.comm	_EXT_CSD_CARD_TYPE_HS200,4,2    ## @EXT_CSD_CARD_TYPE_HS200
	.comm	_EXT_CSD_CARD_TYPE_HS,4,2       ## @EXT_CSD_CARD_TYPE_HS
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_mmc_select_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_select_timing
_mmc_select_timing:                     ; @mmc_select_timing
	.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
	bl	_mmc_can_ext_csd
	cbz	w0, LBB0_8
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _EXT_CSD_CARD_TYPE_HS400ES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXT_CSD_CARD_TYPE_HS400ES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mmc_select_hs400es
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x9, _EXT_CSD_CARD_TYPE_HS200@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXT_CSD_CARD_TYPE_HS200@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_mmc_select_hs200
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x9, _EXT_CSD_CARD_TYPE_HS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXT_CSD_CARD_TYPE_HS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_mmc_select_hs
	cbz	w0, LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_mmc_set_bus_speed
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_CSD_CARD_TYPE_HS400ES,4,2  ; @EXT_CSD_CARD_TYPE_HS400ES
	.comm	_EXT_CSD_CARD_TYPE_HS200,4,2    ; @EXT_CSD_CARD_TYPE_HS200
	.comm	_EXT_CSD_CARD_TYPE_HS,4,2       ; @EXT_CSD_CARD_TYPE_HS
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_mmc_select_timing
.subsections_via_symbols
