	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmdline_add_arg
_cmdline_add_arg:                       ## @cmdline_add_arg
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movl	8(%rbx), %eax
	leal	16(,%rax,8), %esi
	callq	_realloc
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_strdup
	movslq	8(%rbx), %rcx
	movq	%rax, (%r15,%rcx,8)
	movq	(%rbx), %rax
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.4:
	leaq	1(%rcx), %rdx
	movl	%edx, 8(%rbx)
	movq	$0, 8(%rax,%rcx,8)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_5
LBB0_1:
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %r12
LBB0_5:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_cmdline_add_arg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmdline_add_arg
_cmdline_add_arg:                       ; @cmdline_add_arg
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w8, [x19, #8]
	lsl	w8, w8, #3
	add	w1, w8, #16
	bl	_realloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	str	x0, [x19]
	mov	x0, x20
	bl	_strdup
	ldrsw	x9, [x19, #8]
	lsl	x10, x9, #3
	str	x0, [x21, x10]
	ldr	x8, [x19]
	ldr	x10, [x8, x10]
	cbz	x10, LBB0_5
; %bb.3:
	add	x9, x9, #1
	str	w9, [x19, #8]
	str	xzr, [x8, x9, lsl #3]
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_cmdline_add_arg
.subsections_via_symbols
