	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_terminal_keymap                ## -- Begin function terminal_keymap
	.p2align	4, 0x90
_terminal_keymap:                       ## @terminal_keymap
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_arguments@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.2:
	xorl	%r13d, %r13d
	movq	_MATRIX_COLS@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_newline@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_send_string
	incq	%r13
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	movq	_MATRIX_COLS@GOTPCREL(%rip), %rax
	jge	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, (%rax)
	movq	_keymaps@GOTPCREL(%rip), %rcx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax,%r13,8), %rdi
	addq	%r14, %rdi
	movq	%rcx, %r15
	callq	_pgm_read_word
	leaq	-56(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_sprintf
	leaq	-56(%rbp), %rdi
	callq	_send_string
	movq	%r15, %rcx
	incq	%r12
	movq	_MATRIX_COLS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_arguments,8,3                  ## @arguments
	.comm	_MATRIX_ROWS,4,2                ## @MATRIX_ROWS
	.comm	_MATRIX_COLS,4,2                ## @MATRIX_COLS
	.comm	_keymaps,8,3                    ## @keymaps
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%04x,"

	.comm	_newline,8,3                    ## @newline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_terminal_keymap                ; -- Begin function terminal_keymap
	.p2align	2
_terminal_keymap:                       ; @terminal_keymap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x19, _arguments@GOTPAGE
Lloh4:
	ldr	x19, [x19, _arguments@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_strlen
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
Lloh5:
	adrp	x21, _MATRIX_ROWS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MATRIX_ROWS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x19, x0
	mov	x22, #0
Lloh7:
	adrp	x23, _MATRIX_COLS@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MATRIX_COLS@GOTPAGEOFF]
Lloh9:
	adrp	x24, _keymaps@GOTPAGE
Lloh10:
	ldr	x24, [x24, _keymaps@GOTPAGEOFF]
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
Lloh13:
	adrp	x25, _newline@GOTPAGE
Lloh14:
	ldr	x25, [x25, _newline@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	bl	_send_string
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	mov	x27, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8, x22, lsl #3]
	add	x0, x8, x26
	bl	_pgm_read_word
	mov	x2, x0
	mov	x0, sp
	mov	x1, x20
	bl	_sprintf
	mov	x0, sp
	bl	_send_string
	add	x27, x27, #1
	ldrsw	x8, [x23]
	add	x26, x26, #4
	cmp	x27, x8
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_arguments,8,3                  ; @arguments
	.comm	_MATRIX_ROWS,4,2                ; @MATRIX_ROWS
	.comm	_MATRIX_COLS,4,2                ; @MATRIX_COLS
	.comm	_keymaps,8,3                    ; @keymaps
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%04x,"

	.comm	_newline,8,3                    ; @newline
.subsections_via_symbols
