	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msdc_reset_hw
_msdc_reset_hw:                         ## @msdc_reset_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MSDC_CFG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	movq	_MSDC_CFG_RST@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_sdr_set_bits
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_2
LBB0_3:
	movq	_MSDC_FIFOCS@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	movq	_MSDC_FIFOCS_CLR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_sdr_set_bits
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_5
LBB0_6:
	movq	_MSDC_INT@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSDC_CFG,8,3                   ## @MSDC_CFG
	.comm	_MSDC_CFG_RST,4,2               ## @MSDC_CFG_RST
	.comm	_MSDC_FIFOCS,8,3                ## @MSDC_FIFOCS
	.comm	_MSDC_FIFOCS_CLR,4,2            ## @MSDC_FIFOCS_CLR
	.comm	_MSDC_INT,8,3                   ## @MSDC_INT
	.no_dead_strip	_msdc_reset_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msdc_reset_hw
_msdc_reset_hw:                         ; @msdc_reset_hw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _MSDC_CFG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSDC_CFG@GOTPAGEOFF]
	ldr	x8, [x0]
	ldr	x9, [x20]
	add	x0, x9, x8
Lloh2:
	adrp	x21, _MSDC_CFG_RST@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MSDC_CFG_RST@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_sdr_set_bits
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	b	LBB0_1
LBB0_3:
Lloh4:
	adrp	x20, _MSDC_FIFOCS@GOTPAGE
Lloh5:
	ldr	x20, [x20, _MSDC_FIFOCS@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
Lloh6:
	adrp	x21, _MSDC_FIFOCS_CLR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MSDC_FIFOCS_CLR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_sdr_set_bits
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_cpu_relax
	b	LBB0_4
LBB0_6:
	ldr	x8, [x19]
Lloh8:
	adrp	x20, _MSDC_INT@GOTPAGE
Lloh9:
	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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSDC_CFG,8,3                   ; @MSDC_CFG
	.comm	_MSDC_CFG_RST,4,2               ; @MSDC_CFG_RST
	.comm	_MSDC_FIFOCS,8,3                ; @MSDC_FIFOCS
	.comm	_MSDC_FIFOCS_CLR,4,2            ; @MSDC_FIFOCS_CLR
	.comm	_MSDC_INT,8,3                   ; @MSDC_INT
	.no_dead_strip	_msdc_reset_hw
.subsections_via_symbols
