	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csum16_update                  ## -- Begin function csum16_update
	.p2align	4, 0x90
_csum16_update:                         ## @csum16_update
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	cmpl	$0, (%rdx)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	shll	$8, %edi
	addl	4(%r14), %edi
	callq	_LE16_TO_HOST
	addl	%eax, 8(%r14)
	movl	$0, (%r14)
	decl	%r15d
	addq	$4, %rbx
LBB0_2:
	cmpl	$2, %r15d
	jl	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %r12d
	movl	4(%rbx), %edi
	shll	$8, %edi
	addl	(%rbx), %edi
	callq	_LE16_TO_HOST
	addl	%eax, 8(%r14)
	leal	-2(%r12), %r15d
	addq	$8, %rbx
	cmpl	$3, %r12d
	ja	LBB0_3
LBB0_4:
	cmpl	$1, %r15d
	jne	LBB0_6
## %bb.5:
	movl	(%rbx), %eax
	movl	%eax, 4(%r14)
	movl	$1, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_csum16_update                  ; -- Begin function csum16_update
	.p2align	2
_csum16_update:                         ; @csum16_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x2]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	ldr	w9, [x20], #4
	add	w0, w8, w9, lsl #8
	bl	_LE16_TO_HOST
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	str	wzr, [x19]
	sub	w21, w21, #1
LBB0_2:
	cmp	w21, #2
	b.lt	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x21
	ldp	w8, w9, [x20], #8
	add	w0, w8, w9, lsl #8
	bl	_LE16_TO_HOST
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	sub	w21, w21, #2
	cmp	w22, #3
	b.hi	LBB0_3
LBB0_4:
	cmp	w21, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x20]
	mov	w9, #1
	stp	w9, w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
