	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_debounce_counters       ## -- Begin function update_debounce_counters
	.p2align	4, 0x90
_update_debounce_counters:              ## @update_debounce_counters
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_counters_need_update@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	jle	LBB0_9
## %bb.1:
	movq	_debounce_counters@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_MATRIX_COLS@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	xorl	%ecx, %ecx
	movq	_DEBOUNCE_ELAPSED@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r14, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testq	%rax, %rax
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_counters_need_update@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r12
	movq	(%r13), %rax
	addq	$8, %r14
	cmpq	%rax, %r12
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r12,8), %rsi
	cmpq	(%r15), %rsi
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_MAX_DEBOUNCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_TIMER_DIFF
	movq	_DEBOUNCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r15), %rax
	movq	%rax, (%rbx,%r12,8)
	jmp	LBB0_11
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_counters_need_update,4,2       ## @counters_need_update
	.comm	_debounce_counters,8,3          ## @debounce_counters
	.comm	_MATRIX_COLS,8,3                ## @MATRIX_COLS
	.comm	_DEBOUNCE_ELAPSED,8,3           ## @DEBOUNCE_ELAPSED
	.comm	_MAX_DEBOUNCE,4,2               ## @MAX_DEBOUNCE
	.comm	_DEBOUNCE,8,3                   ## @DEBOUNCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_debounce_counters       ; -- Begin function update_debounce_counters
	.p2align	2
_update_debounce_counters:              ; @update_debounce_counters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _counters_need_update@GOTPAGE
Lloh1:
	ldr	x8, [x8, _counters_need_update@GOTPAGEOFF]
Lloh2:
	str	wzr, [x8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x22, #0
Lloh3:
	adrp	x8, _debounce_counters@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debounce_counters@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
Lloh6:
	adrp	x24, _MATRIX_COLS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MATRIX_COLS@GOTPAGEOFF]
Lloh8:
	adrp	x25, _DEBOUNCE_ELAPSED@GOTPAGE
Lloh9:
	ldr	x25, [x25, _DEBOUNCE_ELAPSED@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh10:
	adrp	x26, _MAX_DEBOUNCE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _MAX_DEBOUNCE@GOTPAGEOFF]
Lloh12:
	adrp	x27, _DEBOUNCE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _DEBOUNCE@GOTPAGEOFF]
	mov	w28, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, x20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x22, x9
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	mov	x21, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
Lloh14:
	adrp	x8, _counters_need_update@GOTPAGE
Lloh15:
	ldr	x8, [x8, _counters_need_update@GOTPAGEOFF]
Lloh16:
	str	w28, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x21, x21, #1
	ldr	x8, [x24]
	add	x20, x20, #8
	cmp	x21, x8
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x23, x21, lsl #3]
	ldr	x8, [x25]
	cmp	x1, x8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w2, [x26]
	mov	x0, x19
	bl	_TIMER_DIFF
	ldr	x8, [x27]
	cmp	x0, x8
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x25]
	str	x8, [x23, x21, lsl #3]
	b	LBB0_7
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_counters_need_update,4,2       ; @counters_need_update
	.comm	_debounce_counters,8,3          ; @debounce_counters
	.comm	_MATRIX_COLS,8,3                ; @MATRIX_COLS
	.comm	_DEBOUNCE_ELAPSED,8,3           ; @DEBOUNCE_ELAPSED
	.comm	_MAX_DEBOUNCE,4,2               ; @MAX_DEBOUNCE
	.comm	_DEBOUNCE,8,3                   ; @DEBOUNCE
.subsections_via_symbols
