	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	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)
	movq	_isLeftHand@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_ROWS_PER_HAND@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	$0, %ecx
	cmoveq	%rax, %rcx
	movq	_thisHand@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	subq	%rcx, %rax
	movq	_thatHand@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_init_pins
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	movq	_matrix@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_2:
	movq	(%rbx), %rdi
	callq	_debounce_init
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	_isLeftHand,8,3                 ## @isLeftHand
	.comm	_ROWS_PER_HAND,8,3              ## @ROWS_PER_HAND
	.comm	_thisHand,8,3                   ## @thisHand
	.comm	_thatHand,8,3                   ## @thatHand
	.comm	_MATRIX_ROWS,4,2                ## @MATRIX_ROWS
	.comm	_matrix,8,3                     ## @matrix
	.comm	_MATRIX_COLS,4,2                ## @MATRIX_COLS
	.comm	_MATRIX_COL_PINS_RIGHT,8,3      ## @MATRIX_COL_PINS_RIGHT
	.comm	_MATRIX_ROW_PINS_RIGHT,8,3      ## @MATRIX_ROW_PINS_RIGHT
	.comm	_col_pins,8,3                   ## @col_pins
	.comm	_row_pins,8,3                   ## @row_pins
.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
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]
Lloh9:
	adrp	x8, _isLeftHand@GOTPAGE
Lloh10:
	ldr	x8, [x8, _isLeftHand@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x19, _ROWS_PER_HAND@GOTPAGE
Lloh13:
	ldr	x19, [x19, _ROWS_PER_HAND@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh14:
	adrp	x10, _thisHand@GOTPAGE
Lloh15:
	ldr	x10, [x10, _thisHand@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, xzr, eq
Lloh16:
	str	x8, [x10]
	sub	x8, x9, x8
Lloh17:
	adrp	x9, _thatHand@GOTPAGE
Lloh18:
	ldr	x9, [x9, _thatHand@GOTPAGEOFF]
Lloh19:
	str	x8, [x9]
	bl	_init_pins
Lloh20:
	adrp	x8, _MATRIX_ROWS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MATRIX_ROWS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh23:
	adrp	x9, _matrix@GOTPAGE
Lloh24:
	ldr	x9, [x9, _matrix@GOTPAGEOFF]
Lloh25:
	ldr	x0, [x9]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_2:
	ldr	x0, [x19]
	bl	_debounce_init
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_matrix_init_quantum
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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	_isLeftHand,8,3                 ; @isLeftHand
	.comm	_ROWS_PER_HAND,8,3              ; @ROWS_PER_HAND
	.comm	_thisHand,8,3                   ; @thisHand
	.comm	_thatHand,8,3                   ; @thatHand
	.comm	_MATRIX_ROWS,4,2                ; @MATRIX_ROWS
	.comm	_matrix,8,3                     ; @matrix
	.comm	_MATRIX_COLS,4,2                ; @MATRIX_COLS
	.comm	_MATRIX_COL_PINS_RIGHT,8,3      ; @MATRIX_COL_PINS_RIGHT
	.comm	_MATRIX_ROW_PINS_RIGHT,8,3      ; @MATRIX_ROW_PINS_RIGHT
	.comm	_col_pins,8,3                   ; @col_pins
	.comm	_row_pins,8,3                   ; @row_pins
.subsections_via_symbols
