	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_report_contact
_elan_report_contact:                   ## @elan_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r8d
	movq	24(%rdi), %r14
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movl	(%rcx), %ebx
	movl	%ebx, %r12d
	shll	$4, %r12d
	andl	$3840, %r12d                    ## imm = 0xF00
	orl	4(%rcx), %r12d
	andl	$15, %ebx
	shll	$8, %ebx
	orl	8(%rcx), %ebx
	movl	(%rdi), %r9d
	movl	4(%rdi), %eax
	cmpl	%r9d, %r12d
	ja	LBB0_5
## %bb.2:
	cmpl	%eax, %ebx
	ja	LBB0_5
## %bb.3:
	movl	12(%rcx), %eax
	movl	16(%rcx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	sarl	$4, %eax
	andl	$15, %ecx
	movl	%ecx, %edx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_ETP_FWIDTH_REDUCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	8(%r15), %r13d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %r14d
	subl	%ecx, %r13d
	imull	%edx, %r13d
	subl	%ecx, %r14d
	imull	%eax, %r14d
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	_max
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	addl	16(%r15), %r13d
	movq	_ETP_MAX_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	cmovael	%eax, %r13d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_mt_report_slot_state
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	subl	%ebx, %edx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_input_report_abs
	movq	_ABS_TOOL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_MT_TOUCH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_abs               ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	movl	%r8d, %esi
	callq	_input_mt_slot
	movq	_MT_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_mt_report_slot_state     ## TAILCALL
LBB0_5:
	movl	(%r14), %edi
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_dev_dbg
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%d] x=%d y=%d over max (%d, %d)"

	.comm	_ETP_FWIDTH_REDUCE,4,2          ## @ETP_FWIDTH_REDUCE
	.comm	_ETP_MAX_PRESSURE,4,2           ## @ETP_MAX_PRESSURE
	.comm	_MT_TOOL_FINGER,4,2             ## @MT_TOOL_FINGER
	.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	_ABS_TOOL_WIDTH,4,2             ## @ABS_TOOL_WIDTH
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ## @ABS_MT_TOUCH_MINOR
	.no_dead_strip	_elan_report_contact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_report_contact
_elan_report_contact:                   ; @elan_report_contact
	.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	x25, x1
	ldr	x19, [x0, #24]
	cbz	w2, LBB0_3
; %bb.1:
	mov	x20, x0
	ldp	w8, w9, [x3]
	lsl	w10, w8, #4
	and	w10, w10, #0xf00
	orr	w23, w10, w9
	ubfiz	w8, w8, #8, #4
	ldr	w9, [x3, #8]
	orr	w21, w8, w9
	ldp	w5, w6, [x0]
	cmp	w23, w5
	ccmp	w21, w6, #2, ls
	b.ls	LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	mov	x3, x23
	mov	x4, x21
	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	_dev_dbg
LBB0_3:
	mov	x0, x19
	mov	x1, x25
	bl	_input_mt_slot
Lloh2:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	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_mt_report_slot_state
LBB0_4:
	ldp	w8, w28, [x3, #12]
	asr	w9, w8, #4
	and	w22, w8, #0xf
Lloh5:
	adrp	x8, _ETP_FWIDTH_REDUCE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETP_FWIDTH_REDUCE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w10, w11, [x20, #8]
	sub	w10, w10, w8
	mul	w24, w10, w22
	sub	w8, w11, w8
	mul	w27, w8, w9
	mov	x0, x24
	mov	x1, x27
	bl	_max
	mov	x26, x0
	mov	x0, x24
	mov	x1, x27
	bl	_min
	mov	x24, x0
	ldr	w8, [x20, #16]
Lloh8:
	adrp	x9, _ETP_MAX_PRESSURE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETP_MAX_PRESSURE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w8, w8, w28
	cmp	w8, w9
	csel	w27, w8, w9, lo
	mov	x0, x19
	mov	x1, x25
	bl	_input_mt_slot
Lloh11:
	adrp	x8, _MT_TOOL_FINGER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_TOOL_FINGER@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_input_mt_report_slot_state
Lloh14:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_input_report_abs
Lloh17:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	sub	w2, w8, w21
	mov	x0, x19
	bl	_input_report_abs
Lloh20:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x27
	bl	_input_report_abs
Lloh23:
	adrp	x8, _ABS_TOOL_WIDTH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ABS_TOOL_WIDTH@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_abs
Lloh26:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x26
	bl	_input_report_abs
Lloh29:
	adrp	x8, _ABS_MT_TOUCH_MINOR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ABS_MT_TOUCH_MINOR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	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_report_abs
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%d] x=%d y=%d over max (%d, %d)"

	.comm	_ETP_FWIDTH_REDUCE,4,2          ; @ETP_FWIDTH_REDUCE
	.comm	_ETP_MAX_PRESSURE,4,2           ; @ETP_MAX_PRESSURE
	.comm	_MT_TOOL_FINGER,4,2             ; @MT_TOOL_FINGER
	.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	_ABS_TOOL_WIDTH,4,2             ; @ABS_TOOL_WIDTH
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ; @ABS_MT_TOUCH_MINOR
	.no_dead_strip	_elan_report_contact
.subsections_via_symbols
