	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_mmc_dump_errinfo
_sunxi_mmc_dump_errinfo:                ## @sunxi_mmc_dump_errinfo
	.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, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	_SDXC_INTERRUPT_ERROR_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rdi), %ecx
	movq	8(%rax), %r12
	movq	_SDXC_RESP_TIMEOUT@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ecx
	jne	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movq	_SD_IO_SEND_OP_COND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	_SD_IO_RW_DIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_3:
	movq	8(%rbx), %rdi
	callq	_mmc_dev
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	movq	(%r12), %rcx
	leaq	L_.str.3(%rip), %r10
	movq	%r10, %rax
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%r15)
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rdi, %rax
LBB0_5:
	movl	(%rbx), %edi
	movq	_SDXC_RESP_ERROR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	andl	%edi, %ebx
	leaq	L_.str.4(%rip), %r9
	cmoveq	%r10, %r9
	movq	_SDXC_RESP_CRC_ERROR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	andl	%edi, %ebx
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%r10, %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	_SDXC_DATA_CRC_ERROR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	andl	%edi, %ebx
	leaq	L_.str.6(%rip), %r11
	cmoveq	%r10, %r11
	movl	(%r14), %ebx
	andl	%edi, %ebx
	leaq	L_.str.7(%rip), %r14
	cmoveq	%r10, %r14
	movq	_SDXC_DATA_TIMEOUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	andl	%edi, %ebx
	leaq	L_.str.8(%rip), %r15
	cmoveq	%r10, %r15
	movq	_SDXC_FIFO_RUN_ERROR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	andl	%edi, %ebx
	leaq	L_.str.9(%rip), %r13
	cmoveq	%r10, %r13
	movq	_SDXC_HARD_WARE_LOCKED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edi, %esi
	leaq	L_.str.10(%rip), %rbx
	cmoveq	%r10, %rbx
	movq	_SDXC_START_BIT_ERROR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edi, %esi
	leaq	L_.str.11(%rip), %r12
	cmoveq	%r10, %r12
	movq	_SDXC_END_BIT_ERROR@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edi
	movq	%rax, %r8
	leaq	L_.str.12(%rip), %rax
	cmoveq	%r10, %rax
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	pushq	%rax
	pushq	%r12
	pushq	%rbx
	pushq	%r13
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_dev_dbg
	addq	$88, %rsp
	jmp	LBB0_7
LBB0_6:
	addq	$24, %rsp
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDXC_INTERRUPT_ERROR_BIT,4,2   ## @SDXC_INTERRUPT_ERROR_BIT
	.comm	_SDXC_RESP_TIMEOUT,4,2          ## @SDXC_RESP_TIMEOUT
	.comm	_SD_IO_SEND_OP_COND,8,3         ## @SD_IO_SEND_OP_COND
	.comm	_SD_IO_RW_DIRECT,8,3            ## @SD_IO_RW_DIRECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smc %d err, cmd %d,%s%s%s%s%s%s%s%s%s%s !!\n"

	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
L_.str.1:                               ## @.str.1
	.asciz	" WR"

L_.str.2:                               ## @.str.2
	.asciz	" RD"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_SDXC_RESP_ERROR,4,2            ## @SDXC_RESP_ERROR
L_.str.4:                               ## @.str.4
	.asciz	" RE"

	.comm	_SDXC_RESP_CRC_ERROR,4,2        ## @SDXC_RESP_CRC_ERROR
L_.str.5:                               ## @.str.5
	.asciz	" RCE"

	.comm	_SDXC_DATA_CRC_ERROR,4,2        ## @SDXC_DATA_CRC_ERROR
L_.str.6:                               ## @.str.6
	.asciz	" DCE"

L_.str.7:                               ## @.str.7
	.asciz	" RTO"

	.comm	_SDXC_DATA_TIMEOUT,4,2          ## @SDXC_DATA_TIMEOUT
L_.str.8:                               ## @.str.8
	.asciz	" DTO"

	.comm	_SDXC_FIFO_RUN_ERROR,4,2        ## @SDXC_FIFO_RUN_ERROR
L_.str.9:                               ## @.str.9
	.asciz	" FE"

	.comm	_SDXC_HARD_WARE_LOCKED,4,2      ## @SDXC_HARD_WARE_LOCKED
L_.str.10:                              ## @.str.10
	.asciz	" HL"

	.comm	_SDXC_START_BIT_ERROR,4,2       ## @SDXC_START_BIT_ERROR
L_.str.11:                              ## @.str.11
	.asciz	" SBE"

	.comm	_SDXC_END_BIT_ERROR,4,2         ## @SDXC_END_BIT_ERROR
L_.str.12:                              ## @.str.12
	.asciz	" EBE"

	.no_dead_strip	_sunxi_mmc_dump_errinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_mmc_dump_errinfo
_sunxi_mmc_dump_errinfo:                ; @sunxi_mmc_dump_errinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0, #16]
	ldp	x21, x22, [x8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SDXC_INTERRUPT_ERROR_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDXC_INTERRUPT_ERROR_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x20, _SDXC_RESP_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SDXC_RESP_TIMEOUT@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _SD_IO_SEND_OP_COND@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SD_IO_SEND_OP_COND@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _SD_IO_RW_DIRECT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SD_IO_RW_DIRECT@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_6
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_mmc_dev
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	ldr	x3, [x22]
Lloh11:
	adrp	x8, l_.str.3@PAGE
Lloh12:
	add	x8, x8, l_.str.3@PAGEOFF
	cbz	x21, LBB0_4
; %bb.3:
	ldr	w9, [x21]
Lloh13:
	adrp	x10, _MMC_DATA_WRITE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, l_.str.1@PAGE
Lloh17:
	add	x11, x11, l_.str.1@PAGEOFF
Lloh18:
	adrp	x12, l_.str.2@PAGE
Lloh19:
	add	x12, x12, l_.str.2@PAGEOFF
	tst	w10, w9
	csel	x4, x12, x11, eq
	b	LBB0_5
LBB0_4:
	mov	x4, x8
LBB0_5:
Lloh20:
	adrp	x9, _SDXC_RESP_ERROR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SDXC_RESP_ERROR@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x11, l_.str.4@PAGE
Lloh24:
	add	x11, x11, l_.str.4@PAGEOFF
	tst	w9, w10
	csel	x5, x8, x11, eq
Lloh25:
	adrp	x9, _SDXC_RESP_CRC_ERROR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SDXC_RESP_CRC_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x11, l_.str.5@PAGE
Lloh29:
	add	x11, x11, l_.str.5@PAGEOFF
	tst	w9, w10
	csel	x6, x8, x11, eq
Lloh30:
	adrp	x9, _SDXC_DATA_CRC_ERROR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SDXC_DATA_CRC_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x11, l_.str.6@PAGE
Lloh34:
	add	x11, x11, l_.str.6@PAGEOFF
	tst	w9, w10
	csel	x7, x8, x11, eq
	ldr	w9, [x20]
Lloh35:
	adrp	x11, l_.str.7@PAGE
Lloh36:
	add	x11, x11, l_.str.7@PAGEOFF
	tst	w9, w10
	csel	x9, x8, x11, eq
Lloh37:
	adrp	x11, _SDXC_DATA_TIMEOUT@GOTPAGE
Lloh38:
	ldr	x11, [x11, _SDXC_DATA_TIMEOUT@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
Lloh40:
	adrp	x12, l_.str.8@PAGE
Lloh41:
	add	x12, x12, l_.str.8@PAGEOFF
	tst	w11, w10
	csel	x11, x8, x12, eq
Lloh42:
	adrp	x12, _SDXC_FIFO_RUN_ERROR@GOTPAGE
Lloh43:
	ldr	x12, [x12, _SDXC_FIFO_RUN_ERROR@GOTPAGEOFF]
Lloh44:
	adrp	x13, l_.str.9@PAGE
Lloh45:
	add	x13, x13, l_.str.9@PAGEOFF
Lloh46:
	ldr	w12, [x12]
	tst	w12, w10
	csel	x12, x8, x13, eq
Lloh47:
	adrp	x13, _SDXC_HARD_WARE_LOCKED@GOTPAGE
Lloh48:
	ldr	x13, [x13, _SDXC_HARD_WARE_LOCKED@GOTPAGEOFF]
Lloh49:
	ldr	w13, [x13]
Lloh50:
	adrp	x14, l_.str.10@PAGE
Lloh51:
	add	x14, x14, l_.str.10@PAGEOFF
	tst	w13, w10
	csel	x13, x8, x14, eq
Lloh52:
	adrp	x14, _SDXC_START_BIT_ERROR@GOTPAGE
Lloh53:
	ldr	x14, [x14, _SDXC_START_BIT_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w14, [x14]
Lloh55:
	adrp	x15, l_.str.11@PAGE
Lloh56:
	add	x15, x15, l_.str.11@PAGEOFF
	tst	w14, w10
Lloh57:
	adrp	x14, _SDXC_END_BIT_ERROR@GOTPAGE
Lloh58:
	ldr	x14, [x14, _SDXC_END_BIT_ERROR@GOTPAGEOFF]
	csel	x15, x8, x15, eq
Lloh59:
	ldr	w14, [x14]
Lloh60:
	adrp	x16, l_.str.12@PAGE
Lloh61:
	add	x16, x16, l_.str.12@PAGEOFF
	tst	w14, w10
	csel	x8, x8, x16, eq
	stp	x15, x8, [sp, #32]
	stp	x12, x13, [sp, #16]
	stp	x9, x11, [sp]
Lloh62:
	adrp	x1, l_.str@PAGE
Lloh63:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SDXC_INTERRUPT_ERROR_BIT,4,2   ; @SDXC_INTERRUPT_ERROR_BIT
	.comm	_SDXC_RESP_TIMEOUT,4,2          ; @SDXC_RESP_TIMEOUT
	.comm	_SD_IO_SEND_OP_COND,8,3         ; @SD_IO_SEND_OP_COND
	.comm	_SD_IO_RW_DIRECT,8,3            ; @SD_IO_RW_DIRECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smc %d err, cmd %d,%s%s%s%s%s%s%s%s%s%s !!\n"

	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
l_.str.1:                               ; @.str.1
	.asciz	" WR"

l_.str.2:                               ; @.str.2
	.asciz	" RD"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_SDXC_RESP_ERROR,4,2            ; @SDXC_RESP_ERROR
l_.str.4:                               ; @.str.4
	.asciz	" RE"

	.comm	_SDXC_RESP_CRC_ERROR,4,2        ; @SDXC_RESP_CRC_ERROR
l_.str.5:                               ; @.str.5
	.asciz	" RCE"

	.comm	_SDXC_DATA_CRC_ERROR,4,2        ; @SDXC_DATA_CRC_ERROR
l_.str.6:                               ; @.str.6
	.asciz	" DCE"

l_.str.7:                               ; @.str.7
	.asciz	" RTO"

	.comm	_SDXC_DATA_TIMEOUT,4,2          ; @SDXC_DATA_TIMEOUT
l_.str.8:                               ; @.str.8
	.asciz	" DTO"

	.comm	_SDXC_FIFO_RUN_ERROR,4,2        ; @SDXC_FIFO_RUN_ERROR
l_.str.9:                               ; @.str.9
	.asciz	" FE"

	.comm	_SDXC_HARD_WARE_LOCKED,4,2      ; @SDXC_HARD_WARE_LOCKED
l_.str.10:                              ; @.str.10
	.asciz	" HL"

	.comm	_SDXC_START_BIT_ERROR,4,2       ; @SDXC_START_BIT_ERROR
l_.str.11:                              ; @.str.11
	.asciz	" SBE"

	.comm	_SDXC_END_BIT_ERROR,4,2         ; @SDXC_END_BIT_ERROR
l_.str.12:                              ; @.str.12
	.asciz	" EBE"

	.no_dead_strip	_sunxi_mmc_dump_errinfo
.subsections_via_symbols
