	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_crc32                      ## -- Begin function cpu_crc32
	.p2align	4, 0x90
_cpu_crc32:                             ## @cpu_crc32
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rsi
	leaq	L_.str(%rip), %rdx
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_hc_fopen
	movl	$1048577, %edi                  ## imm = 0x100001
	callq	_hcmalloc
	movq	%rax, %r14
	movl	$1048576, %edx                  ## imm = 0x100000
	movq	%rax, %rdi
	movl	$4, %esi
	movq	%r12, %rcx
	callq	_hc_fread
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_hc_fclose
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	_crc32tab@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	$-1, %ecx
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rsi,4), %eax
	xorl	%ecx, %eax
	movzbl	%al, %eax
	sarl	$8, %ecx
	xorl	(%r8,%rax,4), %ecx
	movl	%ecx, %eax
	shrl	$24, %eax
	addl	%eax, (%r13,%rdi,4)
	incq	%rdi
	cmpq	$64, %rdi
	cmovaeq	%r9, %rdi
	movl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	leaq	1(%rdi), %rdx
	addl	%eax, (%r13,%rdi,4)
	cmpq	$63, %rdi
	cmovaeq	%r9, %rdx
	movzbl	%ch, %eax
	leaq	1(%rdx), %rbx
	addl	%eax, (%r13,%rdx,4)
	cmpq	$63, %rdx
	cmovaeq	%r9, %rbx
	movzbl	%cl, %eax
	leaq	1(%rbx), %rdi
	addl	%eax, (%r13,%rbx,4)
	cmpq	$63, %rbx
	cmovaeq	%r9, %rdi
	incq	%rsi
	cmpq	%rsi, %r15
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_hcfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_crc32tab,8,3                   ## @crc32tab
	.comm	_MAX_KEY_SIZE,8,3               ## @MAX_KEY_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_crc32                      ; -- Begin function cpu_crc32
	.p2align	2
_cpu_crc32:                             ; @cpu_crc32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x1, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_hc_fopen
	mov	w0, #1
	movk	w0, #16, lsl #16
	bl	_hcmalloc
	mov	x20, x0
	add	x3, sp, #12
	mov	w1, #4
	mov	w2, #1048576
	bl	_hc_fread
	mov	x21, x0
	add	x0, sp, #12
	bl	_hc_fclose
	cbz	x21, LBB0_3
; %bb.1:
	mov	x11, #0
Lloh2:
	adrp	x8, _crc32tab@GOTPAGE
Lloh3:
	ldr	x8, [x8, _crc32tab@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	w9, #-1
	mov	x10, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10], #4
	eor	w12, w12, w9
	and	w12, w12, #0xff
	ldr	w12, [x8, w12, uxtw #2]
	eor	w9, w12, w9, asr #8
	add	x12, x11, #1
	lsl	x13, x11, #2
	ldr	w14, [x19, x13]
	add	w14, w14, w9, lsr #24
	str	w14, [x19, x13]
	cmp	x12, #63
	csinc	x11, xzr, x11, hi
	lsr	w12, w9, #16
	lsl	x13, x11, #2
	ldr	w14, [x19, x13]
	add	w12, w14, w12, uxtb
	str	w12, [x19, x13]
	cmp	x11, #62
	csinc	x11, xzr, x11, hi
	lsr	w12, w9, #8
	lsl	x13, x11, #2
	ldr	w14, [x19, x13]
	add	w12, w14, w12, uxtb
	str	w12, [x19, x13]
	cmp	x11, #62
	csinc	x11, xzr, x11, hi
	lsl	x12, x11, #2
	ldr	w13, [x19, x12]
	add	w13, w13, w9, uxtb
	str	w13, [x19, x12]
	cmp	x11, #62
	csinc	x11, xzr, x11, hi
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_hcfree
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_crc32tab,8,3                   ; @crc32tab
	.comm	_MAX_KEY_SIZE,8,3               ; @MAX_KEY_SIZE
.subsections_via_symbols
