	.file	"148776.c"
	.intel_syntax noprefix
	.text
	.globl	CalCRC8
	.type	CalCRC8, @function
CalCRC8:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	WORD PTR -18[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L6:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, WORD PTR -18[rbp]
	xor	eax, edx
	mov	WORD PTR -18[rbp], ax
	mov	DWORD PTR -16[rbp], 8
	jmp	.L3
.L5:
	movzx	eax, WORD PTR -18[rbp]
	test	ax, ax
	jns	.L4
	xor	WORD PTR -18[rbp], -31872
.L4:
	sal	WORD PTR -18[rbp]
	sub	DWORD PTR -16[rbp], 1
.L3:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L5
	sub	DWORD PTR -12[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L6
	movzx	eax, WORD PTR -18[rbp]
	shr	ax, 8
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	CalCRC8, .-CalCRC8
	.globl	delay
	.type	delay, @function
delay:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
.L9:
	mov	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jne	.L10
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	delay, .-delay
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"148776.c"
	.text
	.align	2
	.global	CalCRC8
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalCRC8, %function
CalCRC8:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-8]
	b	.L2
.L6:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-18]
	eor	r3, r3, r2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, #8
	str	r3, [fp, #-12]
	b	.L3
.L5:
	ldrsh	r3, [fp, #-18]
	cmp	r3, #0
	bge	.L4
	ldrh	r3, [fp, #-18]	@ movhi
	eor	r3, r3, #31744
	eor	r3, r3, #127
	mvn	r3, r3
	strh	r3, [fp, #-18]	@ movhi
.L4:
	ldrh	r3, [fp, #-18]	@ movhi
	lsl	r3, r3, #1
	strh	r3, [fp, #-18]	@ movhi
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	ldrh	r3, [fp, #-18]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	CalCRC8, .-CalCRC8
	.align	2
	.global	delay
	.syntax unified
	.arm
	.fpu softvfp
	.type	delay, %function
delay:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	delay, .-delay
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
