	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddXkey                        ## -- Begin function AddXkey
	.p2align	4, 0x90
_AddXkey:                               ## @AddXkey
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rdi), %eax
	movl	%eax, -32(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	_XK_CMD@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	(%r14), %rax
	movq	_F_XKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdx
	movl	$9, %edi
	movl	$2, %esi
	jmp	LBB0_2
LBB0_6:
	movq	_Xmap@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rdi
	callq	_GetFreeNode
	movq	%rax, %rdi
	movq	%rax, (%r15)
LBB0_8:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_TryNode
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rdx
	movl	$9, %edi
	movl	$1, %esi
LBB0_2:
	callq	_CGETS
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"AddXkey: Null extended-key not allowed.\n"

	.comm	_XK_CMD,4,2                     ## @XK_CMD
	.comm	_F_XKEY,8,3                     ## @F_XKEY
L_.str.2:                               ## @.str.2
	.asciz	"AddXkey: sequence-lead-in command not allowed\n"

	.comm	_Xmap,8,3                       ## @Xmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddXkey                        ; -- Begin function AddXkey
	.p2align	2
_AddXkey:                               ; @AddXkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w8, [x0, #8]
	str	w8, [sp, #8]
	ldr	x8, [x0]
	str	x8, [sp]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _XK_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XK_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _F_XKEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _F_XKEY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #9
	mov	w1, #2
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x21, _Xmap@GOTPAGE
Lloh9:
	ldr	x21, [x21, _Xmap@GOTPAGEOFF]
	ldr	x0, [x21]
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, sp
	bl	_GetFreeNode
	str	x0, [x21]
LBB0_6:
	mov	x1, sp
	mov	x2, x20
	mov	x3, x19
	bl	_TryNode
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #9
	mov	w1, #1
LBB0_8:
	bl	_CGETS
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_xprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"AddXkey: Null extended-key not allowed.\n"

	.comm	_XK_CMD,4,2                     ; @XK_CMD
	.comm	_F_XKEY,8,3                     ; @F_XKEY
l_.str.2:                               ; @.str.2
	.asciz	"AddXkey: sequence-lead-in command not allowed\n"

	.comm	_Xmap,8,3                       ; @Xmap
.subsections_via_symbols
