	.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
	pushq	%rax
	.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, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_mmc_go_idle
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_mmc_send_if_cond
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SD_OCR_CCS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movq	_MMC_CAP_UHS_SDR12@GOTPCREL(%rip), %rax
	movq	_MMC_CAP_UHS_SDR25@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rax), %ebx
	movl	(%r12), %eax
	movq	_MMC_CAP_UHS_SDR50@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ebx
	movq	_MMC_CAP_UHS_SDR104@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ebx
	movq	_MMC_CAP_UHS_DDR50@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ebx
	movq	_SD_OCR_S18R@GOTPCREL(%rip), %r14
	andl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	movl	(%r14), %ebx
LBB0_4:
	orl	%r13d, %ecx
	movq	_MMC_CAP_SET_XPC_330@GOTPCREL(%rip), %rsi
	movq	_MMC_CAP_SET_XPC_300@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rsi), %edx
	movq	_MMC_CAP_SET_XPC_180@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	andl	%eax, %edx
	je	LBB0_6
## %bb.5:
	movq	_SD_OCR_XPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_6:
	orl	%edx, %ecx
	orl	%ecx, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_mmc_send_app_op_cond
	testl	%eax, %eax
	je	LBB0_7
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_MMC_SIGNAL_VOLTAGE_180@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_mmc_host_is_spi
	testq	%r15, %r15
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %eax
	notl	%eax
	testl	$1090519040, %eax               ## imm = 0x41000000
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_mmc_set_signal_voltage
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_mmc_send_app_op_cond
	testl	%eax, %eax
	je	LBB0_8
	jmp	LBB0_13
LBB0_14:
	movq	%r12, %rdi
	callq	_mmc_host_is_spi
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_send_cid                   ## TAILCALL
LBB0_15:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_all_send_cid               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_OCR_CCS,4,2                 ## @SD_OCR_CCS
	.comm	_MMC_CAP_UHS_SDR12,4,2          ## @MMC_CAP_UHS_SDR12
	.comm	_MMC_CAP_UHS_SDR25,4,2          ## @MMC_CAP_UHS_SDR25
	.comm	_MMC_CAP_UHS_SDR50,4,2          ## @MMC_CAP_UHS_SDR50
	.comm	_MMC_CAP_UHS_SDR104,4,2         ## @MMC_CAP_UHS_SDR104
	.comm	_MMC_CAP_UHS_DDR50,4,2          ## @MMC_CAP_UHS_DDR50
	.comm	_SD_OCR_S18R,4,2                ## @SD_OCR_S18R
	.comm	_MMC_CAP_SET_XPC_330,4,2        ## @MMC_CAP_SET_XPC_330
	.comm	_MMC_CAP_SET_XPC_300,4,2        ## @MMC_CAP_SET_XPC_300
	.comm	_MMC_CAP_SET_XPC_180,4,2        ## @MMC_CAP_SET_XPC_180
	.comm	_SD_OCR_XPC,4,2                 ## @SD_OCR_XPC
	.comm	_MMC_SIGNAL_VOLTAGE_180,4,2     ## @MMC_SIGNAL_VOLTAGE_180
.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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mmc_go_idle
	mov	x0, x20
	mov	x1, x22
	bl	_mmc_send_if_cond
Lloh0:
	adrp	x8, _SD_OCR_CCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_OCR_CCS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w8, w8, w22
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _MMC_CAP_UHS_SDR12@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMC_CAP_UHS_SDR12@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _MMC_CAP_UHS_SDR25@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MMC_CAP_UHS_SDR25@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh9:
	adrp	x11, _MMC_CAP_UHS_SDR50@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MMC_CAP_UHS_SDR50@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _MMC_CAP_UHS_SDR104@GOTPAGE
Lloh13:
	ldr	x12, [x12, _MMC_CAP_UHS_SDR104@GOTPAGEOFF]
	orr	w10, w10, w11
Lloh14:
	ldr	w11, [x12]
	orr	w10, w10, w11
Lloh15:
	adrp	x11, _MMC_CAP_UHS_DDR50@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MMC_CAP_UHS_DDR50@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh18:
	adrp	x23, _SD_OCR_S18R@GOTPAGE
Lloh19:
	ldr	x23, [x23, _SD_OCR_S18R@GOTPAGEOFF]
	ldr	w11, [x23]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w8, w10
Lloh20:
	adrp	x10, _MMC_CAP_SET_XPC_330@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MMC_CAP_SET_XPC_330@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	adrp	x11, _MMC_CAP_SET_XPC_300@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MMC_CAP_SET_XPC_300@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh26:
	adrp	x11, _MMC_CAP_SET_XPC_180@GOTPAGE
Lloh27:
	ldr	x11, [x11, _MMC_CAP_SET_XPC_180@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh29:
	adrp	x11, _SD_OCR_XPC@GOTPAGE
Lloh30:
	ldr	x11, [x11, _SD_OCR_XPC@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w22, w8, w9
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_mmc_send_app_op_cond
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w24, #1090519040
Lloh32:
	adrp	x25, _MMC_SIGNAL_VOLTAGE_180@GOTPAGE
Lloh33:
	ldr	x25, [x25, _MMC_SIGNAL_VOLTAGE_180@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbz	x21, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	bics	wzr, w24, w8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_mmc_set_signal_voltage
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	bic	w22, w22, w8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_mmc_send_app_op_cond
	cbz	w0, LBB0_3
	b	LBB0_1
LBB0_8:
	mov	x0, x20
	bl	_mmc_host_is_spi
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mmc_send_cid
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mmc_all_send_cid
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_OCR_CCS,4,2                 ; @SD_OCR_CCS
	.comm	_MMC_CAP_UHS_SDR12,4,2          ; @MMC_CAP_UHS_SDR12
	.comm	_MMC_CAP_UHS_SDR25,4,2          ; @MMC_CAP_UHS_SDR25
	.comm	_MMC_CAP_UHS_SDR50,4,2          ; @MMC_CAP_UHS_SDR50
	.comm	_MMC_CAP_UHS_SDR104,4,2         ; @MMC_CAP_UHS_SDR104
	.comm	_MMC_CAP_UHS_DDR50,4,2          ; @MMC_CAP_UHS_DDR50
	.comm	_SD_OCR_S18R,4,2                ; @SD_OCR_S18R
	.comm	_MMC_CAP_SET_XPC_330,4,2        ; @MMC_CAP_SET_XPC_330
	.comm	_MMC_CAP_SET_XPC_300,4,2        ; @MMC_CAP_SET_XPC_300
	.comm	_MMC_CAP_SET_XPC_180,4,2        ; @MMC_CAP_SET_XPC_180
	.comm	_SD_OCR_XPC,4,2                 ; @SD_OCR_XPC
	.comm	_MMC_SIGNAL_VOLTAGE_180,4,2     ; @MMC_SIGNAL_VOLTAGE_180
.subsections_via_symbols
