	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getptrs
_getptrs:                               ## @getptrs
	.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	%rdi, %r14
	movq	_allocsize@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leal	(%rsi,%rsi), %eax
	movl	%eax, (%r15)
	movq	_elem@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	shll	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_realloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	%rbx, %rax
	subq	(%r12), %rax
	addq	%rax, %r14
	movq	%rbx, (%r12)
	movslq	(%r15), %rax
	leaq	(%rbx,%rax,8), %rax
	movq	_endelem@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_allocsize,4,2                  ## @allocsize
	.comm	_elem,8,3                       ## @elem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory"

	.comm	_endelem,8,3                    ## @endelem
	.no_dead_strip	_getptrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getptrs
_getptrs:                               ; @getptrs
	.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, x0
Lloh0:
	adrp	x21, _allocsize@GOTPAGE
Lloh1:
	ldr	x21, [x21, _allocsize@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w9, w8, #1
	str	w9, [x21]
Lloh2:
	adrp	x22, _elem@GOTPAGE
Lloh3:
	ldr	x22, [x22, _elem@GOTPAGEOFF]
	ldr	x0, [x22]
	lsl	w1, w8, #4
	bl	_realloc
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	x8, [x22]
	sub	x8, x20, x8
	add	x0, x19, x8
	str	x20, [x22]
	ldrsw	x8, [x21]
	add	x8, x20, x8, lsl #3
Lloh6:
	adrp	x9, _endelem@GOTPAGE
Lloh7:
	ldr	x9, [x9, _endelem@GOTPAGEOFF]
Lloh8:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_allocsize,4,2                  ; @allocsize
	.comm	_elem,8,3                       ; @elem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory"

	.comm	_endelem,8,3                    ; @endelem
	.no_dead_strip	_getptrs
.subsections_via_symbols
