	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_extra_caps
_init_extra_caps:                       ## @init_extra_caps
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	callq	_sdmmc_dev
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movl	(%rbx), %eax
	movq	_EXTRA_CAPS_SD_SDR50@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MMC_CAP_UHS_SDR50@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_2:
	movq	_EXTRA_CAPS_SD_SDR104@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_MMC_CAP_UHS_SDR104@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_4:
	movq	_EXTRA_CAPS_SD_DDR50@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_MMC_CAP_UHS_DDR50@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_6:
	movq	_EXTRA_CAPS_MMC_HSDDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_MMC_CAP_1_8V_DDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_8:
	movq	_EXTRA_CAPS_MMC_8BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_MMC_CAP_8_BIT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcr->extra_caps = 0x%x\n"

	.comm	_EXTRA_CAPS_SD_SDR50,4,2        ## @EXTRA_CAPS_SD_SDR50
	.comm	_MMC_CAP_UHS_SDR50,4,2          ## @MMC_CAP_UHS_SDR50
	.comm	_EXTRA_CAPS_SD_SDR104,4,2       ## @EXTRA_CAPS_SD_SDR104
	.comm	_MMC_CAP_UHS_SDR104,4,2         ## @MMC_CAP_UHS_SDR104
	.comm	_EXTRA_CAPS_SD_DDR50,4,2        ## @EXTRA_CAPS_SD_DDR50
	.comm	_MMC_CAP_UHS_DDR50,4,2          ## @MMC_CAP_UHS_DDR50
	.comm	_EXTRA_CAPS_MMC_HSDDR,4,2       ## @EXTRA_CAPS_MMC_HSDDR
	.comm	_MMC_CAP_1_8V_DDR,4,2           ## @MMC_CAP_1_8V_DDR
	.comm	_EXTRA_CAPS_MMC_8BIT,4,2        ## @EXTRA_CAPS_MMC_8BIT
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ## @MMC_CAP_8_BIT_DATA
	.no_dead_strip	_init_extra_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_extra_caps
_init_extra_caps:                       ; @init_extra_caps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x20, x19, [x0]
	bl	_sdmmc_dev
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _EXTRA_CAPS_SD_SDR50@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EXTRA_CAPS_SD_SDR50@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _MMC_CAP_UHS_SDR50@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMC_CAP_UHS_SDR50@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_2:
Lloh8:
	adrp	x9, _EXTRA_CAPS_SD_SDR104@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EXTRA_CAPS_SD_SDR104@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x9, _MMC_CAP_UHS_SDR104@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MMC_CAP_UHS_SDR104@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_4:
Lloh14:
	adrp	x9, _EXTRA_CAPS_SD_DDR50@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EXTRA_CAPS_SD_DDR50@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh17:
	adrp	x9, _MMC_CAP_UHS_DDR50@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MMC_CAP_UHS_DDR50@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_6:
Lloh20:
	adrp	x9, _EXTRA_CAPS_MMC_HSDDR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EXTRA_CAPS_MMC_HSDDR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh23:
	adrp	x9, _MMC_CAP_1_8V_DDR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MMC_CAP_1_8V_DDR@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_8:
Lloh26:
	adrp	x9, _EXTRA_CAPS_MMC_8BIT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EXTRA_CAPS_MMC_8BIT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh29:
	adrp	x8, _MMC_CAP_8_BIT_DATA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MMC_CAP_8_BIT_DATA@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, 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	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcr->extra_caps = 0x%x\n"

	.comm	_EXTRA_CAPS_SD_SDR50,4,2        ; @EXTRA_CAPS_SD_SDR50
	.comm	_MMC_CAP_UHS_SDR50,4,2          ; @MMC_CAP_UHS_SDR50
	.comm	_EXTRA_CAPS_SD_SDR104,4,2       ; @EXTRA_CAPS_SD_SDR104
	.comm	_MMC_CAP_UHS_SDR104,4,2         ; @MMC_CAP_UHS_SDR104
	.comm	_EXTRA_CAPS_SD_DDR50,4,2        ; @EXTRA_CAPS_SD_DDR50
	.comm	_MMC_CAP_UHS_DDR50,4,2          ; @MMC_CAP_UHS_DDR50
	.comm	_EXTRA_CAPS_MMC_HSDDR,4,2       ; @EXTRA_CAPS_MMC_HSDDR
	.comm	_MMC_CAP_1_8V_DDR,4,2           ; @MMC_CAP_1_8V_DDR
	.comm	_EXTRA_CAPS_MMC_8BIT,4,2        ; @EXTRA_CAPS_MMC_8BIT
	.comm	_MMC_CAP_8_BIT_DATA,4,2         ; @MMC_CAP_8_BIT_DATA
	.no_dead_strip	_init_extra_caps
.subsections_via_symbols
