	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function correct_errors
_correct_errors:                        ## @correct_errors
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_burst_count@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.1:
	movq	_rgb_kernel_size@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	leal	1(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	7(%rbx), %edx
	leal	19(%rbx), %esi
	leal	31(%rbx), %edi
	callq	_DISTRIBUTE_ERROR
	incl	%ebx
	movl	(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebx
	jb	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_burst_count,4,2                ## @burst_count
	.comm	_rgb_kernel_size,4,2            ## @rgb_kernel_size
	.comm	_alignment_count,4,2            ## @alignment_count
	.no_dead_strip	_correct_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function correct_errors
_correct_errors:                        ; @correct_errors
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _burst_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _burst_count@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbz	w19, LBB0_6
; %bb.1:
Lloh3:
	adrp	x20, _rgb_kernel_size@GOTPAGE
Lloh4:
	ldr	x20, [x20, _rgb_kernel_size@GOTPAGEOFF]
	ldr	w8, [x20]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w19, w19, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	w9, w8, #1
	cmp	w9, #3
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w2, w21, #7
	add	w1, w21, #19
	add	w0, w21, #31
	bl	_DISTRIBUTE_ERROR
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w9, w8, lt
	cmp	w21, w9, asr #1
	b.lo	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_burst_count,4,2                ; @burst_count
	.comm	_rgb_kernel_size,4,2            ; @rgb_kernel_size
	.comm	_alignment_count,4,2            ; @alignment_count
	.no_dead_strip	_correct_errors
.subsections_via_symbols
