	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_debug_enable@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_debug_matrix@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_KEY_INIT
	movq	_DDRB@GOTPCREL(%rip), %rax
	orb	$112, (%rax)
	movq	_PORTB@GOTPCREL(%rip), %rax
	orb	$112, (%rax)
	movq	_MATRIX_ROWS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	__matrix0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rbx
	movq	%rbx, %rsi
	callq	___bzero
	movq	__matrix1@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___bzero
	jmp	LBB0_3
LBB0_1:
	movq	__matrix1@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_3:
	movq	__matrix0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_matrix@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_matrix_prev@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	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	_DDRB,4,2                       ## @DDRB
	.comm	_PORTB,4,2                      ## @PORTB
	.comm	_MATRIX_ROWS,8,3                ## @MATRIX_ROWS
	.comm	__matrix0,8,3                   ## @_matrix0
	.comm	__matrix1,8,3                   ## @_matrix1
	.comm	_matrix,8,3                     ## @matrix
	.comm	_matrix_prev,8,3                ## @matrix_prev
.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, _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]
	bl	_KEY_INIT
Lloh6:
	adrp	x8, _DDRB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DDRB@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x70
	str	w9, [x8]
Lloh8:
	adrp	x8, _PORTB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PORTB@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, #0x70
	str	w9, [x8]
Lloh10:
	adrp	x8, _MATRIX_ROWS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MATRIX_ROWS@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x21, __matrix0@GOTPAGE
Lloh14:
	ldr	x21, [x21, __matrix0@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x21]
	lsl	x20, x8, #2
	mov	x1, x20
	bl	_bzero
Lloh15:
	adrp	x8, __matrix1@GOTPAGE
Lloh16:
	ldr	x8, [x8, __matrix1@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bzero
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, __matrix1@GOTPAGE
Lloh19:
	ldr	x8, [x8, __matrix1@GOTPAGEOFF]
Lloh20:
	ldr	x19, [x8]
LBB0_3:
	ldr	x8, [x21]
Lloh21:
	adrp	x9, _matrix@GOTPAGE
Lloh22:
	ldr	x9, [x9, _matrix@GOTPAGEOFF]
Lloh23:
	str	x8, [x9]
Lloh24:
	adrp	x8, _matrix_prev@GOTPAGE
Lloh25:
	ldr	x8, [x8, _matrix_prev@GOTPAGEOFF]
Lloh26:
	str	x19, [x8]
	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	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_enable,4,2               ; @debug_enable
	.comm	_debug_matrix,4,2               ; @debug_matrix
	.comm	_DDRB,4,2                       ; @DDRB
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_MATRIX_ROWS,8,3                ; @MATRIX_ROWS
	.comm	__matrix0,8,3                   ; @_matrix0
	.comm	__matrix1,8,3                   ; @_matrix1
	.comm	_matrix,8,3                     ; @matrix
	.comm	_matrix_prev,8,3                ; @matrix_prev
.subsections_via_symbols
