	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_seq_perf
_mmc_test_seq_perf:                     ## @mmc_test_seq_perf
	.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	%edx, %r14d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %r13d
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	16(%rdi), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovbq	%rax, %rcx
	imulq	24(%rdi), %rcx
	cmpq	%r13, %rcx
	cmovael	%r13d, %ecx
	movl	%ecx, %r13d
LBB0_2:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_mmc_test_capacity
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$2, %ebx
	movl	%ebx, %r12d
	shll	$9, %r12d
	cmpl	%r14d, %r12d
	cmovael	%r14d, %r12d
	xorl	%r15d, %r15d
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %rdi
	callq	_ktime_get_ts64
	cmpl	%r12d, %r13d
	ja	LBB0_6
## %bb.3:
	movl	%r13d, %r12d
	shrl	$9, %r12d
	andl	$-65536, %ebx                   ## imm = 0xFFFF0000
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r14d
	cmovael	%eax, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_mmc_test_area_io
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%r12d, %ebx
	incl	%r15d
	cmpl	%r14d, %r15d
	jne	LBB0_4
LBB0_6:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ktime_get_ts64
	leaq	-48(%rbp), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %r8
	callq	_mmc_test_print_avg_rate
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_mmc_test_seq_perf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_test_seq_perf
_mmc_test_seq_perf:                     ; @mmc_test_seq_perf
	.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	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w20, [x0, #8]
	cbz	w3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x19, #16]
	cmp	x9, x8
	csel	x8, x9, x8, lo
	mul	x8, x10, x8
	cmp	x8, x20
	csel	w20, w8, w20, lo
LBB0_2:
	ldr	w0, [x19]
	bl	_mmc_test_capacity
	add	w8, w0, #3
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w24, w8, #2
	lsl	w8, w24, #9
	cmp	w8, w23
	csel	w25, w8, w23, lo
	udiv	w23, w25, w20
	add	x0, sp, #8
	bl	_ktime_get_ts64
	cmp	w20, w25
	b.hi	LBB0_6
; %bb.3:
	mov	w25, #0
	lsr	w26, w20, #9
	and	w24, w24, #0xffff0000
	cmp	w23, #1
	csinc	w27, w23, wzr, hi
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	mov	x4, x21
	mov	w5, #0
	bl	_mmc_test_area_io
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, w26
	add	w25, w25, #1
	cmp	w25, w27
	b.ne	LBB0_4
LBB0_6:
	mov	x0, sp
	bl	_ktime_get_ts64
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_mmc_test_print_avg_rate
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_mmc_test_seq_perf
.subsections_via_symbols
