	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_crc
_calc_crc:                              ## @calc_crc
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %r8d
	movb	$-1, %dl
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorb	(%rdi,%rcx), %dl
	movl	%edx, %eax
	shrb	%al
	movzbl	%al, %esi
	xorb	$32, %al
	testb	$1, %dl
	movzbl	%al, %eax
	cmovel	%esi, %eax
	movl	%eax, %edx
	shrb	%dl
	movzbl	%dl, %esi
	xorb	$32, %dl
	testb	$1, %al
	movzbl	%dl, %eax
	cmovel	%esi, %eax
	movl	%eax, %edx
	shrb	%dl
	movzbl	%dl, %esi
	xorb	$32, %dl
	testb	$1, %al
	movzbl	%dl, %eax
	cmovel	%esi, %eax
	movl	%eax, %edx
	shrb	%dl
	movzbl	%dl, %esi
	xorb	$32, %dl
	testb	$1, %al
	movzbl	%dl, %eax
	cmovel	%esi, %eax
	movl	%eax, %edx
	shrb	%dl
	movzbl	%dl, %esi
	xorb	$32, %dl
	testb	$1, %al
	movzbl	%dl, %eax
	cmovel	%esi, %eax
	movl	%eax, %edx
	shrb	%dl
	movzbl	%dl, %esi
	xorb	$32, %dl
	testb	$1, %al
	movzbl	%dl, %eax
	cmovel	%esi, %eax
	movl	%eax, %edx
	shrb	%dl
	movzbl	%dl, %esi
	xorb	$32, %dl
	testb	$1, %al
	movzbl	%dl, %eax
	cmovel	%esi, %eax
	movl	%eax, %edx
	shrb	%dl
	movzbl	%dl, %esi
	xorb	$32, %dl
	testb	$1, %al
	movzbl	%dl, %edx
	cmovel	%esi, %edx
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_3
## %bb.4:
	notb	%dl
	popq	%rbp
	movzbl	%dl, %eax
	retq
LBB0_1:
	xorl	%edx, %edx
	movzbl	%dl, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_crc
_calc_crc:                              ; @calc_crc
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w8, w1
	mov	w9, #255
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x0], #1
	eor	w9, w10, w9
	lsr	w10, w9, #1
	eor	w11, w10, #0x20
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	lsr	w10, w9, #1
	eor	w11, w10, #0x20
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	lsr	w10, w9, #1
	eor	w11, w10, #0x20
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	lsr	w10, w9, #1
	eor	w11, w10, #0x20
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	lsr	w10, w9, #1
	eor	w11, w10, #0x20
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	lsr	w10, w9, #1
	eor	w11, w10, #0x20
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	lsr	w10, w9, #1
	eor	w11, w10, #0x20
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	lsr	w10, w9, #1
	eor	w11, w10, #0x20
	tst	w9, #0x1
	csel	w9, w10, w11, eq
	subs	x8, x8, #1
	b.ne	LBB0_2
; %bb.3:
	eor	w8, w9, #0xff
	and	w0, w8, #0xff
	ret
LBB0_4:
	and	w0, wzr, #0xff
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_crc
.subsections_via_symbols
