	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_entry                      ## -- Begin function add_entry
	.p2align	4, 0x90
_add_entry:                             ## @add_entry
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%edx, %edi
	callq	__tcslen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %edi
	callq	_cmd_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	__tcscpy
	movq	(%r15), %rbx
	movl	(%r14), %eax
	leal	16(,%rax,8), %esi
	movq	%rbx, %rdi
	callq	_cmd_realloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movslq	(%r14), %rcx
	movq	%r12, (%rax,%rcx,8)
	movq	(%r15), %rax
	leaq	1(%rcx), %rdx
	movl	%edx, (%r14)
	movq	$0, 8(%rax,%rcx,8)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	%rbx, (%r15)
	movq	%r12, %rdi
	callq	_cmd_free
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate memory for q!\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Cannot reallocate memory for arg!\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_entry                      ; -- Begin function add_entry
	.p2align	2
_add_entry:                             ; @add_entry
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	__tcslen
	lsl	w8, w0, #2
	add	w0, w8, #4
	bl	_cmd_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x1, x22
	bl	__tcscpy
	ldr	x22, [x19]
	ldr	w8, [x20]
	lsl	w8, w8, #3
	add	w1, w8, #16
	mov	x0, x22
	bl	_cmd_realloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	ldrsw	x8, [x20]
	str	x21, [x0, x8, lsl #3]
	ldr	x9, [x19]
	add	x8, x8, #1
	str	w8, [x20]
	str	xzr, [x9, x8, lsl #3]
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	str	x22, [x19]
	mov	x0, x21
	bl	_cmd_free
LBB0_5:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate memory for q!\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Cannot reallocate memory for arg!\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
