	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts5229_card_power_off
_rts5229_card_power_off:                ## @rts5229_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	_rtsx_pci_init_cmd
	movq	_WRITE_REG_CMD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CARD_PWR_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SD_POWER_MASK@GOTPCREL(%rip), %rax
	movq	_PMOS_STRG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SD_POWER_OFF@GOTPCREL(%rip), %rax
	movq	_PMOS_STRG_400mA@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	orl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_rtsx_pci_add_cmd
	movl	(%r14), %esi
	movq	_PWR_GATE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LDO3318_PWR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_rtsx_pci_add_cmd
	movq	%rbx, %rdi
	movl	$100, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtsx_pci_send_cmd              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_REG_CMD,4,2              ## @WRITE_REG_CMD
	.comm	_CARD_PWR_CTL,4,2               ## @CARD_PWR_CTL
	.comm	_SD_POWER_MASK,4,2              ## @SD_POWER_MASK
	.comm	_PMOS_STRG_MASK,4,2             ## @PMOS_STRG_MASK
	.comm	_SD_POWER_OFF,4,2               ## @SD_POWER_OFF
	.comm	_PMOS_STRG_400mA,4,2            ## @PMOS_STRG_400mA
	.comm	_PWR_GATE_CTRL,4,2              ## @PWR_GATE_CTRL
	.comm	_LDO3318_PWR_MASK,4,2           ## @LDO3318_PWR_MASK
	.no_dead_strip	_rts5229_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 rts5229_card_power_off
_rts5229_card_power_off:                ; @rts5229_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	_rtsx_pci_init_cmd
Lloh0:
	adrp	x20, _WRITE_REG_CMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WRITE_REG_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _CARD_PWR_CTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CARD_PWR_CTL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _SD_POWER_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SD_POWER_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _PMOS_STRG_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PMOS_STRG_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SD_POWER_OFF@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SD_POWER_OFF@GOTPAGEOFF]
	orr	w3, w9, w8
Lloh13:
	ldr	w8, [x10]
Lloh14:
	adrp	x9, _PMOS_STRG_400mA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PMOS_STRG_400mA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, x19
	bl	_rtsx_pci_add_cmd
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _PWR_GATE_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PWR_GATE_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _LDO3318_PWR_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LDO3318_PWR_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	bl	_rtsx_pci_add_cmd
	mov	x0, x19
	mov	w1, #100
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtsx_pci_send_cmd
	.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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_REG_CMD,4,2              ; @WRITE_REG_CMD
	.comm	_CARD_PWR_CTL,4,2               ; @CARD_PWR_CTL
	.comm	_SD_POWER_MASK,4,2              ; @SD_POWER_MASK
	.comm	_PMOS_STRG_MASK,4,2             ; @PMOS_STRG_MASK
	.comm	_SD_POWER_OFF,4,2               ; @SD_POWER_OFF
	.comm	_PMOS_STRG_400mA,4,2            ; @PMOS_STRG_400mA
	.comm	_PWR_GATE_CTRL,4,2              ; @PWR_GATE_CTRL
	.comm	_LDO3318_PWR_MASK,4,2           ; @LDO3318_PWR_MASK
	.no_dead_strip	_rts5229_card_power_off
.subsections_via_symbols
