	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_wakeframe_crc16
_lan78xx_wakeframe_crc16:               ## @lan78xx_wakeframe_crc16
	.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:
	movl	%esi, %r8d
	movl	$65535, %eax                    ## imm = 0xFFFF
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%r9,4), %r10d
	movl	%eax, %ecx
	sarl	$15, %ecx
	addl	%eax, %eax
	movl	%r10d, %esi
	andl	$1, %esi
	movl	%eax, %edx
	xorl	$32773, %edx                    ## imm = 0x8005
	cmpl	%esi, %ecx
	cmovel	%eax, %edx
	movl	%r10d, %eax
	shrl	%eax
	movl	%edx, %ecx
	sarl	$15, %ecx
	addl	%edx, %edx
	andl	$1, %eax
	movl	%edx, %esi
	xorl	$32773, %esi                    ## imm = 0x8005
	cmpl	%eax, %ecx
	cmovel	%edx, %esi
	movl	%r10d, %eax
	shrl	$2, %eax
	movl	%esi, %ecx
	sarl	$15, %ecx
	addl	%esi, %esi
	andl	$1, %eax
	movl	%esi, %edx
	xorl	$32773, %edx                    ## imm = 0x8005
	cmpl	%eax, %ecx
	cmovel	%esi, %edx
	movl	%r10d, %eax
	shrl	$3, %eax
	movl	%edx, %ecx
	sarl	$15, %ecx
	addl	%edx, %edx
	andl	$1, %eax
	movl	%edx, %esi
	xorl	$32773, %esi                    ## imm = 0x8005
	cmpl	%eax, %ecx
	cmovel	%edx, %esi
	movl	%r10d, %eax
	shrl	$4, %eax
	movl	%esi, %ecx
	sarl	$15, %ecx
	addl	%esi, %esi
	andl	$1, %eax
	movl	%esi, %edx
	xorl	$32773, %edx                    ## imm = 0x8005
	cmpl	%eax, %ecx
	cmovel	%esi, %edx
	movl	%r10d, %eax
	shrl	$5, %eax
	movl	%edx, %ecx
	sarl	$15, %ecx
	addl	%edx, %edx
	andl	$1, %eax
	movl	%edx, %esi
	xorl	$32773, %esi                    ## imm = 0x8005
	cmpl	%eax, %ecx
	cmovel	%edx, %esi
	movl	%r10d, %eax
	shrl	$6, %eax
	movl	%esi, %ecx
	sarl	$15, %ecx
	addl	%esi, %esi
	andl	$1, %eax
	movl	%esi, %edx
	xorl	$32773, %edx                    ## imm = 0x8005
	cmpl	%eax, %ecx
	cmovel	%esi, %edx
	shrl	$7, %r10d
	movl	%edx, %ecx
	sarl	$15, %ecx
	addl	%edx, %edx
	andl	$1, %r10d
	movl	%edx, %eax
	xorl	$32773, %eax                    ## imm = 0x8005
	cmpl	%r10d, %ecx
	cmovel	%edx, %eax
	incq	%r9
	cmpl	%r9d, %r8d
	jne	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	movl	$65535, %eax                    ## imm = 0xFFFF
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lan78xx_wakeframe_crc16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_wakeframe_crc16
_lan78xx_wakeframe_crc16:               ; @lan78xx_wakeframe_crc16
	.cfi_startproc
; %bb.0:
	mov	w8, #65535
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w9, #32773
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0], #4
	lsl	w11, w8, #1
	and	w12, w10, #0x1
	eor	w13, w11, w9
	cmp	w12, w8, asr #15
	csel	w8, w11, w13, eq
	lsl	w11, w8, #1
	ubfx	w12, w10, #1, #1
	eor	w13, w11, w9
	cmp	w12, w8, asr #15
	csel	w8, w11, w13, eq
	lsl	w11, w8, #1
	ubfx	w12, w10, #2, #1
	eor	w13, w11, w9
	cmp	w12, w8, asr #15
	csel	w8, w11, w13, eq
	lsl	w11, w8, #1
	ubfx	w12, w10, #3, #1
	eor	w13, w11, w9
	cmp	w12, w8, asr #15
	csel	w8, w11, w13, eq
	lsl	w11, w8, #1
	ubfx	w12, w10, #4, #1
	eor	w13, w11, w9
	cmp	w12, w8, asr #15
	csel	w8, w11, w13, eq
	lsl	w11, w8, #1
	ubfx	w12, w10, #5, #1
	eor	w13, w11, w9
	cmp	w12, w8, asr #15
	csel	w8, w11, w13, eq
	lsl	w11, w8, #1
	ubfx	w12, w10, #6, #1
	eor	w13, w11, w9
	cmp	w12, w8, asr #15
	csel	w8, w11, w13, eq
	lsl	w11, w8, #1
	ubfx	w10, w10, #7, #1
	eor	w12, w11, w9
	cmp	w10, w8, asr #15
	csel	w8, w11, w12, eq
	subs	w1, w1, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lan78xx_wakeframe_crc16
.subsections_via_symbols
