	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_rnd_perf
_mmc_test_rnd_perf:                     ## @mmc_test_rnd_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r14
	shrq	$9, %r14
	movq	(%rdi), %rdi
	callq	_mmc_test_capacity
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$2, %r12d
	movq	(%rbx), %rcx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	divl	%r14d
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %rdi
	callq	_ktime_get_ts64
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$0, %r13d
	je	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rbp), %rdi
	callq	_ktime_get_ts64
	movl	-48(%rbp), %edi
	movl	-56(%rbp), %esi
	callq	_timespec64_sub
	cmpl	$9, %eax
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_mmc_test_rnd_num
	xorl	%ecx, %ecx
	cmpl	%r15d, %eax
	sete	%cl
	movl	%eax, %r15d
	subl	%ecx, %r15d
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	imull	%r15d, %r14d
	addl	%r12d, %r14d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_mmc_test_rnd_num
	imull	-88(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%eax, %r14d
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mmc_test_area_io
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jb	LBB0_2
LBB0_5:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_mmc_test_print_avg_rate
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.no_dead_strip	_mmc_test_rnd_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_rnd_perf
_mmc_test_rnd_perf:                     ; @mmc_test_rnd_perf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	mov	x22, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_mmc_test_capacity
	add	w8, w0, #3
	cmp	w0, #0
	csel	w21, w8, w0, lt
	ldr	x8, [x20]
	ldr	w24, [x8]
	add	x0, sp, #24
	bl	_ktime_get_ts64
Lloh0:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	w23, #0
	mov	w28, #0
	lsr	x27, x19, #9
	asr	w21, w21, #2
	udiv	w24, w21, w24
	udiv	w25, w24, w27
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	bl	_ktime_get_ts64
	ldr	w0, [sp, #16]
	ldr	w1, [sp, #24]
	bl	_timespec64_sub
	cmp	w0, #9
	b.gt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_mmc_test_rnd_num
	cmp	w0, w28
	cset	w8, eq
	sub	w28, w0, w8
	ldr	x8, [x20]
	ldr	w8, [x8]
	madd	w26, w28, w8, w21
	mov	x0, x25
	bl	_mmc_test_rnd_num
	madd	w2, w0, w27, w26
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	mov	w4, #0
	mov	w5, #0
	bl	_mmc_test_area_io
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
Lloh3:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, w8
	b.lo	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_8
; %bb.7:
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_mmc_test_print_avg_rate
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.no_dead_strip	_mmc_test_rnd_perf
.subsections_via_symbols
