	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdt87xx_report_contact
_wdt87xx_report_contact:                ## @wdt87xx_report_contact
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FINGER_EV_V1_OFFSET_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdx,%rax,4), %ebx
	cmpl	$8, %ebx
	jl	LBB0_4
## %bb.1:
	movl	%ebx, %eax
	andl	$1, %eax
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_FINGER_EV_V1_OFFSET_W@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rsi), %r13d
	imull	(%rdx,%rax,4), %r13d
	movq	_FINGER_EV_V1_OFFSET_P@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdx,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_FINGER_EV_V1_OFFSET_X@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rdx,%rax,4), %rdi
	callq	_get_unaligned_le16
	movq	_FINGER_EV_V1_OFFSET_Y@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%r15,%rcx,4), %rdi
	movl	%eax, %r15d
	callq	_get_unaligned_le16
	imull	4(%r14), %eax
	movl	16(%r14), %esi
	movl	%eax, %edi
	callq	_DIV_ROUND_CLOSEST
	cmpl	8(%r14), %r15d
	jg	LBB0_4
## %bb.3:
	cmpl	12(%r14), %eax
	jle	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	sarl	$3, %ebx
	decl	%ebx
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	movl	%eax, %r14d
	callq	_dev_dbg
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_input_mt_report_slot_state
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_input_report_abs
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_abs               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FINGER_EV_V1_OFFSET_ID,8,3     ## @FINGER_EV_V1_OFFSET_ID
	.comm	_FINGER_EV_V1_OFFSET_W,8,3      ## @FINGER_EV_V1_OFFSET_W
	.comm	_FINGER_EV_V1_OFFSET_P,8,3      ## @FINGER_EV_V1_OFFSET_P
	.comm	_FINGER_EV_V1_OFFSET_X,4,2      ## @FINGER_EV_V1_OFFSET_X
	.comm	_FINGER_EV_V1_OFFSET_Y,4,2      ## @FINGER_EV_V1_OFFSET_Y
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tip on (%d), x(%d), y(%d)\n"

	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.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	_wdt87xx_report_contact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wdt87xx_report_contact
_wdt87xx_report_contact:                ; @wdt87xx_report_contact
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _FINGER_EV_V1_OFFSET_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FINGER_EV_V1_OFFSET_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w24, [x2, x8, lsl #2]
	and	w8, w24, #0x1
	cmp	w24, #8
	ccmp	w8, #0, #4, ge
	b.eq	LBB0_3
; %bb.1:
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _FINGER_EV_V1_OFFSET_W@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FINGER_EV_V1_OFFSET_W@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w25, [x2, x8, lsl #2]
	ldr	w26, [x1]
Lloh6:
	adrp	x8, _FINGER_EV_V1_OFFSET_P@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FINGER_EV_V1_OFFSET_P@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w20, [x2, x8, lsl #2]
Lloh9:
	adrp	x8, _FINGER_EV_V1_OFFSET_X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FINGER_EV_V1_OFFSET_X@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	add	x0, x2, x8, lsl #2
	bl	_get_unaligned_le16
	mov	x21, x0
Lloh12:
	adrp	x8, _FINGER_EV_V1_OFFSET_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FINGER_EV_V1_OFFSET_Y@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	add	x0, x22, x8, lsl #2
	bl	_get_unaligned_le16
	ldr	w8, [x23, #4]
	mul	w0, w8, w0
	ldr	w1, [x23, #16]
	bl	_DIV_ROUND_CLOSEST
	ldr	w8, [x23, #8]
	cmp	w21, w8
	b.gt	LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	w8, [x23, #12]
	cmp	w0, w8
	b.le	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	asr	w8, w24, #3
	sub	w23, w8, #1
	mul	w24, w26, w25
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x21
	mov	x4, x22
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x23
	bl	_input_mt_slot
Lloh17:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_input_mt_report_slot_state
Lloh20:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	bl	_input_report_abs
Lloh23:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_abs
Lloh26:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
Lloh29:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_report_abs
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FINGER_EV_V1_OFFSET_ID,8,3     ; @FINGER_EV_V1_OFFSET_ID
	.comm	_FINGER_EV_V1_OFFSET_W,8,3      ; @FINGER_EV_V1_OFFSET_W
	.comm	_FINGER_EV_V1_OFFSET_P,8,3      ; @FINGER_EV_V1_OFFSET_P
	.comm	_FINGER_EV_V1_OFFSET_X,4,2      ; @FINGER_EV_V1_OFFSET_X
	.comm	_FINGER_EV_V1_OFFSET_Y,4,2      ; @FINGER_EV_V1_OFFSET_Y
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tip on (%d), x(%d), y(%d)\n"

	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.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	_wdt87xx_report_contact
.subsections_via_symbols
