	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_debounce_init                  ## -- Begin function debounce_init
	.p2align	4, 0x90
_debounce_init:                         ## @debounce_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
	movl	%edi, %r14d
	movq	_MATRIX_COLS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	imull	%r14d, %edi
	shll	$2, %edi
	callq	_malloc
	movq	_debounce_counters@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	xorl	%r9d, %r9d
	movq	_DEBOUNCE_ELAPSED@GOTPCREL(%rip), %rdx
	xorl	%r8d, %r8d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r9d
	cmpl	%r14d, %r9d
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%edi, %edi
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r8d, %rcx
	leaq	(%rax,%rcx,4), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx), %edi
	movl	%edi, (%rcx,%rsi,4)
	movl	(%rbx), %edi
	incq	%rsi
	cmpl	%edi, %esi
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%esi, %r8d
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATRIX_COLS,4,2                ## @MATRIX_COLS
	.comm	_debounce_counters,8,3          ## @debounce_counters
	.comm	_DEBOUNCE_ELAPSED,4,2           ## @DEBOUNCE_ELAPSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_debounce_init                  ; -- Begin function debounce_init
	.p2align	2
_debounce_init:                         ; @debounce_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _MATRIX_COLS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MATRIX_COLS@GOTPAGEOFF]
	ldr	w8, [x20]
	mul	w8, w0, w8
	lsl	w0, w8, #2
	bl	_malloc
Lloh2:
	adrp	x8, _debounce_counters@GOTPAGE
Lloh3:
	ldr	x8, [x8, _debounce_counters@GOTPAGEOFF]
Lloh4:
	str	x0, [x8]
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w8, #0
	mov	w9, #0
	ldr	w11, [x20]
Lloh5:
	adrp	x10, _DEBOUNCE_ELAPSED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DEBOUNCE_ELAPSED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	cmp	w8, w19
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
	add	x13, x0, w9, sxtw #2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10]
	str	w11, [x13, x12, lsl #2]
	ldr	w11, [x20]
	add	x12, x12, #1
	cmp	w12, w11
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, w12
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MATRIX_COLS,4,2                ; @MATRIX_COLS
	.comm	_debounce_counters,8,3          ; @debounce_counters
	.comm	_DEBOUNCE_ELAPSED,4,2           ; @DEBOUNCE_ELAPSED
.subsections_via_symbols
