	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_temp_checksum
_qlcnic_temp_checksum:                  ## @qlcnic_temp_checksum
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	movl	$-1, %eax
	cmpl	$4, %esi
	jl	LBB0_14
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	shrl	$2, %esi
	leal	-1(%rsi), %r9d
	xorl	%eax, %eax
	cmpl	$7, %r9d
	jb	LBB0_11
## %bb.2:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdx
	movq	%rdx, %rax
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %ecx
	andl	$3, %ecx
	cmpq	$24, %rdx
	jae	LBB0_4
## %bb.3:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	jmp	LBB0_6
LBB0_4:
	andq	$-4, %rax
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rdx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rdi,%rdx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rdi,%rdx,4), %xmm1
	movdqu	48(%rdi,%rdx,4), %xmm3
	movdqu	64(%rdi,%rdx,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	80(%rdi,%rdx,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	96(%rdi,%rdx,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	112(%rdi,%rdx,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rdx
	addq	$-4, %rax
	jne	LBB0_5
LBB0_6:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	leaq	(%rdi,%rdx,4), %rax
	addq	$16, %rax
	shlq	$5, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rdx), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rax,%rdx), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_8
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%r8, %r9
	je	LBB0_13
## %bb.10:
	subl	%r8d, %esi
	leaq	(%rdi,%r8,4), %rdi
LBB0_11:
	incl	%esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdi), %eax
	addq	$4, %rdi
	decl	%esi
	cmpl	$1, %esi
	ja	LBB0_12
LBB0_13:
	notl	%eax
	popq	%rbp
LBB0_14:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qlcnic_temp_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_temp_checksum
_qlcnic_temp_checksum:                  ; @qlcnic_temp_checksum
	.cfi_startproc
; %bb.0:
	cmp	w1, #4
	b.lt	LBB0_3
; %bb.1:
	lsr	w9, w1, #2
	sub	w8, w9, #1
	cmp	w8, #15
	b.hs	LBB0_4
; %bb.2:
	mov	w12, #0
	mov	x8, x0
	b	LBB0_7
LBB0_3:
	mov	w0, #-1
	ret
LBB0_4:
	add	x10, x8, #1
	and	x11, x10, #0x1fffffff0
	sub	w9, w9, w11
	add	x8, x0, x11, lsl #2
	add	x12, x0, #32
	movi.2d	v0, #0000000000000000
	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
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x13, x13, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_7:
	add	w9, w9, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	add	w12, w10, w12
	sub	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_8
LBB0_9:
	mvn	w0, w12
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qlcnic_temp_checksum
.subsections_via_symbols
