	.file	"extr_hash.c_segment_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	segment_alloc, @function
segment_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, DWORD PTR MRB_HT_INIT_SIZE[rip]
	test	rsi, rsi
	je	.L3
	mov	ebx, DWORD PTR [rsi]
	imul	ebx, DWORD PTR HT_SEG_INCREASE_RATIO[rip]
	mov	eax, DWORD PTR UINT16_MAX[rip]
	add	ebx, 1
	cmp	ebx, eax
	cmovg	ebx, eax
.L3:
	lea	esi, 16[0+rbx*4]
	call	mrb_malloc@PLT
	mov	DWORD PTR [rax], ebx
	mov	QWORD PTR 8[rax], 0
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	segment_alloc, .-segment_alloc
	.comm	UINT16_MAX,4,4
	.comm	MRB_HT_INIT_SIZE,4,4
	.comm	HT_SEG_INCREASE_RATIO,4,4
	.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_segment_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	segment_alloc, %function
segment_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, lr}
	beq	.L6
	ldr	r3, .L7
	ldr	r4, [r1]
	ldr	r2, [r3]
	ldr	r3, .L7+4
	mul	r4, r2, r4
	ldr	r3, [r3]
	add	r4, r4, #1
	cmp	r4, r3
	movge	r4, r3
.L3:
	add	r1, r4, #2
	lsl	r1, r1, #2
	bl	mrb_malloc
	mov	r2, #0
	str	r4, [r0]
	str	r2, [r0, #4]
	pop	{r4, pc}
.L6:
	ldr	r3, .L7+8
	ldr	r4, [r3]
	b	.L3
.L8:
	.align	2
.L7:
	.word	HT_SEG_INCREASE_RATIO
	.word	UINT16_MAX
	.word	MRB_HT_INIT_SIZE
	.size	segment_alloc, .-segment_alloc
	.comm	UINT16_MAX,4,4
	.comm	MRB_HT_INIT_SIZE,4,4
	.comm	HT_SEG_INCREASE_RATIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
