	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_AddCommand                 ## -- Begin function Cmd_AddCommand
	.p2align	4, 0x90
_Cmd_AddCommand:                        ## @Cmd_AddCommand
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_Cmd_FindCommand
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_3:
	movl	$32, %edi
	callq	_S_Malloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_CopyString
	movl	%eax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_cmd_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	%rbx, (%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cmd_AddCommand: %s already defined\n"

	.comm	_cmd_functions,8,3              ## @cmd_functions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_AddCommand                 ; -- Begin function Cmd_AddCommand
	.p2align	2
_Cmd_AddCommand:                        ; @Cmd_AddCommand
	.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
	bl	_Cmd_FindCommand
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x19, LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	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
	b	_Com_Printf
LBB0_3:
	mov	w0, #32
	bl	_S_Malloc
	mov	x21, x0
	mov	x0, x20
	bl	_CopyString
	str	w0, [x21, #24]
	str	x19, [x21, #16]
Lloh2:
	adrp	x8, _cmd_functions@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cmd_functions@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	x9, xzr, [x21]
	str	x21, [x8]
LBB0_4:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cmd_AddCommand: %s already defined\n"

	.comm	_cmd_functions,8,3              ; @cmd_functions
.subsections_via_symbols
