	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function segment_alloc
_segment_alloc:                         ## @segment_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	_HT_SEG_INCREASE_RATIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rsi), %eax
	leal	1(%rax), %ebx
	movq	_UINT16_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	_MRB_HT_INIT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	leal	16(,%rbx,4), %esi
	callq	_mrb_malloc
	movl	%ebx, (%rax)
	movq	$0, 8(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MRB_HT_INIT_SIZE,4,2           ## @MRB_HT_INIT_SIZE
	.comm	_HT_SEG_INCREASE_RATIO,4,2      ## @HT_SEG_INCREASE_RATIO
	.comm	_UINT16_MAX,4,2                 ## @UINT16_MAX
	.no_dead_strip	_segment_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function segment_alloc
_segment_alloc:                         ; @segment_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _HT_SEG_INCREASE_RATIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HT_SEG_INCREASE_RATIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w8, w9, w8
Lloh3:
	adrp	x9, _UINT16_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UINT16_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	csinc	w19, w9, w8, ge
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _MRB_HT_INIT_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MRB_HT_INIT_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_3:
	lsl	w8, w19, #2
	add	w1, w8, #16
	bl	_mrb_malloc
	str	w19, [x0]
	str	xzr, [x0, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MRB_HT_INIT_SIZE,4,2           ; @MRB_HT_INIT_SIZE
	.comm	_HT_SEG_INCREASE_RATIO,4,2      ; @HT_SEG_INCREASE_RATIO
	.comm	_UINT16_MAX,4,2                 ; @UINT16_MAX
	.no_dead_strip	_segment_alloc
.subsections_via_symbols
