	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enlarge
_enlarge:                               ## @enlarge
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movl	$1, %r14d
	cmpq	%rsi, %r15
	jge	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	%rsi, (%rdi)
	callq	_MEMSIZE
	movq	_MEMLIMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_4
## %bb.2:
	movq	16(%rbx), %rdi
	movl	(%rbx), %esi
	shll	$2, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	shll	$2, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, 8(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	%r15, (%rbx)
	movq	_REG_ESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SETERROR
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEMLIMIT,8,3                   ## @MEMLIMIT
	.comm	_REG_ESPACE,4,2                 ## @REG_ESPACE
	.no_dead_strip	_enlarge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enlarge
_enlarge:                               ; @enlarge
	.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	x20, [x0]
	cmp	x20, x1
	b.ge	LBB0_5
; %bb.1:
	mov	x19, x0
	str	x1, [x0]
	bl	_MEMSIZE
Lloh0:
	adrp	x8, _MEMLIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEMLIMIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_6
; %bb.2:
	ldr	x0, [x19, #16]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	bl	_realloc
	cbz	x0, LBB0_6
; %bb.3:
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	bl	_realloc
	cbz	x0, LBB0_6
; %bb.4:
	str	x0, [x19, #8]
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	str	x20, [x19]
Lloh3:
	adrp	x8, _REG_ESPACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_ESPACE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SETERROR
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MEMLIMIT,8,3                   ; @MEMLIMIT
	.comm	_REG_ESPACE,4,2                 ; @REG_ESPACE
	.no_dead_strip	_enlarge
.subsections_via_symbols
