	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_mmc_reset
_mxs_mmc_reset:                         ## @mxs_mmc_reset
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rdi
	callq	_stmp_reset_block
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_BM_SSP_CTRL0_IGNORE_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CTRL1_SSP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edi
	callq	_BF_SSP
	movl	%eax, %r15d
	movq	_CTRL1_WORD_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %edi
	callq	_BF_SSP
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_BM_SSP_CTRL1_DMA_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BM_SSP_CTRL1_POLARITY@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BM_SSP_CTRL1_RECV_TIMEOUT_IRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BM_SSP_CTRL1_DATA_CRC_IRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BM_SSP_CTRL1_DATA_TIMEOUT_IRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BM_SSP_CTRL1_RESP_TIMEOUT_IRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BM_SSP_CTRL1_RESP_ERR_IRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_TIMING_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_BF_SSP
	movl	%eax, %r15d
	movq	_TIMING_CLOCK_DIVIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_BF_SSP
	orl	%eax, %r15d
	movq	_TIMING_CLOCK_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_BF_SSP
	orl	%eax, %r15d
	movq	8(%r12), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_HW_SSP_TIMING
	addq	%rax, %r14
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_writel
	cmpq	$0, (%r12)
	movl	$0, %eax
	je	LBB0_3
## %bb.2:
	movq	_BM_SSP_CTRL0_SDIO_IRQ_CHECK@GOTPCREL(%rip), %rax
	movq	_BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPCREL(%rip), %rcx
	movl	(%rax), %r13d
	movl	(%rcx), %eax
LBB0_3:
	orl	%eax, %ebx
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	_HW_SSP_CTRL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	8(%r12), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_HW_SSP_CTRL1
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writel
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BM_SSP_CTRL0_IGNORE_CRC,4,2    ## @BM_SSP_CTRL0_IGNORE_CRC
	.comm	_CTRL1_SSP_MODE,4,2             ## @CTRL1_SSP_MODE
	.comm	_CTRL1_WORD_LENGTH,4,2          ## @CTRL1_WORD_LENGTH
	.comm	_BM_SSP_CTRL1_DMA_ENABLE,4,2    ## @BM_SSP_CTRL1_DMA_ENABLE
	.comm	_BM_SSP_CTRL1_POLARITY,4,2      ## @BM_SSP_CTRL1_POLARITY
	.comm	_BM_SSP_CTRL1_RECV_TIMEOUT_IRQ_EN,4,2 ## @BM_SSP_CTRL1_RECV_TIMEOUT_IRQ_EN
	.comm	_BM_SSP_CTRL1_DATA_CRC_IRQ_EN,4,2 ## @BM_SSP_CTRL1_DATA_CRC_IRQ_EN
	.comm	_BM_SSP_CTRL1_DATA_TIMEOUT_IRQ_EN,4,2 ## @BM_SSP_CTRL1_DATA_TIMEOUT_IRQ_EN
	.comm	_BM_SSP_CTRL1_RESP_TIMEOUT_IRQ_EN,4,2 ## @BM_SSP_CTRL1_RESP_TIMEOUT_IRQ_EN
	.comm	_BM_SSP_CTRL1_RESP_ERR_IRQ_EN,4,2 ## @BM_SSP_CTRL1_RESP_ERR_IRQ_EN
	.comm	_TIMING_TIMEOUT,4,2             ## @TIMING_TIMEOUT
	.comm	_TIMING_CLOCK_DIVIDE,4,2        ## @TIMING_CLOCK_DIVIDE
	.comm	_TIMING_CLOCK_RATE,4,2          ## @TIMING_CLOCK_RATE
	.comm	_BM_SSP_CTRL0_SDIO_IRQ_CHECK,4,2 ## @BM_SSP_CTRL0_SDIO_IRQ_CHECK
	.comm	_BM_SSP_CTRL1_SDIO_IRQ_EN,4,2   ## @BM_SSP_CTRL1_SDIO_IRQ_EN
	.comm	_HW_SSP_CTRL0,8,3               ## @HW_SSP_CTRL0
	.no_dead_strip	_mxs_mmc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_mmc_reset
_mxs_mmc_reset:                         ; @mxs_mmc_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	mov	x20, x0
	ldr	x0, [x20, #8]!
	bl	_stmp_reset_block
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BM_SSP_CTRL0_IGNORE_CRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BM_SSP_CTRL0_IGNORE_CRC@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _CTRL1_SSP_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTRL1_SSP_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #3
	bl	_BF_SSP
	mov	x22, x0
Lloh6:
	adrp	x8, _CTRL1_WORD_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTRL1_WORD_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #7
	bl	_BF_SSP
Lloh9:
	adrp	x8, _BM_SSP_CTRL1_DMA_ENABLE@GOTPAGE
Lloh10:
	ld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r	x8, [x8, _TIMING_TIMEOUT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w0, #65535
	bl	_BF_SSP
	mov	x22, x0
Lloh33:
	adrp	x8, _TIMING_CLOCK_DIVIDE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TIMING_CLOCK_DIVIDE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	w0, #2
	bl	_BF_SSP
	orr	w22, w0, w22
Lloh36:
	adrp	x8, _TIMING_CLOCK_RATE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TIMING_CLOCK_RATE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_BF_SSP
	orr	w22, w22, w0
	ldr	x25, [x21, #8]
	mov	x0, x20
	bl	_HW_SSP_TIMING
	add	x1, x0, x25
	mov	x0, x22
	bl	_writel
Lloh39:
	adrp	x8, _BM_SSP_CTRL0_SDIO_IRQ_CHECK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BM_SSP_CTRL0_SDIO_IRQ_CHECK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _BM_SSP_CTRL1_SDIO_IRQ_EN@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	ldp	x10, x11, [x21]
	cmp	x10, #0
	csel	w8, wzr, w8, eq
	orr	w0, w8, w23
	csel	w8, wzr, w9, eq
	orr	w22, w24, w8
Lloh45:
	adrp	x8, _HW_SSP_CTRL0@GOTPAGE
Lloh46:
	ldr	x8, [x8, _HW_SSP_CTRL0@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	add	x1, x8, x11
	bl	_writel
	ldr	x21, [x21, #8]
	mov	x0, x20
	bl	_HW_SSP_CTRL1
	add	x1, x0, x21
	mov	x0, x22
	bl	_writel
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_BM_SSP_CTRL0_IGNORE_CRC,4,2    ; @BM_SSP_CTRL0_IGNORE_CRC
	.comm	_CTRL1_SSP_MODE,4,2             ; @CTRL1_SSP_MODE
	.comm	_CTRL1_WORD_LENGTH,4,2          ; @CTRL1_WORD_LENGTH
	.comm	_BM_SSP_CTRL1_DMA_ENABLE,4,2    ; @BM_SSP_CTRL1_DMA_ENABLE
	.comm	_BM_SSP_CTRL1_POLARITY,4,2      ; @BM_SSP_CTRL1_POLARITY
	.comm	_BM_SSP_CTRL1_RECV_TIMEOUT_IRQ_EN,4,2 ; @BM_SSP_CTRL1_RECV_TIMEOUT_IRQ_EN
	.comm	_BM_SSP_CTRL1_DATA_CRC_IRQ_EN,4,2 ; @BM_SSP_CTRL1_DATA_CRC_IRQ_EN
	.comm	_BM_SSP_CTRL1_DATA_TIMEOUT_IRQ_EN,4,2 ; @BM_SSP_CTRL1_DATA_TIMEOUT_IRQ_EN
	.comm	_BM_SSP_CTRL1_RESP_TIMEOUT_IRQ_EN,4,2 ; @BM_SSP_CTRL1_RESP_TIMEOUT_IRQ_EN
	.comm	_BM_SSP_CTRL1_RESP_ERR_IRQ_EN,4,2 ; @BM_SSP_CTRL1_RESP_ERR_IRQ_EN
	.comm	_TIMING_TIMEOUT,4,2             ; @TIMING_TIMEOUT
	.comm	_TIMING_CLOCK_DIVIDE,4,2        ; @TIMING_CLOCK_DIVIDE
	.comm	_TIMING_CLOCK_RATE,4,2          ; @TIMING_CLOCK_RATE
	.comm	_BM_SSP_CTRL0_SDIO_IRQ_CHECK,4,2 ; @BM_SSP_CTRL0_SDIO_IRQ_CHECK
	.comm	_BM_SSP_CTRL1_SDIO_IRQ_EN,4,2   ; @BM_SSP_CTRL1_SDIO_IRQ_EN
	.comm	_HW_SSP_CTRL0,8,3               ; @HW_SSP_CTRL0
	.no_dead_strip	_mxs_mmc_reset
.subsections_via_symbols
