	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts5260_card_power_off
_rts5260_card_power_off:                ## @rts5260_card_power_off
	.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
	callq	_rts5260_card_before_power_off
	movq	_LDO_VCC_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LDO_POW_SDVDD1_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LDO_POW_SDVDD1_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtsx_pci_write_register
	movq	_LDO_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DV331812_POWERON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DV331812_POWEROFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtsx_pci_write_register
	movl	%eax, %r14d
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rtsx_pci_disable_ocp
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDO_VCC_CFG1,4,2               ## @LDO_VCC_CFG1
	.comm	_LDO_POW_SDVDD1_MASK,4,2        ## @LDO_POW_SDVDD1_MASK
	.comm	_LDO_POW_SDVDD1_OFF,4,2         ## @LDO_POW_SDVDD1_OFF
	.comm	_LDO_CONFIG2,4,2                ## @LDO_CONFIG2
	.comm	_DV331812_POWERON,4,2           ## @DV331812_POWERON
	.comm	_DV331812_POWEROFF,4,2          ## @DV331812_POWEROFF
	.no_dead_strip	_rts5260_card_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts5260_card_power_off
_rts5260_card_power_off:                ; @rts5260_card_power_off
	.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	_rts5260_card_before_power_off
Lloh0:
	adrp	x8, _LDO_VCC_CFG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDO_VCC_CFG1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _LDO_POW_SDVDD1_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDO_POW_SDVDD1_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _LDO_POW_SDVDD1_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LDO_POW_SDVDD1_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh9:
	adrp	x8, _LDO_CONFIG2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDO_CONFIG2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _DV331812_POWERON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DV331812_POWERON@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _DV331812_POWEROFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DV331812_POWEROFF@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_rtsx_pci_write_register
	mov	x20, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rtsx_pci_disable_ocp
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_LDO_VCC_CFG1,4,2               ; @LDO_VCC_CFG1
	.comm	_LDO_POW_SDVDD1_MASK,4,2        ; @LDO_POW_SDVDD1_MASK
	.comm	_LDO_POW_SDVDD1_OFF,4,2         ; @LDO_POW_SDVDD1_OFF
	.comm	_LDO_CONFIG2,4,2                ; @LDO_CONFIG2
	.comm	_DV331812_POWERON,4,2           ; @DV331812_POWERON
	.comm	_DV331812_POWEROFF,4,2          ; @DV331812_POWEROFF
	.no_dead_strip	_rts5260_card_power_off
.subsections_via_symbols
