	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %r12d
	leal	1(%r12), %r15d
	cmpl	%r15d, %eax
	jg	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdi
	leal	80(,%rax,8), %esi
	callq	_realloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_net@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fatal
LBB0_3:
	addl	$10, (%rbx)
	movl	4(%rbx), %r12d
	leal	1(%r12), %r15d
LBB0_4:
	movq	%r14, %rdi
	callq	_strdup
	movq	8(%rbx), %rcx
	movl	%r15d, 4(%rbx)
	movslq	%r12d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_net@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fatal
	movl	4(%rbx), %r15d
LBB0_6:
	movq	8(%rbx), %rax
	movslq	%r15d, %rcx
	movq	$0, (%rax,%rcx,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_net,4,2                        ## @net
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realloc: out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"strdup: out of memory"

	.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	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	x20, x1
	mov	x19, x0
	ldp	w8, w22, [x0]
	add	w21, w22, #1
	cmp	w8, w21
	b.gt	LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
	lsl	w8, w8, #3
	add	w1, w8, #80
	bl	_realloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _net@GOTPAGE
Lloh1:
	ldr	x8, [x8, _net@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fatal
LBB0_3:
	ldp	w8, w22, [x19]
	add	w8, w8, #10
	str	w8, [x19]
	add	w21, w22, #1
LBB0_4:
	mov	x0, x20
	bl	_strdup
	ldr	x8, [x19, #8]
	str	w21, [x19, #4]
	str	x0, [x8, w22, sxtw #3]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _net@GOTPAGE
Lloh6:
	ldr	x8, [x8, _net@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fatal
	ldr	w21, [x19, #4]
LBB0_6:
	ldr	x8, [x19, #8]
	str	xzr, [x8, w21, 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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_net,4,2                        ; @net
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realloc: out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"strdup: out of memory"

	.no_dead_strip	_addarg
.subsections_via_symbols
