	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ht_index_put
_ht_index_put:                          ## @ht_index_put
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	24(%rsi), %rbx
	movq	(%rbx), %r12
	movq	8(%rbx), %rdi
	callq	_UPPER_BOUND
	cmpq	%rax, %r12
	jl	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ht_compact
	movq	24(%r15), %rbx
LBB0_2:
	movq	%rbx, %rdi
	callq	_HT_MASK
	movq	%rax, %r13
	movq	8(%rbx), %r12
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_ht_hash_func
	movq	%rax, %r14
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	andq	%r13, %r14
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	movl	$1, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	8(%rbx), %r12
	cmoveq	%r14, %r12
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%r15, %r14
	andq	-80(%rbp), %r14                 ## 8-byte Folded Reload
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rcx
	incq	%r15
	testq	%rcx, %rcx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %r13
	movq	%r13, %rdi
	callq	_mrb_undef_p
	testq	%rax, %rax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_ht_hash_equal
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	jmp	LBB0_13
LBB0_7:
	cmpq	8(%rbx), %r12
	cmovbq	%r12, %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rcx
	movq	16(%r12), %r15
	cmpq	(%r15), %rcx
	jge	LBB0_11
## %bb.8:
	leaq	1(%rcx), %rdx
	shlq	$4, %rcx
	addq	8(%r15), %rcx
	movq	%rdx, (%r12)
	jmp	LBB0_12
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_segment_alloc
	movq	%rax, 16(%r15)
	movq	$0, 16(%rax)
	movq	%rax, 16(%r12)
	movq	$1, (%r12)
	movq	8(%rax), %rcx
	movq	16(%rbx), %rax
LBB0_12:
	movq	%rcx, (%rax,%r14,8)
	movq	16(%rbx), %rax
	movq	(%rax,%r14,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 8(%rcx)
	movq	(%rax,%r14,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	incq	(%rbx)
	incl	8(%r12)
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ht_index_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ht_index_put
_ht_index_put:                          ; @ht_index_put
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x22, [x1, #24]
	ldp	x24, x0, [x22]
	bl	_UPPER_BOUND
	cmp	x24, x0
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x19
	bl	_ht_compact
	ldr	x22, [x19, #24]
LBB0_2:
	mov	x0, x22
	bl	_HT_MASK
	mov	x24, x0
	ldr	x26, [x22, #8]
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	bl	_ht_hash_func
	and	x27, x0, x24
	ldr	x8, [x22, #16]
	ldr	x9, [x8, x27, lsl #3]
	cbz	x9, LBB0_9
; %bb.3:
	mov	w28, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #8]
	cmp	x26, x8
	csel	x26, x27, x26, eq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x27, x28
	and	x27, x8, x24
	ldr	x8, [x22, #16]
	ldr	x9, [x8, x27, lsl #3]
	add	x28, x28, #1
	cbz	x9, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x9, #8]
	mov	x0, x25
	bl	_mrb_undef_p
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x25
	bl	_ht_hash_equal
	cbz	x0, LBB0_5
; %bb.8:
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x27, lsl #3]
	str	x20, [x8]
	b	LBB0_13
LBB0_9:
	ldr	x9, [x22, #8]
	cmp	x26, x9
	csel	x25, x26, x27, lo
	ldr	x24, [x19, #16]
	ldr	x9, [x19]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ge	LBB0_11
; %bb.10:
	ldr	x10, [x24, #8]
	add	x11, x9, #1
	str	x11, [x19]
	add	x9, x10, x9, lsl #4
	b	LBB0_12
LBB0_11:
	mov	x0, x23
	mov	x1, x24
	bl	_segment_alloc
	str	x0, [x24, #16]
	str	xzr, [x0, #16]
	str	x0, [x19, #16]
	mov	w8, #1
	str	x8, [x19]
	ldr	x9, [x0, #8]
	ldr	x8, [x22, #16]
LBB0_12:
	lsl	x10, x25, #3
	str	x9, [x8, x10]
	ldr	x8, [x22, #16]
	ldr	x9, [x8, x10]
	str	x21, [x9, #8]
	ldr	x8, [x8, x10]
	str	x20, [x8]
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ht_index_put
.subsections_via_symbols
