	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lha_crc16_init
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_2:
	.long	40961                           ## 0xa001
	.long	40961                           ## 0xa001
	.long	40961                           ## 0xa001
	.long	40961                           ## 0xa001
LCPI0_3:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lha_crc16_init:                        ## @lha_crc16_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpb	$0, _lha_crc16_init.crc16init(%rip)
	jne	LBB0_5
## %bb.1:
	movb	$1, _lha_crc16_init.crc16init(%rip)
	movq	_crc16tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%edx, %edx
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [1,1,1,1]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [40961,40961,40961,40961]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [4,4,4,4]
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	psrad	$1, %xmm5
	movdqa	%xmm0, %xmm4
	pand	%xmm1, %xmm4
	pmulld	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	movdqa	%xmm4, %xmm5
	psrad	$1, %xmm5
	pand	%xmm1, %xmm4
	pmulld	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	movdqa	%xmm4, %xmm5
	psrad	$1, %xmm5
	pand	%xmm1, %xmm4
	pmulld	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	movdqa	%xmm4, %xmm5
	psrad	$1, %xmm5
	pand	%xmm1, %xmm4
	pmulld	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	movdqa	%xmm4, %xmm5
	psrad	$1, %xmm5
	pand	%xmm1, %xmm4
	pmulld	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	movdqa	%xmm4, %xmm5
	psrad	$1, %xmm5
	pand	%xmm1, %xmm4
	pmulld	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	movdqa	%xmm4, %xmm5
	psrad	$1, %xmm5
	pand	%xmm1, %xmm4
	pmulld	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	movdqa	%xmm4, %xmm5
	psrad	$1, %xmm5
	pand	%xmm1, %xmm4
	pmulld	%xmm2, %xmm4
	pxor	%xmm5, %xmm4
	movdqu	%xmm4, (%rax,%rdx,4)
	addq	$4, %rdx
	paddd	%xmm3, %xmm0
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_2
## %bb.3:
	movq	8(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movzbl	%sil, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	sarl	$8, %esi
	xorl	(%rax,%rdi,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	movl	4(%rax,%rdx,4), %esi
	movzbl	%sil, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	sarl	$8, %esi
	xorl	(%rax,%rdi,4), %esi
	movl	%esi, 4(%rcx,%rdx,4)
	addq	$2, %rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_4
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_lha_crc16_init.crc16init,1,2 ## @lha_crc16_init.crc16init
	.comm	_crc16tbl,8,3                   ## @crc16tbl
	.no_dead_strip	_lha_crc16_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function lha_crc16_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lha_crc16_init:                        ; @lha_crc16_init
	.cfi_startproc
; %bb.0:
	adrp	x8, _lha_crc16_init.crc16init@PAGE
	ldrb	w9, [x8, _lha_crc16_init.crc16init@PAGEOFF]
	tbnz	w9, #0, LBB0_5
; %bb.1:
	mov	x9, #0
	mov	w10, #1
	strb	w10, [x8, _lha_crc16_init.crc16init@PAGEOFF]
Lloh0:
	adrp	x8, _crc16tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _crc16tbl@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	ldr	x8, [x10]
	movi.4s	v1, #1
	mov	w11, #40961
	dup.4s	v2, w11
	movi.4s	v3, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sshr.4s	v4, v0, #1
	and.16b	v5, v0, v1
	mul.4s	v5, v5, v2
	eor.16b	v4, v5, v4
	and.16b	v5, v4, v1
	mul.4s	v5, v5, v2
	sshr.4s	v4, v4, #1
	eor.16b	v4, v5, v4
	sshr.4s	v5, v4, #1
	and.16b	v4, v4, v1
	mul.4s	v4, v4, v2
	eor.16b	v4, v4, v5
	sshr.4s	v5, v4, #1
	and.16b	v4, v4, v1
	mul.4s	v4, v4, v2
	eor.16b	v4, v4, v5
	and.16b	v5, v4, v1
	mul.4s	v5, v5, v2
	sshr.4s	v4, v4, #1
	eor.16b	v4, v5, v4
	sshr.4s	v5, v4, #1
	and.16b	v4, v4, v1
	mul.4s	v4, v4, v2
	eor.16b	v4, v4, v5
	sshr.4s	v5, v4, #1
	and.16b	v4, v4, v1
	mul.4s	v4, v4, v2
	eor.16b	v4, v4, v5
	and.16b	v5, v4, v1
	mul.4s	v5, v5, v2
	sshr.4s	v4, v4, #1
	eor.16b	v4, v5, v4
	str	q4, [x8, x9]
	add.4s	v0, v0, v3
	add	x9, x9, #16
	cmp	x9, #1024
	b.ne	LBB0_2
; %bb.3:
	mov	x9, #0
	ldr	x10, [x10, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, x9]
	and	x12, x11, #0xff
	ldr	w12, [x8, x12, lsl #2]
	eor	w11, w12, w11, asr #8
	str	w11, [x10, x9]
	add	x9, x9, #4
	cmp	x9, #1024
	b.ne	LBB0_4
LBB0_5:
	ret
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_lha_crc16_init.crc16init,1,2 ; @lha_crc16_init.crc16init
	.comm	_crc16tbl,8,3                   ; @crc16tbl
	.no_dead_strip	_lha_crc16_init
.subsections_via_symbols
