	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_ms_power_off_card3v3      ## -- Begin function rtsx_ms_power_off_card3v3
	.p2align	4, 0x90
_rtsx_ms_power_off_card3v3:             ## @rtsx_ms_power_off_card3v3
	.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	_CARD_CLK_EN@GOTPCREL(%rip), %rax
	movq	_SD_CLK_EN@GOTPCREL(%rip), %rcx
	movq	_MS_CLK_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_SD40_CLK_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movq	_RTSX_MS_CARD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtsx_pci_card_pull_ctl_disable
	movq	_CARD_OE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MS_OUTPUT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rtsx_pci_write_register
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rtsx_pci_card_power_off
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_CLK_EN,4,2                ## @CARD_CLK_EN
	.comm	_SD_CLK_EN,4,2                  ## @SD_CLK_EN
	.comm	_MS_CLK_EN,4,2                  ## @MS_CLK_EN
	.comm	_SD40_CLK_EN,4,2                ## @SD40_CLK_EN
	.comm	_RTSX_MS_CARD,4,2               ## @RTSX_MS_CARD
	.comm	_CARD_OE,4,2                    ## @CARD_OE
	.comm	_MS_OUTPUT_EN,4,2               ## @MS_OUTPUT_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_ms_power_off_card3v3      ; -- Begin function rtsx_ms_power_off_card3v3
	.p2align	2
_rtsx_ms_power_off_card3v3:             ; @rtsx_ms_power_off_card3v3
	.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
Lloh0:
	adrp	x8, _CARD_CLK_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARD_CLK_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SD_CLK_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_CLK_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MS_CLK_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MS_CLK_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _SD40_CLK_EN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SD40_CLK_EN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	w3, #0
	bl	_rtsx_pci_write_register
Lloh12:
	adrp	x20, _RTSX_MS_CARD@GOTPAGE
Lloh13:
	ldr	x20, [x20, _RTSX_MS_CARD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtsx_pci_card_pull_ctl_disable
Lloh14:
	adrp	x8, _CARD_OE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CARD_OE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _MS_OUTPUT_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MS_OUTPUT_EN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtsx_pci_write_register
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtsx_pci_card_power_off
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.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	_CARD_CLK_EN,4,2                ; @CARD_CLK_EN
	.comm	_SD_CLK_EN,4,2                  ; @SD_CLK_EN
	.comm	_MS_CLK_EN,4,2                  ; @MS_CLK_EN
	.comm	_SD40_CLK_EN,4,2                ; @SD40_CLK_EN
	.comm	_RTSX_MS_CARD,4,2               ; @RTSX_MS_CARD
	.comm	_CARD_OE,4,2                    ; @CARD_OE
	.comm	_MS_OUTPUT_EN,4,2               ; @MS_OUTPUT_EN
.subsections_via_symbols
