	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts5260_init_ocp
_rts5260_init_ocp:                      ## @rts5260_init_ocp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	movq	_RTS5260_DVCC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	je	LBB0_2
## %bb.1:
	movq	_RTS5260_DVCC_OCP_THD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_rtsx_pci_write_register
	movq	_RTS5260_DV331812_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTS5260_DV331812_OCP_THD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RTS5260_DV331812_OCP_THD_270@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtsx_pci_write_register
	movq	_SD_OCP_GLITCH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	_REG_OCPGLITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtsx_pci_write_register
	movl	(%r14), %esi
	movq	_RTS5260_DVCC_OCP_EN@GOTPCREL(%rip), %rax
	movq	_RTS5260_DVCC_OCP_CL_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_rtsx_pci_write_register
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtsx_pci_enable_ocp            ## TAILCALL
LBB0_2:
	movq	_RTS5260_DVCC_OCP_EN@GOTPCREL(%rip), %rax
	movq	_RTS5260_DVCC_OCP_CL_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtsx_pci_write_register        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTS5260_DVCC_CTRL,4,2          ## @RTS5260_DVCC_CTRL
	.comm	_RTS5260_DVCC_OCP_THD_MASK,4,2  ## @RTS5260_DVCC_OCP_THD_MASK
	.comm	_RTS5260_DV331812_CFG,4,2       ## @RTS5260_DV331812_CFG
	.comm	_RTS5260_DV331812_OCP_THD_MASK,4,2 ## @RTS5260_DV331812_OCP_THD_MASK
	.comm	_RTS5260_DV331812_OCP_THD_270,4,2 ## @RTS5260_DV331812_OCP_THD_270
	.comm	_SD_OCP_GLITCH_MASK,4,2         ## @SD_OCP_GLITCH_MASK
	.comm	_REG_OCPGLITCH,4,2              ## @REG_OCPGLITCH
	.comm	_RTS5260_DVCC_OCP_EN,4,2        ## @RTS5260_DVCC_OCP_EN
	.comm	_RTS5260_DVCC_OCP_CL_EN,4,2     ## @RTS5260_DVCC_OCP_CL_EN
	.no_dead_strip	_rts5260_init_ocp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts5260_init_ocp
_rts5260_init_ocp:                      ; @rts5260_init_ocp
	.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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x20, _RTS5260_DVCC_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RTS5260_DVCC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _RTS5260_DVCC_OCP_THD_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTS5260_DVCC_OCP_THD_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh5:
	adrp	x8, _RTS5260_DV331812_CFG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTS5260_DV331812_CFG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _RTS5260_DV331812_OCP_THD_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTS5260_DV331812_OCP_THD_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _RTS5260_DV331812_OCP_THD_270@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTS5260_DV331812_OCP_THD_270@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh14:
	adrp	x8, _SD_OCP_GLITCH_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SD_OCP_GLITCH_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh17:
	adrp	x8, _REG_OCPGLITCH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_OCPGLITCH@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh20:
	adrp	x8, _RTS5260_DVCC_OCP_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RTS5260_DVCC_OCP_EN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _RTS5260_DVCC_OCP_CL_EN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RTS5260_DVCC_OCP_CL_EN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, x2
	bl	_rtsx_pci_write_register
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtsx_pci_enable_ocp
LBB0_2:
Lloh26:
	adrp	x8, _RTS5260_DVCC_OCP_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RTS5260_DVCC_OCP_EN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _RTS5260_DVCC_OCP_CL_EN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RTS5260_DVCC_OCP_CL_EN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtsx_pci_write_register
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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 AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RTS5260_DVCC_CTRL,4,2          ; @RTS5260_DVCC_CTRL
	.comm	_RTS5260_DVCC_OCP_THD_MASK,4,2  ; @RTS5260_DVCC_OCP_THD_MASK
	.comm	_RTS5260_DV331812_CFG,4,2       ; @RTS5260_DV331812_CFG
	.comm	_RTS5260_DV331812_OCP_THD_MASK,4,2 ; @RTS5260_DV331812_OCP_THD_MASK
	.comm	_RTS5260_DV331812_OCP_THD_270,4,2 ; @RTS5260_DV331812_OCP_THD_270
	.comm	_SD_OCP_GLITCH_MASK,4,2         ; @SD_OCP_GLITCH_MASK
	.comm	_REG_OCPGLITCH,4,2              ; @REG_OCPGLITCH
	.comm	_RTS5260_DVCC_OCP_EN,4,2        ; @RTS5260_DVCC_OCP_EN
	.comm	_RTS5260_DVCC_OCP_CL_EN,4,2     ; @RTS5260_DVCC_OCP_CL_EN
	.no_dead_strip	_rts5260_init_ocp
.subsections_via_symbols
