	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usdhi6_error_code
_usdhi6_error_code:                     ## @usdhi6_error_code
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_USDHI6_SD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USDHI6_SD_STOP_STP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_usdhi6_write
	movq	_USDHI6_SD_INFO2_RSP_TOUT@GOTPCREL(%rip), %rax
	movq	_USDHI6_SD_INFO2_TOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_7
## %bb.1:
	movq	_USDHI6_SD_RSP54@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usdhi6_read
	movq	%rax, %r15
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_7:
	movq	_USDHI6_SD_ERR_STS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usdhi6_read
	movq	%rax, %r14
	movq	_USDHI6_SD_ERR_STS1_CRC_NO_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_12
## %bb.8:
	movl	20(%rbx), %edi
	callq	_mmc_dev
	movslq	16(%rbx), %rcx
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.10:
	movq	(%rdx), %rdx
	movl	(%rdx), %r8d
	jmp	LBB0_11
LBB0_2:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_4:
	movq	_USDHI6_SD_ERR_STS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usdhi6_read
	movq	%rax, %r12
	movq	_USDHI6_WAIT_FOR_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	16(%rbx), %r14d
	movl	20(%rbx), %edi
	callq	_mmc_dev
	movl	16(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%r12, %rdx
	movq	%r15, %rcx
	cmpl	%r13d, %r14d
	jne	LBB0_6
## %bb.5:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_dev_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_6:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_9:
	movl	$-1, %r8d
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_12:
	movq	_USDHI6_SD_INFO2_ILA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_13
## %bb.14:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_13:
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
LBB0_15:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USDHI6_SD_STOP,4,2             ## @USDHI6_SD_STOP
	.comm	_USDHI6_SD_STOP_STP,4,2         ## @USDHI6_SD_STOP_STP
	.comm	_USDHI6_SD_INFO2_RSP_TOUT,4,2   ## @USDHI6_SD_INFO2_RSP_TOUT
	.comm	_USDHI6_SD_INFO2_TOUT,4,2       ## @USDHI6_SD_INFO2_TOUT
	.comm	_USDHI6_SD_RSP54,4,2            ## @USDHI6_SD_RSP54
	.comm	_USDHI6_SD_ERR_STS2,4,2         ## @USDHI6_SD_ERR_STS2
	.comm	_USDHI6_WAIT_FOR_CMD,4,2        ## @USDHI6_WAIT_FOR_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T-out sts 0x%x, resp 0x%x, state %u, CMD%d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_USDHI6_SD_ERR_STS1,4,2         ## @USDHI6_SD_ERR_STS1
	.comm	_USDHI6_SD_ERR_STS1_CRC_NO_ERROR,8,3 ## @USDHI6_SD_ERR_STS1_CRC_NO_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Err sts 0x%x, state %u, CMD%d\n"

	.comm	_USDHI6_SD_INFO2_ILA,4,2        ## @USDHI6_SD_INFO2_ILA
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_usdhi6_error_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usdhi6_error_code
_usdhi6_error_code:                     ; @usdhi6_error_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _USDHI6_SD_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USDHI6_SD_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _USDHI6_SD_STOP_STP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USDHI6_SD_STOP_STP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_usdhi6_write
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _USDHI6_SD_INFO2_RSP_TOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USDHI6_SD_INFO2_RSP_TOUT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _USDHI6_SD_INFO2_TOUT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _USDHI6_SD_INFO2_TOUT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _USDHI6_SD_RSP54@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USDHI6_SD_RSP54@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usdhi6_read
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x8]
	ldr	w21, [x8]
	b	LBB0_7
LBB0_3:
Lloh15:
	adrp	x8, _USDHI6_SD_ERR_STS1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USDHI6_SD_ERR_STS1@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usdhi6_read
Lloh18:
	adrp	x8, _USDHI6_SD_ERR_STS1_CRC_NO_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _USDHI6_SD_ERR_STS1_CRC_NO_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.4:
	mov	x20, x0
	ldr	w0, [x19, #20]
	bl	_mmc_dev
	ldrsw	x3, [x19, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	x8, [x8]
	ldr	w4, [x8]
	b	LBB0_12
LBB0_6:
	mov	w21, #-1
LBB0_7:
Lloh21:
	adrp	x8, _USDHI6_SD_ERR_STS2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _USDHI6_SD_ERR_STS2@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usdhi6_read
	mov	x22, x0
Lloh24:
	adrp	x8, _USDHI6_WAIT_FOR_CMD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _USDHI6_WAIT_FOR_CMD@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
	ldp	w24, w0, [x19, #16]
	bl	_mmc_dev
	ldr	w4, [x19, #16]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	cmp	w24, w23
	b.ne	LBB0_9
; %bb.8:
	mov	x2, x22
	mov	x3, x20
	mov	x5, x21
	bl	_dev_dbg
	b	LBB0_10
LBB0_9:
	str	x21, [sp]
	mov	x2, x22
	mov	x3, x20
	bl	_dev_warn
LBB0_10:
Lloh29:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	w4, #-1
LBB0_12:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
LBB0_13:
	ldr	w8, [x19]
Lloh33:
	adrp	x9, _USDHI6_SD_INFO2_ILA@GOTPAGE
Lloh34:
	ldr	x9, [x9, _USDHI6_SD_INFO2_ILA@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _EILSEQ@GOTPAGE
Lloh37:
	ldr	x10, [x10, _EILSEQ@GOTPAGEOFF]
Lloh38:
	adrp	x11, _EIO@GOTPAGE
Lloh39:
	ldr	x11, [x11, _EIO@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_USDHI6_SD_STOP,4,2             ; @USDHI6_SD_STOP
	.comm	_USDHI6_SD_STOP_STP,4,2         ; @USDHI6_SD_STOP_STP
	.comm	_USDHI6_SD_INFO2_RSP_TOUT,4,2   ; @USDHI6_SD_INFO2_RSP_TOUT
	.comm	_USDHI6_SD_INFO2_TOUT,4,2       ; @USDHI6_SD_INFO2_TOUT
	.comm	_USDHI6_SD_RSP54,4,2            ; @USDHI6_SD_RSP54
	.comm	_USDHI6_SD_ERR_STS2,4,2         ; @USDHI6_SD_ERR_STS2
	.comm	_USDHI6_WAIT_FOR_CMD,4,2        ; @USDHI6_WAIT_FOR_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T-out sts 0x%x, resp 0x%x, state %u, CMD%d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_USDHI6_SD_ERR_STS1,4,2         ; @USDHI6_SD_ERR_STS1
	.comm	_USDHI6_SD_ERR_STS1_CRC_NO_ERROR,8,3 ; @USDHI6_SD_ERR_STS1_CRC_NO_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Err sts 0x%x, state %u, CMD%d\n"

	.comm	_USDHI6_SD_INFO2_ILA,4,2        ; @USDHI6_SD_INFO2_ILA
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_usdhi6_error_code
.subsections_via_symbols
