	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_taphold_tapped                 ## -- Begin function taphold_tapped
	.p2align	4, 0x90
_taphold_tapped:                        ## @taphold_tapped
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TH_EVENTS_COUNT@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_5
## %bb.1:
	movq	_th_events@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	(%rdi,%rdi,2), %rbx
	leaq	(%r15,%rbx,4), %r14
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_timer_read
	movl	%eax, 8(%r15,%rbx,4)
	movl	$1, (%r14)
	jmp	LBB0_5
LBB0_3:
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.4:
	movl	4(%r15,%rbx,4), %edi
	callq	_register_code
	movl	4(%r15,%rbx,4), %edi
	callq	_unregister_code
	movl	$0, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TH_EVENTS_COUNT,8,3            ## @TH_EVENTS_COUNT
	.comm	_th_events,8,3                  ## @th_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_taphold_tapped                 ; -- Begin function taphold_tapped
	.p2align	2
_taphold_tapped:                        ; @taphold_tapped
	.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
Lloh0:
	adrp	x8, _TH_EVENTS_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TH_EVENTS_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ls	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _th_events@GOTPAGE
Lloh4:
	ldr	x8, [x8, _th_events@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	mov	w8, #12
	madd	x20, x0, x8, x21
	cbz	w1, LBB0_3
; %bb.2:
	bl	_timer_read
	mov	w8, #12
	madd	x8, x19, x8, x21
	str	w0, [x8, #8]
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_5
LBB0_3:
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.4:
	mov	w8, #12
	madd	x19, x19, x8, x21
	ldr	w0, [x19, #4]
	bl	_register_code
	ldr	w0, [x19, #4]
	bl	_unregister_code
	str	wzr, [x20]
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_TH_EVENTS_COUNT,8,3            ; @TH_EVENTS_COUNT
	.comm	_th_events,8,3                  ; @th_events
.subsections_via_symbols
