	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_profile_seq_trim_perf
_mmc_test_profile_seq_trim_perf:        ## @mmc_test_profile_seq_trim_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_mmc_can_trim
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	(%r13), %edi
	callq	_mmc_can_erase
	testl	%eax, %eax
	je	LBB0_15
## %bb.2:
	xorl	%eax, %eax
	cmpq	$512, 8(%r13)                   ## imm = 0x200
	jb	LBB0_17
## %bb.3:
	movl	$512, %r14d                     ## imm = 0x200
	leaq	-48(%rbp), %r15
	jmp	LBB0_6
LBB0_4:
	movq	_RESULT_UNSUP_CARD@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_ktime_get_ts64
	movq	%r13, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	leaq	-48(%rbp), %r15
	movq	%r15, %rcx
	movq	%r12, %r8
	callq	_mmc_test_print_avg_rate
	addq	%r14, %r14
	xorl	%eax, %eax
	cmpq	8(%r13), %r14
	ja	LBB0_17
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%r13, %rdi
	callq	_mmc_test_area_erase
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_mmc_test_area_fill
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rax
	movq	%rax, %rcx
	orq	%r14, %rcx
	shrq	$32, %rcx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r13), %r12d
	movq	%r15, %rdi
	callq	_ktime_get_ts64
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	shrq	$9, %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	movq	_MMC_TRIM_ARG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_mmc_erase
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	addl	%r14d, %r12d
	incl	%r15d
	cmpl	%ebx, %r15d
	jne	LBB0_13
	jmp	LBB0_5
LBB0_15:
	movq	_RESULT_UNSUP_HOST@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESULT_UNSUP_CARD,4,2          ## @RESULT_UNSUP_CARD
	.comm	_RESULT_UNSUP_HOST,4,2          ## @RESULT_UNSUP_HOST
	.comm	_MMC_TRIM_ARG,4,2               ## @MMC_TRIM_ARG
	.no_dead_strip	_mmc_test_profile_seq_trim_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_profile_seq_trim_perf
_mmc_test_profile_seq_trim_perf:        ; @mmc_test_profile_seq_trim_perf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_mmc_can_trim
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x19]
	bl	_mmc_can_erase
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	cmp	x8, #512
	b.hs	LBB0_8
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _RESULT_UNSUP_CARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESULT_UNSUP_CARD@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _RESULT_UNSUP_HOST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RESULT_UNSUP_HOST@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	mov	w20, #512
Lloh4:
	adrp	x24, _MMC_TRIM_ARG@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MMC_TRIM_ARG@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, sp
	bl	_ktime_get_ts64
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mmc_test_print_avg_rate
	mov	w0, #0
	lsl	x20, x20, #1
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.hi	LBB0_7
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x0, x19
	bl	_mmc_test_area_erase
	cbnz	w0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_mmc_test_area_fill
	cbnz	w0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #8]
	ldr	w22, [x19, #16]
	udiv	x21, x8, x20
	add	x0, sp, #8
	bl	_ktime_get_ts64
	cbz	w21, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w25, #0
	lsr	x23, x20, #9
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19]
	ldr	w3, [x24]
	mov	x1, x22
	mov	x2, x23
	bl	_mmc_erase
	cbnz	w0, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	w22, w22, w23
	add	w25, w25, #1
	cmp	w25, w21
	b.ne	LBB0_14
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RESULT_UNSUP_CARD,4,2          ; @RESULT_UNSUP_CARD
	.comm	_RESULT_UNSUP_HOST,4,2          ; @RESULT_UNSUP_HOST
	.comm	_MMC_TRIM_ARG,4,2               ; @MMC_TRIM_ARG
	.no_dead_strip	_mmc_test_profile_seq_trim_perf
.subsections_via_symbols
