	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_user               ## -- Begin function matrix_scan_user
	.p2align	4, 0x90
_matrix_scan_user:                      ## @matrix_scan_user
	.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
	movq	_cMode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_QWERTY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	_inChord@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.2:
	movq	_repEngaged@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.3:
	movq	_repTimer@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_timer_elapsed
	movq	_REP_DELAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_processChord
	xorl	%eax, %eax
	callq	_send_keyboard_report
	xorl	%eax, %eax
	callq	_clear_keyboard
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, (%r14)
LBB0_5:
	cmpl	$0, (%rbx)
	jne	LBB0_8
LBB0_6:
	movq	_repTimer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_timer_elapsed
	movq	_REP_INIT_DELAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_8
## %bb.7:
	movl	$1, (%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cMode,8,3                      ## @cMode
	.comm	_QWERTY,8,3                     ## @QWERTY
	.comm	_inChord,4,2                    ## @inChord
	.comm	_repEngaged,4,2                 ## @repEngaged
	.comm	_repTimer,4,2                   ## @repTimer
	.comm	_REP_DELAY,8,3                  ## @REP_DELAY
	.comm	_REP_INIT_DELAY,8,3             ## @REP_INIT_DELAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_user               ; -- Begin function matrix_scan_user
	.p2align	2
_matrix_scan_user:                      ; @matrix_scan_user
	.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
Lloh0:
	adrp	x8, _cMode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cMode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _QWERTY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QWERTY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _inChord@GOTPAGE
Lloh7:
	ldr	x10, [x10, _inChord@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, #0, #4, eq
	b.eq	LBB0_7
; %bb.1:
Lloh9:
	adrp	x19, _repEngaged@GOTPAGE
Lloh10:
	ldr	x19, [x19, _repEngaged@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh11:
	adrp	x20, _repTimer@GOTPAGE
Lloh12:
	ldr	x20, [x20, _repTimer@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w0, [x20]
	bl	_timer_elapsed
Lloh13:
	adrp	x8, _REP_DELAY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REP_DELAY@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_processChord
	bl	_send_keyboard_report
	bl	_clear_keyboard
	bl	_timer_read
	str	w0, [x20]
LBB0_4:
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
LBB0_5:
	ldr	w0, [x20]
	bl	_timer_elapsed
Lloh16:
	adrp	x8, _REP_INIT_DELAY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REP_INIT_DELAY@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_cMode,8,3                      ; @cMode
	.comm	_QWERTY,8,3                     ; @QWERTY
	.comm	_inChord,4,2                    ; @inChord
	.comm	_repEngaged,4,2                 ; @repEngaged
	.comm	_repTimer,4,2                   ; @repTimer
	.comm	_REP_DELAY,8,3                  ; @REP_DELAY
	.comm	_REP_INIT_DELAY,8,3             ; @REP_INIT_DELAY
.subsections_via_symbols
