	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_sd_init_uhs_card
_mmc_sd_init_uhs_card:                  ## @mmc_sd_init_uhs_card
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CCC_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_mmc_app_set_bus_width
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movq	(%r15), %rdi
	movl	(%r12), %esi
	callq	_mmc_set_bus_width
	movq	%r15, %rdi
	callq	_sd_update_bus_speed_mode
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sd_select_driver_type
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sd_set_current_limit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sd_set_bus_speed_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movq	(%r15), %rdi
	callq	_mmc_host_is_spi
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_MMC_TIMING_UHS_SDR50@GOTPCREL(%rip), %rcx
	movq	_MMC_TIMING_UHS_DDR50@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.11:
	movq	_MMC_TIMING_UHS_SDR104@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_12:
	movq	%r15, %rdi
	callq	_mmc_execute_tuning
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	(%r15), %rdi
	movq	(%rdi), %rcx
	movl	%eax, %ebx
	cmpq	(%r12), %rcx
	jne	LBB0_15
## %bb.14:
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	xorl	%ebx, %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCC_SWITCH,4,2                 ## @CCC_SWITCH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MMC_BUS_WIDTH_4,4,2            ## @MMC_BUS_WIDTH_4
	.comm	_MMC_TIMING_UHS_SDR50,8,3       ## @MMC_TIMING_UHS_SDR50
	.comm	_MMC_TIMING_UHS_DDR50,8,3       ## @MMC_TIMING_UHS_DDR50
	.comm	_MMC_TIMING_UHS_SDR104,8,3      ## @MMC_TIMING_UHS_SDR104
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ddr50 tuning failed\n"

	.no_dead_strip	_mmc_sd_init_uhs_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_sd_init_uhs_card
_mmc_sd_init_uhs_card:                  ; @mmc_sd_init_uhs_card
	.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	w8, [x0, #8]
Lloh0:
	adrp	x9, _CCC_SWITCH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CCC_SWITCH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kmalloc
	cbz	x0, LBB0_16
; %bb.2:
	mov	x19, x0
Lloh6:
	adrp	x22, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_mmc_app_set_bus_width
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	x0, [x20]
	ldr	w1, [x22]
	bl	_mmc_set_bus_width
	mov	x0, x20
	bl	_sd_update_bus_speed_mode
	mov	x0, x20
	mov	x1, x19
	bl	_sd_select_driver_type
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_sd_set_current_limit
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_sd_set_bus_speed_mode
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.6:
	ldr	x0, [x20]
	bl	_mmc_host_is_spi
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _MMC_TIMING_UHS_SDR50@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMC_TIMING_UHS_SDR50@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x22, _MMC_TIMING_UHS_DDR50@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MMC_TIMING_UHS_DDR50@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh13:
	adrp	x9, _MMC_TIMING_UHS_SDR104@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MMC_TIMING_UHS_SDR104@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_10:
	mov	x0, x20
	bl	_mmc_execute_tuning
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.11:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	bl	_mmc_hostname
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_13:
	mov	w21, #0
LBB0_14:
	mov	x0, x19
	bl	_kfree
	b	LBB0_17
LBB0_15:
	mov	w21, #0
	b	LBB0_17
LBB0_16:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_17:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CCC_SWITCH,4,2                 ; @CCC_SWITCH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MMC_BUS_WIDTH_4,4,2            ; @MMC_BUS_WIDTH_4
	.comm	_MMC_TIMING_UHS_SDR50,8,3       ; @MMC_TIMING_UHS_SDR50
	.comm	_MMC_TIMING_UHS_DDR50,8,3       ; @MMC_TIMING_UHS_DDR50
	.comm	_MMC_TIMING_UHS_SDR104,8,3      ; @MMC_TIMING_UHS_SDR104
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ddr50 tuning failed\n"

	.no_dead_strip	_mmc_sd_init_uhs_card
.subsections_via_symbols
