	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msmsdcc_request
_msmsdcc_request:                       ## @msmsdcc_request
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_mmc_priv
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$0, 48(%rax)
	setne	%dil
	callq	_WARN_ON
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_WARN_ON
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	incl	24(%rbx)
	cmpq	$0, 56(%rbx)
	je	LBB0_6
## %bb.1:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
LBB0_4:
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	(%r15), %rax
	movl	%ecx, (%rax)
	jmp	LBB0_5
LBB0_6:
	movq	%r15, 48(%rbx)
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_msmsdcc_start_data
LBB0_9:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_msmsdcc_start_command
	cmpq	$0, 40(%rbx)
	je	LBB0_12
## %bb.10:
	movq	_MCI_CMDRESPEND@GOTPCREL(%rip), %r15
	movq	_MCI_CMDCRCFAIL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r15), %esi
	movq	_MCI_CMDTIMEOUT@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movq	_CMD_SPINMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_msmsdcc_spin_on_status
	testl	%eax, %eax
	je	LBB0_11
LBB0_12:
	incl	16(%rbx)
	addq	$12, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_mod_timer
	jmp	LBB0_13
LBB0_3:
	movq	(%r15), %rcx
	movl	$0, (%rcx)
	movl	12(%rax), %ecx
	imull	8(%rax), %ecx
	movl	%ecx, 4(%rax)
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
LBB0_11:
	movq	_MMCISTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%rbx), %rdi
	callq	_readl
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_msmsdcc_do_cmdirq
	movl	(%r12), %edi
	orl	(%r15), %edi
	orl	(%r13), %edi
	movq	_MMCICLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%rbx), %rsi
	callq	_writel
	incl	20(%rbx)
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.comm	_MCI_CMDRESPEND,4,2             ## @MCI_CMDRESPEND
	.comm	_MCI_CMDCRCFAIL,4,2             ## @MCI_CMDCRCFAIL
	.comm	_MCI_CMDTIMEOUT,4,2             ## @MCI_CMDTIMEOUT
	.comm	_CMD_SPINMAX,4,2                ## @CMD_SPINMAX
	.comm	_MMCISTATUS,8,3                 ## @MMCISTATUS
	.comm	_MMCICLEAR,8,3                  ## @MMCICLEAR
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.no_dead_strip	_msmsdcc_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msmsdcc_request
_msmsdcc_request:                       ; @msmsdcc_request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x22, x0
	bl	_mmc_priv
	mov	x20, x0
	ldr	x8, [x0, #48]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _MMC_DATA_READ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MMC_DATA_READ@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x21]
	str	w8, [x9]
	b	LBB0_11
LBB0_4:
	str	x21, [x20, #48]
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_7
; %bb.5:
	ldr	w8, [x1]
Lloh6:
	adrp	x9, _MMC_DATA_READ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MMC_DATA_READ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_msmsdcc_start_data
LBB0_7:
	ldr	x1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_msmsdcc_start_command
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_9
; %bb.8:
Lloh9:
	adrp	x21, _MCI_CMDRESPEND@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MCI_CMDRESPEND@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh11:
	adrp	x22, _MCI_CMDCRCFAIL@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MCI_CMDCRCFAIL@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh13:
	adrp	x23, _MCI_CMDTIMEOUT@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MCI_CMDTIMEOUT@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w1, w8, w9
Lloh15:
	adrp	x8, _CMD_SPINMAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CMD_SPINMAX@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_msmsdcc_spin_on_status
	cbz	w0, LBB0_12
LBB0_9:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
Lloh18:
	adrp	x8, _jiffies@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	add	x0, x20, #12
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _HZ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_mod_timer
	b	LBB0_13
LBB0_10:
	ldr	x9, [x21]
	str	wzr, [x9]
	ldp	w9, w10, [x8, #8]
	mul	w9, w10, w9
	str	w9, [x8, #4]
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mmc_request_done
LBB0_12:
	ldr	x8, [x20, #32]
Lloh24:
	adrp	x9, _MMCISTATUS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MMCISTATUS@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x1, x0
	mov	x0, x20
	bl	_msmsdcc_do_cmdirq
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w0, w8, w9
	ldr	x8, [x20, #32]
Lloh27:
	adrp	x9, _MMCICLEAR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MMCICLEAR@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.comm	_MCI_CMDRESPEND,4,2             ; @MCI_CMDRESPEND
	.comm	_MCI_CMDCRCFAIL,4,2             ; @MCI_CMDCRCFAIL
	.comm	_MCI_CMDTIMEOUT,4,2             ; @MCI_CMDTIMEOUT
	.comm	_CMD_SPINMAX,4,2                ; @CMD_SPINMAX
	.comm	_MMCISTATUS,8,3                 ; @MMCISTATUS
	.comm	_MMCICLEAR,8,3                  ; @MMCICLEAR
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_msmsdcc_request
.subsections_via_symbols
