	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts5249_extra_init_hw
_rts5249_extra_init_hw:                 ## @rts5249_extra_init_hw
	.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
	callq	_rts5249_init_from_cfg
	movq	%rbx, %rdi
	callq	_rts5249_init_from_hw
	movq	%rbx, %rdi
	callq	_rtsx_pci_init_cmd
	movq	_WRITE_REG_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_L1SUB_CONFIG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r14), %esi
	movq	_GPIO_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$2, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r14), %esi
	movq	_ASPM_FORCE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$63, %ecx
	xorl	%r8d, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r14), %esi
	movq	_LDO_PWR_SEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$3, %ecx
	movl	$1, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r14), %esi
	movq	_OLT_LED_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$15, %ecx
	movl	$2, %r8d
	callq	_rtsx_pci_add_cmd
	movq	_OUTPUT_3V3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rts5249_fill_driving
	movq	_PCR_REVERSE_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	(%r14), %esi
	movq	_PETXCFG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$128, %r8d
	movl	$176, %eax
	cmovnel	%eax, %r8d
	movq	%rbx, %rdi
	movl	$176, %ecx
	callq	_rtsx_pci_add_cmd
	cmpq	$0, 8(%rbx)
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	_FORCE_CLKREQ_DELINK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_FORCE_CLKREQ_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FORCE_CLKREQ_LOW@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_rtsx_pci_add_cmd
	movq	_CMD_TIMEOUT_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtsx_pci_send_cmd              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_REG_CMD,4,2              ## @WRITE_REG_CMD
	.comm	_L1SUB_CONFIG3,4,2              ## @L1SUB_CONFIG3
	.comm	_GPIO_CTL,4,2                   ## @GPIO_CTL
	.comm	_ASPM_FORCE_CTL,4,2             ## @ASPM_FORCE_CTL
	.comm	_LDO_PWR_SEL,4,2                ## @LDO_PWR_SEL
	.comm	_OLT_LED_CTL,4,2                ## @OLT_LED_CTL
	.comm	_OUTPUT_3V3,4,2                 ## @OUTPUT_3V3
	.comm	_PCR_REVERSE_SOCKET,4,2         ## @PCR_REVERSE_SOCKET
	.comm	_PETXCFG,4,2                    ## @PETXCFG
	.comm	_FORCE_CLKREQ_DELINK_MASK,4,2   ## @FORCE_CLKREQ_DELINK_MASK
	.comm	_FORCE_CLKREQ_LOW,4,2           ## @FORCE_CLKREQ_LOW
	.comm	_FORCE_CLKREQ_HIGH,4,2          ## @FORCE_CLKREQ_HIGH
	.comm	_CMD_TIMEOUT_DEF,4,2            ## @CMD_TIMEOUT_DEF
	.no_dead_strip	_rts5249_extra_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts5249_extra_init_hw
_rts5249_extra_init_hw:                 ; @rts5249_extra_init_hw
	.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	_rts5249_init_from_cfg
	mov	x0, x19
	bl	_rts5249_init_from_hw
	mov	x0, x19
	bl	_rtsx_pci_init_cmd
Lloh0:
	adrp	x20, _WRITE_REG_CMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WRITE_REG_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _L1SUB_CONFIG3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _L1SUB_CONFIG3@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #255
	mov	w4, #0
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _GPIO_CTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIO_CTL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #2
	mov	w4, #2
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _ASPM_FORCE_CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASPM_FORCE_CTL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #63
	mov	w4, #0
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh11:
	adrp	x21, _LDO_PWR_SEL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _LDO_PWR_SEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #3
	mov	w4, #0
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w3, #3
	mov	w4, #1
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh13:
	adrp	x8, _OLT_LED_CTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OLT_LED_CTL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #15
	mov	w4, #2
	bl	_rtsx_pci_add_cmd
Lloh16:
	adrp	x8, _OUTPUT_3V3@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OUTPUT_3V3@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rts5249_fill_driving
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _PCR_REVERSE_SOCKET@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PCR_REVERSE_SOCKET@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x21, _PETXCFG@GOTPAGE
Lloh23:
	ldr	x21, [x21, _PETXCFG@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w2, [x21]
	tst	w9, w8
	mov	w8, #176
	mov	w9, #128
	csel	w4, w9, w8, eq
	mov	x0, x19
	mov	w3, #176
	bl	_rtsx_pci_add_cmd
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	ldr	w2, [x21]
Lloh24:
	adrp	x9, _FORCE_CLKREQ_DELINK_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FORCE_CLKREQ_DELINK_MASK@GOTPAGEOFF]
Lloh26:
	adrp	x10, _FORCE_CLKREQ_HIGH@GOTPAGE
Lloh27:
	ldr	x10, [x10, _FORCE_CLKREQ_HIGH@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x9]
Lloh29:
	adrp	x9, _FORCE_CLKREQ_LOW@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FORCE_CLKREQ_LOW@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w4, [x8]
	mov	x0, x19
	bl	_rtsx_pci_add_cmd
Lloh31:
	adrp	x8, _CMD_TIMEOUT_DEF@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CMD_TIMEOUT_DEF@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	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	_rtsx_pci_send_cmd
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_REG_CMD,4,2              ; @WRITE_REG_CMD
	.comm	_L1SUB_CONFIG3,4,2              ; @L1SUB_CONFIG3
	.comm	_GPIO_CTL,4,2                   ; @GPIO_CTL
	.comm	_ASPM_FORCE_CTL,4,2             ; @ASPM_FORCE_CTL
	.comm	_LDO_PWR_SEL,4,2                ; @LDO_PWR_SEL
	.comm	_OLT_LED_CTL,4,2                ; @OLT_LED_CTL
	.comm	_OUTPUT_3V3,4,2                 ; @OUTPUT_3V3
	.comm	_PCR_REVERSE_SOCKET,4,2         ; @PCR_REVERSE_SOCKET
	.comm	_PETXCFG,4,2                    ; @PETXCFG
	.comm	_FORCE_CLKREQ_DELINK_MASK,4,2   ; @FORCE_CLKREQ_DELINK_MASK
	.comm	_FORCE_CLKREQ_LOW,4,2           ; @FORCE_CLKREQ_LOW
	.comm	_FORCE_CLKREQ_HIGH,4,2          ; @FORCE_CLKREQ_HIGH
	.comm	_CMD_TIMEOUT_DEF,4,2            ; @CMD_TIMEOUT_DEF
	.no_dead_strip	_rts5249_extra_init_hw
.subsections_via_symbols
