	.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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	cmpl	$2, %esi
	jl	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	leaq	-36(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	addl	-36(%rbp), %r12d
	addq	$32, %rbx
	leal	-4(%r14), %eax
	cmpl	$5, %r14d
	movl	%eax, %r14d
	ja	LBB0_3
## %bb.4:
	cmpl	$1, %eax
	jne	LBB0_6
LBB0_5:
	addl	(%rbx), %r12d
LBB0_6:
	movl	%r12d, %eax
	sarl	$16, %eax
	movzwl	%r12w, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
	sarl	$16, %eax
	addl	%ecx, %eax
	notl	%eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r14d, %eax
	cmpl	$1, %eax
	je	LBB0_5
	jmp	LBB0_6
	.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:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	cmp	w1, #2
	b.lt	LBB0_6
; %bb.1:
	mov	w20, #0
	mov	x21, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #12]
	add	w20, w8, w20
	add	x19, x19, #32
	sub	w1, w21, #4
	cmp	w21, #5
	mov	x21, x1
	b.hi	LBB0_2
; %bb.3:
	cmp	w1, #1
	b.ne	LBB0_5
LBB0_4:
	ldr	w8, [x19]
	add	w20, w20, w8
LBB0_5:
	asr	w8, w20, #16
	add	w8, w8, w20, uxth
	add	w8, w8, w8, asr #16
	mvn	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	w20, #0
	cmp	w1, #1
	b.eq	LBB0_4
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
