	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlpsacrc
_wlpsacrc:                              ## @wlpsacrc
	.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
	jle	LBB0_1
## %bb.2:
	movq	_crc16_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	%esi, %r8d
	xorl	%esi, %esi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	andl	$15, %edx
	shrl	$4, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	xorl	(%r9,%rdx,4), %eax
	movl	(%rdi,%rsi,4), %ecx
	movl	%ecx, %edx
	andl	$15, %edx
	xorl	(%r9,%rdx,4), %eax
	movl	%eax, %edx
	andl	$15, %edx
	shrl	$4, %eax
	shrq	$2, %rcx
	andl	$60, %ecx
	movl	(%r9,%rcx), %ecx
	xorl	(%r9,%rdx,4), %ecx
	andl	$4095, %eax                     ## imm = 0xFFF
	xorl	%ecx, %eax
	incq	%rsi
	cmpl	%esi, %r8d
	jne	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crc16_table,8,3                ## @crc16_table
	.no_dead_strip	_wlpsacrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlpsacrc
_wlpsacrc:                              ; @wlpsacrc
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w8, #0
Lloh0:
	adrp	x9, _crc16_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _crc16_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w10, w8, #0xf
	ldr	w10, [x9, w10, uxtw #2]
	ubfx	w8, w8, #4, #12
	ldr	w11, [x0], #4
	and	x12, x11, #0xf
	ldr	w12, [x9, x12, lsl #2]
	eor	w8, w10, w8
	eor	w8, w8, w12
	and	w10, w8, #0xf
	ldr	w10, [x9, w10, uxtw #2]
	ubfx	w8, w8, #4, #12
	ubfx	x11, x11, #4, #4
	ldr	w11, [x9, x11, lsl #2]
	eor	w10, w11, w10
	eor	w8, w10, w8
	subs	w1, w1, #1
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_crc16_table,8,3                ; @crc16_table
	.no_dead_strip	_wlpsacrc
.subsections_via_symbols
