	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_prepare_sbc
_mmc_test_prepare_sbc:                  ## @mmc_test_prepare_sbc
	.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
	movq	%rsi, %rbx
	cmpq	$0, (%rsi)
	je	LBB0_5
## %bb.1:
	movl	%edx, %r14d
	movq	(%rdi), %r15
	movl	4(%r15), %edi
	callq	_mmc_host_cmd23
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_mmc_test_card_cmd23
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_mmc_op_multi
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_MMC_QUIRK_BLK_NO_CMD23@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_6
LBB0_5:
	movq	$0, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MMC_SET_BLOCK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	%r14d, (%rcx)
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rax
	movq	_MMC_CMD_AC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, 4(%rcx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_QUIRK_BLK_NO_CMD23,4,2     ## @MMC_QUIRK_BLK_NO_CMD23
	.comm	_MMC_SET_BLOCK_COUNT,4,2        ## @MMC_SET_BLOCK_COUNT
	.comm	_MMC_RSP_R1,4,2                 ## @MMC_RSP_R1
	.comm	_MMC_CMD_AC,4,2                 ## @MMC_CMD_AC
	.no_dead_strip	_mmc_test_prepare_sbc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_test_prepare_sbc
_mmc_test_prepare_sbc:                  ; @mmc_test_prepare_sbc
	.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	x20, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x2
	ldr	x21, [x0]
	ldr	w0, [x21, #4]
	bl	_mmc_host_cmd23
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_mmc_test_card_cmd23
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_mmc_op_multi
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _MMC_QUIRK_BLK_NO_CMD23@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_QUIRK_BLK_NO_CMD23@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_5:
	str	xzr, [x20]
LBB0_6:
	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_7:
Lloh3:
	adrp	x8, _MMC_SET_BLOCK_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMC_SET_BLOCK_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w19, [x9]
Lloh6:
	adrp	x10, _MMC_RSP_R1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_RSP_R1@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _MMC_CMD_AC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MMC_CMD_AC@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w10, w11, w10
	stp	w10, w8, [x9, #4]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_QUIRK_BLK_NO_CMD23,4,2     ; @MMC_QUIRK_BLK_NO_CMD23
	.comm	_MMC_SET_BLOCK_COUNT,4,2        ; @MMC_SET_BLOCK_COUNT
	.comm	_MMC_RSP_R1,4,2                 ; @MMC_RSP_R1
	.comm	_MMC_CMD_AC,4,2                 ; @MMC_CMD_AC
	.no_dead_strip	_mmc_test_prepare_sbc
.subsections_via_symbols
