	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_transfer_matrix_values         ## -- Begin function transfer_matrix_values
	.p2align	4, 0x90
_transfer_matrix_values:                ## @transfer_matrix_values
	.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	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_matrix_need_update@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rcx, %r9
	movq	_debounce_counters@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MATRIX_COLS@GOTPCREL(%rip), %r10
	movq	(%r10), %rdi
	xorl	%r11d, %r11d
	movq	_ROW_SHIFTER@GOTPCREL(%rip), %r12
	movq	_DEBOUNCE_ELAPSED@GOTPCREL(%rip), %r14
	movq	_counters_need_update@GOTPCREL(%rip), %r15
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, (%rsi,%r11,4)
	incq	%r11
	cmpq	-64(%rbp), %r11                 ## 8-byte Folded Reload
	je	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%rsi,%r11,4), %r13d
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r11,4), %r8d
	xorl	%r13d, %r8d
	xorl	%ecx, %ecx
	movq	_matrix_need_update@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	$1, (%rsi)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	$8, %rax
	incq	%rcx
	movq	%rdi, %rbx
	cmpq	%rdi, %rcx
	jae	LBB0_4
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rbx
	shlq	%cl, %rbx
	testl	%ebx, %r8d
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%rax), %rdx
	cmpq	(%r14), %rdx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r9, (%rax)
	movl	$1, (%r15)
	xorl	%ebx, %r13d
	movq	(%r10), %rdi
	jmp	LBB0_11
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_matrix_need_update,4,2         ## @matrix_need_update
	.comm	_debounce_counters,8,3          ## @debounce_counters
	.comm	_MATRIX_COLS,8,3                ## @MATRIX_COLS
	.comm	_ROW_SHIFTER,8,3                ## @ROW_SHIFTER
	.comm	_DEBOUNCE_ELAPSED,8,3           ## @DEBOUNCE_ELAPSED
	.comm	_counters_need_update,4,2       ## @counters_need_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_transfer_matrix_values         ; -- Begin function transfer_matrix_values
	.p2align	2
_transfer_matrix_values:                ; @transfer_matrix_values
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
Lloh0:
	adrp	x8, _matrix_need_update@GOTPAGE
Lloh1:
	ldr	x8, [x8, _matrix_need_update@GOTPAGEOFF]
	str	wzr, [x8]
	cbz	x2, LBB0_10
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _debounce_counters@GOTPAGE
Lloh3:
	ldr	x10, [x10, _debounce_counters@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _MATRIX_COLS@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MATRIX_COLS@GOTPAGEOFF]
	ldr	x14, [x11]
Lloh7:
	adrp	x12, _ROW_SHIFTER@GOTPAGE
Lloh8:
	ldr	x12, [x12, _ROW_SHIFTER@GOTPAGEOFF]
Lloh9:
	adrp	x13, _DEBOUNCE_ELAPSED@GOTPAGE
Lloh10:
	ldr	x13, [x13, _DEBOUNCE_ELAPSED@GOTPAGEOFF]
Lloh11:
	adrp	x15, _counters_need_update@GOTPAGE
Lloh12:
	ldr	x15, [x15, _counters_need_update@GOTPAGEOFF]
	mov	w16, #1
	mov	x6, x14
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w17, [x1, x9, lsl #2]
	add	x9, x9, #1
	cmp	x9, x2
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	lsl	x5, x9, #2
	ldr	w17, [x1, x5]
	cbz	x6, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, #0
	ldr	w5, [x0, x5]
	eor	w5, w17, w5
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	w16, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x10, x10, #8
	add	x4, x4, #1
	mov	x6, x14
	cmp	x4, x14
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x6, [x12]
	lsl	x6, x6, x4
	tst	w5, w6
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x7, [x10]
	ldr	x19, [x13]
	cmp	x7, x19
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	str	x3, [x10]
	str	w16, [x15]
	eor	w17, w17, w6
	ldr	x14, [x11]
	b	LBB0_6
LBB0_10:
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_matrix_need_update,4,2         ; @matrix_need_update
	.comm	_debounce_counters,8,3          ; @debounce_counters
	.comm	_MATRIX_COLS,8,3                ; @MATRIX_COLS
	.comm	_ROW_SHIFTER,8,3                ; @ROW_SHIFTER
	.comm	_DEBOUNCE_ELAPSED,8,3           ; @DEBOUNCE_ELAPSED
	.comm	_counters_need_update,4,2       ; @counters_need_update
.subsections_via_symbols
