	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Key_Bind_f                     ## -- Begin function Key_Bind_f
	.p2align	4, 0x90
_Key_Bind_f:                            ## @Key_Bind_f
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_Cmd_Argc
	cmpl	$1, %eax
	jg	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_3:
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	%rax, %rdi
	callq	_Key_StringToKeynum
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.7:
	movl	%eax, %edi
	cmpl	$2, %r15d
	jne	LBB0_14
## %bb.8:
	movq	_keys@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%edi, %rbx
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.10:
	callq	_Key_KeynumToString
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_4:
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_14:
	movl	%edi, -1076(%rbp)               ## 4-byte Spill
	movb	$0, -1072(%rbp)
	negl	%r15d
	movl	$2, %ebx
	leaq	-1072(%rbp), %r12
	leaq	L_.str.4(%rip), %r13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	movl	%r15d, %eax
	addl	%ebx, %eax
	je	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %r14d
	movl	%ebx, %edi
	callq	_Cmd_Argv
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_strcat
	cmpl	$-1, %r14d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_strcat
	jmp	LBB0_17
LBB0_18:
	leaq	-1072(%rbp), %rsi
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	callq	_Key_SetBinding
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	_Key_KeynumToString
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bind <key> [command] : attach a command to a key\n"

L_.str.1:                               ## @.str.1
	.asciz	"\"%s\" isn't a valid key\n"

	.comm	_keys,8,3                       ## @keys
L_.str.2:                               ## @.str.2
	.asciz	"\"%s\" = \"%s\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"\"%s\" is not bound\n"

L_.str.4:                               ## @.str.4
	.asciz	" "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Key_Bind_f                     ; -- Begin function Key_Bind_f
	.p2align	2
_Key_Bind_f:                            ; @Key_Bind_f
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #1056
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_Cmd_Argc
	cmp	w0, #1
	b.gt	LBB0_3
; %bb.1:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	add	sp, sp, #1056
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_Com_Printf
LBB0_3:
	mov	x20, x0
	mov	w0, #1
	bl	_Cmd_Argv
	bl	_Key_StringToKeynum
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.4:
	mov	x19, x0
	cmp	w20, #2
	b.ne	LBB0_9
; %bb.5:
Lloh8:
	adrp	x20, _keys@GOTPAGE
Lloh9:
	ldr	x20, [x20, _keys@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, w19, sxtw #3]
	cbz	x8, LBB0_14
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.7:
	sxtw	x21, w19
	mov	x0, x19
	bl	_Key_KeynumToString
	ldr	x8, [x20]
	ldr	x8, [x8, x21, lsl #3]
	stp	x0, x8, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_8:
	mov	w0, #1
	bl	_Cmd_Argv
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_9:
	strb	wzr, [sp, #24]
	neg	w22, w20
	mov	w20, #2
Lloh14:
	adrp	x21, l_.str.4@PAGE
Lloh15:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w20, w20, #1
	cmn	w22, w20
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	w23, w22, w20
	mov	x0, x20
	bl	_Cmd_Argv
	mov	x1, x0
	add	x0, sp, #24
	bl	_strcat
	cmn	w23, #1
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #24
	mov	x1, x21
	bl	_strcat
	b	LBB0_10
LBB0_13:
	add	x1, sp, #24
	mov	x0, x19
	bl	_Key_SetBinding
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_Key_KeynumToString
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_15:
	bl	_Com_Printf
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	add	sp, sp, #1056
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.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
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bind <key> [command] : attach a command to a key\n"

l_.str.1:                               ; @.str.1
	.asciz	"\"%s\" isn't a valid key\n"

	.comm	_keys,8,3                       ; @keys
l_.str.2:                               ; @.str.2
	.asciz	"\"%s\" = \"%s\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"\"%s\" is not bound\n"

l_.str.4:                               ; @.str.4
	.asciz	" "

.subsections_via_symbols
