	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_mt_report_pointer_emulation ## -- Begin function input_mt_report_pointer_emulation
	.p2align	4, 0x90
_input_mt_report_pointer_emulation:     ## @input_mt_report_pointer_emulation
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	cmpl	$0, 4(%rdi)
	jle	LBB0_1
## %bb.2:
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	4(%r13), %rax
	addq	$4, %r15
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rbx
	addq	%r15, %rbx
	movq	_ABS_MT_TRACKING_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_input_mt_get_value
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	_TRKID_SGN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	setg	%cl
	movq	%r13, %rdi
	callq	_input_event
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_input_mt_report_finger_count
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_input_mt_get_value
	movl	%eax, %r12d
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_input_mt_get_value
	movl	%eax, %r15d
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_input_mt_get_value
	movl	%eax, %r14d
	movq	_EV_ABS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	callq	_input_event
	movl	(%rbx), %esi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %ecx
	callq	_input_event
	jmp	LBB0_13
LBB0_11:
	xorl	%r14d, %r14d
LBB0_13:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r14d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_event                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_MT_TRACKING_ID,4,2         ## @ABS_MT_TRACKING_ID
	.comm	_TRKID_SGN,4,2                  ## @TRKID_SGN
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_mt_report_pointer_emulation ; -- Begin function input_mt_report_pointer_emulation
	.p2align	2
_input_mt_report_pointer_emulation:     ; @input_mt_report_pointer_emulation
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	mov	x20, #0
	mov	w22, #0
	ldr	w26, [x19]
Lloh0:
	adrp	x27, _ABS_MT_TRACKING_ID@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ABS_MT_TRACKING_ID@GOTPAGEOFF]
Lloh2:
	adrp	x28, _TRKID_SGN@GOTPAGE
Lloh3:
	ldr	x28, [x28, _TRKID_SGN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19, #4]
	add	x24, x24, #4
	cmp	x25, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x23, x8, x24
	ldr	w1, [x27]
	mov	x0, x23
	bl	_input_mt_get_value
	tbnz	w0, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w0, w26
	ldr	w9, [x28]
	tst	w9, w8
	csel	w26, w26, w0, eq
	csel	x20, x20, x23, eq
	add	w22, w22, #1
	b	LBB0_2
LBB0_5:
	mov	w22, #0
	mov	x20, #0
LBB0_6:
Lloh4:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	cmp	w22, #0
	cset	w3, gt
	mov	x0, x19
	bl	_input_event
	cbz	w21, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x22
	bl	_input_mt_report_finger_count
LBB0_8:
Lloh10:
	adrp	x23, _EV_ABS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _EV_ABS@GOTPAGEOFF]
	cbz	x20, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_input_mt_get_value
	mov	x21, x0
Lloh15:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_input_mt_get_value
	mov	x22, x0
Lloh18:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_input_mt_get_value
	mov	x20, x0
	ldr	w1, [x23]
Lloh21:
	adrp	x8, _ABS_X@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_input_event
	ldr	w1, [x23]
Lloh24:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x22
	bl	_input_event
LBB0_10:
Lloh27:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_input_event
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_MT_TRACKING_ID,4,2         ; @ABS_MT_TRACKING_ID
	.comm	_TRKID_SGN,4,2                  ; @TRKID_SGN
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
.subsections_via_symbols
