	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function error_next_rd
_error_next_rd:                         ## @error_next_rd
	.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
	movq	_error_count@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.2:
	movq	_error_fifo@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_error_rd@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	leaq	1(%r13), %rbx
	movq	%rbx, (%r12)
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.3:
	movq	$0, (%r12)
LBB0_4:
	leaq	(%r15,%r13,4), %rax
	decq	(%r14)
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_error_count,8,3                ## @error_count
	.comm	_error_fifo,8,3                 ## @error_fifo
	.comm	_error_rd,8,3                   ## @error_rd
	.no_dead_strip	_error_next_rd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function error_next_rd
_error_next_rd:                         ; @error_next_rd
	.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	x20, _error_count@GOTPAGE
Lloh1:
	ldr	x20, [x20, _error_count@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _error_fifo@GOTPAGE
Lloh3:
	ldr	x8, [x8, _error_fifo@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
Lloh5:
	adrp	x21, _error_rd@GOTPAGE
Lloh6:
	ldr	x21, [x21, _error_rd@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x19, x0, x8, lsl #2
	add	x22, x8, #1
	str	x22, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, x0
	b.ne	LBB0_3
; %bb.2:
	str	xzr, [x21]
LBB0_3:
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	b	LBB0_5
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_error_count,8,3                ; @error_count
	.comm	_error_fifo,8,3                 ; @error_fifo
	.comm	_error_rd,8,3                   ; @error_rd
	.no_dead_strip	_error_next_rd
.subsections_via_symbols
