	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_ongoing_transfer
_mmc_test_ongoing_transfer:             ## @mmc_test_ongoing_transfer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -72(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_mmc_test_req_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, %r10
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%r13), %r15
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	%r13, %rax
	addq	$8, %rax
	movq	%rax, 32(%r13)
LBB0_3:
	movl	$1, (%r15)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	20(%rbx), %edx
	movl	8(%rbx), %r9d
	movl	16(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	pushq	%r10
	pushq	$512                            ## imm = 0x200
	callq	_mmc_test_prepare_mrq
	addq	$16, %rsp
	testl	%r14d, %r14d
	movq	%rbx, %r14
	movq	%r13, %rbx
	je	LBB0_6
## %bb.4:
	cmpl	$2, 8(%r14)
	jl	LBB0_6
## %bb.5:
	cmpq	$0, 32(%rbx)
	je	LBB0_37
LBB0_6:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_mmc_test_start_areq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_41
	jmp	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_42
LBB0_9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_mmc_wait_for_req
LBB0_10:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	$3000, %edi                     ## imm = 0xBB8
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %r14
	movq	%rbx, %rsi
	callq	_mmc_test_send_status
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, %rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mmc_test_start_areq
	movl	%eax, %r15d
	jmp	LBB0_23
LBB0_14:
	addq	%r12, %r15
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, %rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax), %r12d
	movq	_R1_ERROR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_43
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_mmc_is_req_done
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_44
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_45
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r12d, %edi
	callq	_R1_CURRENT_STATE
	movq	_R1_STATE_TRAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mmc_test_send_status
	testl	%eax, %eax
	je	LBB0_15
## %bb.21:
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_22:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	%rdx, %rsi
	callq	_mmc_wait_for_req_done
	xorl	%r15d, %r15d
LBB0_23:
	movq	24(%rbx), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.24:
	cmpq	$0, 8(%rax)
	je	LBB0_27
LBB0_25:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_mmc_wait_for_cmd
	testl	%r15d, %r15d
	jne	LBB0_41
## %bb.26:
	movl	%eax, %r15d
	jmp	LBB0_28
LBB0_27:
	cmpq	$0, 32(%rbx)
	je	LBB0_25
LBB0_28:
	testl	%r15d, %r15d
	jne	LBB0_41
## %bb.29:
	testl	%r13d, %r13d
	je	LBB0_31
## %bb.30:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_mmc_hostname
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_pr_info
LBB0_31:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_mmc_test_check_result
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_41
## %bb.32:
	movq	%r14, %rdi
	callq	_mmc_test_wait_busy
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_41
## %bb.33:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_36
## %bb.34:
	movl	8(%r14), %eax
	shll	$9, %eax
	addl	$512, %eax                      ## imm = 0x200
	cmpl	12(%r14), %eax
	jle	LBB0_36
## %bb.35:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_mmc_hostname
	movl	8(%r14), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_pr_info
LBB0_36:
	movl	%r13d, %r15d
	jmp	LBB0_41
LBB0_37:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mmc_host_cmd23
	testq	%rax, %rax
	jne	LBB0_39
## %bb.38:
	movq	_RESULT_UNSUP_HOST@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_39:
	movq	_RESULT_UNSUP_CARD@GOTPCREL(%rip), %rax
LBB0_40:
	movl	(%rax), %r15d
LBB0_41:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_42:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_44:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mmc_hostname
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pr_info
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_45:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RESULT_UNSUP_CARD,4,2          ## @RESULT_UNSUP_CARD
	.comm	_RESULT_UNSUP_HOST,4,2          ## @RESULT_UNSUP_HOST
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_R1_ERROR,4,2                   ## @R1_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: timeout waiting for Tran state status %#x\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_R1_STATE_TRAN,8,3              ## @R1_STATE_TRAN
L_.str.1:                               ## @.str.1
	.asciz	"%s: Send Status failed: status %#x, error %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: %d commands completed during transfer of %u blocks\n"

	.no_dead_strip	_mmc_test_ongoing_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_test_ongoing_transfer
_mmc_test_ongoing_transfer:             ; @mmc_test_ongoing_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x5
	mov	x26, x4
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x23, x2
	mov	x27, x1
	mov	x20, x0
	bl	_mmc_test_req_alloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x24, [x8]
	add	x22, x0, #16
	cbz	w23, LBB0_3
; %bb.2:
	add	x8, x19, #8
	str	x8, [x19, #32]
LBB0_3:
	mov	w8, #1
	str	w8, [x22]
	ldp	w3, w2, [x20, #16]
	ldr	w5, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x4, x27
	mov	w6, #512
	mov	x7, x26
	bl	_mmc_test_prepare_mrq
	cbz	w23, LBB0_6
; %bb.4:
	ldr	w8, [x20, #8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_38
LBB0_6:
	cbz	w25, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	bl	_mmc_test_start_areq
	mov	x28, x0
	cbnz	w0, LBB0_39
	b	LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_40
LBB0_9:
	mov	x0, x24
	mov	x1, x22
	bl	_mmc_wait_for_req
LBB0_10:
Lloh3:
	adrp	x21, _jiffies@GOTPAGE
Lloh4:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x26, [x21]
	mov	w0, #3000
	bl	_msecs_to_jiffies
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mmc_test_send_status
	cbz	w0, LBB0_15
; %bb.11:
	mov	x27, x0
	mov	w26, #0
LBB0_12:
	mov	w23, #1
LBB0_13:
	cbz	w25, LBB0_23
; %bb.14:
	mov	x0, x20
	mov	x1, #0
	mov	x2, x22
	bl	_mmc_test_start_areq
	mov	x28, x0
	b	LBB0_24
LBB0_15:
	add	x28, x23, x26
	mov	w23, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w26, [x8]
Lloh5:
	adrp	x8, _R1_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R1_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w26
	b.ne	LBB0_42
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_mmc_is_req_done
	cbnz	x0, LBB0_41
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x21]
	mov	x1, x28
	bl	_time_after
	cbnz	w0, LBB0_43
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_45
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x26
	bl	_R1_CURRENT_STATE
Lloh8:
	adrp	x8, _R1_STATE_TRAN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R1_STATE_TRAN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_41
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w23, w23, #1
	mov	x0, x20
	mov	x1, x19
	bl	_mmc_test_send_status
	cbz	w0, LBB0_16
; %bb.22:
	mov	x27, x0
	b	LBB0_13
LBB0_23:
	ldr	x8, [x20]
	ldr	x0, [x8]
	mov	x1, x22
	bl	_mmc_wait_for_req_done
	mov	w28, #0
LBB0_24:
	ldr	x8, [x19, #24]
	ldr	x1, [x8]
	cbz	x1, LBB0_29
; %bb.25:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_28
LBB0_26:
	mov	x0, x24
	mov	w2, #0
	bl	_mmc_wait_for_cmd
	cbnz	w28, LBB0_39
; %bb.27:
	mov	x28, x0
	b	LBB0_29
LBB0_28:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_26
LBB0_29:
	cbnz	w28, LBB0_39
; %bb.30:
	cbz	w27, LBB0_32
; %bb.31:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_mmc_hostname
	mov	x1, x0
	str	x27, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x26
	bl	_pr_info
LBB0_32:
	mov	x0, x20
	mov	x1, x22
	bl	_mmc_test_check_result
	mov	x28, x0
	cbnz	w0, LBB0_39
; %bb.33:
	mov	x0, x20
	bl	_mmc_test_wait_busy
	mov	x28, x0
	cbnz	w0, LBB0_39
; %bb.34:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_37
; %bb.35:
	ldp	w8, w9, [x20, #8]
	lsl	w8, w8, #9
	add	w8, w8, #512
	cmp	w8, w9
	b.le	LBB0_37
; %bb.36:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_mmc_hostname
	mov	x1, x0
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x23
	bl	_pr_info
LBB0_37:
	mov	x28, x27
	b	LBB0_39
LBB0_38:
	mov	x0, x24
	bl	_mmc_host_cmd23
Lloh15:
	adrp	x8, _RESULT_UNSUP_CARD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RESULT_UNSUP_CARD@GOTPAGEOFF]
Lloh17:
	adrp	x9, _RESULT_UNSUP_HOST@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RESULT_UNSUP_HOST@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w28, [x8]
LBB0_39:
	mov	x0, x19
	bl	_kfree
LBB0_40:
	mov	x0, x28
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_41:
	mov	w27, #0
	b	LBB0_13
LBB0_42:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_44
LBB0_43:
	mov	x0, x24
	bl	_mmc_hostname
	mov	x1, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x26
	bl	_pr_info
Lloh23:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_44:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_13
LBB0_45:
	mov	w27, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RESULT_UNSUP_CARD,4,2          ; @RESULT_UNSUP_CARD
	.comm	_RESULT_UNSUP_HOST,4,2          ; @RESULT_UNSUP_HOST
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_R1_ERROR,4,2                   ; @R1_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: timeout waiting for Tran state status %#x\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_R1_STATE_TRAN,8,3              ; @R1_STATE_TRAN
l_.str.1:                               ; @.str.1
	.asciz	"%s: Send Status failed: status %#x, error %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: %d commands completed during transfer of %u blocks\n"

	.no_dead_strip	_mmc_test_ongoing_transfer
.subsections_via_symbols
