	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function touchpad_cal_flt_pos
_touchpad_cal_flt_pos:                  ## @touchpad_cal_flt_pos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %r9
	movslq	%esi, %rdx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	movl	(%r9,%rsi), %ecx
	movl	4(%r9,%rsi), %r8d
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%r8,4), %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	movl	%ecx, (%r9,%rsi)
	movl	8(%r9,%rsi), %eax
	leal	(%rax,%rax,2), %r8d
	addl	%r8d, %r8d
	movl	12(%r9,%rsi), %eax
	leal	(%r8,%rax,4), %eax
	cltq
	imulq	$1717986919, %rax, %r8          ## imm = 0x66666667
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$34, %r8
	addl	%eax, %r8d
	movl	%r8d, 8(%r9,%rsi)
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"touchpad %d filter position:(%d, %d)\n"

	.no_dead_strip	_touchpad_cal_flt_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function touchpad_cal_flt_pos
_touchpad_cal_flt_pos:                  ; @touchpad_cal_flt_pos
	.cfi_startproc
; %bb.0:
	mov	x2, x1
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x8, x8, w1, sxtw #4
	mov	w9, #6
	ldp	w10, w11, [x8]
	mul	w10, w10, w9
	add	w10, w10, w11, lsl #2
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	smull	x10, w10, w11
	lsr	x12, x10, #63
	asr	x10, x10, #34
	add	w3, w10, w12
	ldp	w10, w12, [x8, #8]
	mul	w9, w10, w9
	str	w3, [x8]
	add	w9, w9, w12, lsl #2
	smull	x9, w9, w11
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w4, w9, w10
	str	w4, [x8, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w0, [x0]
	b	_dev_dbg
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"touchpad %d filter position:(%d, %d)\n"

	.no_dead_strip	_touchpad_cal_flt_pos
.subsections_via_symbols
