	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_sdio_init_card
_mmc_sdio_init_card:                    ## @mmc_sdio_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, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$0, -60(%rbp)
	xorl	%edi, %edi
	cmpl	$0, 32(%r15)
	sete	%dil
	callq	_WARN_ON
	movq	%r15, %rdi
	callq	_mmc_host_uhs
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_R4_18V_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	orl	%r14d, %ebx
	movl	$10, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mmc_sdio_resend_if_cond
	decl	%r12d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	movq	_R4_18V_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	-60(%rbp), %rdx
	callq	_mmc_send_io_op_cond
	testl	%eax, %eax
	jne	LBB0_38
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_use_spi_crc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mmc_spi_set_crc
	testl	%eax, %eax
	jne	LBB0_38
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mmc_alloc_card
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_39
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-60(%rbp), %esi
	movq	_R4_MEMORY_PRESENT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	andl	%ebx, %esi
	movl	76(%r14), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_mmc_sd_get_cid
	testq	%rax, %rax
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_MMC_TYPE_SDIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	_MMC_TYPE_SDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_MMC_TYPE_SD_COMBO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	_MMC_TYPE_SD_COMBO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_57
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	76(%r14), %edi
	movl	76(%rbx), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_57
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*%rax
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-60(%rbp), %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	_R4_18V_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_mmc_set_uhs_voltage
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_3
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_R4_18V_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %r12b
	testq	%rbx, %rbx
	jne	LBB0_33
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rbx
	addq	$72, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mmc_send_relative_addr
	testl	%eax, %eax
	jne	LBB0_62
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %eax
	movl	%eax, 72(%rcx)
	movb	$1, %r12b
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	movq	_MMC_TYPE_SD_COMBO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mmc_sd_get_csd
	testl	%eax, %eax
	jne	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_mmc_decode_cid
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_mmc_select_card
	testl	%eax, %eax
	jne	LBB0_62
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_MMC_QUIRK_NONSTD_SDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_41
## %bb.36:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_sdio_read_cccr
	testl	%eax, %eax
	je	LBB0_45
## %bb.37:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mmc_sdio_resend_if_cond
	xorl	%r12d, %r12d
	movq	_R4_18V_PRESENT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_4
	jmp	LBB0_63
LBB0_38:
	movl	%eax, %r13d
	jmp	LBB0_65
LBB0_39:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_65
LBB0_41:
	movl	56(%r14), %esi
	movq	%r15, %rdi
	callq	_mmc_set_clock
	cmpq	$0, 64(%r14)
	je	LBB0_43
## %bb.42:
	movl	16(%r14), %edi
	movq	_MMC_TIMING_SD_HS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmc_set_timing
LBB0_43:
	xorl	%r13d, %r13d
	testb	%r12b, %r12b
	jne	LBB0_65
## %bb.44:
	movq	%r14, 8(%r15)
	jmp	LBB0_65
LBB0_45:
	movq	%r14, %rdi
	callq	_sdio_read_common_cis
	testl	%eax, %eax
	je	LBB0_49
LBB0_62:
	movl	%eax, %r13d
LBB0_63:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_65
LBB0_64:
	movq	%r14, %rdi
	callq	_mmc_remove_card
	jmp	LBB0_65
LBB0_49:
	testb	%r12b, %r12b
	je	LBB0_52
## %bb.50:
	movq	40(%r14), %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpq	40(%r13), %rax
	jne	LBB0_57
## %bb.51:
	movq	48(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	48(%r13), %rbx
	movq	%r14, %rdi
	callq	_mmc_remove_card
	movq	%r13, %r14
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_58
LBB0_52:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	movq	_sdio_fixup_methods@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mmc_fixup_device
	movq	(%r14), %rax
	movq	_MMC_TYPE_SD_COMBO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_61
## %bb.53:
	movzbl	%r12b, %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mmc_sd_setup_card
	testl	%eax, %eax
	je	LBB0_60
## %bb.54:
	movq	%r15, %rdi
	callq	_mmc_go_idle
	movq	%r15, %rdi
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	je	LBB0_56
## %bb.55:
	movq	_use_spi_crc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mmc_spi_set_crc
LBB0_56:
	movq	_MMC_TYPE_SDIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_61
LBB0_57:
	movq	%r14, %rdi
	callq	_mmc_remove_card
LBB0_58:
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_65:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_60:
	movq	_sd_type@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
LBB0_61:
	movq	%r14, %rdi
	callq	_sdio_disable_cd
	testl	%eax, %eax
	jne	LBB0_62
## %bb.66:
	movq	_R4_18V_PRESENT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_70
## %bb.67:
	cmpq	$0, 24(%r14)
	je	LBB0_70
## %bb.68:
	movq	%r14, %rdi
	callq	_mmc_sdio_init_uhs_card
	testl	%eax, %eax
	jne	LBB0_62
	jmp	LBB0_74
LBB0_70:
	movq	%r14, %rdi
	callq	_sdio_enable_hs
	testl	%eax, %eax
	jle	LBB0_77
## %bb.71:
	movl	16(%r14), %edi
	movq	_MMC_TIMING_SD_HS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmc_set_timing
LBB0_72:
	movq	%r14, %rdi
	callq	_mmc_sdio_get_max_clock
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mmc_set_clock
	movq	%r14, %rdi
	callq	_sdio_enable_4bit_bus
	testl	%eax, %eax
	jne	LBB0_62
LBB0_74:
	movq	_MMC_CAP2_AVOID_3_3V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_43
## %bb.75:
	movq	16(%r15), %rax
	movq	_MMC_SIGNAL_VOLTAGE_330@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_43
## %bb.76:
	movq	%r15, %rdi
	callq	_mmc_hostname
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_65
	jmp	LBB0_64
LBB0_77:
	jne	LBB0_62
	jmp	LBB0_72
	.cfi_endproc
                                        ## -- End function
	.comm	_R4_18V_PRESENT,4,2             ## @R4_18V_PRESENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Skipping voltage switch\n"

	.comm	_use_spi_crc,4,2                ## @use_spi_crc
	.comm	_R4_MEMORY_PRESENT,4,2          ## @R4_MEMORY_PRESENT
	.comm	_MMC_TYPE_SD_COMBO,8,3          ## @MMC_TYPE_SD_COMBO
L_.str.1:                               ## @.str.1
	.asciz	"%s: Perhaps the card was replaced\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_MMC_TYPE_SDIO,8,3              ## @MMC_TYPE_SDIO
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MMC_QUIRK_NONSTD_SDIO,4,2      ## @MMC_QUIRK_NONSTD_SDIO
	.comm	_MMC_TIMING_SD_HS,4,2           ## @MMC_TIMING_SD_HS
	.comm	_sdio_fixup_methods,4,2         ## @sdio_fixup_methods
	.comm	_sd_type,4,2                    ## @sd_type
	.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.2:                               ## @.str.2
	.asciz	"%s: Host failed to negotiate down from 3.3V\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mmc_sdio_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_sdio_init_card
_mmc_sdio_init_card:                    ; @mmc_sdio_init_card
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	ldr	w8, [x0, #32]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x20
	bl	_mmc_host_uhs
Lloh0:
	adrp	x27, _R4_18V_PRESENT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _R4_18V_PRESENT@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w22, w8, w23
	mov	w25, #10
Lloh2:
	adrp	x24, _R4_MEMORY_PRESENT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _R4_MEMORY_PRESENT@GOTPAGEOFF]
Lloh4:
	adrp	x28, _MMC_TYPE_SDIO@GOTPAGE
Lloh5:
	ldr	x28, [x28, _MMC_TYPE_SDIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_mmc_sdio_resend_if_cond
	sub	w25, w25, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w25, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
	ldr	w8, [x27]
	bic	w22, w22, w8
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x22
	bl	_mmc_send_io_op_cond
	cbnz	w0, LBB0_36
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x8, _use_spi_crc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _use_spi_crc@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mmc_spi_set_crc
	cbnz	w0, LBB0_36
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, #0
	bl	_mmc_alloc_card
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_37
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w1, w8, w22
	ldr	w2, [x21, #76]
	mov	x0, x20
	mov	x3, #0
	bl	_mmc_sd_get_cid
	cbz	x0, LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	str	x8, [x21]
	cbz	x19, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_15
	b	LBB0_54
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh11:
	adrp	x8, _MMC_TYPE_SD_COMBO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMC_TYPE_SD_COMBO@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x21]
	cbz	x19, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _MMC_TYPE_SD_COMBO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MMC_TYPE_SD_COMBO@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_54
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21, #76]
	ldr	w1, [x19, #76]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_54
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	and	w8, w8, w22
	ldr	w9, [x27]
	tst	w8, w9
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_mmc_set_uhs_voltage
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x27]
	bic	w22, w22, w8
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbz	x0, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	x19, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #1
	b	LBB0_31
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x21, #72
	mov	x0, x20
	mov	x1, x25
	bl	_mmc_send_relative_addr
	cbnz	w0, LBB0_43
; %bb.25:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	x19, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	str	w8, [x19, #72]
	mov	w25, #1
	b	LBB0_31
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
Lloh20:
	adrp	x9, _MMC_TYPE_SD_COMBO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MMC_TYPE_SD_COMBO@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_mmc_sd_get_csd
	cbnz	w0, LBB0_36
; %bb.29:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mmc_decode_cid
LBB0_30:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #0
LBB0_31:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbnz	x0, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mmc_select_card
	cbnz	w0, LBB0_43
LBB0_33:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21, #8]
Lloh23:
	adrp	x9, _MMC_QUIRK_NONSTD_SDIO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MMC_QUIRK_NONSTD_SDIO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_38
; %bb.34:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_sdio_read_cccr
	cbz	w0, LBB0_42
; %bb.35:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mmc_sdio_resend_if_cond
	mov	w25, #0
	ldr	w8, [x27]
	tst	w8, w22
	b.ne	LBB0_2
	b	LBB0_44
LBB0_36:
	mov	x26, x0
	b	LBB0_56
LBB0_37:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x26, x0
	b	LBB0_56
LBB0_38:
	ldr	w1, [x21, #56]
	mov	x0, x20
	bl	_mmc_set_clock
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_40
; %bb.39:
	ldr	w0, [x21, #16]
Lloh26:
	adrp	x8, _MMC_TIMING_SD_HS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MMC_TIMING_SD_HS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_mmc_set_timing
LBB0_40:
	mov	w26, #0
	tbnz	w25, #0, LBB0_56
; %bb.41:
	str	x21, [x20, #8]
	b	LBB0_56
LBB0_42:
	mov	x0, x21
	bl	_sdio_read_common_cis
	cbz	w0, LBB0_46
LBB0_43:
	mov	x26, x0
LBB0_44:
	cbnz	x19, LBB0_56
; %bb.45:
	mov	x0, x21
	bl	_mmc_remove_card
	b	LBB0_56
LBB0_46:
	cbz	w25, LBB0_49
; %bb.47:
	ldr	x8, [x21, #40]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ne	LBB0_54
; %bb.48:
	ldr	x24, [x21, #48]
	ldr	x26, [x19, #48]
	mov	x0, x21
	bl	_mmc_remove_card
	mov	x21, x19
	cmp	x24, x26
	b.ne	LBB0_55
LBB0_49:
	str	w23, [x21, #12]
Lloh29:
	adrp	x8, _sdio_fixup_methods@GOTPAGE
Lloh30:
	ldr	x8, [x8, _sdio_fixup_methods@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mmc_fixup_device
	ldr	x8, [x21]
Lloh32:
	adrp	x9, _MMC_TYPE_SD_COMBO@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MMC_TYPE_SD_COMBO@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_58
; %bb.50:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	bl	_mmc_sd_setup_card
	cbz	w0, LBB0_57
; %bb.51:
	mov	x0, x20
	bl	_mmc_go_idle
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbz	x0, LBB0_53
; %bb.52:
Lloh35:
	adrp	x8, _use_spi_crc@GOTPAGE
Lloh36:
	ldr	x8, [x8, _use_spi_crc@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mmc_spi_set_crc
LBB0_53:
	ldr	x8, [x28]
	str	x8, [x21]
	b	LBB0_58
LBB0_54:
	mov	x0, x21
	bl	_mmc_remove_card
LBB0_55:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh40:
	adrp	x8, _ENOENT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_56:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_57:
Lloh43:
	adrp	x8, _sd_type@GOTPAGE
Lloh44:
	ldr	x8, [x8, _sd_type@GOTPAGEOFF]
	str	x8, [x21, #32]
LBB0_58:
	mov	x0, x21
	bl	_sdio_disable_cd
	cbnz	w0, LBB0_43
; %bb.59:
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_62
; %bb.60:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_62
; %bb.61:
	mov	x0, x21
	bl	_mmc_sdio_init_uhs_card
	cbnz	w0, LBB0_43
	b	LBB0_65
LBB0_62:
	mov	x0, x21
	bl	_sdio_enable_hs
	cmp	w0, #1
	b.lt	LBB0_68
; %bb.63:
	ldr	w0, [x21, #16]
Lloh45:
	adrp	x8, _MMC_TIMING_SD_HS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MMC_TIMING_SD_HS@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	bl	_mmc_set_timing
LBB0_64:
	mov	x0, x21
	bl	_mmc_sdio_get_max_clock
	mov	x1, x0
	mov	x0, x20
	bl	_mmc_set_clock
	mov	x0, x21
	bl	_sdio_enable_4bit_bus
	cbnz	w0, LBB0_43
LBB0_65:
	ldr	w8, [x20]
Lloh48:
	adrp	x9, _MMC_CAP2_AVOID_3_3V@GOTPAGE
Lloh49:
	ldr	x9, [x9, _MMC_CAP2_AVOID_3_3V@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.66:
	ldr	x8, [x20, #16]
Lloh51:
	adrp	x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGE
Lloh52:
	ldr	x9, [x9, _MMC_SIGNAL_VOLTAGE_330@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_40
; %bb.67:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh54:
	adrp	x0, l_.str.2@PAGE
Lloh55:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh56:
	adrp	x8, _EINVAL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_44
LBB0_68:
	mov	x26, x0
	cbnz	w0, LBB0_44
	b	LBB0_64
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_R4_18V_PRESENT,4,2             ; @R4_18V_PRESENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Skipping voltage switch\n"

	.comm	_use_spi_crc,4,2                ; @use_spi_crc
	.comm	_R4_MEMORY_PRESENT,4,2          ; @R4_MEMORY_PRESENT
	.comm	_MMC_TYPE_SD_COMBO,8,3          ; @MMC_TYPE_SD_COMBO
l_.str.1:                               ; @.str.1
	.asciz	"%s: Perhaps the card was replaced\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_MMC_TYPE_SDIO,8,3              ; @MMC_TYPE_SDIO
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MMC_QUIRK_NONSTD_SDIO,4,2      ; @MMC_QUIRK_NONSTD_SDIO
	.comm	_MMC_TIMING_SD_HS,4,2           ; @MMC_TIMING_SD_HS
	.comm	_sdio_fixup_methods,4,2         ; @sdio_fixup_methods
	.comm	_sd_type,4,2                    ; @sd_type
	.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.2:                               ; @.str.2
	.asciz	"%s: Host failed to negotiate down from 3.3V\n"

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