	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_switch_status_error
_mmc_switch_status_error:               ## @mmc_switch_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_mmc_host_is_spi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_R1_SPI_ILLEGAL_COMMAND@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
LBB0_6:
	movq	_EBADMSG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movl	%r14d, %edi
	callq	_R1_STATUS
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_pr_warn
LBB0_5:
	movq	_R1_SWITCH_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R1_SPI_ILLEGAL_COMMAND,4,2     ## @R1_SPI_ILLEGAL_COMMAND
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unexpected status %#x after switch\n"

	.comm	_R1_SWITCH_ERROR,4,2            ## @R1_SWITCH_ERROR
	.no_dead_strip	_mmc_switch_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_switch_status_error
_mmc_switch_status_error:               ; @mmc_switch_status_error
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_mmc_host_is_spi
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _R1_SPI_ILLEGAL_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R1_SPI_ILLEGAL_COMMAND@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_R1_STATUS
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_mmc_hostname
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_warn
LBB0_4:
Lloh4:
	adrp	x8, _R1_SWITCH_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R1_SWITCH_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_R1_SPI_ILLEGAL_COMMAND,4,2     ; @R1_SPI_ILLEGAL_COMMAND
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unexpected status %#x after switch\n"

	.comm	_R1_SWITCH_ERROR,4,2            ; @R1_SWITCH_ERROR
	.no_dead_strip	_mmc_switch_status_error
.subsections_via_symbols
