	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e82545_buf_checksum
_e82545_buf_checksum:                   ## @e82545_buf_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	andl	$-2, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %eax
	leaq	-1(%rax), %rcx
	cmpq	$6, %rcx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	shrq	%rcx
	incq	%rcx
	movq	%rcx, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rdx
	movq	%rdx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.6:
	movq	%r9, %rbx
	andq	$-2, %rbx
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rdx,4), %xmm2
	movdqu	16(%rdi,%rdx,4), %xmm3
	movdqu	32(%rdi,%rdx,4), %xmm4
	movdqu	48(%rdi,%rdx,4), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$16, %rdx
	addq	$-2, %rbx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r9b
	je	LBB0_10
LBB0_9:
	movdqu	(%rdi,%rdx,4), %xmm2
	movdqu	16(%rdi,%rdx,4), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_10:
	paddd	%xmm1, %xmm0
	leaq	(%r8,%r8), %rdx
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%r8, %rcx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdi,%rdx,4), %ebx
	addq	$2, %rdx
	cmpq	%rax, %rdx
	jb	LBB0_11
LBB0_12:
	cmpl	%esi, %edx
	jge	LBB0_14
## %bb.13:
	movl	%edx, %eax
	movl	(%rdi,%rax,4), %edi
	shll	$8, %edi
	callq	_htons
	addl	%eax, %ebx
LBB0_14:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_e82545_carry                   ## TAILCALL
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	testb	$1, %r9b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_e82545_buf_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e82545_buf_checksum
_e82545_buf_checksum:                   ; @e82545_buf_checksum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ands	w8, w1, #0xfffffffe
	b.eq	LBB0_3
; %bb.1:
	sub	x9, x8, #1
	cmp	x9, #14
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	mov	w19, #0
	b	LBB0_7
LBB0_3:
	mov	w9, #0
	mov	w19, #0
	b	LBB0_9
LBB0_4:
	lsr	x9, x9, #1
	add	x10, x9, #1
	and	x11, x10, #0xfffffffffffffff8
	lsl	x9, x11, #1
	movi.2d	v0, #0000000000000000
	add	x12, x0, #32
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w19, s0
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_7:
	add	x10, x0, x9, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #8
	add	w19, w19, w11
	add	x9, x9, #2
	cmp	x9, x8
	b.lo	LBB0_8
LBB0_9:
	cmp	w9, w1
	b.ge	LBB0_11
; %bb.10:
	ldr	w8, [x0, w9, uxtw #2]
	lsl	w0, w8, #8
	bl	_htons
	add	w19, w19, w0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_e82545_carry
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_e82545_buf_checksum
.subsections_via_symbols
