	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd_tuning_reset
_amd_tuning_reset:                      ## @amd_tuning_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_sdhci_readw
	movq	_SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SDHCI_CTRL_EXEC_TUNING@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sdhci_writew
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movl	(%r15), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_writew                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_HOST_CONTROL2,4,2        ## @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_CTRL_PRESET_VAL_ENABLE,4,2 ## @SDHCI_CTRL_PRESET_VAL_ENABLE
	.comm	_SDHCI_CTRL_EXEC_TUNING,4,2     ## @SDHCI_CTRL_EXEC_TUNING
	.no_dead_strip	_amd_tuning_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd_tuning_reset
_amd_tuning_reset:                      ; @amd_tuning_reset
	.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	x19, x0
Lloh0:
	adrp	x20, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_sdhci_readw
Lloh2:
	adrp	x8, _SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x21, _SDHCI_CTRL_EXEC_TUNING@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SDHCI_CTRL_EXEC_TUNING@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w8, w0
	orr	w1, w8, w9
	ldr	w2, [x20]
	mov	x0, x19
	bl	_sdhci_writew
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sdhci_readw
	ldr	w8, [x21]
	bic	w1, w0, w8
	ldr	w2, [x20]
	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_writew
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_HOST_CONTROL2,4,2        ; @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_CTRL_PRESET_VAL_ENABLE,4,2 ; @SDHCI_CTRL_PRESET_VAL_ENABLE
	.comm	_SDHCI_CTRL_EXEC_TUNING,4,2     ; @SDHCI_CTRL_EXEC_TUNING
	.no_dead_strip	_amd_tuning_reset
.subsections_via_symbols
