	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ht_index
_ht_index:                              ## @ht_index
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movq	24(%rsi), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	movq	(%r13), %rbx
	movl	8(%r13), %edi
	callq	_UPPER_BOUND
	cmpq	%rax, %rbx
	jl	LBB0_3
## %bb.2:
	movslq	8(%r13), %r12
	incq	%r12
LBB0_3:
	movq	%r12, %rdi
	callq	_power2
	movslq	8(%r13), %rax
	cmpq	%rax, %r12
	ja	LBB0_5
	jmp	LBB0_8
LBB0_4:
	movq	%r12, %rdi
	callq	_power2
LBB0_5:
	leal	24(,%r12,8), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mrb_realloc_simple
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movq	%rax, 24(%r14)
LBB0_8:
	movq	(%r14), %rax
	movq	%rax, (%r13)
	movl	%r12d, 8(%r13)
	testq	%r12, %r12
	je	LBB0_15
## %bb.9:
	leaq	-1(%r12), %rcx
	movl	%r12d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_11
## %bb.10:
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mrb_free
	movq	$0, 24(%r14)
	jmp	LBB0_28
LBB0_11:
	andq	$-4, %r12
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdx
	movq	$0, (%rdx,%rcx,8)
	movq	16(%r13), %rdx
	movq	$0, 8(%rdx,%rcx,8)
	movq	16(%r13), %rdx
	movq	$0, 16(%rdx,%rcx,8)
	movq	16(%r13), %rdx
	movq	$0, 24(%rdx,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_12
LBB0_13:
	testq	%rax, %rax
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdx
	movq	$0, (%rdx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_14
LBB0_15:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_HT_MASK
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %r14
	testq	%r14, %r14
	je	LBB0_28
## %bb.16:
	movq	%rax, %rbx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_28
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##       Child Loop BB0_24 Depth 3
	cmpq	$0, (%r14)
	je	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=2
	leaq	(,%r15,4), %rdx
	addq	16(%r14), %rdx
	movq	%rdx, (%rcx,%rax,8)
LBB0_26:                                ##   in Loop: Header=BB0_19 Depth=2
	incq	%r15
	cmpq	(%r14), %r15
	jae	LBB0_27
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_24 Depth 3
	cmpq	$0, 8(%r14)
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%rax), %r15
	jae	LBB0_28
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	16(%r14), %rax
	movl	(%rax,%r15,4), %r12d
	movl	%r12d, %edi
	callq	_mrb_undef_p
	testq	%rax, %rax
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_ht_hash_func
	movq	16(%r13), %rcx
	andq	%rbx, %rax
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_17 Depth=1
                                        ##     Parent Loop BB0_19 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	addq	%rdx, %rax
	andq	%rbx, %rax
	incq	%rdx
	cmpq	$0, (%rcx,%rax,8)
	jne	LBB0_24
	jmp	LBB0_25
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ht_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ht_index
_ht_index:                              ; @ht_index
	.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
	ldr	x22, [x1]
	ldr	x21, [x1, #24]
	cbz	x21, LBB0_4
; %bb.1:
	ldr	x23, [x21]
	ldr	w0, [x21, #8]
	bl	_UPPER_BOUND
	cmp	x23, x0
	b.lt	LBB0_3
; %bb.2:
	ldrsw	x8, [x21, #8]
	add	x22, x8, #1
LBB0_3:
	mov	x0, x22
	bl	_power2
	ldrsw	x8, [x21, #8]
	cmp	x22, x8
	b.hi	LBB0_5
	b	LBB0_7
LBB0_4:
	mov	x0, x22
	bl	_power2
LBB0_5:
	lsl	w8, w22, #3
	add	w2, w8, #24
	mov	x0, x20
	mov	x1, x21
	bl	_mrb_realloc_simple
	cbz	x0, LBB0_23
; %bb.6:
	mov	x21, x0
	str	x0, [x19, #24]
LBB0_7:
	ldr	x8, [x19]
	str	x8, [x21]
	str	w22, [x21, #8]
	cbz	x22, LBB0_10
; %bb.8:
	mov	x8, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	str	xzr, [x9, x8, lsl #3]
	add	x8, x8, #1
	cmp	x22, x8
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x21
	bl	_HT_MASK
	ldr	x24, [x19, #16]
	cbz	x24, LBB0_24
; %bb.11:
	mov	x22, x0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_24
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;       Child Loop BB0_22 Depth 3
	ldr	x8, [x24]
	cbz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x25, #0
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x10, [x24, #16]
	add	x10, x10, x25, lsl #2
	str	x10, [x8, x9, lsl #3]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x25, x25, #1
	ldr	x8, [x24]
	cmp	x25, x8
	b.hs	LBB0_12
LBB0_17:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_22 Depth 3
	ldr	x8, [x24, #8]
	cbnz	x8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x19, #8]
	cmp	x25, x8
	b.hs	LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x24, #16]
	ldr	w23, [x8, x25, lsl #2]
	mov	x0, x23
	bl	_mrb_undef_p
	cbnz	x0, LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_ht_hash_func
	ldr	x8, [x21, #16]
	and	x9, x0, x22
	ldr	x10, [x8, x9, lsl #3]
	cbz	x10, LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	w10, #1
LBB0_22:                                ;   Parent Loop BB0_13 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x9, x9, x10
	and	x9, x9, x22
	ldr	x11, [x8, x9, lsl #3]
	add	x10, x10, #1
	cbnz	x11, LBB0_22
	b	LBB0_15
LBB0_23:
	mov	x0, x20
	mov	x1, #0
	bl	_mrb_free
	str	xzr, [x19, #24]
LBB0_24:
	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
	.no_dead_strip	_ht_index
.subsections_via_symbols
