	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enlarge_strspace               ## -- Begin function enlarge_strspace
	.p2align	4, 0x90
_enlarge_strspace:                      ## @enlarge_strspace
	.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	_strsize@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	(%rax,%rax), %ecx
	movl	%ecx, (%r14)
	leal	(%rax,%rax), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	_strspace@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movl	(%r14), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	_sp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_14
## %bb.3:
	movq	_STORAGE_STRSPACE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	1(%rax), %r8
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%eax, %eax
	movq	_sstack@GOTPCREL(%rip), %rdi
	movq	_mstack@GOTPCREL(%rip), %r9
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rsi
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rdx
	cmpq	%rcx, (%rdx,%rax,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r9), %rdx
	movq	(%rdx,%rax,8), %rbx
	subq	(%r15), %rbx
	addq	%r12, %rbx
	movq	%rbx, (%rdx,%rax,8)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rdi), %rdx
	cmpq	%rcx, 8(%rdx,%rax,8)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r9), %rdx
	movq	8(%rdx,%rax,8), %rbx
	subq	(%r15), %rbx
	addq	%r12, %rbx
	movq	%rbx, 8(%rdx,%rax,8)
	jmp	LBB0_10
LBB0_4:
	xorl	%eax, %eax
LBB0_11:
	testb	$1, %r8b
	je	LBB0_14
## %bb.12:
	movq	_sstack@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, (%rdx,%rax,8)
	jne	LBB0_14
## %bb.13:
	movq	_mstack@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rdx
	subq	(%r15), %rdx
	addq	%r12, %rdx
	movq	%rdx, (%rcx,%rax,8)
LBB0_14:
	movq	_ep@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%r15), %rdi
	subq	%rdi, %rcx
	addq	%r12, %rcx
	movq	%rcx, (%rax)
	callq	_free
	movq	%r12, (%r15)
	movslq	(%r14), %rax
	addq	%r12, %rax
	movq	_endest@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_strsize,4,2                    ## @strsize
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"string space overflow"

	.comm	_strspace,8,3                   ## @strspace
	.comm	_sp,4,2                         ## @sp
	.comm	_sstack,8,3                     ## @sstack
	.comm	_STORAGE_STRSPACE,8,3           ## @STORAGE_STRSPACE
	.comm	_mstack,8,3                     ## @mstack
	.comm	_ep,8,3                         ## @ep
	.comm	_endest,8,3                     ## @endest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enlarge_strspace               ; -- Begin function enlarge_strspace
	.p2align	2
_enlarge_strspace:                      ; @enlarge_strspace
	.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
Lloh0:
	adrp	x20, _strsize@GOTPAGE
Lloh1:
	ldr	x20, [x20, _strsize@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w9, w8, #1
	str	w9, [x20]
	mov	w0, #1
	bfi	w0, w8, #1, #31
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh4:
	adrp	x21, _strspace@GOTPAGE
Lloh5:
	ldr	x21, [x21, _strspace@GOTPAGEOFF]
	ldr	x1, [x21]
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x19
	bl	_memcpy
Lloh6:
	adrp	x8, _sp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sp@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
	tbnz	w10, #31, LBB0_7
; %bb.3:
	mov	x8, #0
Lloh9:
	adrp	x9, _STORAGE_STRSPACE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STORAGE_STRSPACE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	lsl	x10, x10, #3
	add	x10, x10, #8
Lloh12:
	adrp	x11, _sstack@GOTPAGE
Lloh13:
	ldr	x11, [x11, _sstack@GOTPAGEOFF]
Lloh14:
	adrp	x12, _mstack@GOTPAGE
Lloh15:
	ldr	x12, [x12, _mstack@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #8
	cmp	x10, x8
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	ldr	x13, [x13, x8]
	cmp	x13, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x12]
	ldr	x14, [x13, x8]
	ldr	x15, [x21]
	sub	x14, x14, x15
	add	x14, x19, x14
	str	x14, [x13, x8]
	b	LBB0_4
LBB0_7:
Lloh16:
	adrp	x8, _ep@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ep@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x0, [x21]
	sub	x9, x9, x0
	add	x9, x19, x9
	str	x9, [x8]
	bl	_free
	str	x19, [x21]
	ldrsw	x8, [x20]
	add	x8, x19, x8
Lloh18:
	adrp	x9, _endest@GOTPAGE
Lloh19:
	ldr	x9, [x9, _endest@GOTPAGEOFF]
Lloh20:
	str	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_strsize,4,2                    ; @strsize
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"string space overflow"

	.comm	_strspace,8,3                   ; @strspace
	.comm	_sp,4,2                         ; @sp
	.comm	_sstack,8,3                     ; @sstack
	.comm	_STORAGE_STRSPACE,8,3           ; @STORAGE_STRSPACE
	.comm	_mstack,8,3                     ; @mstack
	.comm	_ep,8,3                         ; @ep
	.comm	_endest,8,3                     ; @endest
.subsections_via_symbols
