	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sum_delta_flipped
_sum_delta_flipped:                     ## @sum_delta_flipped
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_20
## %bb.1:
	movslq	%esi, %rax
	movl	%r9d, %r13d
	movslq	%ecx, %r10
	movl	%r8d, %esi
	leaq	-1(%r13), %rcx
	imulq	%r10, %rcx
	leaq	(%rcx,%rsi), %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movl	%esi, %edi
	andl	$-4, %edi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	addq	$-4, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	movq	%rbx, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	andq	$-2, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	negq	%r14
	leaq	(%rdx,%rcx,8), %r12
	addq	$48, %r12
	leaq	(,%r10,8), %rdi
	negq	%rdi
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,8), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rcx,8), %r11
	addq	$8, %r11
	xorl	%edi, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	-120(%rbp), %r15                ## 8-byte Folded Reload
	incq	%rdi
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %r12
	addq	%rcx, %r11
	cmpq	$1, %rax
	jle	LBB0_20
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	%r13, %rax
	decq	%r13
	testl	%r8d, %r8d
	jle	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r9
	imulq	%r10, %r9
	cmpl	$4, %r8d
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, %rcx
	imulq	%r10, %rcx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	subq	%rcx, %rbx
	leaq	(%rdx,%rbx,8), %rbx
	cmpq	%rbx, %r15
	jae	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, %rbx
	imulq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	%rsi, %rbx
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r10, %r13
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	subq	%rcx, %r10
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rbx,8), %rcx
	leaq	(%rdx,%r10,8), %rbx
	movq	%r13, %r10
	movq	-112(%rbp), %r13                ## 8-byte Reload
	cmpq	%rcx, %rbx
	jae	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rcx
	testb	$1, %sil
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %r9
	movq	(%rdx,%r9,8), %rcx
	addq	%rcx, (%r15,%rbx,8)
	movq	%rbx, %rcx
	orq	$1, %rcx
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	notq	%rbx
	cmpq	%r14, %rbx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%r11,%rcx,8), %rbx
	addq	%rbx, (%r15,%rcx,8)
	movq	(%r11,%rcx,8), %rbx
	addq	%rbx, 8(%r15,%rcx,8)
	addq	$2, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_18
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%r12,%rbx,8), %xmm0
	movdqu	-32(%r12,%rbx,8), %xmm1
	movdqu	(%r15,%rbx,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%r15,%rbx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%r15,%rbx,8), %xmm1
	movdqu	48(%r15,%rbx,8), %xmm3
	movdqu	%xmm2, (%r15,%rbx,8)
	movdqu	%xmm0, 16(%r15,%rbx,8)
	movdqu	-16(%r12,%rbx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	(%r12,%rbx,8), %xmm1
	paddq	%xmm3, %xmm1
	movdqu	%xmm0, 32(%r15,%rbx,8)
	movdqu	%xmm1, 48(%r15,%rbx,8)
	addq	$8, %rbx
	addq	$-2, %rcx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r9), %rcx
	movdqu	(%rdx,%rcx,8), %xmm0
	movdqu	16(%rdx,%rcx,8), %xmm1
	movdqu	(%r15,%rbx,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%r15,%rbx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm2, (%r15,%rbx,8)
	movdqu	%xmm0, 16(%r15,%rbx,8)
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rbx
	cmpq	%rsi, %rcx
	je	LBB0_2
	jmp	LBB0_15
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_14
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sum_delta_flipped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sum_delta_flipped
_sum_delta_flipped:                     ; @sum_delta_flipped
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w5, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x8, #0
	sxtw	x9, w1
	mov	w12, w5
	sxtw	x10, w3
	mov	w11, w4
	sub	x13, x12, #1
	mul	x13, x13, x10
	add	x14, x13, x11
	and	x15, x11, #0xfffffff8
	lsl	x16, x11, #3
	and	x16, x16, #0x7ffffffc0
	sbfiz	x17, x1, #3, #32
	add	x1, x2, x13, lsl #3
	add	x5, x1, #32
	sub	x3, x8, w3, sxtw #3
	mov	x6, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x6, x6, x17
	add	x8, x8, #1
	add	x5, x5, x3
	add	x1, x1, x3
	cmp	x12, #1
	mov	x12, x7
	b.le	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	sub	x7, x12, #1
	cmp	w4, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w4, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x19, x8, x9, x11
	add	x19, x0, x19, lsl #3
	mul	x20, x8, x10
	sub	x21, x13, x20
	add	x21, x2, x21, lsl #3
	sub	x20, x14, x20
	add	x20, x2, x20, lsl #3
	cmp	x6, x20
	ccmp	x21, x19, #2, lo
	b.lo	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x5, x19
	ldp	q0, q1, [x20, #-32]
	ldp	q2, q3, [x20]
	add	x20, x6, x19
	ldp	q4, q5, [x20]
	ldp	q6, q7, [x20, #32]
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	stp	q0, q1, [x20]
	stp	q2, q3, [x20, #32]
	add	x19, x19, #64
	cmp	x16, x19
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x15
	cmp	x15, x11
	b.ne	LBB0_11
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, #0
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x20, x19, #3
	ldr	x21, [x1, x20]
	ldr	x22, [x6, x20]
	add	x21, x22, x21
	str	x21, [x6, x20]
	add	x19, x19, #1
	cmp	x11, x19
	b.ne	LBB0_11
	b	LBB0_2
LBB0_12:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sum_delta_flipped
.subsections_via_symbols
