	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_blk_status_error
_mmc_blk_status_error:                  ## @mmc_blk_status_error
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_req_to_mmc_queue_req
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_mmc_host_is_spi
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_mmc_blk_stop_err_bits
	movl	%eax, %ecx
	movq	8(%r15), %rdx
	movq	_CMD_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %eax
	testl	%esi, (%rdx)
	jne	LBB0_5
## %bb.2:
	movq	(%r15), %rdx
	movl	(%rdx), %edx
	orl	%r14d, %edx
	testl	%ecx, %edx
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_rq_data_dir
	movq	%rax, %rcx
	movq	_WRITE@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_mmc_blk_in_tran_state
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ERRORS,4,2                 ## @CMD_ERRORS
	.comm	_WRITE,8,3                      ## @WRITE
	.no_dead_strip	_mmc_blk_status_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_blk_status_error
_mmc_blk_status_error:                  ; @mmc_blk_status_error
	.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, x1
	mov	x20, x0
	bl	_req_to_mmc_queue_req
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_mmc_host_is_spi
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_mmc_blk_stop_err_bits
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _CMD_ERRORS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_ERRORS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	w8, [x8]
	orr	w8, w8, w19
	tst	w8, w0
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #1
LBB0_5:
	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
	ret
LBB0_6:
	mov	x0, x20
	bl	_rq_data_dir
Lloh3:
	adrp	x8, _WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_1
; %bb.7:
	mov	x0, x19
	bl	_mmc_blk_in_tran_state
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ERRORS,4,2                 ; @CMD_ERRORS
	.comm	_WRITE,8,3                      ; @WRITE
	.no_dead_strip	_mmc_blk_status_error
.subsections_via_symbols
