	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_sd_init_card
_mmc_sd_init_card:                      ## @mmc_sd_init_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -68(%rbp)
	xorl	%edi, %edi
	cmpl	$0, 40(%r14)
	sete	%dil
	callq	_WARN_ON
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mmc_sd_get_cid
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_57
## %bb.2:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	testq	%r15, %r15
	setne	%al
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movb	$1, %al
	movq	%r15, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	callq	_mmc_sd_get_cid
	movl	%eax, %r13d
	xorl	%eax, %eax
	testl	%r13d, %r13d
	movq	%r12, %rbx
	jne	LBB0_1
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	28(%rbx), %esi
	leaq	-64(%rbp), %rdi
	movl	$16, %edx
	callq	_memcmp
	movq	%rbx, %r15
	testq	%rax, %rax
	je	LBB0_9
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	_sd_type@GOTPCREL(%rip), %rsi
	callq	_mmc_alloc_card
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_51
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movq	_MMC_TYPE_SD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	28(%r15), %edi
	leaq	-64(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*%rax
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_mmc_host_is_spi
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	24(%r15), %rsi
	movq	%r14, %rdi
	callq	_mmc_send_relative_addr
	testl	%eax, %eax
	jne	LBB0_54
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%r15)
	jne	LBB0_17
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mmc_sd_get_csd
	testl	%eax, %eax
	jne	LBB0_53
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_mmc_decode_cid
	cmpq	$0, 16(%r15)
	je	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%r14)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_mmc_set_dsr
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_mmc_host_is_spi
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_mmc_select_card
	testl	%eax, %eax
	jne	LBB0_54
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_mmc_sd_setup_card
	testl	%eax, %eax
	jne	LBB0_54
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r12
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_34
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_mmc_host_is_spi
	testl	%eax, %eax
	jne	LBB0_34
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_mmc_host_uhs
	testq	%rax, %rax
	je	LBB0_34
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_mmc_sd_card_using_v18
	testq	%rax, %rax
	je	LBB0_34
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r14), %rax
	movq	_MMC_SIGNAL_VOLTAGE_180@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_mmc_read_switch
	testl	%eax, %eax
	jne	LBB0_50
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_mmc_sd_card_using_v18
	testq	%rax, %rax
	je	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_mmc_host_set_uhs_voltage
	testq	%rax, %rax
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_mmc_sd_init_uhs_card
	testl	%eax, %eax
	je	LBB0_46
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mmc_power_cycle
	testq	%r12, %r12
	jne	LBB0_4
## %bb.33:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_mmc_remove_card
	jmp	LBB0_4
LBB0_34:
	movq	_SD_ROCR_S18A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -68(%rbp)
	je	LBB0_37
## %bb.35:
	movq	%r14, %rdi
	callq	_mmc_host_uhs
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movq	%r15, %rdi
	callq	_mmc_sd_init_uhs_card
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	%r12, %rbx
	jne	LBB0_55
	jmp	LBB0_43
LBB0_37:
	movq	%r15, %rdi
	callq	_mmc_sd_switch_hs
	testl	%eax, %eax
	movq	%r12, %rbx
	jle	LBB0_47
## %bb.38:
	movl	8(%r15), %edi
	movq	_MMC_TIMING_SD_HS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmc_set_timing
LBB0_39:
	movq	%r15, %rdi
	callq	_mmc_sd_get_max_clock
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mmc_set_clock
	movq	_MMC_CAP_4_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_43
## %bb.40:
	movq	_SD_SCR_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_43
## %bb.41:
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mmc_app_set_bus_width
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_55
## %bb.42:
	movq	_MMC_BUS_WIDTH_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mmc_set_bus_width
LBB0_43:
	movq	_MMC_CAP2_AVOID_3_3V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_46
## %bb.44:
	movq	16(%r14), %rax
	movq	_MMC_SIGNAL_VOLTAGE_330@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_46
## %bb.45:
	movq	%r14, %rdi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%r12, %rbx
	jmp	LBB0_55
LBB0_46:
	movq	%r15, 8(%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_1
LBB0_54:
	movl	%eax, %r13d
	jmp	LBB0_55
LBB0_47:
	movl	%eax, %r13d
	je	LBB0_39
LBB0_55:
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_56:
	movq	%r15, %rdi
	callq	_mmc_remove_card
	jmp	LBB0_1
LBB0_49:
	movq	%r14, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_1
LBB0_50:
	movl	%eax, %r13d
	jmp	LBB0_1
LBB0_51:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_1
LBB0_53:
	movl	%eax, %r13d
	jmp	LBB0_56
LBB0_57:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Perhaps the card was replaced\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_sd_type,4,2                    ## @sd_type
	.comm	_MMC_TYPE_SD,4,2                ## @MMC_TYPE_SD
	.comm	_MMC_SIGNAL_VOLTAGE_180,8,3     ## @MMC_SIGNAL_VOLTAGE_180
	.comm	_SD_ROCR_S18A,4,2               ## @SD_ROCR_S18A
	.comm	_MMC_TIMING_SD_HS,4,2           ## @MMC_TIMING_SD_HS
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ## @MMC_CAP_4_BIT_DATA
	.comm	_SD_SCR_BUS_WIDTH_4,4,2         ## @SD_SCR_BUS_WIDTH_4
	.comm	_MMC_BUS_WIDTH_4,4,2            ## @MMC_BUS_WIDTH_4
	.comm	_MMC_CAP2_AVOID_3_3V,4,2        ## @MMC_CAP2_AVOID_3_3V
	.comm	_MMC_SIGNAL_VOLTAGE_330,8,3     ## @MMC_SIGNAL_VOLTAGE_330
L_.str.1:                               ## @.str.1
	.asciz	"%s: Host failed to negotiate down from 3.3V\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mmc_sd_init_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_card
_mmc_sd_init_card:                      ; @mmc_sd_init_card
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [sp, #4]
	ldr	w8, [x0, #40]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, x22
	bl	_mmc_sd_get_cid
	mov	x25, x0
	cbz	w0, LBB0_3
LBB0_1:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_55
; %bb.2:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	cmp	x19, #0
	cset	w23, ne
	mov	w28, #1
Lloh6:
	adrp	x26, _MMC_SIGNAL_VOLTAGE_180@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MMC_SIGNAL_VOLTAGE_180@GOTPAGEOFF]
Lloh8:
	adrp	x24, _sd_type@GOTPAGE
Lloh9:
	ldr	x24, [x24, _sd_type@GOTPAGEOFF]
Lloh10:
	adrp	x27, _MMC_TYPE_SD@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MMC_TYPE_SD@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, x22
	bl	_mmc_sd_get_cid
	mov	w28, #0
	cbnz	w0, LBB0_48
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19, #28]
	add	x0, sp, #8
	mov	w2, #16
	bl	_memcmp
	mov	x21, x19
	cbz	x0, LBB0_9
	b	LBB0_52
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_mmc_alloc_card
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_53
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w22, [x21]
	ldr	w8, [x27]
	str	w8, [x21, #32]
	ldr	w0, [x21, #28]
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbnz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x21, #24
	mov	x0, x20
	bl	_mmc_send_relative_addr
	cbnz	w0, LBB0_47
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x19, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_17
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_mmc_sd_get_csd
	cbnz	w0, LBB0_54
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mmc_decode_cid
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mmc_set_dsr
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbnz	w0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mmc_select_card
	cbnz	w0, LBB0_47
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_mmc_sd_setup_card
	cbnz	w0, LBB0_47
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	tbz	w28, #0, LBB0_34
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbnz	w0, LBB0_34
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mmc_host_uhs
	cbz	x0, LBB0_34
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mmc_sd_card_using_v18
	cbz	x0, LBB0_34
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_34
; %bb.27:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	x19, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mmc_read_switch
	cbnz	w0, LBB0_48
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mmc_sd_card_using_v18
	cbz	x0, LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_mmc_host_set_uhs_voltage
	cbnz	x0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mmc_sd_init_uhs_card
	cbz	w0, LBB0_46
LBB0_32:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_mmc_power_cycle
	cbnz	x19, LBB0_4
; %bb.33:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mmc_remove_card
	b	LBB0_4
LBB0_34:
	ldr	w8, [sp, #4]
Lloh12:
	adrp	x9, _SD_ROCR_S18A@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SD_ROCR_S18A@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.35:
	mov	x0, x20
	bl	_mmc_host_uhs
	cbz	x0, LBB0_37
; %bb.36:
	mov	x0, x21
	bl	_mmc_sd_init_uhs_card
	mov	x25, x0
	cbnz	w0, LBB0_50
	b	LBB0_43
LBB0_37:
	mov	x0, x21
	bl	_mmc_sd_switch_hs
	cmp	w0, #1
	b.lt	LBB0_49
; %bb.38:
	ldr	w0, [x21, #8]
Lloh15:
	adrp	x8, _MMC_TIMING_SD_HS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MMC_TIMING_SD_HS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_mmc_set_timing
LBB0_39:
	mov	x0, x21
	bl	_mmc_sd_get_max_clock
	mov	x1, x0
	mov	x0, x20
	bl	_mmc_set_clock
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _MMC_CAP_4_BIT_DATA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MMC_CAP_4_BIT_DATA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
; %bb.40:
	ldr	w8, [x21, #4]
Lloh21:
	adrp	x9, _SD_SCR_BUS_WIDTH_4@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SD_SCR_BUS_WIDTH_4@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
; %bb.41:
Lloh24:
	adrp	x22, _MMC_BUS_WIDTH_4@GOTPAGE
Lloh25:
	ldr	x22, [x22, _MMC_BUS_WIDTH_4@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_mmc_app_set_bus_width
	mov	x25, x0
	cbnz	w0, LBB0_50
; %bb.42:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_mmc_set_bus_width
LBB0_43:
	ldr	w8, [x20, #4]
Lloh26:
	adrp	x9, _MMC_CAP2_AVOID_3_3V@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MMC_CAP2_AVOID_3_3V@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_46
; %bb.44:
	ldr	x8, [x20, #16]
Lloh29:
	adrp	x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.45:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_50
LBB0_46:
	mov	w25, #0
	str	x21, [x20, #8]
	b	LBB0_1
LBB0_47:
	mov	x25, x0
	b	LBB0_50
LBB0_48:
	mov	x25, x0
	b	LBB0_1
LBB0_49:
	mov	x25, x0
	cbz	w0, LBB0_39
LBB0_50:
	cbnz	x19, LBB0_1
LBB0_51:
	mov	x0, x21
	bl	_mmc_remove_card
	b	LBB0_1
LBB0_52:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh39:
	adrp	x8, _ENOENT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_1
LBB0_53:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x25, x0
	b	LBB0_1
LBB0_54:
	mov	x25, x0
	b	LBB0_51
LBB0_55:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Perhaps the card was replaced\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_sd_type,4,2                    ; @sd_type
	.comm	_MMC_TYPE_SD,4,2                ; @MMC_TYPE_SD
	.comm	_MMC_SIGNAL_VOLTAGE_180,8,3     ; @MMC_SIGNAL_VOLTAGE_180
	.comm	_SD_ROCR_S18A,4,2               ; @SD_ROCR_S18A
	.comm	_MMC_TIMING_SD_HS,4,2           ; @MMC_TIMING_SD_HS
	.comm	_MMC_CAP_4_BIT_DATA,4,2         ; @MMC_CAP_4_BIT_DATA
	.comm	_SD_SCR_BUS_WIDTH_4,4,2         ; @SD_SCR_BUS_WIDTH_4
	.comm	_MMC_BUS_WIDTH_4,4,2            ; @MMC_BUS_WIDTH_4
	.comm	_MMC_CAP2_AVOID_3_3V,4,2        ; @MMC_CAP2_AVOID_3_3V
	.comm	_MMC_SIGNAL_VOLTAGE_330,8,3     ; @MMC_SIGNAL_VOLTAGE_330
l_.str.1:                               ; @.str.1
	.asciz	"%s: Host failed to negotiate down from 3.3V\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mmc_sd_init_card
.subsections_via_symbols
