	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sparse_array_lookup
_sparse_array_lookup:                   ## @sparse_array_lookup
	.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	%rdx, %r13
	movl	4(%rdi), %r15d
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	%rsi, %rbx
	leal	-1(%r15), %r12d
	movl	%r12d, %esi
	callq	_vector_at
	cmpq	%rbx, (%rax)
	jae	LBB0_4
## %bb.3:
	movl	%r15d, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	movl	$0, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.5:
	movl	%r12d, (%r13)
	jmp	LBB0_14
LBB0_6:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vector_at
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r12, (%rax)
	jb	LBB0_8
## %bb.7:
	movl	$0, (%r13)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %r15d
	cmpl	%r15d, %ebx
	jae	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %esi
	shrl	%esi
	movl	%esi, (%r13)
	movq	%r14, %rdi
	callq	_vector_at
	movq	(%rax), %rcx
	cmpq	%r12, %rcx
	ja	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	jae	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %ebx
	incl	%ebx
	cmpl	%r15d, %ebx
	jb	LBB0_8
LBB0_13:
	cmpq	%r12, %rcx
	jae	LBB0_14
## %bb.15:
	movl	(%r13), %esi
	incl	%esi
	movl	%esi, (%r13)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vector_at                      ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sparse_array_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sparse_array_lookup
_sparse_array_lookup:                   ; @sparse_array_lookup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	ldr	w23, [x0, #4]
	cbz	w23, LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	sub	w22, w23, #1
	mov	x1, x22
	bl	_vector_at
	ldr	x8, [x0]
	cmp	x8, x21
	b.hs	LBB0_5
; %bb.2:
	mov	x0, #0
	str	w23, [x19]
	b	LBB0_7
LBB0_3:
	mov	x0, #0
LBB0_4:
	str	wzr, [x19]
	b	LBB0_7
LBB0_5:
	b.ne	LBB0_8
; %bb.6:
	str	w22, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	mov	w1, #0
	bl	_vector_at
	ldr	x8, [x0]
	cmp	x8, x21
	b.hs	LBB0_4
; %bb.9:
	mov	w22, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w23, [x19]
	cmp	w22, w23
	b.hs	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w23, w22
	lsr	w1, w8, #1
	str	w1, [x19]
	mov	x0, x20
	bl	_vector_at
	ldr	x8, [x0]
	cmp	x8, x21
	b.hi	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	b.hs	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w9, [x19]
	add	w22, w9, #1
	cmp	w22, w23
	b.lo	LBB0_11
LBB0_14:
	cmp	x8, x21
	b.hs	LBB0_7
; %bb.15:
	ldr	w8, [x19]
	add	w1, w8, #1
	str	w1, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vector_at
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sparse_array_lookup
.subsections_via_symbols
