	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function am2315_crc
_am2315_crc:                            ## @am2315_crc
	.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
	je	LBB0_1
## %bb.2:
	movl	%esi, %r8d
	movl	$65535, %eax                    ## imm = 0xFFFF
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	(%rdi,%rdx,4), %eax
	movl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, %esi
	xorl	$40961, %esi                    ## imm = 0xA001
	testb	$1, %al
	cmovel	%ecx, %esi
	movl	%esi, %eax
	sarl	%eax
	movl	%eax, %ecx
	xorl	$40961, %ecx                    ## imm = 0xA001
	testb	$1, %sil
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	sarl	%eax
	movl	%eax, %esi
	xorl	$40961, %esi                    ## imm = 0xA001
	testb	$1, %cl
	cmovel	%eax, %esi
	movl	%esi, %eax
	sarl	%eax
	movl	%eax, %ecx
	xorl	$40961, %ecx                    ## imm = 0xA001
	testb	$1, %sil
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	sarl	%eax
	movl	%eax, %esi
	xorl	$40961, %esi                    ## imm = 0xA001
	testb	$1, %cl
	cmovel	%eax, %esi
	movl	%esi, %eax
	sarl	%eax
	movl	%eax, %ecx
	xorl	$40961, %ecx                    ## imm = 0xA001
	testb	$1, %sil
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	sarl	%eax
	movl	%eax, %esi
	xorl	$40961, %esi                    ## imm = 0xA001
	testb	$1, %cl
	cmovel	%eax, %esi
	movl	%esi, %ecx
	sarl	%ecx
	movl	%ecx, %eax
	xorl	$40961, %eax                    ## imm = 0xA001
	testb	$1, %sil
	cmovel	%ecx, %eax
	incq	%rdx
	cmpl	%edx, %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	_am2315_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function am2315_crc
_am2315_crc:                            ; @am2315_crc
	.cfi_startproc
; %bb.0:
	mov	w8, #65535
	cbz	w1, LBB0_3
; %bb.1:
	mov	w9, #40961
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0], #4
	eor	w8, w10, w8
	asr	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x1
	csel	w8, w10, w11, eq
	asr	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x1
	csel	w8, w10, w11, eq
	asr	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x1
	csel	w8, w10, w11, eq
	asr	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x1
	csel	w8, w10, w11, eq
	asr	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x1
	csel	w8, w10, w11, eq
	asr	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x1
	csel	w8, w10, w11, eq
	asr	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x1
	csel	w8, w10, w11, eq
	asr	w10, w8, #1
	eor	w11, w10, w9
	tst	w8, #0x1
	csel	w8, w10, w11, eq
	sub	w1, w1, #1
	cbnz	w1, LBB0_2
LBB0_3:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_am2315_crc
.subsections_via_symbols
