	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts5260_clear_ocpstat
_rts5260_clear_ocpstat:                 ## @rts5260_clear_ocpstat
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SD_OCP_INT_CLR@GOTPCREL(%rip), %rax
	movq	_SD_OC_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_REG_OCPCTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_rtsx_pci_write_register
	movq	_REG_DV3318_OCPCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DV3318_OCP_INT_CLR@GOTPCREL(%rip), %rax
	movq	_DV3318_OCP_CLR@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_rtsx_pci_write_register
	movl	$10, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	_DV3318_OCP_INT_CLR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtsx_pci_write_register        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_OCP_INT_CLR,4,2             ## @SD_OCP_INT_CLR
	.comm	_SD_OC_CLR,4,2                  ## @SD_OC_CLR
	.comm	_REG_OCPCTL,4,2                 ## @REG_OCPCTL
	.comm	_REG_DV3318_OCPCTL,4,2          ## @REG_DV3318_OCPCTL
	.comm	_DV3318_OCP_INT_CLR,4,2         ## @DV3318_OCP_INT_CLR
	.comm	_DV3318_OCP_CLR,4,2             ## @DV3318_OCP_CLR
	.no_dead_strip	_rts5260_clear_ocpstat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts5260_clear_ocpstat
_rts5260_clear_ocpstat:                 ; @rts5260_clear_ocpstat
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _SD_OCP_INT_CLR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_OCP_INT_CLR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SD_OC_CLR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SD_OC_CLR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
Lloh6:
	adrp	x21, _REG_OCPCTL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _REG_OCPCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x20
	mov	x3, x20
	bl	_rtsx_pci_write_register
Lloh8:
	adrp	x22, _REG_DV3318_OCPCTL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _REG_DV3318_OCPCTL@GOTPAGEOFF]
Lloh10:
	adrp	x23, _DV3318_OCP_INT_CLR@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DV3318_OCP_INT_CLR@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x23]
Lloh12:
	adrp	x24, _DV3318_OCP_CLR@GOTPAGE
Lloh13:
	ldr	x24, [x24, _DV3318_OCP_CLR@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, x2
	bl	_rtsx_pci_write_register
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_rtsx_pci_write_register
	ldr	w1, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rtsx_pci_write_register
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_OCP_INT_CLR,4,2             ; @SD_OCP_INT_CLR
	.comm	_SD_OC_CLR,4,2                  ; @SD_OC_CLR
	.comm	_REG_OCPCTL,4,2                 ; @REG_OCPCTL
	.comm	_REG_DV3318_OCPCTL,4,2          ; @REG_DV3318_OCPCTL
	.comm	_DV3318_OCP_INT_CLR,4,2         ; @DV3318_OCP_INT_CLR
	.comm	_DV3318_OCP_CLR,4,2             ; @DV3318_OCP_CLR
	.no_dead_strip	_rts5260_clear_ocpstat
.subsections_via_symbols
