	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vector_append
_vector_append:                         ## @vector_append
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rdx), %ecx
	movq	_ELEMSPERCHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	testl	%edx, %edx
	jne	LBB0_3
## %bb.1:
	addl	%ecx, %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_reallocarray
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%r15), %ecx
	movq	%rax, %r14
LBB0_3:
	movl	%ecx, %edi
	imulq	%rbx, %rdi
	addq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memmove
	incl	(%r15)
LBB0_4:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nss_log_simple
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ELEMSPERCHUNK,4,2              ## @ELEMSPERCHUNK
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory allocation failure"

	.no_dead_strip	_vector_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vector_append
_vector_append:                         ; @vector_append
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _ELEMSPERCHUNK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELEMSPERCHUNK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w10, w8, w9
	msub	w10, w10, w9, w8
	cbnz	w10, LBB0_3
; %bb.1:
	add	w1, w9, w8
	mov	x0, x19
	mov	x2, x21
	bl	_reallocarray
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x20]
	mov	x19, x0
LBB0_3:
	mov	w8, w8
	madd	x0, x8, x21, x19
	mov	x1, x22
	mov	x2, x21
	bl	_memmove
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
	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
LBB0_5:
Lloh3:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nss_log_simple
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ELEMSPERCHUNK,4,2              ; @ELEMSPERCHUNK
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory allocation failure"

	.no_dead_strip	_vector_append
.subsections_via_symbols
