	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_prepare_mrq
_mmc_test_prepare_mrq:                  ## @mmc_test_prepare_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$1, %edi
	testq	%rsi, %rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
LBB0_4:
	movl	24(%rbp), %r13d
	movl	16(%rbp), %r14d
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	cmpl	$2, %r15d
	movq	_MMC_WRITE_BLOCK@GOTPCREL(%rip), %rax
	cmovaeq	_MMC_WRITE_MULTIPLE_BLOCK@GOTPCREL(%rip), %rax
	movq	_MMC_READ_SINGLE_BLOCK@GOTPCREL(%rip), %rcx
	cmovaeq	_MMC_READ_MULTIPLE_BLOCK@GOTPCREL(%rip), %rcx
	testl	%r13d, %r13d
	cmovneq	%rax, %rcx
	movl	(%rcx), %eax
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rcx)
	movl	(%r12), %edi
	callq	_mmc_card_blockaddr
	movq	16(%rbx), %rcx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	shll	$9, (%rcx)
LBB0_7:
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rax
	movq	_MMC_CMD_ADTC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, 4(%rcx)
	cmpl	$1, %r15d
	jne	LBB0_9
## %bb.8:
	movq	$0, 8(%rbx)
	jmp	LBB0_10
LBB0_9:
	movq	_MMC_STOP_TRANSMISSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movq	$0, 8(%rcx)
	movq	_MMC_RSP_R1B@GOTPCREL(%rip), %rax
	movq	_MMC_CMD_AC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rcx)
LBB0_10:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	(%rbx), %rax
	movl	%ecx, (%rax)
	movl	%r15d, 4(%rax)
	testl	%r13d, %r13d
	jne	LBB0_11
## %bb.12:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_11:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rcx
LBB0_13:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	%rsi, 16(%rax)
	movl	%edx, 8(%rax)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mmc_test_prepare_sbc
	movq	(%rbx), %rdi
	movl	(%r12), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_set_data_timeout           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_WRITE_MULTIPLE_BLOCK,4,2   ## @MMC_WRITE_MULTIPLE_BLOCK
	.comm	_MMC_READ_MULTIPLE_BLOCK,4,2    ## @MMC_READ_MULTIPLE_BLOCK
	.comm	_MMC_WRITE_BLOCK,4,2            ## @MMC_WRITE_BLOCK
	.comm	_MMC_READ_SINGLE_BLOCK,4,2      ## @MMC_READ_SINGLE_BLOCK
	.comm	_MMC_RSP_R1,4,2                 ## @MMC_RSP_R1
	.comm	_MMC_CMD_ADTC,4,2               ## @MMC_CMD_ADTC
	.comm	_MMC_STOP_TRANSMISSION,4,2      ## @MMC_STOP_TRANSMISSION
	.comm	_MMC_RSP_R1B,4,2                ## @MMC_RSP_R1B
	.comm	_MMC_CMD_AC,4,2                 ## @MMC_CMD_AC
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.no_dead_strip	_mmc_test_prepare_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_mrq
_mmc_test_prepare_mrq:                  ; @mmc_test_prepare_mrq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x7
	mov	x25, x6
	mov	x19, x5
	mov	x26, x4
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x1, LBB0_8
; %bb.1:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MMC_WRITE_BLOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC_WRITE_BLOCK@GOTPAGEOFF]
	cmp	w19, #1
	csel	x8, x8, x9, hi
Lloh4:
	adrp	x9, _MMC_READ_MULTIPLE_BLOCK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MMC_READ_MULTIPLE_BLOCK@GOTPAGEOFF]
Lloh6:
	adrp	x10, _MMC_READ_SINGLE_BLOCK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MMC_READ_SINGLE_BLOCK@GOTPAGEOFF]
	csel	x9, x9, x10, hi
	cmp	w23, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
	str	w8, [x9, #8]
	str	w26, [x9]
	ldr	w0, [x20]
	bl	_mmc_card_blockaddr
	ldr	x8, [x21, #16]
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w9, [x8]
	lsl	w9, w9, #9
	str	w9, [x8]
LBB0_6:
Lloh8:
	adrp	x9, _MMC_RSP_R1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMC_RSP_R1@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _MMC_CMD_ADTC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MMC_CMD_ADTC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8, #4]
	cmp	w19, #1
	b.ne	LBB0_10
; %bb.7:
	str	xzr, [x21, #8]
	b	LBB0_11
LBB0_8:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh14:
	adrp	x8, _MMC_STOP_TRANSMISSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MMC_STOP_TRANSMISSION@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	str	w8, [x9, #16]
	str	xzr, [x9, #8]
Lloh17:
	adrp	x8, _MMC_RSP_R1B@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMC_RSP_R1B@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x10, _MMC_CMD_AC@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MMC_CMD_AC@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_11:
	ldr	x8, [x21]
	stp	w25, w19, [x8]
Lloh23:
	adrp	x9, _MMC_DATA_WRITE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh25:
	adrp	x10, _MMC_DATA_READ@GOTPAGE
Lloh26:
	ldr	x10, [x10, _MMC_DATA_READ@GOTPAGEOFF]
	cmp	w23, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	str	w9, [x8, #24]
	str	x24, [x8, #16]
	str	w22, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_mmc_test_prepare_sbc
	ldr	x0, [x21]
	ldr	w1, [x20]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mmc_set_data_timeout
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_WRITE_MULTIPLE_BLOCK,4,2   ; @MMC_WRITE_MULTIPLE_BLOCK
	.comm	_MMC_READ_MULTIPLE_BLOCK,4,2    ; @MMC_READ_MULTIPLE_BLOCK
	.comm	_MMC_WRITE_BLOCK,4,2            ; @MMC_WRITE_BLOCK
	.comm	_MMC_READ_SINGLE_BLOCK,4,2      ; @MMC_READ_SINGLE_BLOCK
	.comm	_MMC_RSP_R1,4,2                 ; @MMC_RSP_R1
	.comm	_MMC_CMD_ADTC,4,2               ; @MMC_CMD_ADTC
	.comm	_MMC_STOP_TRANSMISSION,4,2      ; @MMC_STOP_TRANSMISSION
	.comm	_MMC_RSP_R1B,4,2                ; @MMC_RSP_R1B
	.comm	_MMC_CMD_AC,4,2                 ; @MMC_CMD_AC
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.no_dead_strip	_mmc_test_prepare_mrq
.subsections_via_symbols
