	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_MakeFit
_EDIT_MakeFit:                          ## @EDIT_MakeFit
	.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
	cmpl	%esi, (%rdi)
	jge	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_EDIT_UnlockBuffer
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.3:
	leal	4(,%r14,4), %edi
	callq	_ROUND_TO_GROW
	movq	8(%rbx), %rdi
	movq	_LMEM_MOVEABLE@GOTPCREL(%rip), %rcx
	movq	_LMEM_ZEROINIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%eax, %esi
	callq	_LocalReAlloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r15, 8(%rbx)
	movq	%r15, %rdi
	callq	_LocalSize
	sarl	$2, %eax
	decl	%eax
	movl	%eax, (%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_EDIT_LockBuffer
	movl	(%rbx), %esi
	cmpl	%r14d, %esi
	jge	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_WARN
	movq	_EN_ERRSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EDIT_NOTIFY_PARENT
	movq	_FALSE@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_1:
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_8:
	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 characters\n"

	.comm	_LMEM_MOVEABLE,4,2              ## @LMEM_MOVEABLE
	.comm	_LMEM_ZEROINIT,4,2              ## @LMEM_ZEROINIT
L_.str.1:                               ## @.str.1
	.asciz	"Old 32 bit handle %p, new handle %p\n"

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

	.comm	_EN_ERRSPACE,4,2                ## @EN_ERRSPACE
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.3:                               ## @.str.3
	.asciz	"We now have %d+1\n"

	.no_dead_strip	_EDIT_MakeFit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_MakeFit
_EDIT_MakeFit:                          ; @EDIT_MakeFit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _TRUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	cmp	w8, w1
	b.ge	LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w1, [x21]
	mov	x0, x19
	bl	_EDIT_UnlockBuffer
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	lsl	w8, w20, #2
	add	w0, w8, #4
	bl	_ROUND_TO_GROW
	mov	x1, x0
Lloh4:
	adrp	x8, _LMEM_MOVEABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LMEM_MOVEABLE@GOTPAGEOFF]
	ldr	x0, [x19, #8]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _LMEM_ZEROINIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LMEM_ZEROINIT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_LocalReAlloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	ldr	w1, [x19, #8]
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	str	x21, [x19, #8]
	mov	x0, x21
	bl	_LocalSize
	asr	w8, w0, #2
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_4:
	mov	x0, x19
	bl	_EDIT_LockBuffer
	ldr	w1, [x19]
	cmp	w1, w20
	b.ge	LBB0_6
; %bb.5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
Lloh14:
	adrp	x8, _EN_ERRSPACE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EN_ERRSPACE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EDIT_NOTIFY_PARENT
Lloh17:
	adrp	x21, _FALSE@GOTPAGE
Lloh18:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
Lloh21:
	adrp	x21, _TRUE@GOTPAGE
Lloh22:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to ReAlloc to %d+1 characters\n"

	.comm	_LMEM_MOVEABLE,4,2              ; @LMEM_MOVEABLE
	.comm	_LMEM_ZEROINIT,4,2              ; @LMEM_ZEROINIT
l_.str.1:                               ; @.str.1
	.asciz	"Old 32 bit handle %p, new handle %p\n"

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

	.comm	_EN_ERRSPACE,4,2                ; @EN_ERRSPACE
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.3:                               ; @.str.3
	.asciz	"We now have %d+1\n"

	.no_dead_strip	_EDIT_MakeFit
.subsections_via_symbols
