	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lha_crc16
_lha_crc16:                             ## @lha_crc16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	testb	$1, %sil
	je	LBB0_3
## %bb.2:
	movzbl	%dil, %eax
	sarl	$8, %edi
	movq	_crc16tbl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r8
	movzbl	(%rsi), %ecx
	incq	%rsi
	xorl	%ecx, %eax
	xorl	(%r8,%rax,4), %edi
	decq	%rdx
LBB0_3:
	cmpq	$8, %rdx
	jb	LBB0_6
## %bb.4:
	movq	_crc16tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %r8
	movq	8(%rcx), %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	(%rsi), %edi
	movzbl	%dil, %eax
	sarl	$8, %edi
	movslq	%edi, %rdi
	movl	(%r8,%rdi,4), %edi
	xorl	(%rcx,%rax,4), %edi
	xorl	4(%rsi), %edi
	movzbl	%dil, %eax
	sarl	$8, %edi
	movslq	%edi, %rdi
	movl	(%r8,%rdi,4), %edi
	xorl	(%rcx,%rax,4), %edi
	xorl	8(%rsi), %edi
	movzbl	%dil, %eax
	sarl	$8, %edi
	movslq	%edi, %rdi
	movl	(%r8,%rdi,4), %edi
	xorl	(%rcx,%rax,4), %edi
	xorl	12(%rsi), %edi
	addq	$16, %rsi
	movzbl	%dil, %eax
	sarl	$8, %edi
	movslq	%edi, %rdi
	movl	(%r8,%rdi,4), %edi
	xorl	(%rcx,%rax,4), %edi
	addq	$-8, %rdx
	cmpq	$7, %rdx
	ja	LBB0_5
LBB0_6:
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.7:
	movq	_crc16tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r9
	testb	$1, %dl
	jne	LBB0_11
## %bb.8:
                                        ## implicit-def: $eax
	movq	%rdx, %r8
	cmpq	$1, %rdx
	jne	LBB0_12
	jmp	LBB0_14
LBB0_10:
	movl	%edi, %eax
	popq	%rbp
	retq
LBB0_11:
	movl	%edi, %eax
	sarl	$8, %eax
	movzbl	(%rsi), %r8d
	incq	%rsi
	movzbl	%dil, %edi
	xorl	%r8d, %edi
	xorl	(%r9,%rdi,4), %eax
	leaq	-1(%rdx), %r8
	movl	%eax, %edi
	cmpq	$1, %rdx
	je	LBB0_14
LBB0_12:
	xorl	%edx, %edx
	movl	%edi, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	sarl	$8, %eax
	movzbl	(%rsi,%rdx), %ecx
	xorl	%ecx, %edi
	xorl	(%r9,%rdi,4), %eax
	movzbl	%al, %ecx
	sarl	$8, %eax
	movzbl	1(%rsi,%rdx), %edi
	xorl	%edi, %ecx
	xorl	(%r9,%rcx,4), %eax
	addq	$2, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_13
LBB0_14:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crc16tbl,8,3                   ## @crc16tbl
	.comm	_CRC16W,4,2                     ## @CRC16W
	.no_dead_strip	_lha_crc16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lha_crc16
_lha_crc16:                             ; @lha_crc16
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _crc16tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _crc16tbl@GOTPAGEOFF]
	tbz	w1, #0, LBB0_3
; %bb.2:
	ldr	x9, [x8]
	ldr	x9, [x9]
	ldrb	w10, [x1], #1
	and	w11, w0, #0xff
	eor	w10, w11, w10
	ldr	w9, [x9, w10, uxtw #2]
	eor	w0, w9, w0, asr #8
	sub	x2, x2, #1
LBB0_3:
	cmp	x2, #8
	b.lo	LBB0_6
; %bb.4:
	ldr	x10, [x8]
	ldp	x10, x9, [x10]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x1]
	eor	w11, w11, w0
	and	w13, w11, #0xff
	ldr	w13, [x9, w13, uxtw #2]
	asr	w11, w11, #8
	ldr	w11, [x10, w11, sxtw #2]
	eor	w11, w11, w13
	eor	w11, w11, w12
	and	w12, w11, #0xff
	ldr	w12, [x9, w12, uxtw #2]
	asr	w11, w11, #8
	ldr	w11, [x10, w11, sxtw #2]
	eor	w11, w11, w12
	ldp	w12, w13, [x1, #8]
	eor	w11, w11, w12
	and	w12, w11, #0xff
	ldr	w12, [x9, w12, uxtw #2]
	asr	w11, w11, #8
	ldr	w11, [x10, w11, sxtw #2]
	eor	w11, w11, w12
	eor	w11, w11, w13
	add	x1, x1, #16
	and	w12, w11, #0xff
	ldr	w12, [x9, w12, uxtw #2]
	asr	w11, w11, #8
	ldr	w11, [x10, w11, sxtw #2]
	eor	w0, w11, w12
	sub	x2, x2, #8
	cmp	x2, #7
	b.hi	LBB0_5
LBB0_6:
	cbz	x2, LBB0_9
; %bb.7:
	ldr	x8, [x8]
	ldr	x8, [x8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x1], #1
	and	w10, w0, #0xff
	eor	w9, w10, w9
	ldr	w9, [x8, w9, uxtw #2]
	eor	w0, w9, w0, asr #8
	subs	x2, x2, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_crc16tbl,8,3                   ; @crc16tbl
	.comm	_CRC16W,4,2                     ; @CRC16W
	.no_dead_strip	_lha_crc16
.subsections_via_symbols
