	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_vrr_infopacket_checksum
_build_vrr_infopacket_checksum:         ## @build_vrr_infopacket_checksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movdqu	32(%rsi), %xmm0
	movdqu	16(%rsi), %xmm1
	paddq	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddq	%xmm1, %xmm0
	movd	%xmm0, %ecx
	movl	(%rdi), %r8d
	movq	(%rsi), %rax
	testq	%r8, %r8
	je	LBB0_18
## %bb.1:
	movl	$1, %edi
	cmpq	$8, %r8
	jb	LBB0_16
## %bb.2:
	cmpl	$32, %r8d
	jae	LBB0_7
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_7:
	movl	%r8d, %edx
	andl	$-32, %edx
	movzbl	%cl, %ecx
	movd	%ecx, %xmm0
	leaq	-32(%rdx), %rcx
	movq	%rcx, %rdi
	shrq	$5, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$96, %rcx
	jae	LBB0_9
## %bb.8:
	pxor	%xmm1, %xmm1
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_9:
	andq	$-4, %rdi
	pxor	%xmm1, %xmm1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	1(%rax,%rcx), %xmm2
	paddb	%xmm0, %xmm2
	movdqu	17(%rax,%rcx), %xmm0
	paddb	%xmm1, %xmm0
	movdqu	33(%rax,%rcx), %xmm1
	movdqu	49(%rax,%rcx), %xmm3
	movdqu	65(%rax,%rcx), %xmm4
	paddb	%xmm1, %xmm4
	paddb	%xmm2, %xmm4
	movdqu	81(%rax,%rcx), %xmm2
	paddb	%xmm3, %xmm2
	paddb	%xmm0, %xmm2
	movdqu	97(%rax,%rcx), %xmm0
	paddb	%xmm4, %xmm0
	movdqu	113(%rax,%rcx), %xmm1
	paddb	%xmm2, %xmm1
	subq	$-128, %rcx
	addq	$-4, %rdi
	jne	LBB0_10
LBB0_11:
	testq	%r9, %r9
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdi
	orq	$1, %rdi
	movdqu	(%rax,%rdi), %xmm2
	paddb	%xmm2, %xmm0
	movdqu	16(%rax,%rdi), %xmm2
	paddb	%xmm2, %xmm1
	addq	$32, %rcx
	decq	%r9
	jne	LBB0_12
LBB0_13:
	paddb	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddb	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	psadbw	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%rdx, %r8
	je	LBB0_18
## %bb.14:
	testb	$24, %r8b
	je	LBB0_15
LBB0_4:
	movl	%r8d, %r9d
	andl	$-8, %r9d
	leaq	1(%r9), %rdi
	movzbl	%cl, %ecx
	movd	%ecx, %xmm0
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	1(%rax,%rdx), %xmm1             ## xmm1 = mem[0],zero
	paddb	%xmm1, %xmm0
	addq	$8, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_5
## %bb.6:
	pxor	%xmm1, %xmm1
	psadbw	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%r9, %r8
	jne	LBB0_16
	jmp	LBB0_18
LBB0_15:
	orq	$1, %rdx
	movq	%rdx, %rdi
LBB0_16:
	incq	%r8
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	addb	(%rax,%rdi), %cl
	incq	%rdi
	cmpq	%rdi, %r8
	jne	LBB0_17
LBB0_18:
	negb	%cl
	movb	%cl, (%rax)
	movl	$1, 8(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_build_vrr_infopacket_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_vrr_infopacket_checksum
_build_vrr_infopacket_checksum:         ; @build_vrr_infopacket_checksum
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1, #40]
	ldr	w9, [x1, #32]
	ldr	w10, [x1, #24]
	add	w8, w9, w8
	add	w8, w8, w10
	ldr	w9, [x1, #16]
	add	w10, w8, w9
	ldr	w9, [x0]
	ldr	x8, [x1]
	cbz	w9, LBB0_15
; %bb.1:
	cmp	x9, #8
	b.hs	LBB0_3
; %bb.2:
	mov	w12, #1
	b	LBB0_13
LBB0_3:
	cmp	x9, #64
	b.hs	LBB0_5
; %bb.4:
	mov	x11, #0
	b	LBB0_9
LBB0_5:
	and	x11, x9, #0xffffffc0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.b	v1[0], w10
	add	x10, x8, #33
	mov	x12, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	add.16b	v1, v4, v1
	add.16b	v0, v5, v0
	add.16b	v2, v6, v2
	add.16b	v3, v7, v3
	subs	x12, x12, #64
	b.ne	LBB0_6
; %bb.7:
	add.16b	v0, v0, v1
	add.16b	v0, v2, v0
	add.16b	v0, v3, v0
	addv.16b	b0, v0
	fmov	w10, s0
	cmp	x9, x11
	b.eq	LBB0_15
; %bb.8:
	tst	x9, #0x38
	b.eq	LBB0_12
LBB0_9:
	and	x13, x9, #0xfffffff8
	orr	x12, x13, #0x1
	movi	d0, #0000000000000000
	mov.b	v0[0], w10
	add	x10, x11, x8
	add	x10, x10, #1
	sub	x11, x11, x13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x10], #8
	add.8b	v0, v1, v0
	adds	x11, x11, #8
	b.ne	LBB0_10
; %bb.11:
	addv.8b	b0, v0
	fmov	w10, s0
	cmp	x9, x13
	b.ne	LBB0_13
	b	LBB0_15
LBB0_12:
	orr	x12, x11, #0x1
LBB0_13:
	add	x11, x9, #1
	add	x9, x8, x12
	sub	x11, x11, x12
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x9], #1
	add	w10, w12, w10
	subs	x11, x11, #1
	b.ne	LBB0_14
LBB0_15:
	neg	w9, w10
	strb	w9, [x8]
	mov	w8, #1
	str	w8, [x1, #8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_build_vrr_infopacket_checksum
.subsections_via_symbols
