	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pix_sum
_pix_sum:                               ## @pix_sum
	.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
                                        ## kill: def $edx killed $edx def $rdx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	subl	%edx, %esi
	movslq	%esi, %r10
	leal	-1(%rdx), %r8d
	leaq	1(%r8), %r9
	movq	%r9, %r12
	andq	$-4, %r12
	leaq	-4(%r12), %r11
	movq	%r11, %r15
	shrq	$2, %r15
	incq	%r15
	movq	%r15, %r14
	andq	$-2, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdi,%r10,8), %rdi
	incl	%ebx
	cmpl	%ecx, %ebx
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	testl	%edx, %edx
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	cmpl	$3, %r8d
	jb	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movd	%eax, %xmm0
	pxor	%xmm1, %xmm1
	testq	%r11, %r11
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rdi,%rax,8), %xmm2
	movdqu	16(%rdi,%rax,8), %xmm3
	movdqu	32(%rdi,%rax,8), %xmm4
	movdqu	48(%rdi,%rax,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rax
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r15b
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movdqu	(%rdi,%rax,8), %xmm2
	movdqu	16(%rdi,%rax,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	paddd	%xmm1, %xmm0
	leaq	(%rdi,%r12,8), %rdi
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	movl	%r12d, %r13d
	cmpq	%r12, %r9
	je	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %esi
	subl	%r13d, %esi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	(%rdi), %eax
	addq	$8, %rdi
	decl	%esi
	jne	LBB0_13
	jmp	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	testb	$1, %r15b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pix_sum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pix_sum
_pix_sum:                               ; @pix_sum
	.cfi_startproc
; %bb.0:
	cmp	w3, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w9, #0
	mov	w8, #0
	sub	w10, w1, w2
	sxtw	x10, w10
	sub	w11, w2, #1
	add	x12, x11, #1
	and	x13, x12, #0x1fffffff8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, x12, lsl #3
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, x10, lsl #3
	add	w9, w9, #1
	cmp	w9, w3
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #7
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w15, #0
	mov	x14, x0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi	d0, #0000000000000000
	mov.s	v0[0], w8
	add	x14, x0, x13, lsl #3
	movi.2d	v1, #0000000000000000
	add	x8, x0, #32
	mov	x15, x13
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x8, #-32]
	ldp	q6, q7, [x8], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x15, x15, #8
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w8, s0
	mov	x15, x13
	cmp	x12, x13
	b.eq	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w15, w2, w15
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w16, [x14], #8
	add	w8, w8, w16
	subs	w15, w15, #1
	b.ne	LBB0_11
	b	LBB0_2
LBB0_12:
	mov	x0, x8
	ret
LBB0_13:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pix_sum
.subsections_via_symbols
