	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_packet_motion_v4
_process_packet_motion_v4:              ## @process_packet_motion_v4
	.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
	movq	(%rdi), %rax
	movzbl	(%rax), %ecx
	cmpl	$32, %ecx
	jae	LBB0_1
## %bb.6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movq	16(%rdi), %r13
	movl	%ecx, %ebx
	shrl	$5, %ebx
	decl	%ebx
	movq	8(%rdi), %r14
	movzbl	3(%rax), %r12d
	movl	$1, %esi
	testb	$16, %cl
	je	LBB0_3
## %bb.2:
	movq	_ETP_WEIGHT_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_3:
	movsbl	1(%rax), %ecx
	movsbl	2(%rax), %edx
	movsbl	4(%rax), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movsbl	5(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	imull	%esi, %ecx
	movq	(%r14), %rax
	addl	%ecx, (%rax,%rbx,8)
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	imull	%esi, %edx
	subl	%edx, 4(%rax,%rbx,8)
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_input_mt_slot
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	(%rax,%rbx,8), %edx
	movq	%r13, %rdi
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	4(%rax,%rbx,8), %edx
	movq	%r13, %rdi
	callq	_input_report_abs
	cmpl	$32, %r12d
	jb	LBB0_5
## %bb.4:
	shrl	$5, %r12d
	decl	%r12d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	imull	%ecx, %edx
	movq	(%r14), %rax
	addl	%edx, (%rax,%r12,8)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	imull	%ecx, %edx
	subl	%edx, 4(%rax,%r12,8)
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_input_mt_slot
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	(%rax,%r12,8), %edx
	movq	%r13, %rdi
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	4(%rax,%r12,8), %edx
	movq	%r13, %rdi
	callq	_input_report_abs
LBB0_5:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elantech_input_sync_v4         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETP_WEIGHT_VALUE,4,2           ## @ETP_WEIGHT_VALUE
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.no_dead_strip	_process_packet_motion_v4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_packet_motion_v4
_process_packet_motion_v4:              ; @process_packet_motion_v4
	.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
	ldr	x8, [x0]
	ldrb	w9, [x8]
	cmp	w9, #32
	b.hs	LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	mov	x19, x0
	lsr	w10, w9, #5
	sub	w1, w10, #1
	ldp	x21, x20, [x0, #8]
	ldrb	w23, [x8, #3]
Lloh0:
	adrp	x10, _ETP_WEIGHT_VALUE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ETP_WEIGHT_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w9, #0x10
	csinc	w22, w10, wzr, ne
	ldrsb	w9, [x8, #1]
	ldrsb	w10, [x8, #2]
	ldr	x11, [x21]
	lsl	x28, x1, #3
	add	x11, x11, x28
	ldp	w12, w13, [x11]
	madd	w9, w22, w9, w12
	ldrsb	w25, [x8, #4]
	ldrsb	w26, [x8, #5]
	msub	w8, w22, w10, w13
	stp	w9, w8, [x11]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_input_mt_slot
Lloh3:
	adrp	x24, _ABS_MT_POSITION_X@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ABS_MT_POSITION_X@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	x8, [x21]
	ldr	w2, [x8, x28]
	mov	x0, x20
	bl	_input_report_abs
Lloh5:
	adrp	x27, _ABS_MT_POSITION_Y@GOTPAGE
Lloh6:
	ldr	x27, [x27, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	ldr	w1, [x27]
	ldr	x8, [x21]
	add	x8, x8, x28
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_input_report_abs
	cmp	w23, #32
	b.lo	LBB0_4
; %bb.3:
	lsr	w8, w23, #5
	sub	w1, w8, #1
	ldr	x8, [x21]
	lsl	x23, x1, #3
	add	x8, x8, x23
	ldp	w9, w10, [x8]
	madd	w9, w22, w25, w9
	msub	w10, w22, w26, w10
	stp	w9, w10, [x8]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_input_mt_slot
	ldr	w1, [x24]
	ldr	x8, [x21]
	ldr	w2, [x8, x23]
	mov	x0, x20
	bl	_input_report_abs
	ldr	w1, [x27]
	ldr	x8, [x21]
	add	x8, x8, x23
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_input_report_abs
LBB0_4:
	mov	x0, x19
	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	_elantech_input_sync_v4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETP_WEIGHT_VALUE,4,2           ; @ETP_WEIGHT_VALUE
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.no_dead_strip	_process_packet_motion_v4
.subsections_via_symbols
