	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_compute_crc32
	movl	(%rbx), %r14d
	xorl	%eax, %r14d
	je	LBB0_1
## %bb.2:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_find_corrupted_bit
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	%eax, %edx
	callq	_vkprintf
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_repair_bit
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	movl	%eax, %edx
	callq	_vkprintf
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.6:
	leal	-1(%r14), %eax
	testl	%eax, %r14d
	jne	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	$2, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_compute_crc32
	xorl	%edi, %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movl	$1, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
LBB0_5:
	movl	%r13d, %esi
	callq	_kprintf
	jmp	LBB0_10
LBB0_9:
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_assert
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"find_corrupted_bit returns %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"repair_bit returns %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"crc32_check_and_repair successfully repair one bit in %d bytes block.\n"

L_.str.3:                               ## @.str.3
	.asciz	"crc32_check_and_repair successfully repair one bit in crc32 (%d bytes block).\n"

.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	bl	_compute_crc32
	ldr	w8, [x21]
	eor	w24, w8, w0
	cbz	w24, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x24
	bl	_find_corrupted_bit
	mov	x25, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x25
	bl	_vkprintf
	mov	x0, x23
	mov	x1, x19
	mov	x2, x25
	bl	_repair_bit
	mov	x25, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x2, x25
	bl	_vkprintf
	cbz	w25, LBB0_7
; %bb.2:
	sub	w8, w24, #1
	tst	w24, w8
	b.ne	LBB0_10
; %bb.3:
	str	w22, [x21]
	cbz	w20, LBB0_5
; %bb.4:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_kprintf
LBB0_5:
	mov	w0, #2
	b	LBB0_11
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	mov	x0, x23
	mov	x1, x19
	bl	_compute_crc32
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	cbz	w20, LBB0_9
; %bb.8:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_kprintf
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	cmp	w20, #0
	cset	w0, eq
	bl	_assert
	str	w22, [x21]
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"find_corrupted_bit returns %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"repair_bit returns %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"crc32_check_and_repair successfully repair one bit in %d bytes block.\n"

l_.str.3:                               ; @.str.3
	.asciz	"crc32_check_and_repair successfully repair one bit in crc32 (%d bytes block).\n"

.subsections_via_symbols
