	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msdc_deinit_hw
_msdc_deinit_hw:                        ## @msdc_deinit_hw
	.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
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_MSDC_PS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movq	_MSDC_PS_CDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdr_clr_bits
	movq	_SDC_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movq	_SDC_CFG_INSWKUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdr_clr_bits
LBB0_2:
	movq	_MSDC_INTEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MSDC_INT@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSDC_PS,8,3                    ## @MSDC_PS
	.comm	_MSDC_PS_CDEN,4,2               ## @MSDC_PS_CDEN
	.comm	_SDC_CFG,8,3                    ## @SDC_CFG
	.comm	_SDC_CFG_INSWKUP,4,2            ## @SDC_CFG_INSWKUP
	.comm	_MSDC_INTEN,8,3                 ## @MSDC_INTEN
	.comm	_MSDC_INT,8,3                   ## @MSDC_INT
	.no_dead_strip	_msdc_deinit_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msdc_deinit_hw
_msdc_deinit_hw:                        ; @msdc_deinit_hw
	.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, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MSDC_PS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSDC_PS@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh3:
	adrp	x8, _MSDC_PS_CDEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSDC_PS_CDEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_sdr_clr_bits
Lloh6:
	adrp	x8, _SDC_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDC_CFG@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh9:
	adrp	x8, _SDC_CFG_INSWKUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDC_CFG_INSWKUP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_sdr_clr_bits
LBB0_2:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _MSDC_INTEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MSDC_INTEN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh15:
	adrp	x20, _MSDC_INT@GOTPAGE
Lloh16:
	ldr	x20, [x20, _MSDC_INT@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MSDC_PS,8,3                    ; @MSDC_PS
	.comm	_MSDC_PS_CDEN,4,2               ; @MSDC_PS_CDEN
	.comm	_SDC_CFG,8,3                    ; @SDC_CFG
	.comm	_SDC_CFG_INSWKUP,4,2            ; @SDC_CFG_INSWKUP
	.comm	_MSDC_INTEN,8,3                 ; @MSDC_INTEN
	.comm	_MSDC_INT,8,3                   ; @MSDC_INT
	.no_dead_strip	_msdc_deinit_hw
.subsections_via_symbols
