	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setindex2ifc
_setindex2ifc:                          ## @setindex2ifc
	.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
	movl	%edi, %ebx
	movq	_index2ifc@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movq	_nindex2ifc@GOTPCREL(%rip), %r14
	movl	$5, (%r14)
	movl	$40, %edi
	movq	%rcx, %r13
	callq	_malloc
	movq	%r13, %r12
	movq	%rax, (%r13)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
	movq	(%r12), %rax
LBB0_3:
	movl	(%r14), %edx
	shll	$3, %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r15, %rsi
	movq	%r12, %rcx
LBB0_4:
	movq	_nindex2ifc@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movslq	%r12d, %r13
	movl	%r12d, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r14d
	leal	(%r14,%r14), %eax
	cmpl	%ebx, %r14d
	jle	LBB0_5
## %bb.6:
	movq	(%rcx), %r15
	cmpl	%r14d, %r12d
	je	LBB0_10
## %bb.7:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leal	(,%r14,8), %esi
	movq	%r15, %rdi
	callq	_realloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal
LBB0_9:
	leaq	(%r15,%r13,8), %rdi
	movq	_nindex2ifc@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	subl	%r12d, %edx
	shll	$3, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_index2ifc@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movl	%r14d, (%r13)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_10:
	movslq	%ebx, %rax
	movq	%rsi, (%r15,%rax,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_index2ifc,8,3                  ## @index2ifc
	.comm	_nindex2ifc,4,2                 ## @nindex2ifc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

L_.str.1:                               ## @.str.1
	.asciz	"realloc"

	.no_dead_strip	_setindex2ifc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setindex2ifc
_setindex2ifc:                          ; @setindex2ifc
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _index2ifc@GOTPAGE
Lloh1:
	ldr	x22, [x22, _index2ifc@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _nindex2ifc@GOTPAGE
Lloh3:
	ldr	x23, [x23, _nindex2ifc@GOTPAGEOFF]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	w8, #5
	str	w8, [x23]
	mov	w0, #40
	bl	_malloc
	str	x0, [x22]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
	ldr	x0, [x22]
LBB0_3:
	ldr	w8, [x23]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
LBB0_4:
	ldr	w25, [x23]
	sxtw	x26, w25
	mov	x8, x25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	lsl	w8, w8, #1
	cmp	w24, w20
	b.le	LBB0_5
; %bb.6:
	ldr	x21, [x22]
	cmp	w25, w24
	b.eq	LBB0_10
; %bb.7:
	lsl	w1, w24, #3
	mov	x0, x21
	bl	_realloc
	mov	x21, x0
	cbnz	x0, LBB0_9
; %bb.8:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_9:
	add	x0, x21, x26, lsl #3
	ldr	w8, [x23]
	sub	w8, w8, w25
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	str	x21, [x22]
	str	w24, [x23]
LBB0_10:
	str	x19, [x21, w20, sxtw #3]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_index2ifc,8,3                  ; @index2ifc
	.comm	_nindex2ifc,4,2                 ; @nindex2ifc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

l_.str.1:                               ; @.str.1
	.asciz	"realloc"

	.no_dead_strip	_setindex2ifc
.subsections_via_symbols
