	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenon_retune_setup
_xenon_retune_setup:                    ## @xenon_retune_setup
	.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	%rdi, %rbx
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r14
	movq	_XENON_SLOT_RETUNING_REQ_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_XENON_RETUNING_COMPATIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	movq	_SDHCI_SIGNAL_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movq	_SDHCI_INT_RETUNE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	movq	_SDHCI_INT_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readl
	movl	(%r12), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writel
	movq	_SDHCI_TUNING_MODE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movb	(%r14), %cl
	decb	%cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XENON_SLOT_RETUNING_REQ_CTRL,4,2 ## @XENON_SLOT_RETUNING_REQ_CTRL
	.comm	_XENON_RETUNING_COMPATIBLE,4,2  ## @XENON_RETUNING_COMPATIBLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ## @SDHCI_SIGNAL_ENABLE
	.comm	_SDHCI_INT_RETUNE,4,2           ## @SDHCI_INT_RETUNE
	.comm	_SDHCI_INT_ENABLE,4,2           ## @SDHCI_INT_ENABLE
	.comm	_SDHCI_TUNING_MODE_1,4,2        ## @SDHCI_TUNING_MODE_1
	.no_dead_strip	_xenon_retune_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenon_retune_setup
_xenon_retune_setup:                    ; @xenon_retune_setup
	.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
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x20, x0
Lloh0:
	adrp	x21, _XENON_SLOT_RETUNING_REQ_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XENON_SLOT_RETUNING_REQ_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sdhci_readl
Lloh2:
	adrp	x8, _XENON_RETUNING_COMPATIBLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XENON_RETUNING_COMPATIBLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_sdhci_writel
Lloh5:
	adrp	x21, _SDHCI_SIGNAL_ENABLE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SDHCI_SIGNAL_ENABLE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sdhci_readl
Lloh7:
	adrp	x22, _SDHCI_INT_RETUNE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SDHCI_INT_RETUNE@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_sdhci_writel
Lloh9:
	adrp	x21, _SDHCI_INT_ENABLE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _SDHCI_INT_ENABLE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sdhci_readl
	ldr	w8, [x22]
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_sdhci_writel
Lloh11:
	adrp	x8, _SDHCI_TUNING_MODE_1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDHCI_TUNING_MODE_1@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20]
	sub	w9, w9, #1
	mov	w10, #1
	lsl	w9, w10, w9
	stp	w9, w8, [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
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XENON_SLOT_RETUNING_REQ_CTRL,4,2 ; @XENON_SLOT_RETUNING_REQ_CTRL
	.comm	_XENON_RETUNING_COMPATIBLE,4,2  ; @XENON_RETUNING_COMPATIBLE
	.comm	_SDHCI_SIGNAL_ENABLE,4,2        ; @SDHCI_SIGNAL_ENABLE
	.comm	_SDHCI_INT_RETUNE,4,2           ; @SDHCI_INT_RETUNE
	.comm	_SDHCI_INT_ENABLE,4,2           ; @SDHCI_INT_ENABLE
	.comm	_SDHCI_TUNING_MODE_1,4,2        ; @SDHCI_TUNING_MODE_1
	.no_dead_strip	_xenon_retune_setup
.subsections_via_symbols
