	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_crc32
_calc_crc32:                            ## @calc_crc32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	_crctable@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	$1, %rsi
	je	LBB0_4
## %bb.2:
	movq	%rsi, %rcx
	andq	$-2, %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi), %r9d
	movzbl	%dl, %eax
	xorq	%r9, %rax
	shrq	$8, %rdx
	xorq	(%r8,%rax,8), %rdx
	movzbl	1(%rdi), %r9d
	addq	$2, %rdi
	movzbl	%dl, %eax
	xorq	%r9, %rax
	shrq	$8, %rdx
	xorq	(%r8,%rax,8), %rdx
	addq	$-2, %rcx
	jne	LBB0_3
LBB0_4:
	testb	$1, %sil
	je	LBB0_6
## %bb.5:
	movzbl	(%rdi), %eax
	movzbl	%dl, %ecx
	xorq	%rax, %rcx
	shrq	$8, %rdx
	xorq	(%r8,%rcx,8), %rdx
LBB0_6:
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	xorq	%rdx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crctable,8,3                   ## @crctable
	.no_dead_strip	_calc_crc32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_crc32
_calc_crc32:                            ; @calc_crc32
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _crctable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _crctable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x0], #1
	and	x10, x2, #0xff
	eor	x9, x10, x9
	ldr	x9, [x8, x9, lsl #3]
	eor	x2, x9, x2, lsr #8
	subs	x1, x1, #1
	b.ne	LBB0_2
LBB0_3:
	eor	x0, x2, #0xffffffff
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_crctable,8,3                   ; @crctable
	.no_dead_strip	_calc_crc32
.subsections_via_symbols
