	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leal	(,%rbx,4), %edi
	callq	_malloc
	movq	_debounce_counters@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.1:
	movl	%ebx, %ecx
	cmpl	$8, %ebx
	jb	LBB0_2
## %bb.3:
	movq	_DEBOUNCE_ELAPSED@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_6
## %bb.4:
	leaq	(%rax,%rcx,4), %rdx
	cmpq	_DEBOUNCE_ELAPSED@GOTPCREL(%rip), %rdx
	jbe	LBB0_6
LBB0_2:
	xorl	%edx, %edx
LBB0_12:
	movq	%rdx, %r8
	notq	%r8
	addq	%rcx, %r8
	movq	%rcx, %rdi
	andq	$3, %rdi
	je	LBB0_15
## %bb.13:
	movq	_DEBOUNCE_ELAPSED@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	%esi, (%rax,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_14
LBB0_15:
	cmpq	$3, %r8
	jb	LBB0_18
## %bb.16:
	movq	_DEBOUNCE_ELAPSED@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rax,%rdx,4)
	movl	(%rsi), %edi
	movl	%edi, 4(%rax,%rdx,4)
	movl	(%rsi), %edi
	movl	%edi, 8(%rax,%rdx,4)
	movl	(%rsi), %edi
	movl	%edi, 12(%rax,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_17
	jmp	LBB0_18
LBB0_6:
	movl	%ecx, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.7:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rax,%rbx,4)
	movdqu	%xmm0, 16(%rax,%rbx,4)
	movdqu	%xmm0, 32(%rax,%rbx,4)
	movdqu	%xmm0, 48(%rax,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %sil
	je	LBB0_11
LBB0_10:
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rax,%rbx,4)
	movdqu	%xmm0, 16(%rax,%rbx,4)
LBB0_11:
	cmpq	%rcx, %rdx
	jne	LBB0_12
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_19:
	xorl	%ebx, %ebx
	testb	$1, %sil
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.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
	lsl	w0, w0, #2
	bl	_malloc
Lloh0:
	adrp	x8, _debounce_counters@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debounce_counters@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w9, w19
Lloh3:
	adrp	x8, _DEBOUNCE_ELAPSED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBOUNCE_ELAPSED@GOTPAGEOFF]
	cmp	w19, #16
	b.lo	LBB0_6
; %bb.2:
	add	x10, x0, x9, lsl #2
	add	x11, x8, #4
	cmp	x0, x11
	ccmp	x10, x8, #0, lo
	b.hi	LBB0_6
; %bb.3:
	and	x10, x9, #0xfffffff0
	ld1r.4s	{ v0 }, [x8]
	add	x11, x0, #32
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x10, #0
LBB0_7:
	add	x11, x0, x10, lsl #2
	sub	x9, x9, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8]
	str	w10, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_debounce_counters,8,3          ; @debounce_counters
	.comm	_DEBOUNCE_ELAPSED,4,2           ; @DEBOUNCE_ELAPSED
.subsections_via_symbols
