	.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
	xorl	%eax, %eax
	callq	_unselect_rows
	xorl	%eax, %eax
	callq	_init_cols
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %r8
	cmpq	$0, (%r8)
	je	LBB0_6
## %bb.1:
	movq	_matrix@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_debounce_matrix@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	movq	_MATRIX_COLS@GOTPCREL(%rip), %rdi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	cmpq	(%r8), %rsi
	jae	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	$0, (%r9,%rsi,8)
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imulq	%rsi, %rax
	addq	%rcx, %rax
	movq	$0, (%rdx,%rax,8)
	incq	%rcx
	movq	(%rdi), %rax
	cmpq	%rax, %rcx
	jb	LBB0_4
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_matrix_init_quantum            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MATRIX_ROWS,8,3                ## @MATRIX_ROWS
	.comm	_matrix,8,3                     ## @matrix
	.comm	_MATRIX_COLS,8,3                ## @MATRIX_COLS
	.comm	_debounce_matrix,8,3            ## @debounce_matrix
.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	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_unselect_rows
	bl	_init_cols
Lloh0:
	adrp	x8, _MATRIX_ROWS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MATRIX_ROWS@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _matrix@GOTPAGE
Lloh3:
	ldr	x10, [x10, _matrix@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _debounce_matrix@GOTPAGE
Lloh6:
	ldr	x11, [x11, _debounce_matrix@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
Lloh8:
	adrp	x12, _MATRIX_COLS@GOTPAGE
Lloh9:
	ldr	x12, [x12, _MATRIX_COLS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	ldr	x13, [x8]
	cmp	x9, x13
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	xzr, [x10, x9, lsl #3]
	ldr	x13, [x12]
	cbz	x13, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x13, x9, x13, x14
	str	xzr, [x11, x13, lsl #3]
	add	x14, x14, #1
	ldr	x13, [x12]
	cmp	x14, x13
	b.lo	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_matrix_init_quantum
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MATRIX_ROWS,8,3                ; @MATRIX_ROWS
	.comm	_matrix,8,3                     ; @matrix
	.comm	_MATRIX_COLS,8,3                ; @MATRIX_COLS
	.comm	_debounce_matrix,8,3            ; @debounce_matrix
.subsections_via_symbols
