	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DDRD@GOTPCREL(%rip), %rax
	orb	$123, (%rax)
	movq	_DDRC@GOTPCREL(%rip), %rax
	andb	$127, (%rax)
	movq	_DDRB@GOTPCREL(%rip), %rax
	andb	$-128, (%rax)
	movq	_PORTC@GOTPCREL(%rip), %rax
	orb	$-128, (%rax)
	movq	_PORTB@GOTPCREL(%rip), %rax
	orb	$127, (%rax)
	xorl	%eax, %eax
	callq	_matrix_rows
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_matrix@GOTPCREL(%rip), %r14
	movq	_matrix_debouncing@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	xorl	%eax, %eax
	callq	_matrix_rows
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_matrix_init_quantum            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DDRD,4,2                       ## @DDRD
	.comm	_DDRC,4,2                       ## @DDRC
	.comm	_DDRB,4,2                       ## @DDRB
	.comm	_PORTC,4,2                      ## @PORTC
	.comm	_PORTB,4,2                      ## @PORTB
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _DDRD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DDRD@GOTPAGEOFF]
	ldr	w9, [x8]
	mov	w10, #123
	orr	w9, w9, w10
	str	w9, [x8]
Lloh2:
	adrp	x8, _DDRC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DDRC@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xffffff7f
	str	w9, [x8]
Lloh4:
	adrp	x8, _DDRB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DDRB@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xffffff80
	str	w9, [x8]
Lloh6:
	adrp	x8, _PORTC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORTC@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x80
	str	w9, [x8]
Lloh8:
	adrp	x8, _PORTB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x7f
	str	w9, [x8]
	bl	_matrix_rows
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, #0
Lloh10:
	adrp	x20, _matrix@GOTPAGE
Lloh11:
	ldr	x20, [x20, _matrix@GOTPAGEOFF]
Lloh12:
	adrp	x21, _matrix_debouncing@GOTPAGE
Lloh13:
	ldr	x21, [x21, _matrix_debouncing@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	x9, x19, #3
	str	xzr, [x8, x9]
	ldr	x8, [x21]
	str	xzr, [x8, x9]
	add	x19, x19, #1
	bl	_matrix_rows
	cmp	x19, x0
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_matrix_init_quantum
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DDRD,4,2                       ; @DDRD
	.comm	_DDRC,4,2                       ; @DDRC
	.comm	_DDRB,4,2                       ; @DDRB
	.comm	_PORTC,4,2                      ; @PORTC
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_matrix,8,3                     ; @matrix
	.comm	_matrix_debouncing,8,3          ; @matrix_debouncing
.subsections_via_symbols
