	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_prepare_broken_mrq
_mmc_test_prepare_broken_mrq:           ## @mmc_test_prepare_broken_mrq
	.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	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$1, %edi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	16(%rbx), %rax
	cmpl	$2, (%rax)
	jl	LBB0_9
## %bb.5:
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.7:
	movq	_MMC_READ_SINGLE_BLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	_MMC_SEND_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r14), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_6:
	movq	_MMC_WRITE_BLOCK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	$0, 8(%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_WRITE_BLOCK,4,2            ## @MMC_WRITE_BLOCK
	.comm	_MMC_READ_SINGLE_BLOCK,4,2      ## @MMC_READ_SINGLE_BLOCK
	.comm	_MMC_SEND_STATUS,4,2            ## @MMC_SEND_STATUS
	.no_dead_strip	_mmc_test_prepare_broken_mrq
.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_broken_mrq
_mmc_test_prepare_broken_mrq:           ; @mmc_test_prepare_broken_mrq
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_7
	b	LBB0_4
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_7
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _MMC_WRITE_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_WRITE_BLOCK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MMC_READ_SINGLE_BLOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC_READ_SINGLE_BLOCK@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #4]
	str	xzr, [x19, #8]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _MMC_SEND_STATUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MMC_SEND_STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	x10, [x20]
	ldr	w10, [x10]
	lsl	w10, w10, #16
	stp	w10, w8, [x9]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_WRITE_BLOCK,4,2            ; @MMC_WRITE_BLOCK
	.comm	_MMC_READ_SINGLE_BLOCK,4,2      ; @MMC_READ_SINGLE_BLOCK
	.comm	_MMC_SEND_STATUS,4,2            ; @MMC_SEND_STATUS
	.no_dead_strip	_mmc_test_prepare_broken_mrq
.subsections_via_symbols
