	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rts5260_init_params            ## -- Begin function rts5260_init_params
	.p2align	4, 0x90
_rts5260_init_params:                   ## @rts5260_init_params
	.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
	movq	%rdi, %rbx
	movq	_EXTRA_CAPS_SD_SDR50@GOTPCREL(%rip), %rax
	movq	_EXTRA_CAPS_SD_SDR104@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movl	$2, 4(%rdi)
	movq	$0, 88(%rdi)
	movq	_RTSX_CARD_DRIVE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rdi)
	movq	_CFG_DRIVER_TYPE_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rdi)
	movq	%rax, 64(%rdi)
	movq	_ASPM_L1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movl	$1, %edi
	movl	$29, %esi
	movl	$16, %edx
	callq	_SET_CLOCK_PHASE
	movq	%rax, 48(%rbx)
	movl	$24, %edi
	movl	$6, %esi
	movl	$5, %edx
	callq	_SET_CLOCK_PHASE
	movq	%rax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_rts5260_get_ic_version
	movl	%eax, 36(%rbx)
	movq	_rts5260_sd_pull_ctl_enable_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_rts5260_sd_pull_ctl_disable_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_rts5260_ms_pull_ctl_enable_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_rts5260_ms_pull_ctl_disable_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_RTS524A_PM_CTRL3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_rts5260_pcr_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_LTR_L1SS_PWR_GATE_CHECK_CARD_EN@GOTPCREL(%rip), %rax
	movq	_LTR_L1SS_PWR_GATE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 104(%rbx)
	movl	$1, 108(%rbx)
	movq	_LTR_ACTIVE_LATENCY_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 148(%rbx)
	movq	_LTR_IDLE_LATENCY_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%rbx)
	movq	_LTR_L1OFF_LATENCY_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 140(%rbx)
	movq	_DEV_ASPM_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%rbx)
	movq	_L1_SNOOZE_DELAY_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 132(%rbx)
	movq	_LTR_L1OFF_SSPWRGATE_5250_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movq	_LTR_L1OFF_SNOOZE_SSPWRGATE_5250_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%rbx)
	movl	$1, 112(%rbx)
	movq	_SD_OC_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 100(%rbx)
	movq	_SD_OCP_GLITCH_100U@GOTPCREL(%rip), %rax
	movq	_SDVIO_OCP_GLITCH_800U@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 96(%rbx)
	movq	_RTS5260_DVCC_OCP_THD_550@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%rbx)
	movq	_RTS5260_DVCC_OCP_THD_970@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTRA_CAPS_SD_SDR50,4,2        ## @EXTRA_CAPS_SD_SDR50
	.comm	_EXTRA_CAPS_SD_SDR104,4,2       ## @EXTRA_CAPS_SD_SDR104
	.comm	_RTSX_CARD_DRIVE_DEFAULT,4,2    ## @RTSX_CARD_DRIVE_DEFAULT
	.comm	_CFG_DRIVER_TYPE_B,8,3          ## @CFG_DRIVER_TYPE_B
	.comm	_ASPM_L1_EN,4,2                 ## @ASPM_L1_EN
	.comm	_rts5260_sd_pull_ctl_enable_tbl,4,2 ## @rts5260_sd_pull_ctl_enable_tbl
	.comm	_rts5260_sd_pull_ctl_disable_tbl,4,2 ## @rts5260_sd_pull_ctl_disable_tbl
	.comm	_rts5260_ms_pull_ctl_enable_tbl,4,2 ## @rts5260_ms_pull_ctl_enable_tbl
	.comm	_rts5260_ms_pull_ctl_disable_tbl,4,2 ## @rts5260_ms_pull_ctl_disable_tbl
	.comm	_RTS524A_PM_CTRL3,4,2           ## @RTS524A_PM_CTRL3
	.comm	_rts5260_pcr_ops,4,2            ## @rts5260_pcr_ops
	.comm	_LTR_L1SS_PWR_GATE_CHECK_CARD_EN,4,2 ## @LTR_L1SS_PWR_GATE_CHECK_CARD_EN
	.comm	_LTR_L1SS_PWR_GATE_EN,4,2       ## @LTR_L1SS_PWR_GATE_EN
	.comm	_LTR_ACTIVE_LATENCY_DEF,4,2     ## @LTR_ACTIVE_LATENCY_DEF
	.comm	_LTR_IDLE_LATENCY_DEF,4,2       ## @LTR_IDLE_LATENCY_DEF
	.comm	_LTR_L1OFF_LATENCY_DEF,4,2      ## @LTR_L1OFF_LATENCY_DEF
	.comm	_DEV_ASPM_DYNAMIC,4,2           ## @DEV_ASPM_DYNAMIC
	.comm	_L1_SNOOZE_DELAY_DEF,4,2        ## @L1_SNOOZE_DELAY_DEF
	.comm	_LTR_L1OFF_SSPWRGATE_5250_DEF,4,2 ## @LTR_L1OFF_SSPWRGATE_5250_DEF
	.comm	_LTR_L1OFF_SNOOZE_SSPWRGATE_5250_DEF,4,2 ## @LTR_L1OFF_SNOOZE_SSPWRGATE_5250_DEF
	.comm	_SD_OC_INT_EN,4,2               ## @SD_OC_INT_EN
	.comm	_SD_OCP_GLITCH_100U,4,2         ## @SD_OCP_GLITCH_100U
	.comm	_SDVIO_OCP_GLITCH_800U,4,2      ## @SDVIO_OCP_GLITCH_800U
	.comm	_RTS5260_DVCC_OCP_THD_550,4,2   ## @RTS5260_DVCC_OCP_THD_550
	.comm	_RTS5260_DVCC_OCP_THD_970,4,2   ## @RTS5260_DVCC_OCP_THD_970
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rts5260_init_params            ; -- Begin function rts5260_init_params
	.p2align	2
_rts5260_init_params:                   ; @rts5260_init_params
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _EXTRA_CAPS_SD_SDR50@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXTRA_CAPS_SD_SDR50@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EXTRA_CAPS_SD_SDR104@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXTRA_CAPS_SD_SDR104@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w9, #2
	stp	w8, w9, [x0]
Lloh6:
	adrp	x8, _RTSX_CARD_DRIVE_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTSX_CARD_DRIVE_DEFAULT@GOTPAGEOFF]
	str	xzr, [x0, #88]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #80]
Lloh9:
	adrp	x8, _CFG_DRIVER_TYPE_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CFG_DRIVER_TYPE_B@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #64]
Lloh12:
	adrp	x8, _ASPM_L1_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ASPM_L1_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x0, #56]
	mov	w0, #1
	mov	w1, #29
	mov	w2, #16
	bl	_SET_CLOCK_PHASE
	str	x0, [x19, #48]
	mov	w0, #24
	mov	w1, #6
	mov	w2, #5
	bl	_SET_CLOCK_PHASE
	str	x0, [x19, #40]
	mov	x0, x19
	bl	_rts5260_get_ic_version
Lloh15:
	adrp	x8, _rts5260_sd_pull_ctl_enable_tbl@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rts5260_sd_pull_ctl_enable_tbl@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _rts5260_sd_pull_ctl_disable_tbl@GOTPAGE
Lloh19:
	ldr	x9, [x9, _rts5260_sd_pull_ctl_disable_tbl@GOTPAGEOFF]
	stp	w8, w0, [x19, #32]
Lloh20:
	ldr	w8, [x9]
Lloh21:
	adrp	x9, _rts5260_ms_pull_ctl_enable_tbl@GOTPAGE
Lloh22:
	ldr	x9, [x9, _rts5260_ms_pull_ctl_enable_tbl@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh24:
	adrp	x8, _rts5260_ms_pull_ctl_disable_tbl@GOTPAGE
Lloh25:
	ldr	x8, [x8, _rts5260_ms_pull_ctl_disable_tbl@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _RTS524A_PM_CTRL3@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RTS524A_PM_CTRL3@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh30:
	adrp	x8, _rts5260_pcr_ops@GOTPAGE
Lloh31:
	ldr	x8, [x8, _rts5260_pcr_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh32:
	adrp	x8, _LTR_L1SS_PWR_GATE_CHECK_CARD_EN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LTR_L1SS_PWR_GATE_CHECK_CARD_EN@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _LTR_L1SS_PWR_GATE_EN@GOTPAGE
Lloh36:
	ldr	x9, [x9, _LTR_L1SS_PWR_GATE_EN@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #104]
Lloh38:
	adrp	x8, _LTR_ACTIVE_LATENCY_DEF@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LTR_ACTIVE_LATENCY_DEF@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x19, #148]
Lloh41:
	adrp	x8, _LTR_IDLE_LATENCY_DEF@GOTPAGE
Lloh42:
	ldr	x8, [x8, _LTR_IDLE_LATENCY_DEF@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _LTR_L1OFF_LATENCY_DEF@GOTPAGE
Lloh45:
	ldr	x9, [x9, _LTR_L1OFF_LATENCY_DEF@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #140]
Lloh47:
	adrp	x8, _DEV_ASPM_DYNAMIC@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DEV_ASPM_DYNAMIC@GOTPAGEOFF]
Lloh49:
	adrp	x9, _L1_SNOOZE_DELAY_DEF@GOTPAGE
Lloh50:
	ldr	x9, [x9, _L1_SNOOZE_DELAY_DEF@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #132]
Lloh53:
	adrp	x8, _LTR_L1OFF_SSPWRGATE_5250_DEF@GOTPAGE
Lloh54:
	ldr	x8, [x8, _LTR_L1OFF_SSPWRGATE_5250_DEF@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _LTR_L1OFF_SNOOZE_SSPWRGATE_5250_DEF@GOTPAGE
Lloh57:
	ldr	x9, [x9, _LTR_L1OFF_SNOOZE_SSPWRGATE_5250_DEF@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #124]
Lloh59:
	adrp	x8, _SD_OC_INT_EN@GOTPAGE
Lloh60:
	ldr	x8, [x8, _SD_OC_INT_EN@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	ldr	w9, [x19, #100]
Lloh62:
	adrp	x10, _SD_OCP_GLITCH_100U@GOTPAGE
Lloh63:
	ldr	x10, [x10, _SD_OCP_GLITCH_100U@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh64:
	ldr	w9, [x10]
Lloh65:
	adrp	x10, _SDVIO_OCP_GLITCH_800U@GOTPAGE
Lloh66:
	ldr	x10, [x10, _SDVIO_OCP_GLITCH_800U@GOTPAGEOFF]
Lloh67:
	ldr	w10, [x10]
	orr	w9, w10, w9
	movi.2s	v0, #1
	stur	d0, [x19, #108]
	stp	w9, w8, [x19, #96]
Lloh68:
	adrp	x8, _RTS5260_DVCC_OCP_THD_550@GOTPAGE
Lloh69:
	ldr	x8, [x8, _RTS5260_DVCC_OCP_THD_550@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
Lloh71:
	adrp	x9, _RTS5260_DVCC_OCP_THD_970@GOTPAGE
Lloh72:
	ldr	x9, [x9, _RTS5260_DVCC_OCP_THD_970@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #116]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh51
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTRA_CAPS_SD_SDR50,4,2        ; @EXTRA_CAPS_SD_SDR50
	.comm	_EXTRA_CAPS_SD_SDR104,4,2       ; @EXTRA_CAPS_SD_SDR104
	.comm	_RTSX_CARD_DRIVE_DEFAULT,4,2    ; @RTSX_CARD_DRIVE_DEFAULT
	.comm	_CFG_DRIVER_TYPE_B,8,3          ; @CFG_DRIVER_TYPE_B
	.comm	_ASPM_L1_EN,4,2                 ; @ASPM_L1_EN
	.comm	_rts5260_sd_pull_ctl_enable_tbl,4,2 ; @rts5260_sd_pull_ctl_enable_tbl
	.comm	_rts5260_sd_pull_ctl_disable_tbl,4,2 ; @rts5260_sd_pull_ctl_disable_tbl
	.comm	_rts5260_ms_pull_ctl_enable_tbl,4,2 ; @rts5260_ms_pull_ctl_enable_tbl
	.comm	_rts5260_ms_pull_ctl_disable_tbl,4,2 ; @rts5260_ms_pull_ctl_disable_tbl
	.comm	_RTS524A_PM_CTRL3,4,2           ; @RTS524A_PM_CTRL3
	.comm	_rts5260_pcr_ops,4,2            ; @rts5260_pcr_ops
	.comm	_LTR_L1SS_PWR_GATE_CHECK_CARD_EN,4,2 ; @LTR_L1SS_PWR_GATE_CHECK_CARD_EN
	.comm	_LTR_L1SS_PWR_GATE_EN,4,2       ; @LTR_L1SS_PWR_GATE_EN
	.comm	_LTR_ACTIVE_LATENCY_DEF,4,2     ; @LTR_ACTIVE_LATENCY_DEF
	.comm	_LTR_IDLE_LATENCY_DEF,4,2       ; @LTR_IDLE_LATENCY_DEF
	.comm	_LTR_L1OFF_LATENCY_DEF,4,2      ; @LTR_L1OFF_LATENCY_DEF
	.comm	_DEV_ASPM_DYNAMIC,4,2           ; @DEV_ASPM_DYNAMIC
	.comm	_L1_SNOOZE_DELAY_DEF,4,2        ; @L1_SNOOZE_DELAY_DEF
	.comm	_LTR_L1OFF_SSPWRGATE_5250_DEF,4,2 ; @LTR_L1OFF_SSPWRGATE_5250_DEF
	.comm	_LTR_L1OFF_SNOOZE_SSPWRGATE_5250_DEF,4,2 ; @LTR_L1OFF_SNOOZE_SSPWRGATE_5250_DEF
	.comm	_SD_OC_INT_EN,4,2               ; @SD_OC_INT_EN
	.comm	_SD_OCP_GLITCH_100U,4,2         ; @SD_OCP_GLITCH_100U
	.comm	_SDVIO_OCP_GLITCH_800U,4,2      ; @SDVIO_OCP_GLITCH_800U
	.comm	_RTS5260_DVCC_OCP_THD_550,4,2   ; @RTS5260_DVCC_OCP_THD_550
	.comm	_RTS5260_DVCC_OCP_THD_970,4,2   ; @RTS5260_DVCC_OCP_THD_970
.subsections_via_symbols
