	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_debounce_mask                  ## -- Begin function debounce_mask
	.p2align	4, 0x90
_debounce_mask:                         ## @debounce_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_raw_matrix@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %r10d
	xorl	%edi, %r10d
	movl	%edi, (%rax,%rsi,4)
	movq	_MATRIX_COLS@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.3:
	movq	_debounce_matrix@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	xorl	%ecx, %ecx
	movq	_DEBOUNCE@GOTPCREL(%rip), %r9
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	movq	(%r8), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_2
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	imulq	%rsi, %rdx
	addq	%rcx, %rdx
	movq	(%r11,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decq	%rdi
	movq	%rdi, (%r11,%rdx,8)
	movl	$1, %edx
	shll	%cl, %edx
	testl	%r10d, %edx
	jne	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%ecx, %eax
	testl	%r10d, %edx
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r9), %rdx
	movq	(%r8), %rdi
	imulq	%rsi, %rdi
	addq	%rcx, %rdi
	movq	%rdx, (%r11,%rdi,8)
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_raw_matrix,8,3                 ## @raw_matrix
	.comm	_MATRIX_COLS,8,3                ## @MATRIX_COLS
	.comm	_debounce_matrix,8,3            ## @debounce_matrix
	.comm	_DEBOUNCE,8,3                   ## @DEBOUNCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_debounce_mask                  ; -- Begin function debounce_mask
	.p2align	2
_debounce_mask:                         ; @debounce_mask
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _raw_matrix@GOTPAGE
Lloh1:
	ldr	x9, [x9, _raw_matrix@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsl	x10, x1, #2
	ldr	w11, [x9, x10]
	str	w0, [x9, x10]
Lloh3:
	adrp	x9, _MATRIX_COLS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MATRIX_COLS@GOTPAGEOFF]
	ldr	x14, [x9]
	cbz	x14, LBB0_7
; %bb.1:
	mov	x8, x0
	mov	x10, #0
	mov	w0, #0
	eor	w8, w11, w8
Lloh5:
	adrp	x11, _debounce_matrix@GOTPAGE
Lloh6:
	ldr	x11, [x11, _debounce_matrix@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	mov	w12, #1
Lloh8:
	adrp	x13, _DEBOUNCE@GOTPAGE
Lloh9:
	ldr	x13, [x13, _DEBOUNCE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	ldr	x14, [x9]
	cmp	x10, x14
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	madd	x14, x14, x1, x10
	ldr	x15, [x11, x14, lsl #3]
	cbz	x15, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x15, x15, #1
	str	x15, [x11, x14, lsl #3]
	lsl	w14, w12, w10
	tst	w14, w8
	b.ne	LBB0_6
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	w14, w12, w10
	orr	w0, w14, w0
	tst	w14, w8
	b.eq	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x13]
	ldr	x15, [x9]
	madd	x15, x15, x1, x10
	str	x14, [x11, x15, lsl #3]
	b	LBB0_2
LBB0_7:
	mov	w0, #0
LBB0_8:
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_raw_matrix,8,3                 ; @raw_matrix
	.comm	_MATRIX_COLS,8,3                ; @MATRIX_COLS
	.comm	_debounce_matrix,8,3            ; @debounce_matrix
	.comm	_DEBOUNCE,8,3                   ; @DEBOUNCE
.subsections_via_symbols
