	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_profile_trim_perf
_mmc_test_profile_trim_perf:            ## @mmc_test_profile_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, %r14
	movl	(%rdi), %edi
	callq	_mmc_can_trim
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	(%r14), %edi
	callq	_mmc_can_erase
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movl	$512, %r13d                     ## imm = 0x200
	cmpq	$513, 8(%r14)                   ## imm = 0x201
	jb	LBB0_6
## %bb.3:
	movl	$512, %r13d                     ## imm = 0x200
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	shrq	$9, %rbx
	movl	16(%r14), %r15d
	addl	%ebx, %r15d
	leaq	-48(%rbp), %rdi
	callq	_ktime_get_ts64
	movl	(%r14), %edi
	movq	_MMC_TRIM_ARG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_mmc_erase
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_ktime_get_ts64
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rcx
	callq	_mmc_test_print_rate
	addq	%r13, %r13
	cmpq	8(%r14), %r13
	jb	LBB0_4
LBB0_6:
	movl	16(%r14), %ebx
	leaq	-48(%rbp), %rdi
	callq	_ktime_get_ts64
	movl	(%r14), %edi
	movq	%r13, %rdx
	shrq	$9, %rdx
	movq	_MMC_TRIM_ARG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	callq	_mmc_erase
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ktime_get_ts64
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rcx
	callq	_mmc_test_print_rate
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_RESULT_UNSUP_CARD@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_RESULT_UNSUP_HOST@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	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_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_trim_perf
_mmc_test_profile_trim_perf:            ; @mmc_test_profile_trim_perf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	w0, [x0]
	bl	_mmc_can_trim
	cbz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x19]
	bl	_mmc_can_erase
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x23, _MMC_TRIM_ARG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MMC_TRIM_ARG@GOTPAGEOFF]
	mov	w20, #512
	cmp	x8, #513
	b.lo	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #16]
	lsr	x21, x20, #9
	add	w22, w8, w21
	add	x0, sp, #8
	bl	_ktime_get_ts64
	ldr	w0, [x19]
	ldr	w3, [x23]
	mov	x1, x22
	mov	x2, x21
	bl	_mmc_erase
	cbnz	w0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, sp
	bl	_ktime_get_ts64
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_mmc_test_print_rate
	lsl	x20, x20, #1
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.lo	LBB0_3
LBB0_5:
	ldr	w21, [x19, #16]
	add	x0, sp, #8
	bl	_ktime_get_ts64
	ldr	w0, [x19]
	lsr	x2, x20, #9
	ldr	w3, [x23]
	mov	x1, x21
	bl	_mmc_erase
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x0, sp
	bl	_ktime_get_ts64
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_mmc_test_print_rate
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, _RESULT_UNSUP_CARD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RESULT_UNSUP_CARD@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _RESULT_UNSUP_HOST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RESULT_UNSUP_HOST@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.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_trim_perf
.subsections_via_symbols
