	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cspace                         ## -- Begin function cspace
	.p2align	4, 0x90
_cspace:                                ## @cspace
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	leaq	(%rsi,%rdx), %rax
	incq	%rax
	cmpq	8(%rdi), %rax
	jbe	LBB0_3
## %bb.1:
	addq	%r14, %rsi
	addq	$1025, %rsi                     ## imm = 0x401
	movq	%rsi, 8(%rbx)
	movq	24(%rbx), %rdi
	callq	_realloc
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	_REPLACE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	$0, (%rbx)
	xorl	%edi, %edi
	jmp	LBB0_6
LBB0_4:
	movq	(%rbx), %rdi
LBB0_6:
	addq	16(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memmove
	movq	16(%rbx), %rax
	addq	(%rbx), %r14
	movq	%r14, (%rbx)
	movb	$0, (%rax,%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realloc"

	.comm	_REPLACE,4,2                    ## @REPLACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cspace                         ; -- Begin function cspace
	.p2align	2
_cspace:                                ; @cspace
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x8, x9, [x0]
	add	x8, x8, x2
	add	x10, x8, #1
	cmp	x10, x9
	b.ls	LBB0_3
; %bb.1:
	add	x1, x8, #1025
	str	x1, [x20, #8]
	ldr	x0, [x20, #24]
	bl	_realloc
	stp	x0, x0, [x20, #16]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
Lloh2:
	adrp	x8, _REPLACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REPLACE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.4:
	mov	x8, #0
	str	xzr, [x20]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20]
LBB0_6:
	ldr	x9, [x20, #16]
	add	x0, x9, x8
	mov	x1, x21
	mov	x2, x19
	bl	_memmove
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	add	x9, x9, x19
	str	x9, [x20]
	strb	wzr, [x8, x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realloc"

	.comm	_REPLACE,4,2                    ; @REPLACE
.subsections_via_symbols
