	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function globextend
_globextend:                            ## @globextend
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movslq	(%rsi), %rax
	movslq	4(%rsi), %rcx
	addq	%rax, %rcx
	leaq	16(,%rcx,8), %rsi
	movq	8(%rbx), %rdi
	callq	_xrealloc
	movq	%rax, %r14
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.1:
	movl	4(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_3
## %bb.2:
	leal	-1(%rsi), %eax
	notq	%rax
	addq	%rsi, %rax
	leaq	(%r14,%rax,8), %r14
	shlq	$3, %rsi
	movq	%r14, %rdi
	callq	___bzero
LBB0_3:
	movq	%r14, 8(%rbx)
	movq	%r15, %rdi
	callq	_strsave
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	leal	1(%rcx), %esi
	movl	%esi, (%rbx)
	leal	(%rcx,%rdx), %esi
	movslq	%esi, %rsi
	movq	%rax, (%r14,%rsi,8)
	leal	(%rcx,%rdx), %eax
	incl	%eax
	cltq
	movq	$0, (%r14,%rax,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_globextend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function globextend
_globextend:                            ; @globextend
	.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	x19, x1
	mov	x20, x0
	ldp	w8, w9, [x1]
	add	w8, w8, w9
	add	w8, w8, #2
	sbfiz	x1, x8, #3, #32
	ldr	x0, [x19, #8]
	bl	_xrealloc
	mov	x21, x0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
	sub	w9, w8, #1
	mvn	x9, x9
	add	x9, x9, x8
	add	x21, x21, x9, lsl #3
	lsl	x1, x8, #3
	mov	x0, x21
	bl	_bzero
LBB0_3:
	str	x21, [x19, #8]
	mov	x0, x20
	bl	_strsave
	ldp	w9, w8, [x19]
	add	w10, w9, #1
	str	w10, [x19]
	add	w9, w9, w8
	str	x0, [x21, w9, sxtw #3]
	add	w8, w10, w8
	str	xzr, [x21, w8, sxtw #3]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_globextend
.subsections_via_symbols
