	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __calc_recs_byte_sum
LCPI0_0:
	.space	1
	.space	1
	.space	1
	.space	1
	.byte	0                               ## 0x0
	.byte	4                               ## 0x4
	.byte	8                               ## 0x8
	.byte	12                              ## 0xc
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	4                               ## 0x4
	.byte	8                               ## 0x8
	.byte	12                              ## 0xc
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_2:
	.space	1
	.space	1
	.space	1
	.space	1
	.byte	1                               ## 0x1
	.byte	5                               ## 0x5
	.byte	9                               ## 0x9
	.byte	13                              ## 0xd
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_3:
	.byte	1                               ## 0x1
	.byte	5                               ## 0x5
	.byte	9                               ## 0x9
	.byte	13                              ## 0xd
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_4:
	.space	1
	.space	1
	.space	1
	.space	1
	.byte	2                               ## 0x2
	.byte	6                               ## 0x6
	.byte	10                              ## 0xa
	.byte	14                              ## 0xe
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_5:
	.byte	2                               ## 0x2
	.byte	6                               ## 0x6
	.byte	10                              ## 0xa
	.byte	14                              ## 0xe
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_6:
	.space	1
	.space	1
	.space	1
	.space	1
	.byte	3                               ## 0x3
	.byte	7                               ## 0x7
	.byte	11                              ## 0xb
	.byte	15                              ## 0xf
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_7:
	.byte	3                               ## 0x3
	.byte	7                               ## 0x7
	.byte	11                              ## 0xb
	.byte	15                              ## 0xf
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___calc_recs_byte_sum:                  ## @__calc_recs_byte_sum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%esi, %eax
	cmpl	$8, %esi
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_15
LBB0_4:
	cmpl	$32, %esi
	jae	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %ecx
	andl	$-32, %ecx
	leaq	(,%rax,4), %rdx
	andq	$-128, %rdx
	pxor	%xmm4, %xmm4
	xorl	%esi, %esi
	pxor	%xmm8, %xmm8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rsi), %xmm12
	movdqu	16(%rdi,%rsi), %xmm15
	movdqu	32(%rdi,%rsi), %xmm5
	movdqu	48(%rdi,%rsi), %xmm13
	movdqu	64(%rdi,%rsi), %xmm11
	movdqu	80(%rdi,%rsi), %xmm6
	movdqu	96(%rdi,%rsi), %xmm1
	movdqu	112(%rdi,%rsi), %xmm14
	movdqa	%xmm13, %xmm3
	movdqa	LCPI0_0(%rip), %xmm9            ## xmm9 = <u,u,u,u,0,4,8,12,u,u,u,u,u,u,u,u>
	pshufb	%xmm9, %xmm3
	movdqa	%xmm5, %xmm0
	pshufb	%xmm9, %xmm0
	punpckldq	%xmm3, %xmm0            ## xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
	movdqa	%xmm15, %xmm2
	movdqa	LCPI0_1(%rip), %xmm10           ## xmm10 = <0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u>
	pshufb	%xmm10, %xmm2
	movdqa	%xmm12, %xmm3
	pshufb	%xmm10, %xmm3
	punpckldq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
	pblendw	$240, %xmm0, %xmm3              ## xmm3 = xmm3[0,1,2,3],xmm0[4,5,6,7]
	paddb	%xmm4, %xmm3
	movdqa	%xmm14, %xmm0
	pshufb	%xmm9, %xmm0
	movdqa	%xmm1, %xmm2
	pshufb	%xmm9, %xmm2
	punpckldq	%xmm0, %xmm2            ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movdqa	%xmm6, %xmm4
	movdqa	%xmm6, %xmm7
	movdqa	%xmm6, -16(%rbp)                ## 16-byte Spill
	pshufb	%xmm10, %xmm4
	movdqa	%xmm11, %xmm0
	pshufb	%xmm10, %xmm0
	punpckldq	%xmm4, %xmm0            ## xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1]
	pblendw	$240, %xmm2, %xmm0              ## xmm0 = xmm0[0,1,2,3],xmm2[4,5,6,7]
	paddb	%xmm8, %xmm0
	movdqa	%xmm13, %xmm2
	movdqa	LCPI0_2(%rip), %xmm8            ## xmm8 = <u,u,u,u,1,5,9,13,u,u,u,u,u,u,u,u>
	pshufb	%xmm8, %xmm2
	movdqa	%xmm5, %xmm4
	pshufb	%xmm8, %xmm4
	punpckldq	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
	movdqa	%xmm15, %xmm2
	movdqa	LCPI0_3(%rip), %xmm6            ## xmm6 = <1,5,9,13,u,u,u,u,u,u,u,u,u,u,u,u>
	pshufb	%xmm6, %xmm2
	movdqa	%xmm12, %xmm9
	pshufb	%xmm6, %xmm9
	punpckldq	%xmm2, %xmm9            ## xmm9 = xmm9[0],xmm2[0],xmm9[1],xmm2[1]
	pblendw	$240, %xmm4, %xmm9              ## xmm9 = xmm9[0,1,2,3],xmm4[4,5,6,7]
	movdqa	%xmm14, %xmm2
	pshufb	%xmm8, %xmm2
	movdqa	%xmm1, %xmm4
	pshufb	%xmm8, %xmm4
	punpckldq	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
	movdqa	%xmm7, %xmm2
	pshufb	%xmm6, %xmm2
	movdqa	%xmm11, %xmm10
	pshufb	%xmm6, %xmm10
	punpckldq	%xmm2, %xmm10           ## xmm10 = xmm10[0],xmm2[0],xmm10[1],xmm2[1]
	pblendw	$240, %xmm4, %xmm10             ## xmm10 = xmm10[0,1,2,3],xmm4[4,5,6,7]
	movdqa	%xmm13, %xmm2
	movdqa	LCPI0_4(%rip), %xmm6            ## xmm6 = <u,u,u,u,2,6,10,14,u,u,u,u,u,u,u,u>
	pshufb	%xmm6, %xmm2
	movdqa	%xmm5, %xmm4
	pshufb	%xmm6, %xmm4
	punpckldq	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
	movdqa	%xmm15, %xmm2
	movdqa	LCPI0_5(%rip), %xmm7            ## xmm7 = <2,6,10,14,u,u,u,u,u,u,u,u,u,u,u,u>
	pshufb	%xmm7, %xmm2
	movdqa	%xmm12, %xmm8
	pshufb	%xmm7, %xmm8
	punpckldq	%xmm2, %xmm8            ## xmm8 = xmm8[0],xmm2[0],xmm8[1],xmm2[1]
	pblendw	$240, %xmm4, %xmm8              ## xmm8 = xmm8[0,1,2,3],xmm4[4,5,6,7]
	paddb	%xmm9, %xmm8
	paddb	%xmm3, %xmm8
	movdqa	%xmm14, %xmm2
	pshufb	%xmm6, %xmm2
	movdqa	%xmm1, %xmm4
	pshufb	%xmm6, %xmm4
	punpckldq	%xmm2, %xmm4            ## xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
	movdqa	-16(%rbp), %xmm6                ## 16-byte Reload
	movdqa	%xmm6, %xmm2
	pshufb	%xmm7, %xmm2
	movdqa	%xmm11, %xmm3
	pshufb	%xmm7, %xmm3
	punpckldq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
	pblendw	$240, %xmm4, %xmm3              ## xmm3 = xmm3[0,1,2,3],xmm4[4,5,6,7]
	paddb	%xmm10, %xmm3
	paddb	%xmm0, %xmm3
	movdqa	LCPI0_6(%rip), %xmm0            ## xmm0 = <u,u,u,u,3,7,11,15,u,u,u,u,u,u,u,u>
	pshufb	%xmm0, %xmm13
	pshufb	%xmm0, %xmm5
	punpckldq	%xmm13, %xmm5           ## xmm5 = xmm5[0],xmm13[0],xmm5[1],xmm13[1]
	movdqa	LCPI0_7(%rip), %xmm2            ## xmm2 = <3,7,11,15,u,u,u,u,u,u,u,u,u,u,u,u>
	pshufb	%xmm2, %xmm15
	pshufb	%xmm2, %xmm12
	punpckldq	%xmm15, %xmm12          ## xmm12 = xmm12[0],xmm15[0],xmm12[1],xmm15[1]
	pblendw	$240, %xmm5, %xmm12             ## xmm12 = xmm12[0,1,2,3],xmm5[4,5,6,7]
	movdqa	%xmm12, %xmm4
	paddb	%xmm8, %xmm4
	pshufb	%xmm0, %xmm14
	pshufb	%xmm0, %xmm1
	punpckldq	%xmm14, %xmm1           ## xmm1 = xmm1[0],xmm14[0],xmm1[1],xmm14[1]
	movdqa	%xmm6, %xmm0
	pshufb	%xmm2, %xmm0
	pshufb	%xmm2, %xmm11
	punpckldq	%xmm0, %xmm11           ## xmm11 = xmm11[0],xmm0[0],xmm11[1],xmm0[1]
	pblendw	$240, %xmm1, %xmm11             ## xmm11 = xmm11[0,1,2,3],xmm1[4,5,6,7]
	movdqa	%xmm11, %xmm8
	paddb	%xmm3, %xmm8
	subq	$-128, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_7
## %bb.8:
	paddb	%xmm4, %xmm8
	pshufd	$238, %xmm8, %xmm0              ## xmm0 = xmm8[2,3,2,3]
	paddb	%xmm8, %xmm0
	pxor	%xmm1, %xmm1
	psadbw	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpq	%rax, %rcx
	je	LBB0_15
## %bb.9:
	testb	$24, %al
	je	LBB0_13
LBB0_10:
	movq	%rcx, %rsi
	movl	%eax, %ecx
	andl	$-8, %ecx
	movzbl	%dl, %edx
	movd	%edx, %xmm4
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = <0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = <1,5,9,13,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_5(%rip), %xmm2            ## xmm2 = <2,6,10,14,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_7(%rip), %xmm3            ## xmm3 = <3,7,11,15,u,u,u,u,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rsi,4), %xmm1
	movdqu	16(%rdi,%rsi,4), %xmm6
	movdqa	%xmm6, %xmm7
	pshufb	%xmm8, %xmm7
	movdqa	%xmm1, %xmm5
	pshufb	%xmm8, %xmm5
	punpckldq	%xmm7, %xmm5            ## xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
	paddb	%xmm4, %xmm5
	movdqa	%xmm6, %xmm4
	pshufb	%xmm9, %xmm4
	movdqa	%xmm1, %xmm7
	pshufb	%xmm9, %xmm7
	punpckldq	%xmm4, %xmm7            ## xmm7 = xmm7[0],xmm4[0],xmm7[1],xmm4[1]
	movdqa	%xmm6, %xmm4
	pshufb	%xmm2, %xmm4
	movdqa	%xmm1, %xmm0
	pshufb	%xmm2, %xmm0
	punpckldq	%xmm4, %xmm0            ## xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1]
	paddb	%xmm7, %xmm0
	paddb	%xmm5, %xmm0
	pshufb	%xmm3, %xmm6
	pshufb	%xmm3, %xmm1
	punpckldq	%xmm6, %xmm1            ## xmm1 = xmm1[0],xmm6[0],xmm1[1],xmm6[1]
	movdqa	%xmm1, %xmm4
	paddb	%xmm0, %xmm4
	addq	$8, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_11
## %bb.12:
	pxor	%xmm0, %xmm0
	psadbw	%xmm0, %xmm4
	movd	%xmm4, %edx
	cmpq	%rax, %rcx
	je	LBB0_15
LBB0_13:
	pxor	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movd	(%rdi,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	psadbw	%xmm0, %xmm1
	movd	%xmm1, %esi
	addb	%sil, %dl
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_14
LBB0_15:
	movzbl	%dl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___calc_recs_byte_sum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __calc_recs_byte_sum
___calc_recs_byte_sum:                  ; @__calc_recs_byte_sum
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w1
	cmp	w1, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	mov	w10, #0
	b	LBB0_13
LBB0_3:
	and	w0, wzr, #0xff
	ret
LBB0_4:
	cmp	w1, #64
	b.hs	LBB0_6
; %bb.5:
	mov	w10, #0
	mov	x9, #0
	b	LBB0_10
LBB0_6:
	and	x9, x8, #0xffffffc0
	add	x10, x0, #128
	movi.2d	v0, #0000000000000000
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x10, #128
	sub	x13, x10, #64
	ld4.16b	{ v4, v5, v6, v7 }, [x12]
	ld4.16b	{ v16, v17, v18, v19 }, [x13]
	mov	x12, x10
	ld4.16b	{ v20, v21, v22, v23 }, [x12], #64
	ld4.16b	{ v24, v25, v26, v27 }, [x12]
	add.16b	v0, v4, v0
	add.16b	v1, v16, v1
	add.16b	v2, v20, v2
	add.16b	v3, v24, v3
	add.16b	v0, v5, v0
	add.16b	v1, v17, v1
	add.16b	v2, v21, v2
	add.16b	v3, v25, v3
	add.16b	v0, v6, v0
	add.16b	v1, v18, v1
	add.16b	v2, v22, v2
	add.16b	v3, v26, v3
	add.16b	v0, v7, v0
	add.16b	v1, v19, v1
	add.16b	v2, v23, v2
	add.16b	v3, v27, v3
	add	x10, x10, #256
	subs	x11, x11, #64
	b.ne	LBB0_7
; %bb.8:
	add.16b	v0, v1, v0
	add.16b	v0, v2, v0
	add.16b	v0, v3, v0
	addv.16b	b0, v0
	fmov	w10, s0
	cmp	x9, x8
	b.eq	LBB0_15
; %bb.9:
	tst	x8, #0x38
	b.eq	LBB0_13
LBB0_10:
	mov	x11, x9
	and	x9, x8, #0xfffffff8
	movi	d0, #0000000000000000
	mov.b	v0[0], w10
	add	x10, x0, x11, lsl #2
	sub	x11, x11, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ld4.8b	{ v1, v2, v3, v4 }, [x10], #32
	add.8b	v0, v1, v0
	add.8b	v0, v2, v0
	add.8b	v0, v3, v0
	add.8b	v0, v4, v0
	adds	x11, x11, #8
	b.ne	LBB0_11
; %bb.12:
	addv.8b	b0, v0
	fmov	w10, s0
	cmp	x9, x8
	b.eq	LBB0_15
LBB0_13:
	add	x11, x0, x9, lsl #2
	sub	x8, x8, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x11], #4
	ushll.8h	v0, v0, #0
	addv.4h	h0, v0
	fmov	w9, s0
	add	w10, w9, w10
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	and	w0, w10, #0xff
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___calc_recs_byte_sum
.subsections_via_symbols
