	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_set_ios
_amd_set_ios:                           ## @amd_set_ios
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_mmc_priv
	movq	%rax, %r14
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sdhci_set_ios
	movq	_MMC_TIMING_MMC_HS200@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %eax
	movq	_MMC_TIMING_MMC_HS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_sdhci_writew
LBB0_3:
	movq	_MMC_TIMING_MMC_HS400@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	je	LBB0_5
## %bb.4:
	cmpl	%eax, (%r15)
	jne	LBB0_5
## %bb.6:
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_sdhci_writew
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_acpi_amd_hs400_dll       ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_TIMING_MMC_HS200,4,2       ## @MMC_TIMING_MMC_HS200
	.comm	_MMC_TIMING_MMC_HS,4,2          ## @MMC_TIMING_MMC_HS
	.comm	_SDHCI_HOST_CONTROL2,4,2        ## @SDHCI_HOST_CONTROL2
	.comm	_MMC_TIMING_MMC_HS400,4,2       ## @MMC_TIMING_MMC_HS400
	.no_dead_strip	_amd_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_set_ios
_amd_set_ios:                           ; @amd_set_ios
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
	bl	_mmc_priv
	mov	x19, x0
	ldr	w22, [x0]
	mov	x0, x21
	mov	x1, x20
	bl	_sdhci_set_ios
Lloh0:
	adrp	x8, _MMC_TIMING_MMC_HS200@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_TIMING_MMC_HS200@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _MMC_TIMING_MMC_HS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MMC_TIMING_MMC_HS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #9
	bl	_sdhci_writew
LBB0_3:
Lloh9:
	adrp	x8, _MMC_TIMING_MMC_HS400@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MMC_TIMING_MMC_HS400@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	w9, [x20]
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #128
	bl	_sdhci_writew
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sdhci_acpi_amd_hs400_dll
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_TIMING_MMC_HS200,4,2       ; @MMC_TIMING_MMC_HS200
	.comm	_MMC_TIMING_MMC_HS,4,2          ; @MMC_TIMING_MMC_HS
	.comm	_SDHCI_HOST_CONTROL2,4,2        ; @SDHCI_HOST_CONTROL2
	.comm	_MMC_TIMING_MMC_HS400,4,2       ; @MMC_TIMING_MMC_HS400
	.no_dead_strip	_amd_set_ios
.subsections_via_symbols
