	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mv_chan_xor_self_test
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	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mv_chan_xor_self_test:                 ## @mv_chan_xor_self_test
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MV_XOR_NUM_SRC_TEST@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	%ebx, %r13d
	leaq	(,%r13,8), %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	jle	LBB0_11
## %bb.1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_alloc_page
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	decl	%r12d
	cmpq	%rbx, %r15
	jne	LBB0_2
## %bb.4:
	movl	(%r14), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	testl	%r15d, %r15d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_23
## %bb.6:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	cmpq	%r13, %r15
	je	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%r14,%r15,8), %rdi
	callq	_page_address
	cmpl	$0, (%rbx)
	jle	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_10
	jmp	LBB0_7
LBB0_11:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_22
## %bb.12:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_13:
	testl	%r12d, %r12d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_22
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%r14,%rbx), %rdi
	callq	___free_page
	addq	$-8, %rbx
	jne	LBB0_14
	jmp	LBB0_22
LBB0_15:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	testl	%r15d, %r15d
	jle	LBB0_35
## %bb.16:
	xorl	%eax, %eax
	movl	$0, %r12d
	cmpl	$8, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_44
## %bb.17:
	movl	%r13d, %eax
	andl	$-8, %eax
	leal	-8(%rax), %edx
	movl	%edx, %ecx
	shrl	$3, %ecx
	incl	%ecx
	testl	%edx, %edx
	je	LBB0_40
## %bb.18:
	movl	%ecx, %edx
	andl	$-2, %edx
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm6            ## xmm6 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm7            ## xmm7 = [16,16,16,16]
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm1
	paddd	%xmm8, %xmm1
	movdqa	%xmm5, %xmm3
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pxor	%xmm0, %xmm3
	pslld	$23, %xmm1
	paddd	%xmm4, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pxor	%xmm2, %xmm1
	movdqa	%xmm5, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm5, %xmm2
	paddd	%xmm6, %xmm2
	pslld	$23, %xmm0
	paddd	%xmm4, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pxor	%xmm3, %xmm0
	pslld	$23, %xmm2
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pxor	%xmm1, %xmm2
	paddd	%xmm7, %xmm5
	addl	$-2, %edx
	jne	LBB0_19
	jmp	LBB0_41
LBB0_20:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rbx,%r13,8), %rdi
	callq	___free_page
	decq	%r13
	jne	LBB0_21
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_59
LBB0_23:
	xorl	%r12d, %r12d
LBB0_24:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_25:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_page_address
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	callq	_mv_xor_alloc_chan_resources
	testl	%eax, %eax
	jle	LBB0_33
## %bb.26:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leal	1(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dmaengine_get_unmap_data
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_32
## %bb.27:
	testl	%r15d, %r15d
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_31
## %bb.28:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	callq	_dma_map_page
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_dma_mapping_error
	testl	%eax, %eax
	jne	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	incl	16(%r14)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_29
LBB0_31:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_dma_map_page
	movq	8(%r14), %rcx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rcx
	movq	(%rbx), %rax
	movq	%rcx, %rbx
	movl	(%rax), %edi
	movq	%rcx, %rsi
	callq	_dma_mapping_error
	testl	%eax, %eax
	je	LBB0_36
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_54:
	subl	(%rax), %r14d
	jmp	LBB0_55
LBB0_33:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	testq	%r13, %r13
	jne	LBB0_56
	jmp	LBB0_58
LBB0_34:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_55:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_dmaengine_unmap_put
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mv_xor_free_chan_resources
	testq	%r13, %r13
	je	LBB0_58
LBB0_56:
	movl	%r15d, %r12d
	negl	%r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %r15
	addq	$-8, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	callq	___free_page
	decq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_57
LBB0_58:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	___free_page
LBB0_59:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_62
## %bb.60:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_36:
	movl	$1, (%r14)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, 4(%r14)
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	xorl	%r9d, %r9d
	callq	_mv_xor_prep_dma_xor
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	movq	%rbx, %r14
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_mv_xor_tx_submit
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_dma_submit_error
	testq	%rax, %rax
	je	LBB0_46
## %bb.38:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	jmp	LBB0_52
LBB0_39:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_52
LBB0_40:
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	pxor	%xmm2, %xmm2
LBB0_41:
	testb	$1, %cl
	je	LBB0_43
## %bb.42:
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4,4,4,4]
	paddd	%xmm5, %xmm1
	pslld	$23, %xmm5
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm3, %xmm5
	cvttps2dq	%xmm5, %xmm4
	pxor	%xmm4, %xmm0
	pslld	$23, %xmm1
	paddd	%xmm3, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pxor	%xmm1, %xmm2
LBB0_43:
	pxor	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pxor	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pxor	%xmm1, %xmm0
	movd	%xmm0, %r12d
	cmpl	%eax, %r15d
	je	LBB0_45
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	btcl	%eax, %r12d
	incl	%eax
	cmpl	%eax, %r13d
	jne	LBB0_44
LBB0_45:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_46:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mv_xor_issue_pending
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_async_tx_ack
	movl	$8, %edi
	callq	_msleep
	movl	%ebx, %esi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mv_xor_status
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rdx
	movl	(%rdx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_51
## %bb.47:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_dma_sync_single_for_cpu
	cmpl	$4, (%rbx)
	jb	LBB0_55
## %bb.48:
	movl	%r12d, %eax
	shll	$24, %eax
	movl	%r12d, %ecx
	shll	$16, %ecx
	orl	%r12d, %ecx
	shll	$8, %r12d
	orl	%eax, %r12d
	orl	%ecx, %r12d
	xorl	%edx, %edx
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %rbx
	callq	_page_address
	movq	%rbx, %rdx
	movl	(%rax,%rbx,4), %ecx
	cmpl	%r12d, %ecx
	jne	LBB0_61
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	incq	%rdx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$2, %rax
	xorl	%r14d, %r14d
	cmpq	%rdx, %rax
	ja	LBB0_49
	jmp	LBB0_55
LBB0_51:
	leaq	L_.str.2(%rip), %rsi
LBB0_52:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_53:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_61:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_53
LBB0_62:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MV_XOR_NUM_SRC_TEST,4,2        ## @MV_XOR_NUM_SRC_TEST
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Self-test cannot prepare operation, disabling\n"

L_.str.1:                               ## @.str.1
	.asciz	"Self-test submit error, disabling\n"

	.comm	_DMA_COMPLETE,8,3               ## @DMA_COMPLETE
L_.str.2:                               ## @.str.2
	.asciz	"Self-test xor timed out, disabling\n"

L_.str.3:                               ## @.str.3
	.asciz	"Self-test xor failed compare, disabling. index %d, data %x, expected %x\n"

	.no_dead_strip	_mv_chan_xor_self_test
.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 mv_chan_xor_self_test
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mv_chan_xor_self_test:                 ; @mv_chan_xor_self_test
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MV_XOR_NUM_SRC_TEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MV_XOR_NUM_SRC_TEST@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	lsl	x23, x19, #3
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x12, x9, #0xffffffff0
	sub	x26, x8, x12
	mov	sp, x26
	mov	x9, x23
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh10:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.1:
	mov	w25, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_alloc_page
	str	x0, [x26, x21]
	cbz	x0, LBB0_23
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #8
	sub	w25, w25, #1
	cmp	x23, x21
	b.ne	LBB0_2
; %bb.4:
	ldr	w0, [x24]
	bl	_alloc_page
	cbz	x0, LBB0_30
; %bb.5:
	mov	x25, x0
	cmp	w19, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x28, x25
	mov	x21, #0
Lloh12:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	mov	w27, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	cmp	x21, x19
	b.eq	LBB0_27
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x0, [x26, x21, lsl #3]
	bl	_page_address
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
	lsl	w9, w27, w21
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w9, [x0, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x25]
	cmp	x8, x10
	b.lt	LBB0_10
	b	LBB0_7
LBB0_11:
	ldr	w0, [x24]
	bl	_alloc_page
	cbz	x0, LBB0_32
; %bb.12:
	mov	x25, x0
LBB0_13:
	mov	w28, #0
LBB0_14:
	mov	x8, x19
	sxtw	x21, w8
	mov	x0, x25
	bl	_page_address
Lloh14:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	bl	_mv_xor_alloc_chan_resources
	cmp	w0, #0
	b.le	LBB0_26
; %bb.15:
	stur	x21, [x29, #-96]                ; 8-byte Folded Spill
	ldr	x8, [x20]
	ldr	w0, [x8]
	add	w1, w19, #1
	ldr	w2, [x24]
	bl	_dmaengine_get_unmap_data
	mov	x24, x0
	cbz	x0, LBB0_21
; %bb.16:
	stur	x25, [x29, #-104]               ; 8-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_20
; %bb.17:
	mov	x25, #0
Lloh16:
	adrp	x21, _DMA_TO_DEVICE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _DMA_TO_DEVICE@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	x1, [x26, x25]
	ldr	w3, [x27]
	ldr	w4, [x21]
	mov	w2, #0
	bl	_dma_map_page
	ldr	x8, [x24, #8]
	str	x0, [x8, x25]
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x25]
	str	x8, [x22, x25]
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	x8, [x24, #8]
	ldr	x1, [x8, x25]
	bl	_dma_mapping_error
	cbnz	w0, LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x24, #16]
	add	w8, w8, #1
	str	w8, [x24, #16]
	add	x25, x25, #8
	cmp	x23, x25
	b.ne	LBB0_18
LBB0_20:
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w3, [x27]
Lloh18:
	adrp	x21, _DMA_FROM_DEVICE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w4, [x21]
	ldur	x25, [x29, #-104]               ; 8-byte Folded Reload
	mov	x1, x25
	mov	w2, #0
	bl	_dma_map_page
	ldr	x8, [x24, #8]
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x24, #8]
	ldr	x23, [x8, x9]
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_dma_mapping_error
	cbz	w0, LBB0_34
LBB0_21:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_49
LBB0_23:
	cbz	w25, LBB0_32
; %bb.24:
	sub	x19, x26, #8
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, x21]
	bl	___free_page
	subs	x21, x21, #8
	b.ne	LBB0_25
	b	LBB0_32
LBB0_26:
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	w19, LBB0_50
	b	LBB0_52
LBB0_27:
	cmp	w19, #1
	mov	x25, x28
	b.lt	LBB0_13
; %bb.28:
	cmp	w19, #16
	b.hs	LBB0_37
; %bb.29:
	mov	w8, #0
	mov	w28, #0
	b	LBB0_40
LBB0_30:
	sub	x19, x26, #8
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, x23]
	bl	___free_page
	subs	x23, x23, #8
	b.ne	LBB0_31
LBB0_32:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_53
LBB0_33:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_48
LBB0_34:
	mov	w8, #1
	str	w8, [x24]
	ldr	w4, [x27]
	str	w4, [x24, #4]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	mov	w5, #0
	bl	_mv_xor_prep_dma_xor
	cbz	x0, LBB0_42
; %bb.35:
	mov	x25, x0
	bl	_mv_xor_tx_submit
	mov	x22, x0
	bl	_dma_submit_error
	cbz	x0, LBB0_43
; %bb.36:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_47
LBB0_37:
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #4
Lloh32:
	adrp	x8, lCPI0_0@PAGE
Lloh33:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	movi.4s	v3, #8
	and	w8, w19, #0xfffffff0
	movi.4s	v4, #12
	movi.4s	v5, #1
	movi.4s	v6, #16
	mov	x9, x8
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v18, v2, v1
	add.4s	v19, v2, v3
	add.4s	v20, v2, v4
	ushl.4s	v21, v5, v2
	ushl.4s	v18, v5, v18
	ushl.4s	v19, v5, v19
	ushl.4s	v20, v5, v20
	eor.16b	v0, v21, v0
	eor.16b	v7, v18, v7
	eor.16b	v16, v19, v16
	eor.16b	v17, v20, v17
	add.4s	v2, v2, v6
	subs	w9, w9, #16
	b.ne	LBB0_38
; %bb.39:
	eor.16b	v0, v7, v0
	eor3.16b	v0, v16, v0, v17
	ext.16b	v1, v0, v0, #8
	eor.8b	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	eor	w28, w10, w9
	cmp	w19, w8
	b.eq	LBB0_14
LBB0_40:
	mov	w9, #1
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	lsl	w10, w9, w8
	eor	w28, w10, w28
	add	w8, w8, #1
	cmp	w19, w8
	b.ne	LBB0_41
	b	LBB0_14
LBB0_42:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_47
LBB0_43:
	mov	x0, x20
	bl	_mv_xor_issue_pending
	mov	x0, x25
	bl	_async_tx_ack
	mov	w0, #8
	bl	_msleep
	mov	x0, x20
	mov	x1, x22
	mov	x2, #0
	bl	_mv_xor_status
	mov	x8, x0
Lloh36:
	adrp	x9, _DMA_COMPLETE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DMA_COMPLETE@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	ldr	x10, [x20]
	ldr	w0, [x10]
	cmp	x8, x9
	b.ne	LBB0_46
; %bb.44:
	ldr	w2, [x27]
	ldr	w3, [x21]
	mov	x1, x23
	bl	_dma_sync_single_for_cpu
	ldr	w8, [x27]
	cmp	w8, #4
	ldur	x25, [x29, #-104]               ; 8-byte Folded Reload
	b.hs	LBB0_55
; %bb.45:
	mov	w22, #0
	b	LBB0_49
LBB0_46:
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_47:
	bl	_dev_err
Lloh41:
	adrp	x8, _ENODEV@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_48:
	ldr	w8, [x8]
	neg	w22, w8
	ldur	x25, [x29, #-104]               ; 8-byte Folded Reload
LBB0_49:
	mov	x0, x24
	bl	_dmaengine_unmap_put
	mov	x0, x20
	bl	_mv_xor_free_chan_resources
	ldur	x21, [x29, #-96]                ; 8-byte Folded Reload
	cbz	w19, LBB0_52
LBB0_50:
	add	x8, x26, x21, lsl #3
	sub	x20, x8, #8
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20], #-8
	bl	___free_page
	subs	w19, w19, #1
	b.ne	LBB0_51
LBB0_52:
	mov	x0, x25
	bl	___free_page
LBB0_53:
	ldur	x8, [x29, #-88]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_59
; %bb.54:
	mov	x0, x22
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_55:
	mov	x21, #0
	orr	w8, w28, w28, lsl #16
	orr	w8, w8, w28, lsl #24
	orr	w23, w8, w28, lsl #8
LBB0_56:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_page_address
	ldr	w8, [x0, x21, lsl #2]
	cmp	w8, w23
	b.ne	LBB0_58
; %bb.57:                               ;   in Loop: Header=BB0_56 Depth=1
	mov	w22, #0
	add	x21, x21, #1
	ldrsw	x8, [x27]
	cmp	x21, x8, lsr #2
	b.lo	LBB0_56
	b	LBB0_49
LBB0_58:
	ldr	x9, [x20]
	ldr	w0, [x9]
	sub	sp, sp, #32
	stp	x8, x23, [sp, #8]
	str	x21, [sp]
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	add	sp, sp, #32
Lloh48:
	adrp	x8, _ENODEV@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_22
LBB0_59:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdr	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_MV_XOR_NUM_SRC_TEST,4,2        ; @MV_XOR_NUM_SRC_TEST
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Self-test cannot prepare operation, disabling\n"

l_.str.1:                               ; @.str.1
	.asciz	"Self-test submit error, disabling\n"

	.comm	_DMA_COMPLETE,8,3               ; @DMA_COMPLETE
l_.str.2:                               ; @.str.2
	.asciz	"Self-test xor timed out, disabling\n"

l_.str.3:                               ; @.str.3
	.asciz	"Self-test xor failed compare, disabling. index %d, data %x, expected %x\n"

	.no_dead_strip	_mv_chan_xor_self_test
.subsections_via_symbols
