	.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	_DDRD@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	movq	_PORTD@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	movq	_DDRF@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	movq	_PORTF@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_DDRB@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_PORTB@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	movq	_DDRC@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_PORTC@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	xorl	%eax, %eax
	callq	_unselect_rows
	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:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDRD,4,2                       ## @DDRD
	.comm	_PORTD,4,2                      ## @PORTD
	.comm	_DDRF,4,2                       ## @DDRF
	.comm	_PORTF,4,2                      ## @PORTF
	.comm	_DDRB,4,2                       ## @DDRB
	.comm	_PORTB,4,2                      ## @PORTB
	.comm	_DDRC,4,2                       ## @DDRC
	.comm	_PORTC,4,2                      ## @PORTC
	.comm	_MATRIX_ROWS,8,3                ## @MATRIX_ROWS
	.comm	_matrix,8,3                     ## @matrix
	.comm	_matrix_debouncing,8,3          ## @matrix_debouncing
.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, _DDRD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DDRD@GOTPAGEOFF]
	mov	w9, #255
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x8, _PORTD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORTD@GOTPAGEOFF]
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _DDRF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DDRF@GOTPAGEOFF]
Lloh8:
	str	w9, [x8]
Lloh9:
	adrp	x8, _PORTF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORTF@GOTPAGEOFF]
Lloh11:
	str	wzr, [x8]
Lloh12:
	adrp	x8, _DDRB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DDRB@GOTPAGEOFF]
Lloh14:
	str	wzr, [x8]
Lloh15:
	adrp	x8, _PORTB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
Lloh17:
	str	w9, [x8]
Lloh18:
	adrp	x8, _DDRC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DDRC@GOTPAGEOFF]
Lloh20:
	str	wzr, [x8]
Lloh21:
	adrp	x8, _PORTC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PORTC@GOTPAGEOFF]
Lloh23:
	str	w9, [x8]
	bl	_unselect_rows
Lloh24:
	adrp	x8, _MATRIX_ROWS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MATRIX_ROWS@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x9, #0
Lloh26:
	adrp	x10, _matrix@GOTPAGE
Lloh27:
	ldr	x10, [x10, _matrix@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
Lloh29:
	adrp	x11, _matrix_debouncing@GOTPAGE
Lloh30:
	ldr	x11, [x11, _matrix_debouncing@GOTPAGEOFF]
Lloh31:
	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:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DDRD,4,2                       ; @DDRD
	.comm	_PORTD,4,2                      ; @PORTD
	.comm	_DDRF,4,2                       ; @DDRF
	.comm	_PORTF,4,2                      ; @PORTF
	.comm	_DDRB,4,2                       ; @DDRB
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_DDRC,4,2                       ; @DDRC
	.comm	_PORTC,4,2                      ; @PORTC
	.comm	_MATRIX_ROWS,8,3                ; @MATRIX_ROWS
	.comm	_matrix,8,3                     ; @matrix
	.comm	_matrix_debouncing,8,3          ; @matrix_debouncing
.subsections_via_symbols
