	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function redistribute_memory
LCPI0_0:
	.quad	0x3fe999999999999a              ## double 0.80000000000000004
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_redistribute_memory
	.p2align	4, 0x90
_redistribute_memory:                   ## @redistribute_memory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_memory_for_entries@GOTPCREL(%rip), %r8
	movsd	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	movq	_entry_memory@GOTPCREL(%rip), %rcx
	ucomisd	(%rcx), %xmm0
	jae	LBB0_1
## %bb.2:
	movq	_memory_for_metafiles@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movq	_MIN_MEMORY_FOR_METAFILES@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %ecx
	cmovlel	%esi, %ecx
	movl	%ecx, (%rdx)
	movq	_memory_for_cache@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	movl	%edi, %edx
	shrl	$31, %edx
	addl	%edi, %edx
	sarl	%edx
	movq	_MIN_MEMORY_FOR_CACHE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %edx
	cmovlel	%edi, %edx
	movl	%edx, (%rsi)
	movq	_memory_for_wildcard_cache@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	_MIN_MEMORY_FOR_WILDCARD_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edi
	cmovlel	%eax, %edi
	movl	%edi, (%rsi)
	movq	_MEMORY_RESERVED@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	$1, %esi
	subq	%rax, %rsi
	movq	_max_memory@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	%rsi, %rax
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	addq	%rdx, %rcx
	movq	_init_memory@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	subq	%rcx, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	%xmm0, (%r8)
	xorl	%eax, %eax
	callq	_free_cache
	xorl	%eax, %eax
	popq	%rbp
	jmp	_free_metafiles                 ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_entry_memory,8,3               ## @entry_memory
	.comm	_memory_for_entries,8,3         ## @memory_for_entries
	.comm	_memory_for_metafiles,4,2       ## @memory_for_metafiles
	.comm	_MIN_MEMORY_FOR_METAFILES,4,2   ## @MIN_MEMORY_FOR_METAFILES
	.comm	_memory_for_cache,4,2           ## @memory_for_cache
	.comm	_MIN_MEMORY_FOR_CACHE,4,2       ## @MIN_MEMORY_FOR_CACHE
	.comm	_memory_for_wildcard_cache,4,2  ## @memory_for_wildcard_cache
	.comm	_MIN_MEMORY_FOR_WILDCARD_CACHE,4,2 ## @MIN_MEMORY_FOR_WILDCARD_CACHE
	.comm	_MEMORY_RESERVED,4,2            ## @MEMORY_RESERVED
	.comm	_max_memory,4,2                 ## @max_memory
	.comm	_init_memory,8,3                ## @init_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redistribute_memory            ; -- Begin function redistribute_memory
	.p2align	2
_redistribute_memory:                   ; @redistribute_memory
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x9, _entry_memory@GOTPAGE
Lloh1:
	ldr	x9, [x9, _entry_memory@GOTPAGEOFF]
Lloh2:
	adrp	x8, _memory_for_entries@GOTPAGE
Lloh3:
	ldr	x8, [x8, _memory_for_entries@GOTPAGEOFF]
Lloh4:
	ldr	d0, [x9]
	ldr	d1, [x8]
	mov	x9, #-7378697629483820647
	movk	x9, #39322
	movk	x9, #16361, lsl #48
	fmov	d2, x9
	fmul	d1, d1, d2
	fcmp	d0, d1
	b.ls	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _memory_for_metafiles@GOTPAGE
Lloh6:
	ldr	x9, [x9, _memory_for_metafiles@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
Lloh7:
	adrp	x11, _MIN_MEMORY_FOR_METAFILES@GOTPAGE
Lloh8:
	ldr	x11, [x11, _MIN_MEMORY_FOR_METAFILES@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	cmp	w10, w11
	csel	w10, w10, w11, gt
	str	w10, [x9]
Lloh10:
	adrp	x9, _memory_for_cache@GOTPAGE
Lloh11:
	ldr	x9, [x9, _memory_for_cache@GOTPAGEOFF]
	ldr	w11, [x9]
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
Lloh12:
	adrp	x12, _MIN_MEMORY_FOR_CACHE@GOTPAGE
Lloh13:
	ldr	x12, [x12, _MIN_MEMORY_FOR_CACHE@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	cmp	w11, w12
	csel	w11, w11, w12, gt
	str	w11, [x9]
Lloh15:
	adrp	x9, _memory_for_wildcard_cache@GOTPAGE
Lloh16:
	ldr	x9, [x9, _memory_for_wildcard_cache@GOTPAGEOFF]
	ldr	w12, [x9]
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
Lloh17:
	adrp	x13, _MIN_MEMORY_FOR_WILDCARD_CACHE@GOTPAGE
Lloh18:
	ldr	x13, [x13, _MIN_MEMORY_FOR_WILDCARD_CACHE@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
	cmp	w12, w13
	csel	w12, w12, w13, gt
	str	w12, [x9]
Lloh20:
	adrp	x9, _MEMORY_RESERVED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MEMORY_RESERVED@GOTPAGEOFF]
Lloh22:
	ldrsw	x9, [x9]
Lloh23:
	adrp	x12, _max_memory@GOTPAGE
Lloh24:
	ldr	x12, [x12, _max_memory@GOTPAGEOFF]
Lloh25:
	ldrsw	x12, [x12]
	msub	x9, x12, x9, x12
	sxtw	x11, w11
Lloh26:
	adrp	x12, _init_memory@GOTPAGE
Lloh27:
	ldr	x12, [x12, _init_memory@GOTPAGEOFF]
Lloh28:
	ldr	x12, [x12]
	add	x10, x11, w10, sxtw
	add	x10, x10, x12
	sub	x9, x9, x10
	scvtf	d0, x9
	str	d0, [x8]
	bl	_free_cache
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_free_metafiles
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_entry_memory,8,3               ; @entry_memory
	.comm	_memory_for_entries,8,3         ; @memory_for_entries
	.comm	_memory_for_metafiles,4,2       ; @memory_for_metafiles
	.comm	_MIN_MEMORY_FOR_METAFILES,4,2   ; @MIN_MEMORY_FOR_METAFILES
	.comm	_memory_for_cache,4,2           ; @memory_for_cache
	.comm	_MIN_MEMORY_FOR_CACHE,4,2       ; @MIN_MEMORY_FOR_CACHE
	.comm	_memory_for_wildcard_cache,4,2  ; @memory_for_wildcard_cache
	.comm	_MIN_MEMORY_FOR_WILDCARD_CACHE,4,2 ; @MIN_MEMORY_FOR_WILDCARD_CACHE
	.comm	_MEMORY_RESERVED,4,2            ; @MEMORY_RESERVED
	.comm	_max_memory,4,2                 ; @max_memory
	.comm	_init_memory,8,3                ; @init_memory
.subsections_via_symbols
