	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addarg
_addarg:                                ## @addarg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	cmpl	4(%rdi), %esi
	jne	LBB0_3
## %bb.1:
	leal	(%rsi,%rsi), %eax
	movl	%eax, 4(%rbx)
	movq	8(%rbx), %rdi
	shll	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_realloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	testq	%r14, %r14
	je	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_strdup
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rbx)
	movq	%rax, (%rcx,%rdx,8)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_err                            ## TAILCALL
LBB0_2:
	movq	_EX_TEMPFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
	testq	%r14, %r14
	jne	LBB0_5
LBB0_4:
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rbx)
	movq	$0, (%rax,%rcx,8)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_TEMPFAIL,4,2                ## @EX_TEMPFAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realloc"

L_.str.1:                               ## @.str.1
	.asciz	"strdup"

	.no_dead_strip	_addarg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addarg
_addarg:                                ; @addarg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	lsl	w9, w8, #1
	str	w9, [x19, #4]
	ldr	x0, [x19, #8]
	lsl	w1, w8, #4
	bl	_realloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
LBB0_2:
	cbz	x20, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_strdup
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	w10, w9, #1
	str	w10, [x19]
	str	x0, [x8, x9, lsl #3]
	cbnz	x0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_err
LBB0_5:
Lloh5:
	adrp	x8, _EX_TEMPFAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EX_TEMPFAIL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
	cbnz	x20, LBB0_3
LBB0_6:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	w10, w9, #1
	str	w10, [x19]
	str	xzr, [x8, x9, lsl #3]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_TEMPFAIL,4,2                ; @EX_TEMPFAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realloc"

l_.str.1:                               ; @.str.1
	.asciz	"strdup"

	.no_dead_strip	_addarg
.subsections_via_symbols
