	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buffalo_crc                    ## -- Begin function buffalo_crc
	.p2align	4, 0x90
_buffalo_crc:                           ## @buffalo_crc
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_crc32_table@GOTPCREL(%rip), %r8
	movq	(%r8), %r9
	cmpq	$1, %rsi
	jne	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	retq
LBB0_10:
	movq	%rsi, %r10
	andq	$-2, %r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	shll	$8, %edx
	shrl	$24, %eax
	movzbl	(%rdi), %ecx
	xorl	%eax, %ecx
	xorl	(%r9,%rcx,4), %edx
	movl	%edx, %eax
	shll	$8, %eax
	shrl	$24, %edx
	movzbl	1(%rdi), %ecx
	addq	$2, %rdi
	xorl	%edx, %ecx
	xorl	(%r9,%rcx,4), %eax
	addq	$-2, %r10
	jne	LBB0_11
LBB0_4:
	testb	$1, %sil
	je	LBB0_6
## %bb.5:
	movl	%eax, %ecx
	shll	$8, %ecx
	shrl	$24, %eax
	movzbl	(%rdi), %edi
	xorl	%eax, %edi
	xorl	(%r9,%rdi,4), %ecx
	movl	%ecx, %eax
LBB0_6:
	movq	(%r8), %r8
	movq	%rsi, %rdx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	shll	$8, %edi
	shrl	$24, %eax
	movzbl	%sil, %ecx
	xorq	%rax, %rcx
	movl	%edi, %eax
	xorl	(%r8,%rcx,4), %eax
	shrq	$8, %rdx
	cmpq	$255, %rsi
	movq	%rdx, %rsi
	ja	LBB0_7
## %bb.8:
	notl	%eax
	popq	%rbp
                                        ## kill: def $eax killed $eax killed $rax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crc32_table,8,3                ## @crc32_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buffalo_crc                    ; -- Begin function buffalo_crc
	.p2align	2
_buffalo_crc:                           ; @buffalo_crc
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_6
; %bb.1:
	mov	x10, #0
	mov	w8, #0
Lloh0:
	adrp	x9, _crc32_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _crc32_table@GOTPAGEOFF]
	ldr	x11, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x0, x10]
	eor	w12, w12, w8, lsr #24
	ldr	w12, [x11, w12, uxtw #2]
	eor	w8, w12, w8, lsl #8
	add	x10, x10, #1
	cmp	x1, x10
	b.ne	LBB0_2
; %bb.3:
	ldr	x9, [x9]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w10, w8, #24
	and	x11, x1, #0xff
	eor	x10, x11, x10
	ldr	w10, [x9, x10, lsl #2]
	eor	w8, w10, w8, lsl #8
	lsr	x10, x1, #8
	cmp	x1, #255
	mov	x1, x10
	b.hi	LBB0_4
; %bb.5:
	mvn	w0, w8
	ret
LBB0_6:
	mov	w0, #-1
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_crc32_table,8,3                ; @crc32_table
.subsections_via_symbols
