	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_mt
_handle_mt:                             ## @handle_mt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tap_start_infos@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%ecx, %rbx
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r12
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movl	%edx, %edi
	callq	_register_mods
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, 8(%r15,%rbx)
	movq	_press_counter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_5
LBB0_2:
	movl	%edi, %r14d
	movl	%edx, %edi
	callq	_unregister_mods
	movq	_press_counter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.3:
	movl	8(%r15,%rbx), %edi
	callq	_timer_elapsed
	movq	_ONESHOT_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_register_code16
	movl	%r14d, %edi
	callq	_unregister_code16
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tap_start_infos,8,3            ## @tap_start_infos
	.comm	_press_counter,8,3              ## @press_counter
	.comm	_ONESHOT_TIMEOUT,8,3            ## @ONESHOT_TIMEOUT
	.no_dead_strip	_handle_mt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_mt
_handle_mt:                             ; @handle_mt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
                                        ; kill: def $w3 killed $w3 def $x3
Lloh0:
	adrp	x8, _tap_start_infos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tap_start_infos@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	sxtw	x21, w3
	add	x22, x20, w3, sxtw #4
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x2
	bl	_register_mods
	bl	_timer_read
	add	x8, x20, x21, lsl #4
	str	w0, [x8, #8]
Lloh3:
	adrp	x8, _press_counter@GOTPAGE
Lloh4:
	ldr	x8, [x8, _press_counter@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x22]
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	mov	x0, x2
	bl	_unregister_mods
Lloh6:
	adrp	x8, _press_counter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _press_counter@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	add	x8, x20, x21, lsl #4
	ldr	w0, [x8, #8]
	bl	_timer_elapsed
Lloh9:
	adrp	x8, _ONESHOT_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ONESHOT_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_register_code16
	mov	x0, x19
	bl	_unregister_code16
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_tap_start_infos,8,3            ; @tap_start_infos
	.comm	_press_counter,8,3              ; @press_counter
	.comm	_ONESHOT_TIMEOUT,8,3            ; @ONESHOT_TIMEOUT
	.no_dead_strip	_handle_mt
.subsections_via_symbols
