	.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
	movq	_debug_enable@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_debug_matrix@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_debug_mouse@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_unselect_rows
	xorl	%eax, %eax
	callq	_init_cols
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_matrix@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_matrix_debouncing@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rsi,8)
	movq	$0, (%rdx,%rsi,8)
	incq	%rsi
	cmpq	(%rax), %rsi
	jb	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_has_usb
	movq	_is_master@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_matrix_init_quantum            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_enable,4,2               ## @debug_enable
	.comm	_debug_matrix,4,2               ## @debug_matrix
	.comm	_debug_mouse,4,2                ## @debug_mouse
	.comm	_TX_RX_LED_INIT,4,2             ## @TX_RX_LED_INIT
	.comm	_MATRIX_ROWS,8,3                ## @MATRIX_ROWS
	.comm	_matrix,8,3                     ## @matrix
	.comm	_matrix_debouncing,8,3          ## @matrix_debouncing
	.comm	_is_master,4,2                  ## @is_master
.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
Lloh0:
	adrp	x8, _debug_enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_enable@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x8, _debug_matrix@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug_matrix@GOTPAGEOFF]
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _debug_mouse@GOTPAGE
Lloh7:
	ldr	x8, [x8, _debug_mouse@GOTPAGEOFF]
Lloh8:
	str	w9, [x8]
	bl	_unselect_rows
	bl	_init_cols
Lloh9:
	adrp	x8, _MATRIX_ROWS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MATRIX_ROWS@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x9, #0
Lloh11:
	adrp	x10, _matrix@GOTPAGE
Lloh12:
	ldr	x10, [x10, _matrix@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _matrix_debouncing@GOTPAGE
Lloh15:
	ldr	x11, [x11, _matrix_debouncing@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #3
	str	xzr, [x10, x12]
	str	xzr, [x11, x12]
	add	x9, x9, #1
	ldr	x12, [x8]
	cmp	x9, x12
	b.lo	LBB0_2
LBB0_3:
	bl	_has_usb
Lloh17:
	adrp	x8, _is_master@GOTPAGE
Lloh18:
	ldr	x8, [x8, _is_master@GOTPAGEOFF]
Lloh19:
	str	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_matrix_init_quantum
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_enable,4,2               ; @debug_enable
	.comm	_debug_matrix,4,2               ; @debug_matrix
	.comm	_debug_mouse,4,2                ; @debug_mouse
	.comm	_TX_RX_LED_INIT,4,2             ; @TX_RX_LED_INIT
	.comm	_MATRIX_ROWS,8,3                ; @MATRIX_ROWS
	.comm	_matrix,8,3                     ; @matrix
	.comm	_matrix_debouncing,8,3          ; @matrix_debouncing
	.comm	_is_master,4,2                  ; @is_master
.subsections_via_symbols
