	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_read_ext_csd
_mmc_read_ext_csd:                      ## @mmc_read_ext_csd
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_mmc_can_ext_csd
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mmc_get_ext_csd
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	%eax, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_5
## %bb.3:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_5
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_9
LBB0_5:
	movl	(%rbx), %edi
	movl	4(%rbx), %ebx
	callq	_mmc_hostname
	cmpl	$2097152, %ebx                  ## imm = 0x200000
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_9
LBB0_8:
	movq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mmc_decode_ext_csd
	movl	%eax, %r14d
	movq	-24(%rbp), %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_EFAULT,4,2                     ## @EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unable to read EXT_CSD on a possible high capacity card. Card will be ignored.\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: unable to read EXT_CSD, performance might suffer\n"

	.no_dead_strip	_mmc_read_ext_csd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_read_ext_csd
_mmc_read_ext_csd:                      ; @mmc_read_ext_csd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_mmc_can_ext_csd
	cbz	w0, LBB0_9
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	bl	_mmc_get_ext_csd
	cbz	w0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w19, w8
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w19, w8
	b.ne	LBB0_10
LBB0_5:
	ldp	w0, w21, [x20]
	bl	_mmc_hostname
	mov	x1, x0
	cmp	w21, #512, lsl #12              ; =2097152
	b.ne	LBB0_8
; %bb.6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_10
LBB0_7:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_mmc_decode_ext_csd
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_kfree
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
LBB0_9:
	mov	w19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_EFAULT,4,2                     ; @EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unable to read EXT_CSD on a possible high capacity card. Card will be ignored.\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: unable to read EXT_CSD, performance might suffer\n"

	.no_dead_strip	_mmc_read_ext_csd
.subsections_via_symbols
