	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_pci_enable_ocp            ## -- Begin function rtsx_pci_enable_ocp
	.p2align	4, 0x90
_rtsx_pci_enable_ocp:                   ## @rtsx_pci_enable_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
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	movq	_SD_OCP_INT_EN@GOTPCREL(%rip), %rax
	movq	_SD_DETECT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_FPDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OC_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movq	_REG_OCPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtsx_pci_write_register        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_OCP_INT_EN,4,2              ## @SD_OCP_INT_EN
	.comm	_SD_DETECT_EN,4,2               ## @SD_DETECT_EN
	.comm	_FPDCTL,4,2                     ## @FPDCTL
	.comm	_OC_POWER_DOWN,4,2              ## @OC_POWER_DOWN
	.comm	_REG_OCPCTL,4,2                 ## @REG_OCPCTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_pci_enable_ocp            ; -- Begin function rtsx_pci_enable_ocp
	.p2align	2
_rtsx_pci_enable_ocp:                   ; @rtsx_pci_enable_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]
	ldr	x1, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_2:
Lloh0:
	adrp	x8, _SD_OCP_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SD_OCP_INT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SD_DETECT_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SD_DETECT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
Lloh6:
	adrp	x8, _FPDCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FPDCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _OC_POWER_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OC_POWER_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtsx_pci_write_register
Lloh12:
	adrp	x8, _REG_OCPCTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_OCPCTL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtsx_pci_write_register
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_OCP_INT_EN,4,2              ; @SD_OCP_INT_EN
	.comm	_SD_DETECT_EN,4,2               ; @SD_DETECT_EN
	.comm	_FPDCTL,4,2                     ; @FPDCTL
	.comm	_OC_POWER_DOWN,4,2              ; @OC_POWER_DOWN
	.comm	_REG_OCPCTL,4,2                 ; @REG_OCPCTL
.subsections_via_symbols
