	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_cksum                       ## -- Begin function in_cksum
	.p2align	4, 0x90
_in_cksum:                              ## @in_cksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%edx, %edx
	cmpl	$2, %esi
	jl	LBB0_12
## %bb.1:
	xorl	%edx, %edx
	movl	%esi, %r9d
	subl	$3, %r9d
	cmovbl	%edx, %r9d
	incl	%r9d
	cmpl	$14, %r9d
	jb	LBB0_10
## %bb.2:
	shrl	%r9d
	incl	%r9d
	movl	%r9d, %r8d
	andl	$-8, %r8d
	leaq	-8(%r8), %rcx
	movq	%rcx, %rdx
	shrq	$3, %rdx
	incq	%rdx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$24, %rcx
	jae	LBB0_4
## %bb.3:
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	jmp	LBB0_6
LBB0_4:
	andq	$-4, %rdx
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rcx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rdi,%rcx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rdi,%rcx,4), %xmm1
	movdqu	48(%rdi,%rcx,4), %xmm3
	movdqu	64(%rdi,%rcx,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	80(%rdi,%rcx,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	96(%rdi,%rcx,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	112(%rdi,%rcx,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rcx
	addq	$-4, %rdx
	jne	LBB0_5
LBB0_6:
	leal	(%r8,%r8), %r10d
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	(%rdi,%rcx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rcx,%rdx), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rcx,%rdx), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_8
LBB0_9:
	paddd	%xmm1, %xmm0
	subl	%r10d, %esi
	leaq	(%rdi,%r8,4), %rdi
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%r9, %r8
	je	LBB0_12
LBB0_10:
	movl	%esi, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdi), %edx
	addq	$4, %rdi
	leal	-2(%rax), %esi
	cmpl	$3, %eax
	movl	%esi, %eax
	ja	LBB0_11
LBB0_12:
	cmpl	$1, %esi
	jne	LBB0_14
## %bb.13:
	addl	(%rdi), %edx
LBB0_14:
	movl	%edx, %eax
	sarl	$16, %eax
	movzwl	%dx, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
	sarl	$16, %eax
	addl	%ecx, %eax
	notl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_cksum                       ; -- Begin function in_cksum
	.p2align	2
_in_cksum:                              ; @in_cksum
	.cfi_startproc
; %bb.0:
	cmp	w1, #2
	b.lt	LBB0_3
; %bb.1:
	subs	w8, w1, #3
	csel	w8, wzr, w8, lo
	add	w8, w8, #1
	cmp	w8, #30
	b.hs	LBB0_4
; %bb.2:
	mov	w9, #0
	mov	x8, x0
	b	LBB0_7
LBB0_3:
	mov	w9, #0
	mov	x8, x0
	b	LBB0_9
LBB0_4:
	lsr	w8, w8, #1
	add	w10, w8, #1
	and	x11, x10, #0xfffffff0
	sub	w1, w1, w11, lsl #1
	add	x8, x0, x11, lsl #2
	add	x9, x0, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x9, #-32]
	ldp	q6, q7, [x9], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w9, s0
	cmp	x11, x10
	b.eq	LBB0_9
LBB0_7:
	mov	x10, x1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	add	w9, w11, w9
	sub	w1, w10, #2
	cmp	w10, #3
	mov	x10, x1
	b.hi	LBB0_8
LBB0_9:
	cmp	w1, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x8]
	add	w9, w9, w8
LBB0_11:
	asr	w8, w9, #16
	add	w8, w8, w9, uxth
	add	w8, w8, w8, asr #16
	mvn	w0, w8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
