	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function buffalo_csum
LCPI0_0:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_buffalo_csum
	.p2align	4, 0x90
_buffalo_csum:                          ## @buffalo_csum
	.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
	.cfi_offset %rbx, -24
	movl	%edi, %eax
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.1:
	xorl	%r8d, %r8d
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [8,4,2,1]
	pxor	%xmm1, %xmm1
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %r11d
	xorl	%r11d, %ecx
	movl	%ebx, %edi
	shll	$27, %edi
	sarl	$31, %edi
	sarl	$2, %ecx
	andl	$-153337456, %edi               ## imm = 0xF6DC4190
	shll	$26, %ebx
	sarl	$31, %ebx
	andl	$-306674912, %ebx               ## imm = 0xEDB88320
	xorl	%edi, %ebx
	xorl	%ecx, %ebx
	shll	$26, %r10d
	sarl	$31, %r10d
	sarl	$2, %ebx
	andl	$-153337456, %r10d              ## imm = 0xF6DC4190
	shll	$26, %eax
	sarl	$31, %eax
	andl	$-306674912, %eax               ## imm = 0xEDB88320
	xorl	%r10d, %eax
	xorl	%ebx, %eax
	incq	%r8
	cmpq	%r8, %rdx
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rsi,%r8), %ebx
	xorl	%eax, %ebx
	movl	%ebx, %eax
	sarl	%eax
	movd	%ebx, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	pand	%xmm0, %xmm2
	pcmpeqd	%xmm1, %xmm2
	movmskps	%xmm2, %r9d
	movl	$0, %r10d
	testb	$8, %r9b
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-306674912, %r10d              ## imm = 0xEDB88320
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %r10d
	movl	%r10d, %ecx
	sarl	%ecx
	movl	$0, %eax
	testb	$4, %r9b
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-306674912, %eax               ## imm = 0xEDB88320
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %eax
	movl	$0, %r11d
	testb	$2, %r9b
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-153337456, %r11d              ## imm = 0xF6DC4190
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	sarl	$2, %ecx
	movl	$0, %edi
	testb	$1, %r9b
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-306674912, %edi               ## imm = 0xEDB88320
	jmp	LBB0_10
LBB0_11:
	popq	%rbx
	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	_buffalo_csum                   ; -- Begin function buffalo_csum
	.p2align	2
_buffalo_csum:                          ; @buffalo_csum
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_3
; %bb.1:
	mov	w8, #16784
	movk	w8, #63196, lsl #16
	mov	w9, #33568
	movk	w9, #60856, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w10, [x1], #1
	eor	w10, w0, w10
	sbfx	w11, w10, #0, #1
	and	w11, w11, w9
	eor	w11, w11, w10, asr #1
	lsl	w12, w10, #30
	and	w12, w9, w12, asr #31
	eor	w12, w12, w11, asr #1
	lsl	w13, w10, #29
	and	w13, w8, w13, asr #31
	eor	w13, w13, w12, asr #2
	lsl	w14, w10, #28
	and	w14, w9, w14, asr #31
	eor	w13, w14, w13
	lsl	w14, w10, #27
	and	w14, w8, w14, asr #31
	eor	w13, w14, w13, asr #2
	lsl	w10, w10, #26
	and	w10, w9, w10, asr #31
	eor	w10, w10, w13
	lsl	w11, w11, #26
	and	w11, w8, w11, asr #31
	eor	w10, w11, w10, asr #2
	lsl	w11, w12, #26
	and	w11, w9, w11, asr #31
	eor	w0, w11, w10
	subs	x2, x2, #1
	b.ne	LBB0_2
LBB0_3:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
