	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_report_absolute_v2
_elantech_report_absolute_v2:           ## @elantech_report_absolute_v2
	.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	16(%rdi), %r8
	movq	(%rdi), %r15
	movq	8(%rdi), %r14
	movzbl	(%r15), %r9d
	movl	%r9d, %ebx
	shrl	$6, %ebx
	cmpl	$3, %ebx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	cmpl	$2, %ebx
	je	LBB0_7
## %bb.2:
	cmpl	$1, %ebx
	jne	LBB0_3
## %bb.4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movb	3(%r15), %cl
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_5:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movb	3(%r15), %cl
	xorl	%edx, %edx
	testb	%cl, %cl
	setns	%dl
	movl	$4, %ebx
	subl	%edx, %ebx
LBB0_6:
	movzbl	1(%r15), %edx
	movl	%edx, %esi
	andl	$15, %esi
	shll	$8, %esi
	movzbl	2(%r15), %r13d
	orl	%esi, %r13d
	movl	8(%r8), %r12d
	movzbl	4(%r15), %eax
	movl	%eax, %esi
	andl	$15, %esi
	shll	$8, %esi
	movzbl	5(%r15), %edi
	orl	%esi, %edi
	subl	%edi, %r12d
	andl	$-16, %edx
	shrl	$4, %eax
	orl	%edx, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	shrb	$2, %r9b
	andb	$12, %r9b
	shrb	$4, %cl
	andb	$3, %cl
	orb	%r9b, %cl
	movzbl	%cl, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
LBB0_7:
	movl	%r9d, %ecx
	andl	$16, %ecx
	shll	$4, %ecx
	movzbl	1(%r15), %r13d
	orl	%ecx, %r13d
	shll	$2, %r13d
	movl	8(%r8), %esi
	andl	$32, %r9d
	movzbl	2(%r15), %ecx
	leal	(%rcx,%r9,8), %eax
	shll	$2, %eax
	movl	%esi, %r12d
	subl	%eax, %r12d
	movzbl	3(%r15), %eax
	movl	%eax, %ecx
	andl	$16, %ecx
	shll	$4, %ecx
	movzbl	4(%r15), %edx
	orl	%ecx, %edx
	shll	$2, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	andl	$32, %eax
	movzbl	5(%r15), %ecx
	leal	(%rcx,%rax,8), %eax
	shll	$2, %eax
	subl	%eax, %esi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	$127, -52(%rbp)                 ## 4-byte Folded Spill
	movl	$7, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$2, %ebx
	jmp	LBB0_8
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%ebx, %ebx
	setne	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
LBB0_10:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	callq	_elantech_report_semi_mt_data
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$1, %ebx
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_TOOL_DOUBLETAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$2, %ebx
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_TOOL_TRIPLETAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$3, %ebx
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_TOOL_QUADTAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$4, %ebx
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_key
	movzbl	(%r15), %esi
	movq	%r14, %rdi
	callq	_psmouse_report_standard_buttons
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_TOOL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
LBB0_12:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_TOOL_FINGER,4,2            ## @BTN_TOOL_FINGER
	.comm	_BTN_TOOL_DOUBLETAP,4,2         ## @BTN_TOOL_DOUBLETAP
	.comm	_BTN_TOOL_TRIPLETAP,4,2         ## @BTN_TOOL_TRIPLETAP
	.comm	_BTN_TOOL_QUADTAP,4,2           ## @BTN_TOOL_QUADTAP
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_ABS_TOOL_WIDTH,4,2             ## @ABS_TOOL_WIDTH
	.no_dead_strip	_elantech_report_absolute_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elantech_report_absolute_v2
_elantech_report_absolute_v2:           ; @elantech_report_absolute_v2
	.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
	ldp	x19, x27, [x0, #8]
	ldr	x28, [x0]
	ldrb	w8, [x28]
	lsr	w20, w8, #6
	cmp	w20, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #2
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #1
	b.ne	LBB0_7
; %bb.3:
	ldrb	w9, [x28, #3]
	b	LBB0_5
LBB0_4:
	ldrsb	w9, [x28, #3]
	cmp	w9, #0
	mov	w10, #3
	cinc	w20, w10, lt
LBB0_5:
	mov	w24, #0
	mov	w26, #0
	ldrb	w10, [x28, #1]
	ldr	w11, [x27, #8]
	ldrb	w12, [x28, #4]
	ldrb	w13, [x28, #5]
	bfi	w13, w12, #8, #4
	sub	w25, w11, w13
	ldrb	w23, [x28, #2]
	bfi	w23, w10, #8, #4
	and	w10, w10, #0xf0
	orr	w22, w10, w12, lsr #4
	lsr	w8, w8, #2
	and	w21, w8, #0xc
	bfxil	w21, w9, #4, #2
	b	LBB0_8
LBB0_6:
	lsr	w9, w8, #5
	lsr	w8, w8, #4
	ldrb	w10, [x28, #1]
	bfi	w10, w8, #8, #1
	lsl	w23, w10, #2
	ldr	w8, [x27, #8]
	ldrb	w10, [x28, #2]
	bfi	w10, w9, #8, #1
	sub	w25, w8, w10, lsl #2
	ldrb	w9, [x28, #3]
	lsr	w10, w9, #5
	lsr	w9, w9, #4
	ldrb	w11, [x28, #4]
	bfi	w11, w9, #8, #1
	lsl	w24, w11, #2
	ldrb	w9, [x28, #5]
	bfi	w9, w10, #8, #1
	sub	w26, w8, w9, lsl #2
	mov	w22, #127
	mov	w21, #7
	b	LBB0_8
LBB0_7:
	mov	w23, #0
	mov	w25, #0
	mov	w24, #0
	mov	w26, #0
	mov	w21, #0
	mov	w22, #0
LBB0_8:
Lloh0:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmp	w20, #0
	cset	w2, ne
	mov	x0, x19
	bl	_input_report_key
	cbz	w20, LBB0_10
; %bb.9:
Lloh3:
	adrp	x8, _ABS_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_input_report_abs
Lloh6:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x25
	bl	_input_report_abs
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x25
	mov	x4, x24
	mov	x5, x26
	bl	_elantech_report_semi_mt_data
Lloh9:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	cmp	w20, #1
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_key
Lloh12:
	adrp	x8, _BTN_TOOL_DOUBLETAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_TOOL_DOUBLETAP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	cmp	w20, #2
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_key
Lloh15:
	adrp	x8, _BTN_TOOL_TRIPLETAP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_TOOL_TRIPLETAP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	cmp	w20, #3
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_key
Lloh18:
	adrp	x8, _BTN_TOOL_QUADTAP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_TOOL_QUADTAP@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	cmp	w20, #4
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_key
	ldrb	w1, [x28]
	mov	x0, x19
	bl	_psmouse_report_standard_buttons
	ldr	x8, [x27]
	cbz	x8, LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_abs
Lloh24:
	adrp	x8, _ABS_TOOL_WIDTH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_TOOL_WIDTH@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
LBB0_12:
	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	_input_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_TOOL_FINGER,4,2            ; @BTN_TOOL_FINGER
	.comm	_BTN_TOOL_DOUBLETAP,4,2         ; @BTN_TOOL_DOUBLETAP
	.comm	_BTN_TOOL_TRIPLETAP,4,2         ; @BTN_TOOL_TRIPLETAP
	.comm	_BTN_TOOL_QUADTAP,4,2           ; @BTN_TOOL_QUADTAP
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_ABS_TOOL_WIDTH,4,2             ; @ABS_TOOL_WIDTH
	.no_dead_strip	_elantech_report_absolute_v2
.subsections_via_symbols
