	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_reset_hardware
_wmt_reset_hardware:                    ## @wmt_reset_hardware
	.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
	callq	_mmc_priv
	movq	%rax, %rbx
	movq	_SDMMC_BUSMODE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rax), %rdi
	callq	_readb
	movq	_BM_SOFT_RESET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writeb
	movq	_SDMMC_CTLR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readb
	movq	_CTLR_FIFO_RESET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writeb
	movq	_BLKL_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	_BLKL_GPI_CD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_SDMMC_BLKLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writew
	movq	_SDMMC_STS0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$255, %edi
	callq	_writeb
	movq	_SDMMC_STS1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$255, %edi
	callq	_writeb
	movq	_INT0_CD_INT_EN@GOTPCREL(%rip), %rax
	movq	_INT0_DI_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_SDMMC_INTMASK0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writeb
	movq	_INT1_DATA_TOUT_INT_EN@GOTPCREL(%rip), %rax
	movq	_INT1_CMD_RES_TRAN_DONE_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_INT1_CMD_RES_TOUT_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_SDMMC_INTMASK1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writeb
	movq	_SDMMC_DMATIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$8191, %edi                     ## imm = 0x1FFF
	callq	_writew
	movq	_SDMMC_STS2@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readb
	movq	_STS2_DIS_FORCECLK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writeb
	movl	(%rbx), %edi
	movl	$400000, %esi                   ## imm = 0x61A80
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_set_rate                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMMC_BUSMODE,8,3              ## @SDMMC_BUSMODE
	.comm	_BM_SOFT_RESET,4,2              ## @BM_SOFT_RESET
	.comm	_SDMMC_CTLR,8,3                 ## @SDMMC_CTLR
	.comm	_CTLR_FIFO_RESET,4,2            ## @CTLR_FIFO_RESET
	.comm	_BLKL_INT_ENABLE,4,2            ## @BLKL_INT_ENABLE
	.comm	_BLKL_GPI_CD,4,2                ## @BLKL_GPI_CD
	.comm	_SDMMC_BLKLEN,8,3               ## @SDMMC_BLKLEN
	.comm	_SDMMC_STS0,8,3                 ## @SDMMC_STS0
	.comm	_SDMMC_STS1,8,3                 ## @SDMMC_STS1
	.comm	_INT0_CD_INT_EN,4,2             ## @INT0_CD_INT_EN
	.comm	_INT0_DI_INT_EN,4,2             ## @INT0_DI_INT_EN
	.comm	_SDMMC_INTMASK0,8,3             ## @SDMMC_INTMASK0
	.comm	_INT1_DATA_TOUT_INT_EN,4,2      ## @INT1_DATA_TOUT_INT_EN
	.comm	_INT1_CMD_RES_TRAN_DONE_INT_EN,4,2 ## @INT1_CMD_RES_TRAN_DONE_INT_EN
	.comm	_INT1_CMD_RES_TOUT_INT_EN,4,2   ## @INT1_CMD_RES_TOUT_INT_EN
	.comm	_SDMMC_INTMASK1,8,3             ## @SDMMC_INTMASK1
	.comm	_SDMMC_DMATIMEOUT,8,3           ## @SDMMC_DMATIMEOUT
	.comm	_SDMMC_STS2,8,3                 ## @SDMMC_STS2
	.comm	_STS2_DIS_FORCECLK,4,2          ## @STS2_DIS_FORCECLK
	.no_dead_strip	_wmt_reset_hardware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_reset_hardware
_wmt_reset_hardware:                    ; @wmt_reset_hardware
	.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
	bl	_mmc_priv
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _SDMMC_BUSMODE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SDMMC_BUSMODE@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
Lloh2:
	adrp	x8, _BM_SOFT_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BM_SOFT_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeb
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x20, _SDMMC_CTLR@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SDMMC_CTLR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
Lloh7:
	adrp	x8, _CTLR_FIFO_RESET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CTLR_FIFO_RESET@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeb
Lloh10:
	adrp	x8, _BLKL_INT_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BLKL_INT_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _BLKL_GPI_CD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BLKL_GPI_CD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _SDMMC_BLKLEN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SDMMC_BLKLEN@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	ldr	x8, [x19, #8]
Lloh19:
	adrp	x9, _SDMMC_STS0@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SDMMC_STS0@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #255
	bl	_writeb
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x9, _SDMMC_STS1@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SDMMC_STS1@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #255
	bl	_writeb
Lloh25:
	adrp	x8, _INT0_CD_INT_EN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INT0_CD_INT_EN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _INT0_DI_INT_EN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _INT0_DI_INT_EN@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
Lloh31:
	adrp	x9, _SDMMC_INTMASK0@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SDMMC_INTMASK0@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
Lloh34:
	adrp	x8, _INT1_DATA_TOUT_INT_EN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _INT1_DATA_TOUT_INT_EN@GOTPAGEOFF]
Lloh36:
	adrp	x9, _INT1_CMD_RES_TRAN_DONE_INT_EN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _INT1_CMD_RES_TRAN_DONE_INT_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh40:
	adrp	x9, _INT1_CMD_RES_TOUT_INT_EN@GOTPAGE
Lloh41:
	ldr	x9, [x9, _INT1_CMD_RES_TOUT_INT_EN@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh43:
	adrp	x9, _SDMMC_INTMASK1@GOTPAGE
Lloh44:
	ldr	x9, [x9, _SDMMC_INTMASK1@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	ldr	x8, [x19, #8]
Lloh46:
	adrp	x9, _SDMMC_DMATIMEOUT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SDMMC_DMATIMEOUT@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #8191
	bl	_writew
	ldr	x8, [x19, #8]
Lloh49:
	adrp	x20, _SDMMC_STS2@GOTPAGE
Lloh50:
	ldr	x20, [x20, _SDMMC_STS2@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
Lloh51:
	adrp	x8, _STS2_DIS_FORCECLK@GOTPAGE
Lloh52:
	ldr	x8, [x8, _STS2_DIS_FORCECLK@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeb
	ldr	w0, [x19]
	mov	w1, #6784
	movk	w1, #6, lsl #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_set_rate
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMMC_BUSMODE,8,3              ; @SDMMC_BUSMODE
	.comm	_BM_SOFT_RESET,4,2              ; @BM_SOFT_RESET
	.comm	_SDMMC_CTLR,8,3                 ; @SDMMC_CTLR
	.comm	_CTLR_FIFO_RESET,4,2            ; @CTLR_FIFO_RESET
	.comm	_BLKL_INT_ENABLE,4,2            ; @BLKL_INT_ENABLE
	.comm	_BLKL_GPI_CD,4,2                ; @BLKL_GPI_CD
	.comm	_SDMMC_BLKLEN,8,3               ; @SDMMC_BLKLEN
	.comm	_SDMMC_STS0,8,3                 ; @SDMMC_STS0
	.comm	_SDMMC_STS1,8,3                 ; @SDMMC_STS1
	.comm	_INT0_CD_INT_EN,4,2             ; @INT0_CD_INT_EN
	.comm	_INT0_DI_INT_EN,4,2             ; @INT0_DI_INT_EN
	.comm	_SDMMC_INTMASK0,8,3             ; @SDMMC_INTMASK0
	.comm	_INT1_DATA_TOUT_INT_EN,4,2      ; @INT1_DATA_TOUT_INT_EN
	.comm	_INT1_CMD_RES_TRAN_DONE_INT_EN,4,2 ; @INT1_CMD_RES_TRAN_DONE_INT_EN
	.comm	_INT1_CMD_RES_TOUT_INT_EN,4,2   ; @INT1_CMD_RES_TOUT_INT_EN
	.comm	_SDMMC_INTMASK1,8,3             ; @SDMMC_INTMASK1
	.comm	_SDMMC_DMATIMEOUT,8,3           ; @SDMMC_DMATIMEOUT
	.comm	_SDMMC_STS2,8,3                 ; @SDMMC_STS2
	.comm	_STS2_DIS_FORCECLK,4,2          ; @STS2_DIS_FORCECLK
	.no_dead_strip	_wmt_reset_hardware
.subsections_via_symbols
