	.file	"extr_hash.c_ht_index_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ht_index_put, @function
ht_index_put:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR 24[rsi]
	mov	QWORD PTR 32[rsp], rdi
	mov	rdi, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR 0[rbp]
	mov	QWORD PTR 24[rsp], rdx
	mov	QWORD PTR 40[rsp], rcx
	call	UPPER_BOUND@PLT
	cmp	rbx, rax
	jge	.L20
.L2:
	mov	rdi, rbp
	call	HT_MASK@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, r15
	mov	r12, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 32[rsp]
	mov	rbx, rax
	mov	QWORD PTR 16[rsp], rax
	call	ht_hash_func@PLT
	mov	rdx, QWORD PTR 16[rbp]
	mov	r13, rax
	and	r13, rbx
	lea	rax, 0[0+r13*8]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR [rdx+r13*8]
	test	rax, rax
	je	.L3
	xor	ebx, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	QWORD PTR 8[rbp], r12
	cmove	r12, r13
.L5:
	add	rbx, 1
	mov	rdx, QWORD PTR 16[rbp]
	lea	r8, [rbx+r13]
	and	r8, QWORD PTR 16[rsp]
	lea	rax, 0[0+r8*8]
	mov	r13, r8
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR [rdx+r8*8]
	test	rax, rax
	je	.L3
.L7:
	mov	r14, QWORD PTR 8[rax]
	mov	rdi, r14
	call	mrb_undef_p@PLT
	test	rax, rax
	jne	.L21
	mov	rdx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 32[rsp]
	mov	rcx, r14
	mov	rsi, r15
	call	ht_hash_equal@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR [rax+rsi]
	mov	rsi, QWORD PTR 40[rsp]
	mov	QWORD PTR [rax], rsi
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	QWORD PTR 8[rbp], r12
	mov	rax, QWORD PTR [r15]
	cmova	r13, r12
	mov	r12, QWORD PTR 16[r15]
	lea	rbx, 0[0+r13*8]
	cmp	rax, QWORD PTR [r12]
	jge	.L9
	mov	rcx, QWORD PTR 8[r12]
	lea	rsi, 1[rax]
	sal	rax, 4
	mov	QWORD PTR [r15], rsi
	add	rax, rcx
	mov	QWORD PTR [rdx+r13*8], rax
	add	rdx, rbx
	mov	rax, QWORD PTR [rdx]
.L10:
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rax], rcx
	mov	rcx, QWORD PTR 40[rsp]
	mov	rax, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rcx
	add	QWORD PTR 0[rbp], 1
	add	DWORD PTR 8[r15], 1
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, r15
	call	ht_compact@PLT
	mov	rbp, QWORD PTR 24[r15]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, r12
	call	segment_alloc@PLT
	add	rbx, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[r12], rax
	mov	rdx, rbx
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 16[r15], rax
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [r15], 1
	mov	QWORD PTR [rbx], rax
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	ht_index_put, .-ht_index_put
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hash.c_ht_index_put.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ht_index_put, %function
ht_index_put:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r1, #12]
	sub	sp, sp, #20
	str	r0, [sp, #8]
	ldr	r0, [r6, #4]
	ldr	r4, [r6]
	mov	r10, r1
	str	r2, [sp, #4]
	str	r3, [sp, #12]
	bl	UPPER_BOUND
	cmp	r4, r0
	bge	.L20
.L2:
	mov	r0, r6
	bl	HT_MASK
	ldr	r2, [sp, #4]
	mov	r8, r0
	mov	r1, r10
	ldr	r0, [sp, #8]
	ldr	r7, [r6, #4]
	bl	ht_hash_func
	ldr	r2, [r6, #8]
	and	r4, r0, r8
	ldr	r3, [r2, r4, lsl #2]
	lsl	r9, r4, #2
	cmp	r3, #0
	beq	.L3
	mov	r5, #0
	b	.L7
.L21:
	ldr	r3, [r6, #4]
	cmp	r3, r7
	moveq	r7, r4
.L5:
	add	r5, r5, #1
	ldr	r2, [r6, #8]
	add	r4, r5, r4
	and	r4, r4, r8
	ldr	r3, [r2, r4, lsl #2]
	lsl	r9, r4, #2
	cmp	r3, #0
	beq	.L3
.L7:
	ldr	fp, [r3, #4]
	mov	r0, fp
	bl	mrb_undef_p
	cmp	r0, #0
	bne	.L21
	mov	r3, fp
	mov	r1, r10
	ldr	r2, [sp, #4]
	ldr	r0, [sp, #8]
	bl	ht_hash_equal
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r6, #8]
	ldr	r2, [sp, #12]
	ldr	r3, [r3, r9]
	str	r2, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, [r6, #4]
	ldr	r5, [r10, #8]
	cmp	r3, r7
	movhi	r4, r7
	ldr	r3, [r10]
	ldr	r1, [r5]
	lslhi	r9, r4, #2
	cmp	r3, r1
	bge	.L9
	ldr	r1, [r5, #4]
	add	r0, r3, #1
	add	r3, r1, r3, lsl #3
	mov	r1, r3
	str	r0, [r10]
	add	r9, r2, r9
	str	r3, [r2, r4, lsl #2]
.L10:
	ldr	r3, [sp, #4]
	ldr	r2, [r6]
	str	r3, [r1, #4]
	ldr	r3, [r10, #4]
	ldr	r1, [r9]
	ldr	r0, [sp, #12]
	add	r2, r2, #1
	add	r3, r3, #1
	str	r0, [r1]
	str	r2, [r6]
	str	r3, [r10, #4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r1, r10
	ldr	r0, [sp, #8]
	bl	ht_compact
	ldr	r6, [r10, #12]
	b	.L2
.L9:
	mov	r1, r5
	ldr	r0, [sp, #8]
	bl	segment_alloc
	mov	r3, #0
	mov	r2, #1
	str	r0, [r5, #8]
	ldr	r1, [r0, #4]
	str	r3, [r0, #8]
	ldr	r3, [r6, #8]
	str	r0, [r10, #8]
	str	r2, [r10]
	add	r9, r3, r9
	str	r1, [r3, r4, lsl #2]
	b	.L10
	.size	ht_index_put, .-ht_index_put
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
