	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dw_mci_start_request
___dw_mci_start_request:                ## @__dw_mci_start_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	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%rsi), %rax
	movq	%rax, 56(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movups	%xmm0, 32(%rdi)
	movq	$0, 48(%rdi)
	movq	8(%rdx), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	_TMOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	callq	_mci_writel
	movq	_BYTCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	imull	(%r15), %edx
	movq	%r13, %rdi
	callq	_mci_writel
	movq	_BLKSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r13, %rdi
	callq	_mci_writel
LBB0_2:
	movl	4(%r12), %edi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_dw_mci_prepare_command
	movl	%eax, %r14d
	movq	_DW_MMC_CARD_NEED_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SDMMC_CMD_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	orl	%r14d, %ebx
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_dw_mci_submit_data
	xorl	%eax, %eax
	callq	_wmb
LBB0_6:
	movq	%r13, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_dw_mci_start_command
	movq	(%r14), %rax
	movq	_SD_SWITCH_VOLTAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	leaq	16(%r13), %rbx
	leaq	4(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_EVENT_CMD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	8(%r13), %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	movq	%r14, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	callq	_mod_timer
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_dw_mci_prep_stop_abort
	movl	%eax, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMOUT,4,2                      ## @TMOUT
	.comm	_BYTCNT,4,2                     ## @BYTCNT
	.comm	_BLKSIZ,4,2                     ## @BLKSIZ
	.comm	_DW_MMC_CARD_NEED_INIT,4,2      ## @DW_MMC_CARD_NEED_INIT
	.comm	_SDMMC_CMD_INIT,4,2             ## @SDMMC_CMD_INIT
	.comm	_SD_SWITCH_VOLTAGE,8,3          ## @SD_SWITCH_VOLTAGE
	.comm	_EVENT_CMD_COMPLETE,4,2         ## @EVENT_CMD_COMPLETE
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	___dw_mci_start_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dw_mci_start_request
___dw_mci_start_request:                ; @__dw_mci_start_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	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	movi.2d	v0, #0000000000000000
	mov	x21, x0
	stp	q0, q0, [x21, #16]!
	stp	xzr, x8, [x21, #32]
	ldr	x22, [x2, #8]
	cbz	x22, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _TMOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMOUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_mci_writel
Lloh3:
	adrp	x8, _BYTCNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BYTCNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w8, w9, [x22]
	mul	w2, w9, w8
	mov	x0, x19
	bl	_mci_writel
Lloh6:
	adrp	x8, _BLKSIZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BLKSIZ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_mci_writel
LBB0_2:
	ldr	w0, [x23, #4]
	mov	x1, x20
	bl	_dw_mci_prepare_command
	mov	x24, x0
Lloh9:
	adrp	x8, _DW_MMC_CARD_NEED_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DW_MMC_CARD_NEED_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_and_clear_bit
Lloh12:
	adrp	x8, _SDMMC_CMD_INIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDMMC_CMD_INIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w23, w8, w24
	cbz	x22, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_dw_mci_submit_data
	bl	_wmb
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_dw_mci_start_command
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _SD_SWITCH_VOLTAGE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SD_SWITCH_VOLTAGE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh18:
	adrp	x8, _EVENT_CMD_COMPLETE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVENT_CMD_COMPLETE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	w0, LBB0_7
; %bb.6:
	add	x21, x19, #8
Lloh21:
	adrp	x8, _jiffies@GOTPAGE
Lloh22:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh23:
	ldr	x23, [x8]
	mov	w0, #500
	bl	_msecs_to_jiffies
	add	x8, x23, x0
	add	x1, x8, #1
	mov	x0, x21
	bl	_mod_timer
LBB0_7:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_dw_mci_prep_stop_abort
	str	w0, [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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TMOUT,4,2                      ; @TMOUT
	.comm	_BYTCNT,4,2                     ; @BYTCNT
	.comm	_BLKSIZ,4,2                     ; @BLKSIZ
	.comm	_DW_MMC_CARD_NEED_INIT,4,2      ; @DW_MMC_CARD_NEED_INIT
	.comm	_SDMMC_CMD_INIT,4,2             ; @SDMMC_CMD_INIT
	.comm	_SD_SWITCH_VOLTAGE,8,3          ; @SD_SWITCH_VOLTAGE
	.comm	_EVENT_CMD_COMPLETE,4,2         ; @EVENT_CMD_COMPLETE
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	___dw_mci_start_request
.subsections_via_symbols
