	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vector_str_grow
_vector_str_grow:                       ## @vector_str_grow
	.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
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	_BUFFER_GROWFACTOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	imulq	%rax, %r12
	xorl	%edi, %edi
	cmpq	%rax, %r12
	seta	%dil
	callq	_assert
	leal	(,%r12,8), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %rbx
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.3:
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rsi
	movq	(%rsi,%rcx,8), %rsi
	movq	%rsi, (%rbx,%rcx,8)
	movq	16(%r14), %rsi
	movq	8(%rsi,%rcx,8), %rsi
	movq	%rsi, 8(%rbx,%rcx,8)
	movq	16(%r14), %rsi
	movq	16(%rsi,%rcx,8), %rsi
	movq	%rsi, 16(%rbx,%rcx,8)
	movq	16(%r14), %rsi
	movq	24(%rsi,%rcx,8), %rsi
	movq	%rsi, 24(%rbx,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_6
LBB0_7:
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdx
	movq	(%rdx,%rcx,8), %rdx
	movq	%rdx, (%rbx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_8
LBB0_9:
	movq	16(%r14), %rdi
	callq	_free
	movq	%rbx, 16(%r14)
	movq	%r12, (%r14)
	movl	$1, %r15d
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_GROWFACTOR,8,3          ## @BUFFER_GROWFACTOR
	.no_dead_strip	_vector_str_grow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vector_str_grow
_vector_str_grow:                       ; @vector_str_grow
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _BUFFER_GROWFACTOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUFFER_GROWFACTOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mul	x21, x9, x8
	cmp	x21, x8
	cset	w0, hi
	bl	_assert
	lsl	w0, w21, #3
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x9, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #16]
	lsl	x11, x9, #3
	ldr	x10, [x10, x11]
	str	x10, [x20, x11]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_5:
	ldr	x0, [x19, #16]
	bl	_free
	str	x20, [x19, #16]
	str	x21, [x19]
	mov	w0, #1
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_GROWFACTOR,8,3          ; @BUFFER_GROWFACTOR
	.no_dead_strip	_vector_str_grow
.subsections_via_symbols
