	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csum_update                    ## -- Begin function csum_update
	.p2align	4, 0x90
_csum_update:                           ## @csum_update
	.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
	je	LBB0_8
## %bb.1:
	cmpl	$0, (%rdx)
	je	LBB0_3
## %bb.2:
	movl	4(%rdx), %r8d
	movl	8(%rdx), %ecx
	shll	$8, %ecx
	addl	(%rdi), %ecx
	leal	(%rcx,%r8), %eax
	cmpl	$65536, %eax                    ## imm = 0x10000
	leal	1(%r8,%rcx), %ecx
	movzwl	%cx, %ecx
	cmovll	%eax, %ecx
	movl	%ecx, 4(%rdx)
	movl	$0, (%rdx)
	decl	%esi
	addq	$4, %rdi
LBB0_3:
	cmpl	$2, %esi
	jl	LBB0_6
## %bb.4:
	movl	4(%rdx), %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %r8d
	movl	(%rdi), %esi
	shll	$8, %esi
	addl	4(%rdi), %esi
	leal	(%rsi,%rax), %ecx
	cmpl	$65536, %ecx                    ## imm = 0x10000
	leal	1(%rax,%rsi), %eax
	movzwl	%ax, %eax
	cmovll	%ecx, %eax
	movl	%eax, 4(%rdx)
	leal	-2(%r8), %esi
	addq	$8, %rdi
	cmpl	$3, %r8d
	ja	LBB0_5
LBB0_6:
	cmpl	$1, %esi
	jne	LBB0_8
## %bb.7:
	movl	(%rdi), %eax
	movl	%eax, 8(%rdx)
	movl	$1, (%rdx)
LBB0_8:
	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	_csum_update                    ; -- Begin function csum_update
	.p2align	2
_csum_update:                           ; @csum_update
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_8
; %bb.1:
	ldr	w8, [x2]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x0], #4
	ldp	w10, w9, [x2, #4]
	add	w8, w8, w9, lsl #8
	add	w8, w8, w10
	add	w9, w8, #1
	and	w9, w9, #0xffff
	cmp	w8, #16, lsl #12                ; =65536
	csel	w8, w9, w8, ge
	stp	wzr, w8, [x2]
	sub	w1, w1, #1
LBB0_3:
	cmp	w1, #2
	b.lt	LBB0_6
; %bb.4:
	ldr	w8, [x2, #4]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x1
	ldp	w10, w11, [x0], #8
	add	w10, w11, w10, lsl #8
	add	w8, w10, w8
	add	w10, w8, #1
	and	w10, w10, #0xffff
	cmp	w8, #16, lsl #12                ; =65536
	csel	w8, w10, w8, ge
	str	w8, [x2, #4]
	sub	w1, w1, #2
	cmp	w9, #3
	b.hi	LBB0_5
LBB0_6:
	cmp	w1, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x0]
	str	w8, [x2, #8]
	mov	w8, #1
	str	w8, [x2]
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
