	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_sd_get_cid                 ## -- Begin function mmc_sd_get_cid
	.p2align	4, 0x90
_mmc_sd_get_cid:                        ## @mmc_sd_get_cid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	$10, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	decl	%r13d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SD_OCR_S18R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_mmc_go_idle
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mmc_send_if_cond
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SD_OCR_CCS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	%r12d, %r14d
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_mmc_host_uhs
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SD_OCR_S18R@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_sd_get_host_max_current
	xorl	%r12d, %r12d
	cmpl	$151, %eax
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SD_OCR_XPC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	orl	%r14d, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_mmc_send_app_op_cond
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_mmc_host_is_spi
	testq	%r15, %r15
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %eax
	notl	%eax
	testl	$1090519040, %eax               ## imm = 0x41000000
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mmc_set_uhs_voltage
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_1
LBB0_17:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_send_cid                   ## TAILCALL
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_OCR_S18R,4,2                ## @SD_OCR_S18R
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Skipping voltage switch\n"

	.comm	_SD_OCR_CCS,4,2                 ## @SD_OCR_CCS
	.comm	_SD_OCR_XPC,4,2                 ## @SD_OCR_XPC
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_sd_get_cid                 ; -- Begin function mmc_sd_get_cid
	.p2align	2
_mmc_sd_get_cid:                        ; @mmc_sd_get_cid
	.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	x20, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x1
	mov	x21, x0
	mov	w28, #10
Lloh0:
	adrp	x25, _SD_OCR_S18R@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SD_OCR_S18R@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SD_OCR_CCS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SD_OCR_CCS@GOTPAGEOFF]
Lloh4:
	adrp	x27, _SD_OCR_XPC@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SD_OCR_XPC@GOTPAGEOFF]
	mov	w19, #1090519040
Lloh6:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
	mov	x24, x1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w28, w28, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w28, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	bic	w24, w24, w8
	mov	x0, x21
	bl	_mmc_hostname
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mmc_go_idle
	mov	x0, x21
	mov	x1, x24
	bl	_mmc_send_if_cond
	ldr	w8, [x26]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w24, w8, w24
	cbz	w28, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mmc_host_uhs
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	orr	w24, w8, w24
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_sd_get_host_max_current
	ldr	w8, [x27]
	cmp	w0, #150
	csel	w8, w8, wzr, gt
	orr	w24, w8, w24
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	bl	_mmc_send_app_op_cond
	cbnz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mmc_host_is_spi
	cbz	x20, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	bics	wzr, w19, w8
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_mmc_set_uhs_voltage
	ldr	w8, [x23]
	cmn	w0, w8
	b.eq	LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #0
	cbnz	w0, LBB0_2
LBB0_13:
	mov	x0, x21
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	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
	b	_mmc_send_cid
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_OCR_S18R,4,2                ; @SD_OCR_S18R
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Skipping voltage switch\n"

	.comm	_SD_OCR_CCS,4,2                 ; @SD_OCR_CCS
	.comm	_SD_OCR_XPC,4,2                 ; @SD_OCR_XPC
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
