	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crc32_check_and_repair         ## -- Begin function crc32_check_and_repair
	.p2align	4, 0x90
_crc32_check_and_repair:                ## @crc32_check_and_repair
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_compute_crc32
	movl	(%r14), %r15d
	xorl	%eax, %r15d
	je	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_find_corrupted_bit
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_repair_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leal	-1(%r15), %eax
	testl	%eax, %r15d
	jne	LBB0_6
## %bb.5:
	movl	%r12d, (%r14)
	movl	$2, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_compute_crc32
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	sete	%dil
	callq	_assert
	movl	$1, %eax
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_assert
	movl	%r12d, (%r14)
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crc32_check_and_repair         ; -- Begin function crc32_check_and_repair
	.p2align	2
_crc32_check_and_repair:                ; @crc32_check_and_repair
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	bl	_compute_crc32
	ldr	w8, [x19]
	eor	w24, w8, w0
	cbz	w24, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x0, x22
	mov	x1, x24
	bl	_find_corrupted_bit
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_repair_bit
	cbz	w0, LBB0_5
; %bb.2:
	sub	w8, w24, #1
	tst	w24, w8
	b.ne	LBB0_6
; %bb.3:
	str	w21, [x19]
	mov	w0, #2
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x23
	mov	x1, x22
	bl	_compute_crc32
	ldr	w8, [x19]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	cmp	w20, #0
	cset	w0, eq
	bl	_assert
	str	w21, [x19]
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
