	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xenon_set_ios
_xenon_set_ios:                         ## @xenon_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sdhci_priv
	movq	%rax, %rdi
	callq	_sdhci_pltfm_priv
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	_MMC_TIMING_MMC_HS400@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_MMC_TIMING_MMC_HS200@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_MMC_TIMING_MMC_HS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	_SDHCI_QUIRK2_PRESET_VALUE_BROKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rbx)
	jmp	LBB0_5
LBB0_3:
	movl	$0, (%rbx)
	movq	_SDHCI_QUIRK2_PRESET_VALUE_BROKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_SDHCI_PV_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 20(%rbx)
	movq	_SDHCI_HOST_CONTROL2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_sdhci_readw
	movq	_SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_sdhci_writew
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sdhci_set_ios
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_xenon_phy_adj
	movq	8(%rbx), %rax
	movq	_XENON_DEFAULT_SDCLK_FREQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.7:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xenon_set_sdclk_off_idle       ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_TIMING_MMC_HS400,8,3       ## @MMC_TIMING_MMC_HS400
	.comm	_MMC_TIMING_MMC_HS200,8,3       ## @MMC_TIMING_MMC_HS200
	.comm	_MMC_TIMING_MMC_HS,8,3          ## @MMC_TIMING_MMC_HS
	.comm	_SDHCI_QUIRK2_PRESET_VALUE_BROKEN,4,2 ## @SDHCI_QUIRK2_PRESET_VALUE_BROKEN
	.comm	_SDHCI_PV_ENABLED,4,2           ## @SDHCI_PV_ENABLED
	.comm	_SDHCI_HOST_CONTROL2,4,2        ## @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_CTRL_PRESET_VAL_ENABLE,4,2 ## @SDHCI_CTRL_PRESET_VAL_ENABLE
	.comm	_XENON_DEFAULT_SDCLK_FREQ,8,3   ## @XENON_DEFAULT_SDCLK_FREQ
	.no_dead_strip	_xenon_set_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xenon_set_ios
_xenon_set_ios:                         ; @xenon_set_ios
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x22, x0
	bl	_mmc_priv
	mov	x19, x0
	bl	_sdhci_priv
	bl	_sdhci_pltfm_priv
	mov	x21, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _MMC_TIMING_MMC_HS400@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_TIMING_MMC_HS400@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MMC_TIMING_MMC_HS200@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MMC_TIMING_MMC_HS200@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _MMC_TIMING_MMC_HS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MMC_TIMING_MMC_HS@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [x19]
Lloh9:
	adrp	x8, _SDHCI_QUIRK2_PRESET_VALUE_BROKEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDHCI_QUIRK2_PRESET_VALUE_BROKEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #16]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _SDHCI_PV_ENABLED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDHCI_PV_ENABLED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bic	w9, w10, w9
	stp	w8, w9, [x19, #16]
Lloh15:
	adrp	x23, _SDHCI_HOST_CONTROL2@GOTPAGE
Lloh16:
	ldr	x23, [x23, _SDHCI_HOST_CONTROL2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_sdhci_readw
Lloh17:
	adrp	x8, _SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDHCI_CTRL_PRESET_VAL_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w2, [x23]
	mov	x0, x19
	bl	_sdhci_writew
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x8, _SDHCI_QUIRK2_PRESET_VALUE_BROKEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SDHCI_QUIRK2_PRESET_VALUE_BROKEN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
LBB0_3:
	mov	x0, x22
	mov	x1, x20
	bl	_sdhci_set_ios
	mov	x0, x19
	mov	x1, x20
	bl	_xenon_phy_adj
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _XENON_DEFAULT_SDCLK_FREQ@GOTPAGE
Lloh24:
	ldr	x9, [x9, _XENON_DEFAULT_SDCLK_FREQ@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xenon_set_sdclk_off_idle
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_TIMING_MMC_HS400,8,3       ; @MMC_TIMING_MMC_HS400
	.comm	_MMC_TIMING_MMC_HS200,8,3       ; @MMC_TIMING_MMC_HS200
	.comm	_MMC_TIMING_MMC_HS,8,3          ; @MMC_TIMING_MMC_HS
	.comm	_SDHCI_QUIRK2_PRESET_VALUE_BROKEN,4,2 ; @SDHCI_QUIRK2_PRESET_VALUE_BROKEN
	.comm	_SDHCI_PV_ENABLED,4,2           ; @SDHCI_PV_ENABLED
	.comm	_SDHCI_HOST_CONTROL2,4,2        ; @SDHCI_HOST_CONTROL2
	.comm	_SDHCI_CTRL_PRESET_VAL_ENABLE,4,2 ; @SDHCI_CTRL_PRESET_VAL_ENABLE
	.comm	_XENON_DEFAULT_SDCLK_FREQ,8,3   ; @XENON_DEFAULT_SDCLK_FREQ
	.no_dead_strip	_xenon_set_ios
.subsections_via_symbols
