	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function reorder_touches
LCPI0_0:
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_reorder_touches:                       ## @reorder_touches
	.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	_num_active_touches@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_MAX_TOUCHES@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	testl	%r9d, %r9d
	jle	LBB0_9
## %bb.2:
	movq	_active_touch_positions@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	leaq	16(%r11), %r14
	xorl	%esi, %esi
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,4294967295,0,0]
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	movslq	%r9d, %rax
	addq	$16, %r14
	cmpq	%rax, %rsi
	jge	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rsi, %rax
	shlq	$4, %rax
	cmpl	$0, (%r11,%rax)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r11,%rax), %r10
	movslq	%r9d, %rcx
	movq	%r14, %rdx
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	cmpq	%rcx, %rbx
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%rdx), %edi
	addq	$16, %rdx
	testl	%edi, %edi
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, (%r10)
	movl	-12(%rdx), %ecx
	movl	%ecx, 4(%r11,%rax)
	movl	-8(%rdx), %ecx
	movl	%ecx, 8(%r11,%rax)
	movl	-4(%rdx), %ecx
	movl	%ecx, 12(%r11,%rax)
	movups	%xmm0, -16(%rdx)
	movl	(%r8), %r9d
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_active_touches,8,3         ## @num_active_touches
	.comm	_MAX_TOUCHES,4,2                ## @MAX_TOUCHES
	.comm	_active_touch_positions,8,3     ## @active_touch_positions
	.no_dead_strip	_reorder_touches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function reorder_touches
lCPI0_0:
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_reorder_touches:                       ; @reorder_touches
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _num_active_touches@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_active_touches@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _MAX_TOUCHES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_TOUCHES@GOTPAGEOFF]
	ldr	w12, [x8]
	cmp	w12, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x9, #0
Lloh5:
	adrp	x10, _active_touch_positions@GOTPAGE
Lloh6:
	ldr	x10, [x10, _active_touch_positions@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x11, x10, #16
	mov	w13, #1
Lloh8:
	adrp	x14, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x14, lCPI0_0@PAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x11, x11, #16
	add	x13, x13, #1
	cmp	x9, w12, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x14, x10, x9, lsl #4
	ldr	w15, [x14]
	cbnz	w15, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x16, w12
	mov	x17, x13
	mov	x15, x11
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x17, x16
	b.ge	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x15], #16
	add	x17, x17, #1
	cbz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x14]
	add	x12, x10, x9, lsl #4
	ldur	d1, [x15, #-12]
	stur	d1, [x12, #4]
	ldur	w14, [x15, #-4]
	str	w14, [x12, #12]
	stur	q0, [x15, #-16]
	ldr	w12, [x8]
	b	LBB0_3
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_num_active_touches,8,3         ; @num_active_touches
	.comm	_MAX_TOUCHES,4,2                ; @MAX_TOUCHES
	.comm	_active_touch_positions,8,3     ; @active_touch_positions
	.no_dead_strip	_reorder_touches
.subsections_via_symbols
