	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cr0014114_calc_crc
LCPI0_0:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cr0014114_calc_crc:                    ## @cr0014114_calc_crc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-1(%rsi), %rax
	movl	$1, %ebx
	cmpq	$2, %rax
	jb	LBB0_12
## %bb.1:
	leaq	-2(%r14), %r8
	cmpq	$8, %r8
	jae	LBB0_3
## %bb.2:
	movl	$1, %ecx
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_3:
	movq	%r8, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$24, %rdi
	jae	LBB0_5
## %bb.4:
	pxor	%xmm1, %xmm1
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rsi
	pxor	%xmm1, %xmm1
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	4(%r15,%rdi,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	20(%r15,%rdi,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	36(%r15,%rdi,4), %xmm1
	movdqu	52(%r15,%rdi,4), %xmm3
	movdqu	68(%r15,%rdi,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	84(%r15,%rdi,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	100(%r15,%rdi,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	116(%r15,%rdi,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_6
LBB0_7:
	testq	%rdx, %rdx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rdi,4), %rsi
	orq	$4, %rsi
	movdqu	(%r15,%rsi), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	16(%r15,%rsi), %xmm2
	paddd	%xmm2, %xmm1
	addq	$8, %rdi
	decq	%rdx
	jne	LBB0_8
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%rcx, %r8
	je	LBB0_12
## %bb.10:
	orq	$1, %rcx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%r15,%rcx,4), %ebx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
LBB0_12:
	movl	$7, %edi
	callq	_BIT
	orl	%ebx, %eax
	movq	_CR_SET_BRIGHTNESS@GOTPCREL(%rip), %rcx
	movq	_CR_INIT_REENUMERATE@GOTPCREL(%rip), %rdx
	movq	_CR_NEXT_REENUMERATE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	movl	$254, %esi
	movl	%eax, %edi
	cmovel	%esi, %edi
	cmpl	(%rdx), %eax
	cmovel	%esi, %edi
	cmpl	(%rcx), %eax
	cmovel	%esi, %edi
	movl	%edi, -4(%r15,%r14,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_SET_BRIGHTNESS,4,2          ## @CR_SET_BRIGHTNESS
	.comm	_CR_INIT_REENUMERATE,4,2        ## @CR_INIT_REENUMERATE
	.comm	_CR_NEXT_REENUMERATE,4,2        ## @CR_NEXT_REENUMERATE
	.no_dead_strip	_cr0014114_calc_crc
.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 cr0014114_calc_crc
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cr0014114_calc_crc:                    ; @cr0014114_calc_crc
	.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
	mov	x19, x0
	sub	x20, x1, #1
	cmp	x20, #2
	b.lo	LBB0_3
; %bb.1:
	sub	x9, x1, #2
	cmp	x9, #16
	b.hs	LBB0_4
; %bb.2:
	mov	w21, #1
	mov	w8, #1
	b	LBB0_7
LBB0_3:
	mov	w21, #1
	b	LBB0_9
LBB0_4:
	and	x10, x9, #0xfffffffffffffff0
	orr	x8, x10, #0x1
Lloh0:
	adrp	x11, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x11, lCPI0_0@PAGEOFF]
	add	x11, x19, #36
	movi.2d	v1, #0000000000000000
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w21, s0
	cmp	x9, x10
	b.eq	LBB0_9
LBB0_7:
	mvn	x9, x8
	add	x9, x9, x1
	add	x8, x19, x8, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	add	w21, w10, w21
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	mov	w0, #7
	bl	_BIT
	orr	w8, w0, w21
Lloh2:
	adrp	x9, _CR_SET_BRIGHTNESS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CR_SET_BRIGHTNESS@GOTPAGEOFF]
Lloh4:
	adrp	x10, _CR_INIT_REENUMERATE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CR_INIT_REENUMERATE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _CR_NEXT_REENUMERATE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CR_NEXT_REENUMERATE@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	w8, w11
	ccmp	w8, w10, #4, ne
	ccmp	w8, w9, #4, ne
	mov	w9, #254
	csel	w8, w9, w8, eq
	str	w8, [x19, x20, lsl #2]
	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
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CR_SET_BRIGHTNESS,4,2          ; @CR_SET_BRIGHTNESS
	.comm	_CR_INIT_REENUMERATE,4,2        ; @CR_INIT_REENUMERATE
	.comm	_CR_NEXT_REENUMERATE,4,2        ; @CR_NEXT_REENUMERATE
	.no_dead_strip	_cr0014114_calc_crc
.subsections_via_symbols
