	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_new_comm
_add_new_comm:                          ## @add_new_comm
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testl	%edx, %edx
	je	LBB0_9
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movl	%edx, -56(%rbp)
	movl	(%rdi), %edx
	movq	_cmdline_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	movl	$16, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15), %esi
	shll	$4, %esi
	addl	$16, %esi
	movq	%r13, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_strdup
	movslq	(%r15), %rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%r13,%rdx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	%ebx, (%r13,%rdx)
	incl	%ecx
	movl	%ecx, (%r15)
	movslq	%ecx, %rsi
	movq	_cmdline_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	$16, %edx
	callq	_qsort
	movq	%r13, 8(%r15)
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	%r13, %rdi
	callq	_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_cmdline_cmp,4,2                ## @cmdline_cmp
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_add_new_comm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_new_comm
_add_new_comm:                          ; @add_new_comm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	w2, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	str	w2, [sp]
	ldr	w2, [x0]
Lloh0:
	adrp	x23, _cmdline_cmp@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cmdline_cmp@GOTPAGEOFF]
	ldr	w4, [x23]
	mov	x0, sp
	mov	x1, x22
	mov	w3, #16
	bl	_bsearch
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _EEXIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	ldr	w8, [x19]
	lsl	w8, w8, #4
	add	w1, w8, #16
	mov	x0, x22
	bl	_realloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	mov	x0, x21
	bl	_strdup
	ldrsw	x8, [x19]
	add	x9, x22, x8, lsl #4
	str	x0, [x9, #8]
	cbz	x0, LBB0_7
; %bb.6:
	lsl	x9, x8, #4
	str	w20, [x22, x9]
	add	w8, w8, #1
	str	w8, [x19]
	sxtw	x1, w8
	ldr	w3, [x23]
	mov	x0, x22
	mov	w2, #16
	bl	_qsort
	mov	w0, #0
	str	x22, [x19, #8]
	b	LBB0_10
LBB0_7:
	mov	x0, x22
	bl	_free
LBB0_8:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cmdline_cmp,4,2                ; @cmdline_cmp
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_new_comm
.subsections_via_symbols
