	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_appendarglist                  ## -- Begin function appendarglist
	.p2align	4, 0x90
_appendarglist:                         ## @appendarglist
	.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), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_2
## %bb.1:
	movq	8(%rbx), %r15
	jmp	LBB0_5
LBB0_2:
	addl	%ecx, %ecx
	cmpl	$17, %ecx
	movl	$16, %r12d
	cmovgel	%ecx, %r12d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	cmpl	%ecx, %r12d
	jle	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_4:
	leal	(,%r12,8), %edi
	callq	_stalloc
	movq	%rax, %r15
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	shll	$3, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	%r15, 8(%rbx)
	movl	%r12d, 4(%rbx)
	movl	(%rbx), %eax
LBB0_5:
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	cltq
	movq	%r14, (%r15,%rax,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many entries in arglist"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_appendarglist                  ; -- Begin function appendarglist
	.p2align	2
_appendarglist:                         ; @appendarglist
	.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, [x0]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	ldr	x21, [x20, #8]
	b	LBB0_5
LBB0_2:
	lsl	w8, w9, #1
	mov	w9, #16
Lloh0:
	adrp	x10, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _INT_MAX@GOTPAGEOFF]
	cmp	w8, #16
	csel	w22, w8, w9, gt
Lloh2:
	ldr	w8, [x10]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w22, w8, asr #3
	b.le	LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_4:
	lsl	w0, w22, #3
	bl	_stalloc
	mov	x21, x0
	ldr	x1, [x20, #8]
	ldr	w8, [x20]
	lsl	w2, w8, #3
	bl	_memcpy
	str	x21, [x20, #8]
	str	w22, [x20, #4]
	ldr	w8, [x20]
LBB0_5:
	add	w9, w8, #1
	str	w9, [x20]
	str	x19, [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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many entries in arglist"

.subsections_via_symbols
