	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cs_next                        ## -- Begin function cs_next
	.p2align	4, 0x90
_cs_next:                               ## @cs_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	cmpl	$128, %eax
	jg	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	cmpl	$128, %eax
	je	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	callq	_abort
LBB0_4:
	cmpl	$129, %eax
	je	LBB0_16
## %bb.5:
	cmpl	$130, %eax
	jne	LBB0_3
LBB0_6:
	movl	32(%rbx), %esi
	incl	%esi
	movl	%esi, 32(%rbx)
	leaq	28(%rbx), %r8
	leaq	-16(%rbp), %rcx
	xorl	%edx, %edx
	callq	_db_get
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	decl	32(%rbx)
	movl	$129, (%rbx)
	jmp	LBB0_16
LBB0_11:
	movq	8(%rbx), %rax
	movslq	28(%rbx), %rcx
	decq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_13
## %bb.12:
	movl	$128, (%rbx)
	jmp	LBB0_16
LBB0_8:
	movq	-16(%rbp), %rdi
	movq	%rdi, 16(%rbx)
	movl	28(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.9:
	callq	_v_isempty
	testl	%eax, %eax
	je	LBB0_14
LBB0_10:
	movq	$0, 8(%rbx)
	movl	$130, (%rbx)
	jmp	LBB0_16
LBB0_13:
	movq	16(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rbx)
	movl	4(%rcx,%rax,4), %eax
	jmp	LBB0_15
LBB0_14:
	movl	$0, (%rbx)
	movq	16(%rbx), %rax
	movq	$0, 8(%rbx)
	movl	(%rax), %eax
LBB0_15:
	movl	%eax, 24(%rbx)
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	_cs_next                        ; -- Begin function cs_next
	.p2align	2
_cs_next:                               ; @cs_next
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	w8, [x1]
	cmp	w8, #128
	b.gt	LBB0_4
; %bb.1:
	cbz	w8, LBB0_8
; %bb.2:
	cmp	w8, #128
	b.eq	LBB0_6
LBB0_3:
	bl	_abort
LBB0_4:
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.5:
	cmp	w8, #130
	b.ne	LBB0_3
LBB0_6:
	ldr	w8, [x19, #32]
	add	w1, w8, #1
	str	w1, [x19, #32]
	add	x4, x19, #28
	add	x3, sp, #8
	mov	w2, #0
	bl	_db_get
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w8, [x19, #32]
	sub	w8, w8, #1
	str	w8, [x19, #32]
	mov	w8, #129
	str	w8, [x19]
	b	LBB0_16
LBB0_8:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #28]
	sub	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
	mov	w8, #128
	str	w8, [x19]
	b	LBB0_16
LBB0_10:
	ldr	x0, [sp, #8]
	str	x0, [x19, #16]
	ldr	w1, [x19, #28]
	cbz	w1, LBB0_12
; %bb.11:
	bl	_v_isempty
	cbz	w0, LBB0_14
LBB0_12:
	str	xzr, [x19, #8]
	mov	w8, #130
	str	w8, [x19]
	b	LBB0_16
LBB0_13:
	ldr	x9, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	w8, [x9, x8, lsl #2]
	b	LBB0_15
LBB0_14:
	str	wzr, [x19]
	ldr	x8, [x19, #16]
	str	xzr, [x19, #8]
	ldr	w8, [x8]
LBB0_15:
	str	w8, [x19, #24]
LBB0_16:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
