	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_data_iterator_init             ## -- Begin function data_iterator_init
	.p2align	4, 0x90
_data_iterator_init:                    ## @data_iterator_init
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	cmpl	$-1, %edx
	sete	%al
	cmpl	$1, %edx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	leaq	4(%rbx), %r14
	movl	12(%rbx), %eax
	movl	%eax, 60(%r12)
	movl	8(%rbx), %eax
	movl	%eax, 56(%r12)
	movq	%rbx, 48(%r12)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, (%r12)
	movl	(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	callq	_map_int_int_used
	movl	%eax, %r13d
	movl	%eax, 8(%r12)
	movslq	%eax, %r15
	leaq	(,%r15,4), %rbx
	movq	%rbx, %rdi
	callq	_dl_malloc
	movq	%rax, 40(%r12)
	movq	%rbx, %rdi
	callq	_dl_malloc
	movq	%rax, 32(%r12)
	movq	40(%r12), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_map_int_int_pairs
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_assert
	movq	%r15, %r14
	shlq	$3, %r14
	movq	%r14, %rdi
	callq	_dl_malloc
	movq	%rax, %rbx
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.2:
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	movl	%r13d, %r15d
	cmpl	$4, %r13d
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
LBB0_13:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %r15b
	je	LBB0_15
## %bb.14:
	movl	(%rcx,%rdx,4), %edi
	movl	%edi, 4(%rbx,%rdx,8)
	movl	(%rax,%rdx,4), %edi
	movl	%edi, (%rbx,%rdx,8)
	orq	$1, %rdx
LBB0_15:
	addq	%r15, %rsi
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, 4(%rbx,%rdx,8)
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rbx,%rdx,8)
	movl	4(%rcx,%rdx,4), %esi
	movl	%esi, 12(%rbx,%rdx,8)
	movl	4(%rax,%rdx,4), %esi
	movl	%esi, 8(%rbx,%rdx,8)
	addq	$2, %rdx
	cmpq	%rdx, %r15
	jne	LBB0_16
	jmp	LBB0_17
LBB0_1:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_dl_qsort_pair_int_int
	jmp	LBB0_34
LBB0_4:
	leaq	(%rbx,%r15,8), %rdx
	leaq	(%rcx,%r15,4), %rsi
	cmpq	%rsi, %rbx
	setb	%r8b
	cmpq	%rcx, %rdx
	seta	%r9b
	leaq	(%rax,%r15,4), %rsi
	cmpq	%rsi, %rbx
	setb	%sil
	cmpq	%rax, %rdx
	seta	%dil
	xorl	%edx, %edx
	testb	%r9b, %r8b
	jne	LBB0_13
## %bb.5:
	andb	%dil, %sil
	jne	LBB0_13
## %bb.6:
	movl	%r15d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsd	(%rcx,%rsi,4), %xmm0            ## xmm0 = mem[0],zero
	movsd	8(%rcx,%rsi,4), %xmm1           ## xmm1 = mem[0],zero
	movsd	(%rax,%rsi,4), %xmm2            ## xmm2 = mem[0],zero
	unpcklps	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movsd	8(%rax,%rsi,4), %xmm0           ## xmm0 = mem[0],zero
	unpcklps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	movups	%xmm2, (%rbx,%rsi,8)
	movups	%xmm0, 16(%rbx,%rsi,8)
	movsd	16(%rcx,%rsi,4), %xmm0          ## xmm0 = mem[0],zero
	movsd	24(%rcx,%rsi,4), %xmm1          ## xmm1 = mem[0],zero
	movsd	16(%rax,%rsi,4), %xmm2          ## xmm2 = mem[0],zero
	unpcklps	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movsd	24(%rax,%rsi,4), %xmm0          ## xmm0 = mem[0],zero
	unpcklps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	movups	%xmm2, 32(%rbx,%rsi,8)
	movups	%xmm0, 48(%rbx,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_9
## %bb.10:
	testb	$1, %r8b
	je	LBB0_12
LBB0_11:
	movsd	(%rcx,%rsi,4), %xmm0            ## xmm0 = mem[0],zero
	movsd	8(%rcx,%rsi,4), %xmm1           ## xmm1 = mem[0],zero
	movsd	(%rax,%rsi,4), %xmm2            ## xmm2 = mem[0],zero
	unpcklps	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	movsd	8(%rax,%rsi,4), %xmm0           ## xmm0 = mem[0],zero
	unpcklps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	leaq	(,%rsi,8), %rdi
	orq	$16, %rdi
	movups	%xmm2, (%rbx,%rsi,8)
	movups	%xmm0, (%rbx,%rdi)
LBB0_12:
	cmpq	%r15, %rdx
	jne	LBB0_13
LBB0_17:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_dl_qsort_pair_int_int
	movq	32(%r12), %rax
	movq	40(%r12), %rcx
	cmpl	$8, %r13d
	jae	LBB0_19
## %bb.18:
	xorl	%edx, %edx
	jmp	LBB0_30
LBB0_19:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r15,4), %rdx
	leaq	(%rax,%r15,4), %rdi
	leaq	(%rbx,%r15,8), %rsi
	cmpq	%rdi, %rcx
	setb	%r13b
	cmpq	%rdx, %rax
	setb	%r14b
	cmpq	%rcx, %rsi
	seta	%r11b
	cmpq	%rdx, %rbx
	setb	%r8b
	cmpq	%rax, %rsi
	seta	%r10b
	cmpq	%rdi, %rbx
	setb	%r9b
	xorl	%edx, %edx
	testb	%r14b, %r13b
	jne	LBB0_20
## %bb.21:
	andb	%r8b, %r11b
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_30
## %bb.22:
	andb	%r9b, %r10b
	jne	LBB0_30
## %bb.23:
	movl	%r15d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.25:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	movups	32(%rbx,%rsi,8), %xmm2
	movups	48(%rbx,%rsi,8), %xmm3
	movaps	%xmm0, %xmm4
	shufps	$136, %xmm1, %xmm4              ## xmm4 = xmm4[0,2],xmm1[0,2]
	movaps	%xmm2, %xmm5
	shufps	$136, %xmm3, %xmm5              ## xmm5 = xmm5[0,2],xmm3[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	movups	%xmm0, (%rcx,%rsi,4)
	movups	%xmm2, 16(%rcx,%rsi,4)
	movups	%xmm4, (%rax,%rsi,4)
	movups	%xmm5, 16(%rax,%rsi,4)
	movups	64(%rbx,%rsi,8), %xmm0
	movups	80(%rbx,%rsi,8), %xmm1
	movups	96(%rbx,%rsi,8), %xmm2
	movups	112(%rbx,%rsi,8), %xmm3
	movaps	%xmm0, %xmm4
	shufps	$136, %xmm1, %xmm4              ## xmm4 = xmm4[0,2],xmm1[0,2]
	movaps	%xmm2, %xmm5
	shufps	$136, %xmm3, %xmm5              ## xmm5 = xmm5[0,2],xmm3[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	movups	%xmm0, 32(%rcx,%rsi,4)
	movups	%xmm2, 48(%rcx,%rsi,4)
	movups	%xmm4, 32(%rax,%rsi,4)
	movups	%xmm5, 48(%rax,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_26
## %bb.27:
	testb	$1, %r8b
	je	LBB0_29
LBB0_28:
	leaq	(,%rsi,8), %rdi
	orq	$32, %rdi
	movups	(%rbx,%rsi,8), %xmm0
	movups	16(%rbx,%rsi,8), %xmm1
	movups	(%rbx,%rdi), %xmm2
	movups	16(%rbx,%rdi), %xmm3
	movaps	%xmm0, %xmm4
	shufps	$136, %xmm1, %xmm4              ## xmm4 = xmm4[0,2],xmm1[0,2]
	movaps	%xmm2, %xmm5
	shufps	$136, %xmm3, %xmm5              ## xmm5 = xmm5[0,2],xmm3[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	movups	%xmm0, (%rcx,%rsi,4)
	movups	%xmm2, 16(%rcx,%rsi,4)
	movups	%xmm4, (%rax,%rsi,4)
	movups	%xmm5, 16(%rax,%rsi,4)
LBB0_29:
	cmpq	%r15, %rdx
	jne	LBB0_30
	jmp	LBB0_34
LBB0_7:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_11
	jmp	LBB0_12
LBB0_24:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_28
	jmp	LBB0_29
LBB0_20:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_30:
	movq	%rdx, %rsi
	notq	%rsi
	testb	$1, %r15b
	je	LBB0_32
## %bb.31:
	movl	4(%rbx,%rdx,8), %edi
	movl	%edi, (%rcx,%rdx,4)
	movl	(%rbx,%rdx,8), %edi
	movl	%edi, (%rax,%rdx,4)
	orq	$1, %rdx
LBB0_32:
	addq	%r15, %rsi
	je	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx,%rdx,8), %esi
	movl	%esi, (%rcx,%rdx,4)
	movl	(%rbx,%rdx,8), %esi
	movl	%esi, (%rax,%rdx,4)
	movl	12(%rbx,%rdx,8), %esi
	movl	%esi, 4(%rcx,%rdx,4)
	movl	8(%rbx,%rdx,8), %esi
	movl	%esi, 4(%rax,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %r15
	jne	LBB0_33
LBB0_34:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dl_free
	movl	4(%r12), %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_35
## %bb.36:
	movl	8(%r12), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_37
LBB0_35:
	decl	%eax
	movl	8(%r12), %edx
	decl	%edx
	movl	$-1, %ecx
	movl	%eax, %esi
	movl	$-1, %eax
LBB0_37:
	movl	%esi, 12(%r12)
	movl	%eax, 16(%r12)
	movl	%edx, 20(%r12)
	movl	%ecx, 24(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_data_iterator_init             ; -- Begin function data_iterator_init
	.p2align	2
_data_iterator_init:                    ; @data_iterator_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmn	w2, #1
	ccmp	w2, #1, #4, ne
	cset	w0, eq
	bl	_assert
	add	x22, x21, #4
	ldr	d0, [x21, #8]
	str	d0, [x19, #56]
	str	x21, [x19, #48]
	ldr	w8, [x21]
	stp	w20, w8, [x19]
	mov	x0, x22
	bl	_map_int_int_used
	mov	x23, x0
	str	w0, [x19, #8]
	sbfiz	x21, x23, #2, #32
	mov	x0, x21
	bl	_dl_malloc
	str	x0, [x19, #40]
	mov	x0, x21
	bl	_dl_malloc
	mov	x2, x0
	str	x0, [x19, #32]
	ldr	x1, [x19, #40]
	mov	x0, x22
	mov	x3, x23
	bl	_map_int_int_pairs
	cmp	w0, w23
	cset	w0, eq
	bl	_assert
	sbfiz	x21, x23, #3, #32
	mov	x0, x21
	bl	_dl_malloc
	mov	x22, x0
	cmp	w23, #0
	b.le	LBB0_3
; %bb.1:
	ldp	x9, x8, [x19, #32]
	mov	w24, w23
	lsl	x25, x24, #2
	cmp	w23, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	b	LBB0_9
LBB0_3:
	mov	x0, x22
	mov	x1, x23
	bl	_dl_qsort_pair_int_int
	b	LBB0_21
LBB0_4:
	mov	x10, #0
	add	x12, x22, x24, lsl #3
	add	x13, x8, x25
	add	x11, x9, x25
	cmp	x22, x11
	ccmp	x12, x9, #0, lo
	cset	w11, hi
	cmp	x12, x8
	ccmp	x22, x13, #2, hi
	b.lo	LBB0_9
; %bb.5:
	tbnz	w11, #0, LBB0_9
; %bb.6:
	and	x10, x24, #0xfffffff8
	add	x11, x22, #32
	add	x12, x8, #16
	add	x13, x9, #16
	mov	x14, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q3, [x12, #-16]
	ldp	q0, q2, [x13, #-16]
	sub	x15, x11, #32
	st2.4s	{ v0, v1 }, [x15]
	st2.4s	{ v2, v3 }, [x11]
	add	x11, x11, #64
	add	x12, x12, #32
	add	x13, x13, #32
	subs	x14, x14, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x24
	b.eq	LBB0_11
LBB0_9:
	lsl	x11, x10, #2
	add	x9, x9, x11
	add	x8, x8, x11
	add	x11, x22, x10, lsl #3
	add	x11, x11, #4
	sub	x10, x24, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8], #4
	str	w12, [x11]
	ldr	w12, [x9], #4
	stur	w12, [x11, #-4]
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x22
	mov	x1, x23
	bl	_dl_qsort_pair_int_int
	ldp	x9, x8, [x19, #32]
	cmp	w23, #8
	b.hs	LBB0_13
; %bb.12:
	mov	x10, #0
	b	LBB0_19
LBB0_13:
	mov	x10, #0
	add	x13, x9, x25
	add	x12, x22, x24, lsl #3
	cmp	x12, x8
	add	x14, x8, x25
	ccmp	x22, x14, #2, hi
	cset	w11, lo
	cmp	x12, x9
	ccmp	x22, x13, #2, hi
	cset	w12, lo
	cmp	x9, x14
	ccmp	x8, x13, #2, lo
	b.lo	LBB0_19
; %bb.14:
	tbnz	w11, #0, LBB0_19
; %bb.15:
	tbnz	w12, #0, LBB0_19
; %bb.16:
	and	x10, x24, #0xfffffff8
	add	x11, x22, #32
	add	x12, x8, #16
	add	x13, x9, #16
	mov	x14, x10
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	sub	x15, x11, #32
	ld2.4s	{ v0, v1 }, [x15]
	ld2.4s	{ v2, v3 }, [x11]
	stp	q1, q3, [x12, #-16]
	stp	q0, q2, [x13, #-16]
	add	x11, x11, #64
	add	x12, x12, #32
	add	x13, x13, #32
	subs	x14, x14, #8
	b.ne	LBB0_17
; %bb.18:
	cmp	x10, x24
	b.eq	LBB0_21
LBB0_19:
	lsl	x11, x10, #2
	add	x9, x9, x11
	add	x8, x8, x11
	add	x11, x22, x10, lsl #3
	add	x11, x11, #4
	sub	x10, x24, x10
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x8], #4
	ldur	w12, [x11, #-4]
	str	w12, [x9], #4
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_20
LBB0_21:
	mov	x0, x22
	mov	x1, x21
	bl	_dl_free
	ldr	w8, [x19, #4]
	tbnz	w20, #31, LBB0_23
; %bb.22:
	mov	w9, #0
	mov	w10, #0
	ldr	w11, [x19, #8]
	b	LBB0_24
LBB0_23:
	sub	w9, w8, #1
	ldr	w8, [x19, #8]
	sub	w10, w8, #1
	mov	w8, #-1
	mov	w11, #-1
LBB0_24:
	stp	w9, w8, [x19, #12]
	stp	w10, w11, [x19, #20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
