	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_MakeUndoFit
_EDIT_MakeUndoFit:                      ## @EDIT_MakeUndoFit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TRUE@GOTPCREL(%rip), %r12
	cmpl	%esi, (%rdi)
	jge	LBB0_4
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leal	4(,%rbx,4), %edi
	callq	_ROUND_TO_GROW
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r15), %edx
	movl	%eax, %edi
	movl	%r14d, %ecx
	callq	_HeapReAlloc
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	sarl	$2, %r14d
	decl	%r14d
	movl	%r14d, (%r15)
	jmp	LBB0_4
LBB0_3:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %r12
LBB0_4:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to ReAlloc to %d+1\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"FAILED !  We now have %d+1\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_EDIT_MakeUndoFit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_MakeUndoFit
_EDIT_MakeUndoFit:                      ; @EDIT_MakeUndoFit
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ge	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	lsl	w8, w20, #2
	add	w0, w8, #4
	bl	_ROUND_TO_GROW
	mov	x20, x0
	bl	_GetProcessHeap
Lloh2:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x3, x20
	bl	_HeapReAlloc
	str	w0, [x19, #4]
	cbz	w0, LBB0_4
; %bb.2:
	asr	w8, w20, #2
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_3:
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to ReAlloc to %d+1\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"FAILED !  We now have %d+1\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_EDIT_MakeUndoFit
.subsections_via_symbols
