	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts5260_init_hw
_rts5260_init_hw:                       ## @rts5260_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	_rtsx_pci_init_cmd
	movq	_WRITE_REG_CMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_L1SUB_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AUX_CLK_ACTIVE_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MAC_CKSW_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_L1SUB_CONFIG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$255, %ecx
	xorl	%r8d, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_PM_CLK_FORCE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CLK_PM_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_PWD_SUSPEND_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$255, %ecx
	movl	$255, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_PWR_GATE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PWR_GATE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_REG_VREF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PWD_SUSPND_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %r8d
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_RBCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_U_AUTO_DMA_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_U_AUTO_DMA_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_rtsx_pci_add_cmd
	movq	_PCR_REVERSE_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	(%r15), %esi
	movq	_PETXCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, %r8d
	movl	$176, %eax
	cmovnel	%eax, %r8d
	movq	%rbx, %rdi
	movl	$176, %ecx
	callq	_rtsx_pci_add_cmd
	movl	(%r15), %esi
	movq	_OBFF_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OBFF_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_OBFF_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_rtsx_pci_add_cmd
	movq	_CMD_TIMEOUT_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtsx_pci_send_cmd
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_rtsx_pci_init_ocp
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_REG_CMD,4,2              ## @WRITE_REG_CMD
	.comm	_L1SUB_CONFIG1,4,2              ## @L1SUB_CONFIG1
	.comm	_AUX_CLK_ACTIVE_SEL_MASK,4,2    ## @AUX_CLK_ACTIVE_SEL_MASK
	.comm	_MAC_CKSW_DONE,4,2              ## @MAC_CKSW_DONE
	.comm	_L1SUB_CONFIG3,4,2              ## @L1SUB_CONFIG3
	.comm	_PM_CLK_FORCE_CTL,4,2           ## @PM_CLK_FORCE_CTL
	.comm	_CLK_PM_EN,4,2                  ## @CLK_PM_EN
	.comm	_PWD_SUSPEND_EN,4,2             ## @PWD_SUSPEND_EN
	.comm	_PWR_GATE_CTRL,4,2              ## @PWR_GATE_CTRL
	.comm	_PWR_GATE_EN,4,2                ## @PWR_GATE_EN
	.comm	_REG_VREF,4,2                   ## @REG_VREF
	.comm	_PWD_SUSPND_EN,4,2              ## @PWD_SUSPND_EN
	.comm	_RBCTL,4,2                      ## @RBCTL
	.comm	_U_AUTO_DMA_EN_MASK,4,2         ## @U_AUTO_DMA_EN_MASK
	.comm	_U_AUTO_DMA_DISABLE,4,2         ## @U_AUTO_DMA_DISABLE
	.comm	_PCR_REVERSE_SOCKET,4,2         ## @PCR_REVERSE_SOCKET
	.comm	_PETXCFG,4,2                    ## @PETXCFG
	.comm	_OBFF_CFG,4,2                   ## @OBFF_CFG
	.comm	_OBFF_EN_MASK,4,2               ## @OBFF_EN_MASK
	.comm	_OBFF_DISABLE,4,2               ## @OBFF_DISABLE
	.comm	_CMD_TIMEOUT_DEF,4,2            ## @CMD_TIMEOUT_DEF
	.no_dead_strip	_rts5260_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts5260_init_hw
_rts5260_init_hw:                       ; @rts5260_init_hw
	.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
	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_CONFIG1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _L1SUB_CONFIG1@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _AUX_CLK_ACTIVE_SEL_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AUX_CLK_ACTIVE_SEL_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _MAC_CKSW_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_CKSW_DONE@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _L1SUB_CONFIG3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _L1SUB_CONFIG3@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #255
	mov	w4, #0
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _PM_CLK_FORCE_CTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PM_CLK_FORCE_CTL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _CLK_PM_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CLK_PM_EN@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x3
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _PWD_SUSPEND_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PWD_SUSPEND_EN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #255
	mov	w4, #255
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh23:
	adrp	x8, _PWR_GATE_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PWR_GATE_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _PWR_GATE_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PWR_GATE_EN@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x3
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh29:
	adrp	x8, _REG_VREF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REG_VREF@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _PWD_SUSPND_EN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PWD_SUSPND_EN@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x3
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh35:
	adrp	x8, _RBCTL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RBCTL@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _U_AUTO_DMA_EN_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _U_AUTO_DMA_EN_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	adrp	x8, _U_AUTO_DMA_DISABLE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _U_AUTO_DMA_DISABLE@GOTPAGEOFF]
Lloh43:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_rtsx_pci_add_cmd
	ldr	w8, [x19]
Lloh44:
	adrp	x9, _PCR_REVERSE_SOCKET@GOTPAGE
Lloh45:
	ldr	x9, [x9, _PCR_REVERSE_SOCKET@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
Lloh47:
	adrp	x10, _PETXCFG@GOTPAGE
Lloh48:
	ldr	x10, [x10, _PETXCFG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh49:
	ldr	w2, [x10]
	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	w1, [x20]
Lloh50:
	adrp	x8, _OBFF_CFG@GOTPAGE
Lloh51:
	ldr	x8, [x8, _OBFF_CFG@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x8, _OBFF_EN_MASK@GOTPAGE
Lloh54:
	ldr	x8, [x8, _OBFF_EN_MASK@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
Lloh56:
	adrp	x8, _OBFF_DISABLE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _OBFF_DISABLE@GOTPAGEOFF]
Lloh58:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_rtsx_pci_add_cmd
Lloh59:
	adrp	x8, _CMD_TIMEOUT_DEF@GOTPAGE
Lloh60:
	ldr	x8, [x8, _CMD_TIMEOUT_DEF@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtsx_pci_send_cmd
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rtsx_pci_init_ocp
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.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 AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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_CONFIG1,4,2              ; @L1SUB_CONFIG1
	.comm	_AUX_CLK_ACTIVE_SEL_MASK,4,2    ; @AUX_CLK_ACTIVE_SEL_MASK
	.comm	_MAC_CKSW_DONE,4,2              ; @MAC_CKSW_DONE
	.comm	_L1SUB_CONFIG3,4,2              ; @L1SUB_CONFIG3
	.comm	_PM_CLK_FORCE_CTL,4,2           ; @PM_CLK_FORCE_CTL
	.comm	_CLK_PM_EN,4,2                  ; @CLK_PM_EN
	.comm	_PWD_SUSPEND_EN,4,2             ; @PWD_SUSPEND_EN
	.comm	_PWR_GATE_CTRL,4,2              ; @PWR_GATE_CTRL
	.comm	_PWR_GATE_EN,4,2                ; @PWR_GATE_EN
	.comm	_REG_VREF,4,2                   ; @REG_VREF
	.comm	_PWD_SUSPND_EN,4,2              ; @PWD_SUSPND_EN
	.comm	_RBCTL,4,2                      ; @RBCTL
	.comm	_U_AUTO_DMA_EN_MASK,4,2         ; @U_AUTO_DMA_EN_MASK
	.comm	_U_AUTO_DMA_DISABLE,4,2         ; @U_AUTO_DMA_DISABLE
	.comm	_PCR_REVERSE_SOCKET,4,2         ; @PCR_REVERSE_SOCKET
	.comm	_PETXCFG,4,2                    ; @PETXCFG
	.comm	_OBFF_CFG,4,2                   ; @OBFF_CFG
	.comm	_OBFF_EN_MASK,4,2               ; @OBFF_EN_MASK
	.comm	_OBFF_DISABLE,4,2               ; @OBFF_DISABLE
	.comm	_CMD_TIMEOUT_DEF,4,2            ; @CMD_TIMEOUT_DEF
	.no_dead_strip	_rts5260_init_hw
.subsections_via_symbols
