	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mmc_test_transfer
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_5:
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
LCPI0_6:
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
LCPI0_7:
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
LCPI0_8:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mmc_test_transfer:                     ## @mmc_test_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	cmpl	$0, 16(%rbp)
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_13
## %bb.1:
	movl	%ebx, %edx
	imull	%r8d, %edx
	testl	%edx, %edx
	je	LBB0_14
## %bb.2:
	movq	(%r14), %rax
	movl	%edx, %ecx
	cmpl	$8, %edx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_13:
	movq	(%r14), %rdi
	movq	_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_14
LBB0_4:
	movq	%rbx, %r8
	movl	%ecx, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rbx
	movq	%rbx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$3, %esi
	cmpq	$24, %rbx
	jae	LBB0_6
## %bb.5:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rdi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = [20,20,20,20]
	movdqa	LCPI0_6(%rip), %xmm6            ## xmm6 = [24,24,24,24]
	movdqa	LCPI0_7(%rip), %xmm7            ## xmm7 = [28,28,28,28]
	movdqa	LCPI0_8(%rip), %xmm1            ## xmm1 = [32,32,32,32]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm2
	paddd	%xmm8, %xmm2
	movdqu	%xmm0, (%rax,%rbx,4)
	movdqu	%xmm2, 16(%rax,%rbx,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm9, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm10, %xmm3
	movdqu	%xmm2, 32(%rax,%rbx,4)
	movdqu	%xmm3, 48(%rax,%rbx,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm4, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm5, %xmm3
	movdqu	%xmm2, 64(%rax,%rbx,4)
	movdqu	%xmm3, 80(%rax,%rbx,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm6, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm7, %xmm3
	movdqu	%xmm2, 96(%rax,%rbx,4)
	movdqu	%xmm3, 112(%rax,%rbx,4)
	addq	$32, %rbx
	paddd	%xmm1, %xmm0
	addq	$-4, %rdi
	jne	LBB0_7
LBB0_8:
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	leaq	(%rax,%rbx,4), %rdi
	addq	$16, %rdi
	shlq	$5, %rsi
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm3
	paddd	%xmm1, %xmm3
	movdqu	%xmm0, -16(%rdi,%rbx)
	movdqu	%xmm3, (%rdi,%rbx)
	paddd	%xmm2, %xmm0
	addq	$32, %rbx
	cmpq	%rbx, %rsi
	jne	LBB0_10
LBB0_11:
	cmpq	%rcx, %rdx
	movq	%r8, %rbx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rax,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
LBB0_14:
	callq	_local_irq_save
	movq	(%r14), %rdx
	movq	_BUFFER_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_sg_copy_from_buffer
	callq	_local_irq_restore
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mmc_test_set_blksize
	testl	%eax, %eax
	jne	LBB0_38
## %bb.15:
	movl	16(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_mmc_test_simple_transfer
	testl	%eax, %eax
	je	LBB0_16
LBB0_38:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpl	$0, 16(%rbp)
	je	LBB0_32
## %bb.17:
	movq	%r14, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_mmc_test_set_blksize
	testl	%eax, %eax
	jne	LBB0_38
## %bb.18:
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	leal	511(%rbx), %eax
	movl	%eax, %ecx
	shrl	$9, %ecx
	andl	$-512, %eax                     ## imm = 0xFE00
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	cmpl	%r13d, %eax
	sete	%bl
	addl	%ecx, %ebx
	movl	%ebx, %edx
	shll	$9, %edx
	cmpl	(%r15), %edx
	jle	LBB0_20
## %bb.19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_38
LBB0_32:
	callq	_local_irq_save
	movq	(%r14), %rdx
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_sg_copy_to_buffer
	callq	_local_irq_restore
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	testl	%ebx, %ebx
	je	LBB0_33
## %bb.34:
	movq	(%r14), %rcx
	movl	%ebx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %eax
	cmpq	%rax, %rsi
	jne	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_36 Depth=1
	incq	%rsi
	xorl	%eax, %eax
	cmpq	%rsi, %rdx
	jne	LBB0_36
	jmp	LBB0_38
LBB0_33:
	xorl	%eax, %eax
	jmp	LBB0_38
LBB0_20:
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_memset
	testl	%ebx, %ebx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_24
## %bb.21:
	movl	%ebx, %r15d
	shlq	$11, %r15
	xorl	%ebx, %ebx
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	$512, %ecx                      ## imm = 0x200
	xorl	%r8d, %r8d
	callq	_mmc_test_buffer_transfer
	testl	%eax, %eax
	jne	LBB0_38
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	incl	%r12d
	addq	$2048, %rbx                     ## imm = 0x800
	cmpq	%rbx, %r15
	jne	LBB0_22
LBB0_24:
	testl	%r13d, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_28
## %bb.25:
	movq	8(%r14), %rax
	movl	%r13d, %ecx
	xorl	%edx, %edx
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	cmpq	%rsi, %rdx
	jne	LBB0_37
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_26
LBB0_28:
	xorl	%eax, %eax
	cmpl	%edi, %r13d
	jae	LBB0_38
## %bb.29:
	movq	8(%r14), %rcx
	movl	%r13d, %edx
	movl	%edi, %esi
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$223, (%rcx,%rdx,4)
	jne	LBB0_37
## %bb.30:                              ##   in Loop: Header=BB0_31 Depth=1
	incq	%rdx
	cmpl	%edx, %esi
	jne	LBB0_31
	jmp	LBB0_38
LBB0_37:
	movq	_RESULT_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_SIZE,4,2                ## @BUFFER_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RESULT_FAIL,4,2                ## @RESULT_FAIL
	.no_dead_strip	_mmc_test_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mmc_test_transfer
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mmc_test_transfer:                     ; @mmc_test_transfer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x6
	mov	x21, x5
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BUFFER_SIZE@GOTPAGEOFF]
	cbz	w6, LBB0_4
; %bb.1:
	mul	w8, w21, w22
	cbz	w8, LBB0_9
; %bb.2:
	ldr	x9, [x19]
	cmp	w8, #16
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	b	LBB0_8
LBB0_4:
	ldr	x0, [x19]
	ldr	w2, [x26]
	mov	w1, #0
	bl	_memset
	b	LBB0_9
LBB0_5:
	and	x10, x8, #0xfffffff0
Lloh2:
	adrp	x11, lCPI0_0@PAGE
Lloh3:
	ldr	q0, [x11, lCPI0_0@PAGEOFF]
	add	x11, x9, #32
	movi.4s	v1, #4
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #16
	mov	x12, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v5, v0, v1
	add.4s	v6, v0, v2
	add.4s	v7, v0, v3
	stp	q0, q5, [x11, #-32]
	stp	q6, q7, [x11], #64
	add.4s	v0, v0, v4
	subs	x12, x12, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x9, x10, lsl #2]
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_8
LBB0_9:
	bl	_local_irq_save
	ldr	x2, [x19]
	ldr	w3, [x26]
	mov	x0, x24
	mov	x1, x23
	bl	_sg_copy_from_buffer
	bl	_local_irq_restore
	mov	x0, x19
	mov	x1, x21
	bl	_mmc_test_set_blksize
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	mov	x4, x22
	mov	x5, x21
	mov	x6, x25
	bl	_mmc_test_simple_transfer
	cbz	w0, LBB0_12
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	cbz	w25, LBB0_16
; %bb.13:
	mov	x0, x19
	mov	w1, #512
	bl	_mmc_test_set_blksize
	cbnz	w0, LBB0_11
; %bb.14:
	mul	w22, w21, w22
	add	w8, w22, #511
	lsr	w9, w8, #9
	and	w8, w8, #0xfffffe00
	cmp	w8, w22
	cinc	w24, w9, eq
	lsl	w21, w24, #9
	ldr	w8, [x26]
	cmp	w21, w8
	b.le	LBB0_20
; %bb.15:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_16:
	bl	_local_irq_save
	ldr	x2, [x19]
	ldr	w3, [x26]
	mov	x0, x24
	mov	x1, x23
	bl	_sg_copy_to_buffer
	bl	_local_irq_restore
	mul	w8, w21, w22
	cbz	w8, LBB0_32
; %bb.17:
	mov	x9, #0
	ldr	x10, [x19]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	x9, x11
	b.ne	LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #0
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_18
	b	LBB0_11
LBB0_20:
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	cbz	w24, LBB0_24
; %bb.21:
	mov	x23, #0
	lsl	x24, x24, #11
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x23
	mov	x0, x19
	mov	x2, x20
	mov	w3, #512
	mov	w4, #0
	bl	_mmc_test_buffer_transfer
	cbnz	w0, LBB0_11
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	w20, w20, #1
	add	x23, x23, #2048
	cmp	x24, x23
	b.ne	LBB0_22
LBB0_24:
	cbz	w22, LBB0_28
; %bb.25:
	mov	x8, #0
	ldr	x9, [x19, #8]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x8, lsl #2]
	cmp	x8, x10
	b.ne	LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x8, x8, #1
	cmp	x22, x8
	b.ne	LBB0_26
LBB0_28:
	subs	w8, w22, w21
	b.hs	LBB0_32
; %bb.29:
	ldr	x9, [x19, #8]
	add	x9, x9, w22, uxtw #2
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cmp	w10, #223
	b.ne	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	w0, #0
	add	x9, x9, #4
	adds	w8, w8, #1
	b.lo	LBB0_30
	b	LBB0_11
LBB0_32:
	mov	w0, #0
	b	LBB0_11
LBB0_33:
Lloh7:
	adrp	x8, _RESULT_FAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RESULT_FAIL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_SIZE,4,2                ; @BUFFER_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RESULT_FAIL,4,2                ; @RESULT_FAIL
	.no_dead_strip	_mmc_test_transfer
.subsections_via_symbols
