	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function walIteratorNext
_walIteratorNext:                       ## @walIteratorNext
	.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
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	xorl	%edi, %edi
	cmpl	$-1, %r12d
	setne	%dil
	callq	_assert
	movl	4(%rbx), %r9d
	testl	%r9d, %r9d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	8(%rbx), %r11
	movl	$-1, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$1, %r10
	jle	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r9, %r10
	decq	%r9
	movl	%r9d, %eax
	leaq	(%rax,%rax,4), %r13
	movq	(%r11,%r13,8), %rcx
	movq	8(%r11,%r13,8), %rax
	cmpq	%rax, %rcx
	jae	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r11,%r13,8), %rsi
	movq	16(%r11,%r13,8), %rdx
	movq	24(%r11,%r13,8), %rdi
	negq	%rax
	incq	%rcx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%rdi,%rcx,8), %r14
	movl	(%rdx,%r14,4), %r8d
	cmpl	%r12d, %r8d
	jg	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rcx, (%rsi)
	leaq	(%rax,%rcx), %rbx
	incq	%rbx
	incq	%rcx
	cmpq	$1, %rbx
	jne	LBB0_5
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %r8d
	jge	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	32(%r11,%r13,8), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	%r8d, %r15d
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %r15d
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	xorl	%eax, %eax
	cmpl	$-1, %r15d
	sete	%al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_walIteratorNext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function walIteratorNext
_walIteratorNext:                       ; @walIteratorNext
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x0]
	cmn	w22, #1
	cset	w0, ne
	bl	_assert
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	ldr	x9, [x20, #8]
	mov	w10, #-1
	mov	w11, #40
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, #1
	mov	x8, x12
	b.le	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	sub	x12, x8, #1
	and	x13, x12, #0xffffffff
	madd	x14, x13, x11, x9
	ldp	x16, x15, [x14]
	cmp	x16, x15
	b.hs	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x0, x13, x11, x9
	ldp	x17, x2, [x0, #16]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x2, x16, lsl #3]
	ldr	w0, [x17, x1, lsl #2]
	cmp	w0, w22
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x16, x16, #1
	str	x16, [x14]
	cmp	x15, x16
	b.ne	LBB0_5
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, w10
	b.ge	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x10, x13, x11, x9
	ldr	w10, [x10, #32]
	add	w10, w10, w1
	str	w10, [x21]
	mov	x10, x0
	b	LBB0_2
LBB0_9:
	mov	w10, #-1
LBB0_10:
	str	w10, [x20]
	str	w10, [x19]
	cmn	w10, #1
	cset	w0, eq
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_walIteratorNext
.subsections_via_symbols
