	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csr1212_msft_crc16
_csr1212_msft_crc16:                    ## @csr1212_msft_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r12,4), %edi
	callq	_le32_to_cpu
	movl	%ebx, %edx
	shrl	$12, %edx
	movl	%eax, %ecx
	shrl	$28, %ecx
	xorl	%edx, %ecx
	shll	$4, %ebx
	movl	%ecx, %edx
	shll	$12, %edx
	xorl	%ebx, %edx
	movl	%ecx, %esi
	shll	$5, %esi
	xorl	%edx, %esi
	orl	%esi, %ecx
	shrl	$12, %esi
	movl	%eax, %edx
	shrl	$24, %edx
	xorl	%esi, %edx
	andl	$15, %edx
	shll	$4, %ecx
	movl	%edx, %esi
	shll	$12, %esi
	xorl	%ecx, %esi
	movl	%edx, %ecx
	shll	$5, %ecx
	xorl	%esi, %ecx
	orl	%edx, %ecx
	shrl	$12, %esi
	movl	%eax, %edx
	shrl	$20, %edx
	xorl	%esi, %edx
	andl	$15, %edx
	shll	$4, %ecx
	movl	%edx, %esi
	shll	$12, %esi
	xorl	%ecx, %esi
	movl	%edx, %ecx
	shll	$5, %ecx
	xorl	%esi, %ecx
	orl	%edx, %ecx
	shrl	$12, %esi
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%esi, %edx
	andl	$15, %edx
	shll	$4, %ecx
	movl	%edx, %esi
	shll	$12, %esi
	xorl	%ecx, %esi
	movl	%edx, %ecx
	shll	$5, %ecx
	xorl	%esi, %ecx
	orl	%edx, %ecx
	xorl	%eax, %esi
	shrl	$12, %esi
	andl	$15, %esi
	shll	$4, %ecx
	movl	%esi, %edx
	shll	$12, %edx
	xorl	%ecx, %edx
	movl	%esi, %ecx
	shll	$5, %ecx
	xorl	%edx, %ecx
	orl	%esi, %ecx
	shrl	$12, %edx
	movl	%eax, %esi
	shrl	$8, %esi
	xorl	%edx, %esi
	andl	$15, %esi
	shll	$4, %ecx
	movl	%esi, %edx
	shll	$12, %edx
	xorl	%ecx, %edx
	movl	%esi, %ecx
	shll	$5, %ecx
	xorl	%edx, %ecx
	orl	%esi, %ecx
	shrl	$12, %edx
	movl	%eax, %esi
	shrl	$4, %esi
	xorl	%edx, %esi
	andl	$15, %esi
	shll	$4, %ecx
	movl	%esi, %edx
	shll	$5, %edx
	xorl	%ecx, %edx
	orl	%esi, %edx
	shll	$12, %esi
	xorl	%ecx, %esi
	shrl	$12, %esi
	xorl	%eax, %esi
	andl	$15, %esi
	shll	$4, %edx
	movl	%esi, %eax
	shll	$12, %eax
	movl	%esi, %ecx
	shll	$5, %ecx
	movzwl	%dx, %ebx
	xorl	%eax, %ebx
	xorl	%ecx, %ebx
	orl	%esi, %ebx
	incq	%r12
	cmpq	%r12, %r15
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_to_be16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_csr1212_msft_crc16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csr1212_msft_crc16
_csr1212_msft_crc16:                    ; @csr1212_msft_crc16
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20], #4
	bl	_le32_to_cpu
	lsr	w8, w21, #12
	eor	w8, w8, w0, lsr #28
	lsl	w9, w8, #12
	eor	w9, w9, w21, lsl #4
	eor	w9, w9, w8, lsl #5
	orr	w8, w9, w8
	lsr	w9, w9, #12
	eor	w9, w9, w0, lsr #24
	and	w10, w9, #0xf
	lsl	w11, w10, #12
	eor	w8, w11, w8, lsl #4
	eor	w10, w8, w10, lsl #5
	bfxil	w10, w9, #0, #4
	lsr	w8, w8, #12
	eor	w8, w8, w0, lsr #20
	and	w9, w8, #0xf
	lsl	w11, w9, #12
	eor	w10, w11, w10, lsl #4
	eor	w9, w10, w9, lsl #5
	bfxil	w9, w8, #0, #4
	lsr	w8, w10, #12
	eor	w8, w8, w0, lsr #16
	and	w10, w8, #0xf
	lsl	w11, w10, #12
	eor	w9, w11, w9, lsl #4
	eor	w10, w9, w10, lsl #5
	bfxil	w10, w8, #0, #4
	eor	w8, w9, w0
	ubfx	w9, w8, #12, #4
	lsl	w11, w9, #12
	eor	w10, w11, w10, lsl #4
	eor	w9, w10, w9, lsl #5
	bfxil	w9, w8, #12, #4
	lsr	w8, w10, #12
	eor	w8, w8, w0, lsr #8
	and	w10, w8, #0xf
	lsl	w11, w10, #12
	eor	w9, w11, w9, lsl #4
	eor	w10, w9, w10, lsl #5
	bfxil	w10, w8, #0, #4
	lsr	w8, w9, #12
	eor	w8, w8, w0, lsr #4
	and	w9, w8, #0xf
	lsl	w10, w10, #4
	eor	w11, w10, w9, lsl #12
	eor	w9, w10, w9, lsl #5
	bfxil	w9, w8, #0, #4
	eor	w8, w0, w11, lsr #12
	and	w10, w8, #0xf
	ubfiz	w9, w9, #4, #12
	eor	w9, w9, w10, lsl #12
	eor	w21, w9, w10, lsl #5
	bfxil	w21, w8, #0, #4
	subs	x19, x19, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cpu_to_be16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_csr1212_msft_crc16
.subsections_via_symbols
