	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qnx_process_touch_event
_qnx_process_touch_event:               ## @qnx_process_touch_event
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_SCREEN_PROPERTY_TOUCH_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	callq	_screen_get_event_property_iv
	movq	_SCREEN_PROPERTY_SOURCE_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	%ebx, %edi
	callq	_screen_get_event_property_iv
	cmpl	$128, %r15d
	je	LBB0_13
## %bb.1:
	cmpl	$129, %r15d
	je	LBB0_7
## %bb.2:
	cmpl	$130, %r15d
	jne	LBB0_20
## %bb.3:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.4:
	movq	16(%r14), %rax
	movl	-44(%rbp), %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rdi
	shlq	$5, %rdi
	cmpl	%edx, (%rax,%rdi)
	je	LBB0_6
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%esi
	cmpq	%rsi, %rcx
	ja	LBB0_5
	jmp	LBB0_20
LBB0_13:
	movq	_MAX_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.14:
	movq	16(%r14), %rax
	shlq	$5, %rcx
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, (%rax,%rbx)
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	$32, %rbx
	incl	%r15d
	cmpq	%rbx, %rcx
	jne	LBB0_15
	jmp	LBB0_20
LBB0_7:
	movq	_MAX_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.8:
	movq	16(%r14), %rax
	movl	-44(%rbp), %edx
	shlq	$5, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rax,%rsi)
	je	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_9
	jmp	LBB0_20
LBB0_6:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	28(%rax,%rdi), %rcx
	leaq	24(%rax,%rdi), %r8
	leaq	20(%rax,%rdi), %r9
	addq	%rdi, %rax
	addq	$16, %rax
	movq	%rax, (%rsp)
	leaq	-80(%rbp), %rdi
	callq	_video_driver_translate_coord_viewport_wrap
	jmp	LBB0_20
LBB0_16:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	-44(%rbp), %ecx
	movl	%ecx, (%rax,%rbx)
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	28(%rax,%rbx), %rcx
	leaq	24(%rax,%rbx), %r8
	leaq	20(%rax,%rbx), %r9
	addq	%rbx, %rax
	addq	$16, %rax
	movq	%rax, (%rsp)
	leaq	-80(%rbp), %rdi
	callq	_video_driver_translate_coord_viewport_wrap
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	8(%r14), %rcx
	movl	%r15d, (%rcx,%rax,4)
	incq	%rax
	movq	%rax, (%r14)
	jmp	LBB0_20
LBB0_10:
	movl	$-1, (%rax,%rsi)
	movq	8(%r14), %rdx
	movq	8(%rax,%rsi), %rsi
	movl	$-1, (%rdx,%rsi,4)
	movq	(%r14), %rcx
	movl	%esi, %esi
	cmpq	%rsi, %rcx
	jbe	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	1(%rsi), %edi
	movl	(%rdx,%rdi,4), %ebx
	movl	%ebx, (%rdx,%rsi,4)
	shlq	$5, %rbx
	movq	%rsi, 8(%rax,%rbx)
	movl	$-1, (%rdx,%rdi,4)
	movq	%rdi, %rsi
	cmpq	%rdi, %rcx
	ja	LBB0_11
LBB0_12:
	decq	%rcx
	movq	%rcx, (%r14)
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREEN_PROPERTY_TOUCH_ID,4,2   ## @SCREEN_PROPERTY_TOUCH_ID
	.comm	_SCREEN_PROPERTY_SOURCE_POSITION,4,2 ## @SCREEN_PROPERTY_SOURCE_POSITION
	.comm	_MAX_TOUCH,4,2                  ## @MAX_TOUCH
	.no_dead_strip	_qnx_process_touch_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qnx_process_touch_event
_qnx_process_touch_event:               ; @qnx_process_touch_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _SCREEN_PROPERTY_TOUCH_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCREEN_PROPERTY_TOUCH_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #28
	mov	x0, x21
	bl	_screen_get_event_property_iv
Lloh6:
	adrp	x8, _SCREEN_PROPERTY_SOURCE_POSITION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCREEN_PROPERTY_SOURCE_POSITION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x21
	bl	_screen_get_event_property_iv
	cmp	w20, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_11
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_21
; %bb.3:
	ldr	x10, [x19]
	cbz	x10, LBB0_21
; %bb.4:
	mov	x8, #0
	ldr	x9, [x19, #16]
	ldr	w11, [sp, #28]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x8, #5
	ldr	w12, [x9, x12]
	cmp	w12, w11
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, #1
	cmp	x10, x8
	b.hi	LBB0_5
	b	LBB0_21
LBB0_7:
Lloh9:
	adrp	x8, _MAX_TOUCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_TOUCH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	cbz	w9, LBB0_21
; %bb.8:
	mov	w20, #0
	mov	x21, #0
	ldr	x8, [x19, #16]
	lsl	x9, x9, #5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, x21]
	cmn	w10, #1
	b.eq	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #32
	add	w20, w20, #1
	cmp	x9, x21
	b.ne	LBB0_9
	b	LBB0_21
LBB0_11:
Lloh12:
	adrp	x8, _MAX_TOUCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_TOUCH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x8]
	cbz	w9, LBB0_21
; %bb.12:
	ldr	x8, [x19, #16]
	ldr	w10, [sp, #28]
	mov	x11, x8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cmp	w12, w10
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x11, x11, #32
	subs	x9, x9, #1
	b.ne	LBB0_13
	b	LBB0_21
LBB0_15:
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	add	x8, x9, x8, lsl #5
	ldp	w1, w2, [sp, #32]
	add	x3, x8, #28
	add	x4, x8, #24
	add	x5, x8, #20
	add	x6, x8, #16
	mov	x0, sp
	bl	_video_driver_translate_coord_viewport_wrap
	b	LBB0_21
LBB0_16:
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	ldr	w9, [sp, #28]
	add	x6, x8, x21
	add	x3, x6, #28
	add	x4, x6, #24
	add	x5, x6, #20
	str	w9, [x6], #16
	ldp	w1, w2, [sp, #32]
	mov	x0, sp
	bl	_video_driver_translate_coord_viewport_wrap
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	add	x9, x9, x21
	str	x8, [x9, #8]
	ldr	x9, [x19, #8]
	str	w20, [x9, x8, lsl #2]
	add	x8, x8, #1
	b	LBB0_20
LBB0_17:
	mov	w9, #-1
	str	w9, [x11]
	ldr	x10, [x19, #8]
	ldr	x12, [x11, #8]
	str	w9, [x10, x12, lsl #2]
	ldr	x11, [x19]
	and	x12, x12, #0xffffffff
	cmp	x11, x12
	b.ls	LBB0_19
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	w13, w12, #1
	lsl	x14, x13, #2
	ldr	w15, [x10, x14]
	str	w15, [x10, x12, lsl #2]
	add	x15, x8, x15, lsl #5
	str	x12, [x15, #8]
	str	w9, [x10, x14]
	mov	x12, x13
	cmp	x11, x13
	b.hi	LBB0_18
LBB0_19:
	sub	x8, x11, #1
LBB0_20:
	str	x8, [x19]
LBB0_21:
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREEN_PROPERTY_TOUCH_ID,4,2   ; @SCREEN_PROPERTY_TOUCH_ID
	.comm	_SCREEN_PROPERTY_SOURCE_POSITION,4,2 ; @SCREEN_PROPERTY_SOURCE_POSITION
	.comm	_MAX_TOUCH,4,2                  ; @MAX_TOUCH
	.no_dead_strip	_qnx_process_touch_event
.subsections_via_symbols
