	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_dma_desc_size
_moxart_dma_desc_size:                  ## @moxart_dma_desc_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movl	(%rdi), %ecx
	cmpl	%esi, %ecx
	jbe	LBB0_15
## %bb.1:
	movq	8(%rdi), %r11
	movq	%rcx, %r9
	subq	%rax, %r9
	cmpq	$4, %r9
	jae	LBB0_3
## %bb.2:
	movq	%rax, %rdx
	jmp	LBB0_13
LBB0_3:
	movq	%r9, %r8
	andq	$-4, %r8
	movq	%rax, %xmm0
	leaq	-4(%r8), %rdx
	movq	%rdx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r10d
	andl	$3, %r10d
	cmpq	$12, %rdx
	jae	LBB0_5
## %bb.4:
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rdi
	leaq	(%r11,%rax,8), %rdx
	addq	$112, %rdx
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-112(%rdx,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	-96(%rdx,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	-80(%rdx,%rsi,8), %xmm1
	movdqu	-64(%rdx,%rsi,8), %xmm3
	movdqu	-48(%rdx,%rsi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	-32(%rdx,%rsi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	-16(%rdx,%rsi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	(%rdx,%rsi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_6
LBB0_7:
	testq	%r10, %r10
	je	LBB0_10
## %bb.8:
	addq	%rax, %rsi
	leaq	(%r11,%rsi,8), %rdx
	addq	$16, %rdx
	shlq	$5, %r10
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx,%rsi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rdx,%rsi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_9
LBB0_10:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	cmpq	%r8, %r9
	jne	LBB0_12
## %bb.11:
	movq	%rdx, %rax
	popq	%rbp
	retq
LBB0_12:
	addq	%r8, %rax
LBB0_13:
	movq	%rax, %rsi
	movq	%rdx, %rax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addq	(%r11,%rsi,8), %rax
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_14
LBB0_15:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_moxart_dma_desc_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_dma_desc_size
_moxart_dma_desc_size:                  ; @moxart_dma_desc_size
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, w1
	ldr	w9, [x8]
	cmp	w9, w1
	b.ls	LBB0_8
; %bb.1:
	ldr	x8, [x8, #8]
	sub	x11, x9, x0
	cmp	x11, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x10, x0
	b	LBB0_6
LBB0_3:
	and	x12, x11, #0xfffffffffffffff8
	add	x10, x12, x0
	movi.2d	v0, #0000000000000000
	mov.d	v0[0], x0
	movi.2d	v1, #0000000000000000
	add	x13, x8, x0, lsl #3
	add	x13, x13, #32
	mov	x14, x12
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x14, x14, #8
	b.ne	LBB0_4
; %bb.5:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x0, d0
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_6:
	add	x8, x8, x10, lsl #3
	sub	x9, x9, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8], #8
	add	x0, x10, x0
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_moxart_dma_desc_size
.subsections_via_symbols
