	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyg_crc16                      ## -- Begin function cyg_crc16
	.p2align	4, 0x90
_cyg_crc16:                             ## @cyg_crc16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	_crc16_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	%esi, %edx
	andl	$-2, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi), %ecx
	movzbl	%ah, %ebx
	xorl	%ecx, %ebx
	shll	$8, %eax
	xorl	(%r8,%rbx,4), %eax
	movzbl	1(%rdi), %ecx
	addq	$2, %rdi
	movzbl	%ah, %ebx
	xorl	%ecx, %ebx
	shll	$8, %eax
	xorl	(%r8,%rbx,4), %eax
	addl	$-2, %edx
	jne	LBB0_5
LBB0_6:
	testb	$1, %sil
	je	LBB0_8
## %bb.7:
	movzbl	(%rdi), %ecx
	movzbl	%ah, %edx
	xorl	%ecx, %edx
	shll	$8, %eax
	xorl	(%r8,%rdx,4), %eax
LBB0_8:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crc16_tab,8,3                  ## @crc16_tab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyg_crc16                      ; -- Begin function cyg_crc16
	.p2align	2
_cyg_crc16:                             ; @cyg_crc16
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, x0
	mov	w0, #0
Lloh0:
	adrp	x9, _crc16_tab@GOTPAGE
Lloh1:
	ldr	x9, [x9, _crc16_tab@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8], #1
	ubfx	w11, w0, #8, #8
	eor	w10, w11, w10
	ldr	w10, [x9, w10, uxtw #2]
	eor	w0, w10, w0, lsl #8
	subs	w1, w1, #1
	b.ne	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_crc16_tab,8,3                  ; @crc16_tab
.subsections_via_symbols
