	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checksum
_checksum:                              ## @checksum
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%esi, %eax
	andl	$-2, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r12,4), %rdi
	callq	_ntohs
	leal	(%rbx,%rax), %ecx
	cmpl	$65536, %ecx                    ## imm = 0x10000
	leal	-65535(%rbx,%rax), %ebx
	cmovbl	%ecx, %ebx
	addq	$2, %r12
	cmpq	%r13, %r12
	jb	LBB0_3
## %bb.4:
	cmpl	%r15d, %r12d
	jae	LBB0_6
LBB0_5:
	movl	%r12d, %eax
	movl	(%r14,%rax,4), %eax
	shll	$8, %eax
	leal	(%rax,%rbx), %ecx
	cmpl	$65536, %ecx                    ## imm = 0x10000
	leal	-65535(%rax,%rbx), %ebx
	cmovbl	%ecx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r12d, %r12d
	cmpl	%r15d, %r12d
	jb	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checksum
_checksum:                              ; @checksum
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ands	w23, w1, #0xfffffffe
	b.eq	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	w24, #-65535
	mov	x25, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25], #8
	bl	_ntohs
	add	w8, w19, w0
	add	w9, w8, w24
	lsr	w10, w8, #16
	cmp	w10, #0
	csel	w19, w9, w8, ne
	add	x22, x22, #2
	cmp	x22, x23
	b.lo	LBB0_2
; %bb.3:
	cmp	w22, w21
	b.hs	LBB0_5
LBB0_4:
	ldr	w8, [x20, w22, uxtw #2]
	add	w8, w19, w8, lsl #8
	mov	w9, #-65535
	add	w9, w8, w9
	lsr	w10, w8, #16
	cmp	w10, #0
	csel	w19, w9, w8, ne
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w22, #0
	cmp	w22, w21
	b.lo	LBB0_4
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_checksum
.subsections_via_symbols
