	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_check_firmware_crc
_rt2800_check_firmware_crc:             ## @rt2800_check_firmware_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rax
	leaq	-2(%rsi), %rdx
	movl	-8(%rdi,%rsi,4), %ebx
	shll	$8, %ebx
	orl	-4(%rdi,%rsi,4), %ebx
	movl	$-1, %edi
	movq	%rax, %rsi
	callq	_crc_ccitt
	movl	%eax, %edi
	callq	_swab16
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	sete	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rt2800_check_firmware_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_check_firmware_crc
_rt2800_check_firmware_crc:             ; @rt2800_check_firmware_crc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	sub	x2, x1, #2
	ldr	w9, [x0, x2, lsl #2]
	add	x10, x0, x1, lsl #2
	ldur	w10, [x10, #-4]
	orr	w19, w10, w9, lsl #8
	mov	w0, #-1
	mov	x1, x8
	bl	_crc_ccitt
	bl	_swab16
	cmp	w19, w0
	cset	w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rt2800_check_firmware_crc
.subsections_via_symbols
