	.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, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %rax
	movl	$1, %edi
	testq	%rsi, %rsi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	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), %r15d
	movl	16(%rbp), %r14d
	callq	_BUG_ON
	cmpl	$2, %r13d
	jb	LBB0_10
## %bb.5:
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.7:
	movq	_MMC_READ_MULTIPLE_BLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.12:
	movq	_MMC_READ_SINGLE_BLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	movq	_MMC_WRITE_MULTIPLE_BLOCK@GOTPCREL(%rip), %rax
LBB0_8:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	%edx, (%rcx)
	movq	_MMC_RSP_R1@GOTPCREL(%rip), %rax
	movq	_MMC_CMD_ADTC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, 4(%rcx)
	jmp	LBB0_9
LBB0_11:
	movq	_MMC_WRITE_BLOCK@GOTPCREL(%rip), %rax
LBB0_13:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	%edx, (%rcx)
	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, %r13d
	jne	LBB0_9
## %bb.14:
	movq	$0, 8(%rbx)
	jmp	LBB0_15
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_15:
	movq	(%rbx), %rdi
	movl	%r14d, (%rdi)
	movl	%r13d, 4(%rdi)
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.17:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movq	%r9, 16(%rdi)
	movl	%r12d, 8(%rdi)
	movl	(%r8), %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	x20, x7
	mov	x23, x6
	mov	x24, x5
	mov	x26, x4
	mov	x19, x3
	mov	x22, x2
	mov	x25, x1
	mov	x21, x0
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x25]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x25, #8]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	bl	_BUG_ON
	cmp	w24, #2
	b.lo	LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MMC_READ_MULTIPLE_BLOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC_READ_MULTIPLE_BLOCK@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	x9, [x25, #16]
	str	w26, [x9]
Lloh4:
	adrp	x10, _MMC_RSP_R1@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MMC_RSP_R1@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
Lloh7:
	adrp	x11, _MMC_CMD_ADTC@GOTPAGE
Lloh8:
	ldr	x11, [x11, _MMC_CMD_ADTC@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	orr	w10, w11, w10
	stp	w10, w8, [x9, #4]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _MMC_WRITE_BLOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMC_WRITE_BLOCK@GOTPAGEOFF]
Lloh12:
	adrp	x9, _MMC_READ_SINGLE_BLOCK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MMC_READ_SINGLE_BLOCK@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	x9, [x25, #16]
	str	w26, [x9]
Lloh14:
	adrp	x10, _MMC_RSP_R1@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MMC_RSP_R1@GOTPAGEOFF]
Lloh16:
	adrp	x11, _MMC_CMD_ADTC@GOTPAGE
Lloh17:
	ldr	x11, [x11, _MMC_CMD_ADTC@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	ldr	w11, [x11]
	orr	w10, w11, w10
	stp	w10, w8, [x9, #4]
	cmp	w24, #1
	b.ne	LBB0_9
; %bb.8:
	str	xzr, [x25, #8]
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x8, _MMC_STOP_TRANSMISSION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MMC_STOP_TRANSMISSION@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	x9, [x25, #8]
	str	w8, [x9, #16]
	str	xzr, [x9, #8]
Lloh23:
	adrp	x8, _MMC_RSP_R1B@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MMC_RSP_R1B@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x10, _MMC_CMD_AC@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MMC_CMD_AC@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_10:
	ldr	x0, [x25]
Lloh29:
	adrp	x8, _MMC_DATA_WRITE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MMC_DATA_WRITE@GOTPAGEOFF]
	stp	w23, w24, [x0]
Lloh31:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x0, #24]
	str	x22, [x0, #16]
	str	w19, [x0, #8]
	ldr	w1, [x21]
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.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
