	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_init_pins
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_raw_matrix@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_matrix@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
	movq	(%rax), %rbx
	cmpq	%rbx, %rsi
	jb	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_debounce_init
	xorl	%eax, %eax
	callq	_matrix_init_quantum
	movq	_D5@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_setPinInput
	movl	(%rbx), %edi
	callq	_writePinLow
	movq	_B0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_setPinInput
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writePinLow                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MATRIX_ROWS,8,3                ## @MATRIX_ROWS
	.comm	_raw_matrix,8,3                 ## @raw_matrix
	.comm	_matrix,8,3                     ## @matrix
	.comm	_D5,4,2                         ## @D5
	.comm	_B0,4,2                         ## @B0
.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
	bl	_init_pins
Lloh0:
	adrp	x8, _MATRIX_ROWS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MATRIX_ROWS@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _raw_matrix@GOTPAGE
Lloh3:
	ldr	x10, [x10, _raw_matrix@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _matrix@GOTPAGE
Lloh6:
	ldr	x11, [x11, _matrix@GOTPAGEOFF]
Lloh7:
	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	x0, [x8]
	cmp	x9, x0
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	bl	_debounce_init
	bl	_matrix_init_quantum
Lloh8:
	adrp	x19, _D5@GOTPAGE
Lloh9:
	ldr	x19, [x19, _D5@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_setPinInput
	ldr	w0, [x19]
	bl	_writePinLow
Lloh10:
	adrp	x19, _B0@GOTPAGE
Lloh11:
	ldr	x19, [x19, _B0@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_setPinInput
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writePinLow
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MATRIX_ROWS,8,3                ; @MATRIX_ROWS
	.comm	_raw_matrix,8,3                 ; @raw_matrix
	.comm	_matrix,8,3                     ; @matrix
	.comm	_D5,4,2                         ; @D5
	.comm	_B0,4,2                         ; @B0
.subsections_via_symbols
