	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_crc_flex
_calc_crc_flex:                         ## @calc_crc_flex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_crc_flex_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.3:
	movw	$-1, %cx
	jmp	LBB0_6
LBB0_1:
	movw	$-1, %cx
	jmp	LBB0_8
LBB0_4:
	movl	%esi, %r9d
	andl	$-2, %r9d
	movw	$-1, %cx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	%cx, %ecx
	movl	%ecx, %eax
	shll	$8, %eax
	shrq	$8, %rcx
	movzbl	(%rdi), %edx
	xorq	%rcx, %rdx
	movzwl	(%r8,%rdx,2), %ecx
	xorl	%ecx, %eax
	shll	$8, %ecx
	movzwl	%ax, %eax
	shrq	$8, %rax
	movzbl	1(%rdi), %edx
	addq	$2, %rdi
	xorq	%rax, %rdx
	xorw	(%r8,%rdx,2), %cx
	addl	$-2, %r9d
	jne	LBB0_5
LBB0_6:
	testb	$1, %sil
	je	LBB0_8
## %bb.7:
	movzwl	%cx, %eax
	movl	%eax, %ecx
	shll	$8, %ecx
	shrq	$8, %rax
	movzbl	(%rdi), %edx
	xorq	%rax, %rdx
	xorw	(%r8,%rdx,2), %cx
LBB0_8:
	movzwl	%cx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crc_flex_table,8,3             ## @crc_flex_table
	.no_dead_strip	_calc_crc_flex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_crc_flex
_calc_crc_flex:                         ; @calc_crc_flex
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _crc_flex_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _crc_flex_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	mov	w8, #65535
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x0], #1
	ubfx	w11, w8, #8, #8
	eor	x10, x10, x11
	ldrh	w10, [x9, x10, lsl #1]
	eor	w8, w10, w8, lsl #8
	subs	w1, w1, #1
	b.ne	LBB0_2
; %bb.3:
	and	w0, w8, #0xffff
	ret
LBB0_4:
	mov	w8, #65535
	and	w0, w8, #0xffff
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_crc_flex_table,8,3             ; @crc_flex_table
	.no_dead_strip	_calc_crc_flex
.subsections_via_symbols
