	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv_ilist
_adv_ilist:                             ## @adv_ilist
	.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	%rdi, %r14
	movq	_IndexItems@GOTPCREL(%rip), %r13
	movq	_FLAG_DELETED@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r14), %rbx
	decq	%rax
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	callq	*(%rbx)
	movl	%eax, (%r14)
	testl	%eax, %eax
	setns	%cl
	movq	_idx_items@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setl	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_bread_gamma_code
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_bread_gamma_code
	movl	%eax, %ecx
	movq	(%r13), %rdx
	movl	(%r14), %eax
	movslq	%eax, %rsi
	movl	(%r12), %edi
	testl	%edi, (%rdx,%rsi,8)
	jne	LBB0_1
## %bb.3:
	xorl	%edi, %edi
	decl	%r15d
	setne	%dil
	subl	%edi, %ecx
	movl	4(%rdx,%rsi,8), %edx
	movl	%edx, 32(%r14)
	movl	%r15d, 4(%r14)
	movl	%ecx, 8(%r14)
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movl	$4294967295, %ecx               ## imm = 0xFFFFFFFF
	movq	%rcx, (%r14)
	movl	$0, 32(%r14)
	movl	$0, 8(%r14)
	movq	$-1, 16(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idx_items,4,2                  ## @idx_items
	.comm	_IndexItems,8,3                 ## @IndexItems
	.comm	_FLAG_DELETED,4,2               ## @FLAG_DELETED
	.no_dead_strip	_adv_ilist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv_ilist
_adv_ilist:                             ; @adv_ilist
	.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, x0
Lloh0:
	adrp	x22, _idx_items@GOTPAGE
Lloh1:
	ldr	x22, [x22, _idx_items@GOTPAGEOFF]
Lloh2:
	adrp	x23, _IndexItems@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IndexItems@GOTPAGEOFF]
Lloh4:
	adrp	x24, _FLAG_DELETED@GOTPAGE
Lloh5:
	ldr	x24, [x24, _FLAG_DELETED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	subs	x9, x8, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19, #24]
	str	x9, [x19, #16]
	mov	x21, x0
	ldr	x8, [x21], #8
	blr	x8
	str	w0, [x19]
	cmp	w0, #0
	ldr	w8, [x22]
	ccmp	w0, w8, #0, ge
	cset	w0, lt
	bl	_assert
	mov	x0, x21
	bl	_bread_gamma_code
	mov	x20, x0
	mov	x0, x21
	bl	_bread_gamma_code
	mov	x8, x0
	ldr	x9, [x23]
	ldr	w0, [x19]
	sbfiz	x10, x0, #3, #32
	ldr	w10, [x9, x10]
	ldr	w11, [x24]
	tst	w11, w10
	b.ne	LBB0_1
; %bb.3:
	sxtw	x10, w0
	subs	w11, w20, #1
	cset	w12, ne
	add	x9, x9, x10, lsl #3
	ldr	w9, [x9, #4]
	str	w9, [x19, #32]
	sub	w8, w8, w12
	stp	w11, w8, [x19, #4]
	b	LBB0_7
LBB0_4:
	cbnz	x8, LBB0_6
; %bb.5:
	str	wzr, [x19, #32]
	str	wzr, [x19, #8]
	movi	d0, #0x000000ffffffff
	str	d0, [x19]
	mov	x8, #-1
	str	x8, [x19, #16]
LBB0_6:
	mov	w0, #-1
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_idx_items,4,2                  ; @idx_items
	.comm	_IndexItems,8,3                 ; @IndexItems
	.comm	_FLAG_DELETED,4,2               ; @FLAG_DELETED
	.no_dead_strip	_adv_ilist
.subsections_via_symbols
