	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function touch_handle_down
_touch_handle_down:                     ## @touch_handle_down
	.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	_num_active_touches@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	movq	_MAX_TOUCHES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_6
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.2:
	movl	24(%rbp), %r14d
	movl	16(%rbp), %edi
	movq	_active_touch_positions@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	shlq	$4, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx,%rsi)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_5:
	shlq	$4, %rax
	movl	$1, (%rdx,%rax)
	movslq	(%rbx), %rax
	shlq	$4, %rax
	movl	%r9d, 12(%rdx,%rax)
	callq	_wl_fixed_to_int
	movq	(%r15), %rcx
	movslq	(%rbx), %rdx
	shlq	$4, %rdx
	movl	%eax, 4(%rcx,%rdx)
	movl	%r14d, %edi
	callq	_wl_fixed_to_int
	movq	(%r15), %rcx
	movslq	(%rbx), %rdx
	shlq	$4, %rdx
	movl	%eax, 8(%rcx,%rdx)
	incl	(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_active_touches,4,2         ## @num_active_touches
	.comm	_MAX_TOUCHES,4,2                ## @MAX_TOUCHES
	.comm	_active_touch_positions,8,3     ## @active_touch_positions
	.no_dead_strip	_touch_handle_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function touch_handle_down
_touch_handle_down:                     ; @touch_handle_down
	.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	x20, _num_active_touches@GOTPAGE
Lloh1:
	ldr	x20, [x20, _num_active_touches@GOTPAGEOFF]
	ldrsw	x8, [x20]
Lloh2:
	adrp	x9, _MAX_TOUCHES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_TOUCHES@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	ccmp	w9, #1, #8, lt
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x7
Lloh5:
	adrp	x21, _active_touch_positions@GOTPAGE
Lloh6:
	ldr	x21, [x21, _active_touch_positions@GOTPAGEOFF]
	ldr	x10, [x21]
	mov	x11, x10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cbz	w12, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #16
	subs	x9, x9, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	lsl	x8, x8, #4
	mov	w9, #1
	str	w9, [x10, x8]
	ldrsw	x8, [x20]
	add	x8, x10, x8, lsl #4
	str	w5, [x8, #12]
	mov	x0, x6
	bl	_wl_fixed_to_int
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #4
	str	w0, [x8, #4]
	mov	x0, x19
	bl	_wl_fixed_to_int
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #4
	str	w0, [x8, #8]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_num_active_touches,4,2         ; @num_active_touches
	.comm	_MAX_TOUCHES,4,2                ; @MAX_TOUCHES
	.comm	_active_touch_positions,8,3     ; @active_touch_positions
	.no_dead_strip	_touch_handle_down
.subsections_via_symbols
