	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_init                    ## -- Begin function matrix_init
	.p2align	4, 0x90
_matrix_init:                           ## @matrix_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_KEY_INIT
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	__matrix0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rbx
	movq	%rbx, %rsi
	callq	___bzero
	movq	__matrix1@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___bzero
	jmp	LBB0_3
LBB0_1:
	movq	__matrix1@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_3:
	movq	__matrix0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_matrix@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_matrix_prev@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATRIX_ROWS,8,3                ## @MATRIX_ROWS
	.comm	__matrix0,8,3                   ## @_matrix0
	.comm	__matrix1,8,3                   ## @_matrix1
	.comm	_matrix,8,3                     ## @matrix
	.comm	_matrix_prev,8,3                ## @matrix_prev
	.comm	_debug_enable,4,2               ## @debug_enable
	.comm	_debug_keyboard,4,2             ## @debug_keyboard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_init                    ; -- Begin function matrix_init
	.p2align	2
_matrix_init:                           ; @matrix_init
	.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
	bl	_KEY_INIT
Lloh0:
	adrp	x8, _MATRIX_ROWS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MATRIX_ROWS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x21, __matrix0@GOTPAGE
Lloh4:
	ldr	x21, [x21, __matrix0@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x21]
	lsl	x20, x8, #2
	mov	x1, x20
	bl	_bzero
Lloh5:
	adrp	x8, __matrix1@GOTPAGE
Lloh6:
	ldr	x8, [x8, __matrix1@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bzero
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, __matrix1@GOTPAGE
Lloh9:
	ldr	x8, [x8, __matrix1@GOTPAGEOFF]
Lloh10:
	ldr	x19, [x8]
LBB0_3:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _matrix@GOTPAGE
Lloh12:
	ldr	x9, [x9, _matrix@GOTPAGEOFF]
Lloh13:
	str	x8, [x9]
Lloh14:
	adrp	x8, _matrix_prev@GOTPAGE
Lloh15:
	ldr	x8, [x8, _matrix_prev@GOTPAGEOFF]
Lloh16:
	str	x19, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MATRIX_ROWS,8,3                ; @MATRIX_ROWS
	.comm	__matrix0,8,3                   ; @_matrix0
	.comm	__matrix1,8,3                   ; @_matrix1
	.comm	_matrix,8,3                     ; @matrix
	.comm	_matrix_prev,8,3                ; @matrix_prev
	.comm	_debug_enable,4,2               ; @debug_enable
	.comm	_debug_keyboard,4,2             ; @debug_keyboard
.subsections_via_symbols
