	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rts5229_init_params            ## -- Begin function rts5229_init_params
	.p2align	4, 0x90
_rts5229_init_params:                   ## @rts5229_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	_rts5229_pcr_ops@GOTPCREL(%rip), %rax
	movq	%rax, 72(%rdi)
	movq	$0, 64(%rdi)
	movq	_RTSX_CARD_DRIVE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rdi)
	movq	_DRIVER_TYPE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	_DRIVER_TYPE_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rdi)
	movq	_ASPM_L1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rdi)
	movl	$27, %edi
	movl	$27, %esi
	movl	$15, %edx
	callq	_SET_CLOCK_PHASE
	movq	%rax, 40(%rbx)
	movl	$30, %edi
	movl	$6, %esi
	movl	$6, %edx
	callq	_SET_CLOCK_PHASE
	movq	%rax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_rts5229_get_ic_version
	movq	%rax, 8(%rbx)
	movq	_IC_VER_C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_rts5229_sd_pull_ctl_disable_tbl1@GOTPCREL(%rip), %rax
	cmoveq	_rts5229_sd_pull_ctl_disable_tbl2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rts5229_sd_pull_ctl_enable_tbl1@GOTPCREL(%rip), %rcx
	cmoveq	_rts5229_sd_pull_ctl_enable_tbl2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movl	%eax, 24(%rbx)
	movq	_rts5229_ms_pull_ctl_enable_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_rts5229_ms_pull_ctl_disable_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%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	_rts5229_pcr_ops,4,2            ## @rts5229_pcr_ops
	.comm	_RTSX_CARD_DRIVE_DEFAULT,4,2    ## @RTSX_CARD_DRIVE_DEFAULT
	.comm	_DRIVER_TYPE_B,4,2              ## @DRIVER_TYPE_B
	.comm	_DRIVER_TYPE_D,4,2              ## @DRIVER_TYPE_D
	.comm	_ASPM_L1_EN,4,2                 ## @ASPM_L1_EN
	.comm	_IC_VER_C,8,3                   ## @IC_VER_C
	.comm	_rts5229_sd_pull_ctl_enable_tbl2,4,2 ## @rts5229_sd_pull_ctl_enable_tbl2
	.comm	_rts5229_sd_pull_ctl_disable_tbl2,4,2 ## @rts5229_sd_pull_ctl_disable_tbl2
	.comm	_rts5229_sd_pull_ctl_enable_tbl1,4,2 ## @rts5229_sd_pull_ctl_enable_tbl1
	.comm	_rts5229_sd_pull_ctl_disable_tbl1,4,2 ## @rts5229_sd_pull_ctl_disable_tbl1
	.comm	_rts5229_ms_pull_ctl_enable_tbl,4,2 ## @rts5229_ms_pull_ctl_enable_tbl
	.comm	_rts5229_ms_pull_ctl_disable_tbl,4,2 ## @rts5229_ms_pull_ctl_disable_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rts5229_init_params            ; -- Begin function rts5229_init_params
	.p2align	2
_rts5229_init_params:                   ; @rts5229_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, _rts5229_pcr_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rts5229_pcr_ops@GOTPAGEOFF]
	stp	xzr, x8, [x0, #64]
Lloh8:
	adrp	x8, _RTSX_CARD_DRIVE_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTSX_CARD_DRIVE_DEFAULT@GOTPAGEOFF]
Lloh10:
	adrp	x9, _DRIVER_TYPE_B@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DRIVER_TYPE_B@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #56]
Lloh14:
	adrp	x8, _DRIVER_TYPE_D@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRIVER_TYPE_D@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ASPM_L1_EN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ASPM_L1_EN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
	mov	w0, #27
	mov	w1, #27
	mov	w2, #15
	bl	_SET_CLOCK_PHASE
	str	x0, [x19, #40]
	mov	w0, #30
	mov	w1, #6
	mov	w2, #6
	bl	_SET_CLOCK_PHASE
	str	x0, [x19, #32]
	mov	x0, x19
	bl	_rts5229_get_ic_version
	str	x0, [x19, #8]
Lloh20:
	adrp	x8, _IC_VER_C@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IC_VER_C@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _rts5229_sd_pull_ctl_disable_tbl2@GOTPAGE
Lloh24:
	ldr	x9, [x9, _rts5229_sd_pull_ctl_disable_tbl2@GOTPAGEOFF]
Lloh25:
	adrp	x10, _rts5229_sd_pull_ctl_disable_tbl1@GOTPAGE
Lloh26:
	ldr	x10, [x10, _rts5229_sd_pull_ctl_disable_tbl1@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _rts5229_sd_pull_ctl_enable_tbl2@GOTPAGE
Lloh28:
	ldr	x9, [x9, _rts5229_sd_pull_ctl_enable_tbl2@GOTPAGEOFF]
Lloh29:
	adrp	x10, _rts5229_sd_pull_ctl_enable_tbl1@GOTPAGE
Lloh30:
	ldr	x10, [x10, _rts5229_sd_pull_ctl_enable_tbl1@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	stp	w8, w9, [x19, #24]
Lloh31:
	adrp	x8, _rts5229_ms_pull_ctl_enable_tbl@GOTPAGE
Lloh32:
	ldr	x8, [x8, _rts5229_ms_pull_ctl_enable_tbl@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _rts5229_ms_pull_ctl_disable_tbl@GOTPAGE
Lloh35:
	ldr	x9, [x9, _rts5229_ms_pull_ctl_disable_tbl@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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	_rts5229_pcr_ops,4,2            ; @rts5229_pcr_ops
	.comm	_RTSX_CARD_DRIVE_DEFAULT,4,2    ; @RTSX_CARD_DRIVE_DEFAULT
	.comm	_DRIVER_TYPE_B,4,2              ; @DRIVER_TYPE_B
	.comm	_DRIVER_TYPE_D,4,2              ; @DRIVER_TYPE_D
	.comm	_ASPM_L1_EN,4,2                 ; @ASPM_L1_EN
	.comm	_IC_VER_C,8,3                   ; @IC_VER_C
	.comm	_rts5229_sd_pull_ctl_enable_tbl2,4,2 ; @rts5229_sd_pull_ctl_enable_tbl2
	.comm	_rts5229_sd_pull_ctl_disable_tbl2,4,2 ; @rts5229_sd_pull_ctl_disable_tbl2
	.comm	_rts5229_sd_pull_ctl_enable_tbl1,4,2 ; @rts5229_sd_pull_ctl_enable_tbl1
	.comm	_rts5229_sd_pull_ctl_disable_tbl1,4,2 ; @rts5229_sd_pull_ctl_disable_tbl1
	.comm	_rts5229_ms_pull_ctl_enable_tbl,4,2 ; @rts5229_ms_pull_ctl_enable_tbl
	.comm	_rts5229_ms_pull_ctl_disable_tbl,4,2 ; @rts5229_ms_pull_ctl_disable_tbl
.subsections_via_symbols
