	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_crc_bug
_fix_crc_bug:                           ## @fix_crc_bug
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movl	%esi, %edi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	addl	$-5, %edx
	cmpl	$1, %edx
	ja	LBB0_3
## %bb.1:
	movq	8(%r14), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$-16, %rdi
	leaq	_fix_crc_bug.crc_check(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	addl	$-4, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @fix_crc_bug.crc_check
_fix_crc_bug.crc_check:
	.long	222                             ## 0xde
	.long	173                             ## 0xad
	.long	190                             ## 0xbe
	.long	239                             ## 0xef

	.no_dead_strip	_fix_crc_bug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_crc_bug
_fix_crc_bug:                           ; @fix_crc_bug
	.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	x19, x0
	ldr	w20, [x0]
	mov	x0, x1
	bl	_le16_to_cpu
	sdiv	w8, w20, w0
	msub	w8, w8, w0, w20
	sub	w8, w8, #5
	cmp	w8, #1
	b.hi	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	sub	x0, x8, #16
Lloh0:
	adrp	x1, _fix_crc_bug.crc_check@PAGE
Lloh1:
	add	x1, x1, _fix_crc_bug.crc_check@PAGEOFF
	mov	w2, #4
	bl	_memcmp
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [x19]
	sub	w8, w8, #4
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @fix_crc_bug.crc_check
_fix_crc_bug.crc_check:
	.long	222                             ; 0xde
	.long	173                             ; 0xad
	.long	190                             ; 0xbe
	.long	239                             ; 0xef

	.no_dead_strip	_fix_crc_bug
.subsections_via_symbols
