	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ewah_iterator_next             ## -- Begin function ewah_iterator_next
	.p2align	4, 0x90
_ewah_iterator_next:                    ## @ewah_iterator_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	xorl	%r15d, %r15d
	cmpq	8(%rsi), %rax
	jge	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %rcx
	movq	24(%rsi), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_3
## %bb.2:
	incq	%rcx
	movq	%rcx, 16(%rbx)
	xorl	%esi, %esi
	cmpq	56(%rbx), %rsi
	sbbl	%esi, %esi
	jmp	LBB0_4
LBB0_3:
	movq	32(%rbx), %rax
	xorl	%edi, %edi
	cmpq	40(%rbx), %rax
	setl	%dil
	callq	_assert
	incq	32(%rbx)
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	setl	%dil
	callq	_assert
	movq	48(%rbx), %rdx
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rdx,%rax,4), %esi
	movq	24(%rbx), %rdx
LBB0_4:
	movl	%esi, (%r14)
	movl	$1, %r15d
	cmpq	%rdx, %rcx
	jne	LBB0_8
## %bb.5:
	movq	32(%rbx), %rcx
	cmpq	40(%rbx), %rcx
	jne	LBB0_8
## %bb.6:
	incq	%rax
	movq	%rax, (%rbx)
	cmpq	8(%rbx), %rax
	jge	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_read_new_rlw
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	_ewah_iterator_next             ; -- Begin function ewah_iterator_next
	.p2align	2
_ewah_iterator_next:                    ; @ewah_iterator_next
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x9, [x1]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldp	x10, x9, [x1, #16]
	cmp	x10, x9
	b.ge	LBB0_4
; %bb.2:
	add	x10, x10, #1
	str	x10, [x19, #16]
	ldr	x11, [x19, #56]
	cmp	x11, #0
	csetm	w11, ne
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	ldp	x8, x9, [x19, #32]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x19, #32]
	add	x8, x8, #1
	str	x8, [x19, #32]
	ldp	x8, x9, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x9, [x19, #48]
	ldr	x8, [x19]
	ldr	w11, [x9, x8, lsl #2]
	ldp	x10, x9, [x19, #16]
LBB0_5:
	str	w11, [x20]
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.6:
	ldp	x9, x10, [x19, #32]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_read_new_rlw
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
