	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NegotiateCommand
_NegotiateCommand:                      ## @NegotiateCommand
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	4(%rdi), %rax
	cmpl	%eax, (%rdi)
	jle	LBB0_9
## %bb.1:
	movq	8(%r15), %rcx
	movq	-8(%rcx,%rax,8), %rdi
	leaq	-84(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	callq	_ident_cmd
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	$0, -64(%rbp)
	movslq	4(%r15), %rbx
	cmpl	(%r15), %ebx
	jge	LBB0_12
## %bb.4:
	movq	_NegotiateCommands@GOTPCREL(%rip), %r12
	movq	_NEG_HISMASK@GOTPCREL(%rip), %r13
	leaq	-80(%rbp), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_NEG_OPT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	(%r12), %rsi
	movl	28(%r15), %edi
	movq	16(%r15), %r9
	movl	24(%r15), %eax
	movl	%eax, (%rsp)
	movl	$2, %edx
	movl	$1, %ecx
	movq	%r14, %r8
	callq	_FindExec
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -72(%rbp)
	movl	-84(%rbp), %eax
	cmpl	(%r13), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_9:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movq	8(%r15), %rcx
	movq	-8(%rcx,%rax,8), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_prompt_Printf
	jmp	LBB0_12
LBB0_2:
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_LogWARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx,%rax,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_log_Printf
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NegotiateCommands,8,3          ## @NegotiateCommands
	.comm	_NEG_HISMASK,4,2                ## @NEG_HISMASK
	.comm	_NEG_OPT_MAX,8,3                ## @NEG_OPT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Use `%s ?' to get a list.\n"

	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.1:                               ## @.str.1
	.asciz	"%s command must have arguments\n"

	.no_dead_strip	_NegotiateCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NegotiateCommand
_NegotiateCommand:                      ; @NegotiateCommand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	cmp	w9, w8
	b.le	LBB0_5
; %bb.1:
	ldr	x9, [x19, #8]
	sub	w8, w8, #1
	ldr	x0, [x9, w8, sxtw #3]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_ident_cmd
	str	x0, [sp, #16]
	cbz	x0, LBB0_7
; %bb.2:
	str	xzr, [sp, #32]
	ldp	w8, w20, [x19]
                                        ; kill: def $w20 killed $w20 def $x20
	sxtw	x20, w20
	cmp	w20, w8
	b.ge	LBB0_9
; %bb.3:
Lloh3:
	adrp	x21, _NegotiateCommands@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NegotiateCommands@GOTPAGEOFF]
Lloh5:
	adrp	x22, _NEG_HISMASK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NEG_HISMASK@GOTPAGEOFF]
Lloh7:
	adrp	x23, _NEG_OPT_MAX@GOTPAGE
Lloh8:
	ldr	x23, [x23, _NEG_OPT_MAX@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x5, [x19, #8]
	ldr	x8, [x8, x20, lsl #3]
	str	x8, [sp, #24]
	ldr	x8, [x21]
	ldr	w9, [sp, #12]
	ldr	w10, [x22]
	ldr	x11, [x23]
	cmp	w9, w10
	csel	x9, xzr, x11, eq
	add	x1, x9, x8
	ldp	w6, w0, [x19, #24]
	add	x4, sp, #16
	mov	w2, #2
	mov	w3, #1
	bl	_FindExec
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_4
	b	LBB0_9
LBB0_5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x9, [x19, #8]
	sub	w8, w8, #1
	ldr	x2, [x9, w8, sxtw #3]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_prompt_Printf
	b	LBB0_9
LBB0_7:
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x9, _LogWARN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LogWARN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	ldr	x9, [x19, #8]
	ldr	x2, [x9, x8, lsl #3]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NegotiateCommands,8,3          ; @NegotiateCommands
	.comm	_NEG_HISMASK,4,2                ; @NEG_HISMASK
	.comm	_NEG_OPT_MAX,8,3                ; @NEG_OPT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Use `%s ?' to get a list.\n"

	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.1:                               ; @.str.1
	.asciz	"%s command must have arguments\n"

	.no_dead_strip	_NegotiateCommand
.subsections_via_symbols
