	.file	"extr_rtsx_pcr.c_rtsx_pci_disable_ocp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtsx_pci_disable_ocp
	.type	rtsx_pci_disable_ocp, @function
rtsx_pci_disable_ocp:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L2:
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR REG_OCPCTL[rip]
	mov	edx, DWORD PTR SD_OCP_INT_EN[rip]
	xor	ecx, ecx
	or	edx, DWORD PTR SD_DETECT_EN[rip]
	mov	QWORD PTR 8[rsp], rdi
	call	rtsx_pci_write_register@PLT
	mov	edx, DWORD PTR OC_POWER_DOWN[rip]
	mov	esi, DWORD PTR FPDCTL[rip]
	mov	rdi, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 8
	mov	ecx, edx
	jmp	rtsx_pci_write_register@PLT
	.cfi_endproc
.LFE0:
	.size	rtsx_pci_disable_ocp, .-rtsx_pci_disable_ocp
	.comm	SD_OCP_INT_EN,4,4
	.comm	SD_DETECT_EN,4,4
	.comm	REG_OCPCTL,4,4
	.comm	OC_POWER_DOWN,4,4
	.comm	FPDCTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rtsx_pcr.c_rtsx_pci_disable_ocp.c"
	.text
	.align	2
	.global	rtsx_pci_disable_ocp
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtsx_pci_disable_ocp, %function
rtsx_pci_disable_ocp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	bx	r3
.L2:
	push	{r4, lr}
	mov	r4, r0
	ldr	r1, .L6
	ldr	r2, .L6+4
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, .L6+8
	orr	r2, ip, r2
	ldr	r1, [r1]
	bl	rtsx_pci_write_register
	ldr	r3, .L6+12
	ldr	r1, .L6+16
	ldr	r3, [r3]
	mov	r0, r4
	pop	{r4, lr}
	mov	r2, r3
	ldr	r1, [r1]
	b	rtsx_pci_write_register
.L7:
	.align	2
.L6:
	.word	SD_OCP_INT_EN
	.word	SD_DETECT_EN
	.word	REG_OCPCTL
	.word	OC_POWER_DOWN
	.word	FPDCTL
	.size	rtsx_pci_disable_ocp, .-rtsx_pci_disable_ocp
	.comm	SD_OCP_INT_EN,4,4
	.comm	SD_DETECT_EN,4,4
	.comm	REG_OCPCTL,4,4
	.comm	OC_POWER_DOWN,4,4
	.comm	FPDCTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
