	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_acpi_emmc_amd_probe_slot
_sdhci_acpi_emmc_amd_probe_slot:        ## @sdhci_acpi_emmc_amd_probe_slot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_platform_get_drvdata
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_sdhci_read_caps
	movl	(%rbx), %eax
	movq	_SDHCI_SUPPORT_DDR50@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MMC_CAP_1_8V_DDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	16(%rbx), %rdx
	movl	%ecx, (%rdx)
LBB0_2:
	movq	_SDHCI_SUPPORT_SDR104@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	movq	_MMC_CAP_1_8V_DDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_MMC_CAP2_HS400_1_8V@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
LBB0_5:
	movq	_amd_select_drive_strength@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_amd_set_ios@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_SUPPORT_DDR50,4,2        ## @SDHCI_SUPPORT_DDR50
	.comm	_MMC_CAP_1_8V_DDR,4,2           ## @MMC_CAP_1_8V_DDR
	.comm	_SDHCI_SUPPORT_SDR104,4,2       ## @SDHCI_SUPPORT_SDR104
	.comm	_MMC_CAP2_HS400_1_8V,4,2        ## @MMC_CAP2_HS400_1_8V
	.comm	_amd_select_drive_strength,4,2  ## @amd_select_drive_strength
	.comm	_amd_set_ios,4,2                ## @amd_set_ios
	.no_dead_strip	_sdhci_acpi_emmc_amd_probe_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_acpi_emmc_amd_probe_slot
_sdhci_acpi_emmc_amd_probe_slot:        ; @sdhci_acpi_emmc_amd_probe_slot
	.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
	bl	_platform_get_drvdata
	ldr	x19, [x0]
	mov	x0, x19
	bl	_sdhci_read_caps
	ldr	w9, [x19]
Lloh0:
	adrp	x8, _SDHCI_SUPPORT_DDR50@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_SUPPORT_DDR50@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _MMC_CAP_1_8V_DDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_CAP_1_8V_DDR@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w10, [x8]
	ldr	x11, [x19, #16]
	str	w10, [x11]
LBB0_2:
Lloh5:
	adrp	x10, _SDHCI_SUPPORT_SDR104@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SDHCI_SUPPORT_SDR104@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x19, #16]
	ldr	w10, [x9]
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _MMC_CAP2_HS400_1_8V@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMC_CAP2_HS400_1_8V@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x9, #4]
LBB0_5:
Lloh11:
	adrp	x8, _amd_select_drive_strength@GOTPAGE
Lloh12:
	ldr	x8, [x8, _amd_select_drive_strength@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _amd_set_ios@GOTPAGE
Lloh15:
	ldr	x9, [x9, _amd_set_ios@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_SUPPORT_DDR50,4,2        ; @SDHCI_SUPPORT_DDR50
	.comm	_MMC_CAP_1_8V_DDR,4,2           ; @MMC_CAP_1_8V_DDR
	.comm	_SDHCI_SUPPORT_SDR104,4,2       ; @SDHCI_SUPPORT_SDR104
	.comm	_MMC_CAP2_HS400_1_8V,4,2        ; @MMC_CAP2_HS400_1_8V
	.comm	_amd_select_drive_strength,4,2  ; @amd_select_drive_strength
	.comm	_amd_set_ios,4,2                ; @amd_set_ios
	.no_dead_strip	_sdhci_acpi_emmc_amd_probe_slot
.subsections_via_symbols
