	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	8(%rdi), %rbx
	movzbl	(%r14), %r12d
	xorl	%edx, %edx
	cmpl	$64, %r12d
	setae	%dl
	shrl	$6, %r12d
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_input_report_key
	cmpl	$2, %r12d
	je	LBB0_3
## %bb.1:
	cmpl	$1, %r12d
	jne	LBB0_5
## %bb.2:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	1(%r14), %eax
	rolw	$8, %ax
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ETP_YMAX_V2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzwl	4(%r14), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	subl	%eax, %edx
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_3:
	movzbl	(%r14), %eax
	movl	%eax, %ecx
	andl	$16, %ecx
	shll	$4, %ecx
	movzbl	1(%r14), %r15d
	orl	%ecx, %r15d
	movq	_ETP_2FT_YMAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	$32, %eax
	movzbl	2(%r14), %ecx
	leal	(%rcx,%rax,8), %eax
	movl	%edx, %r13d
	subl	%eax, %r13d
	movzbl	3(%r14), %eax
	movl	%eax, %ecx
	andl	$16, %ecx
	shll	$4, %ecx
	movzbl	4(%r14), %esi
	orl	%ecx, %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	andl	$32, %eax
	movzbl	5(%r14), %ecx
	leal	(%rcx,%rax,8), %eax
	subl	%eax, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(,%r15,4), %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(,%r13,4), %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_input_report_abs
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_input_report_abs
	movq	_ABS_HAT1X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movq	_ABS_HAT1Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_4:
	callq	_input_report_abs
LBB0_5:
	movq	_BTN_TOOL_FINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpb	$1, %r12b
	sete	%dl
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	_BTN_TOOL_DOUBLETAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpb	$2, %r12b
	sete	%dl
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	_BTN_TOOL_TRIPLETAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpb	$3, %r12b
	sete	%dl
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r14), %edx
	andl	$1, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r14), %edx
	andl	$2, %edx
	movq	%rbx, %rdi
	callq	_input_report_key
	movq	%rbx, %rdi
	addq	$8, %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	_ETP_YMAX_V2,4,2                ## @ETP_YMAX_V2
	.comm	_ETP_2FT_YMAX,4,2               ## @ETP_2FT_YMAX
	.comm	_ABS_HAT0X,4,2                  ## @ABS_HAT0X
	.comm	_ABS_HAT0Y,4,2                  ## @ABS_HAT0Y
	.comm	_ABS_HAT1X,4,2                  ## @ABS_HAT1X
	.comm	_ABS_HAT1Y,4,2                  ## @ABS_HAT1Y
	.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_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.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	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
	ldp	x24, x19, [x0]
	ldrb	w8, [x24]
	cmp	w8, #63
	cset	w2, hi
	lsr	w25, w8, #6
Lloh0:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_input_report_key
	cmp	w25, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w25, #1
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _ABS_X@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldurh	w8, [x24, #1]
	rev16	w2, w8
	mov	x0, x19
	bl	_input_report_abs
Lloh6:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ETP_YMAX_V2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETP_YMAX_V2@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldrh	w9, [x24, #4]
	rev	w9, w9
	sub	w2, w8, w9, lsr #16
	mov	x0, x19
	b	LBB0_4
LBB0_3:
	ldrb	w8, [x24]
	lsr	w9, w8, #5
	lsr	w8, w8, #4
	ldrb	w20, [x24, #1]
	bfi	w20, w8, #8, #1
Lloh12:
	adrp	x8, _ETP_2FT_YMAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETP_2FT_YMAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldrb	w10, [x24, #2]
	bfi	w10, w9, #8, #1
	sub	w21, w8, w10
	ldrb	w9, [x24, #3]
	lsr	w10, w9, #5
	lsr	w9, w9, #4
	ldrb	w22, [x24, #4]
	bfi	w22, w9, #8, #1
	ldrb	w9, [x24, #5]
	bfi	w9, w10, #8, #1
	sub	w23, w8, w9
Lloh15:
	adrp	x8, _ABS_X@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	lsl	w2, w20, #2
	mov	x0, x19
	bl	_input_report_abs
Lloh18:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	lsl	w2, w21, #2
	mov	x0, x19
	bl	_input_report_abs
Lloh21:
	adrp	x8, _ABS_HAT0X@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_HAT0X@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_abs
Lloh24:
	adrp	x8, _ABS_HAT0Y@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_HAT0Y@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
Lloh27:
	adrp	x8, _ABS_HAT1X@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_HAT1X@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_abs
Lloh30:
	adrp	x8, _ABS_HAT1Y@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_HAT1Y@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
LBB0_4:
	bl	_input_report_abs
LBB0_5:
Lloh33:
	adrp	x8, _BTN_TOOL_FINGER@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BTN_TOOL_FINGER@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	cmp	w25, #1
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_key
Lloh36:
	adrp	x8, _BTN_TOOL_DOUBLETAP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BTN_TOOL_DOUBLETAP@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	cmp	w25, #2
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_key
Lloh39:
	adrp	x8, _BTN_TOOL_TRIPLETAP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BTN_TOOL_TRIPLETAP@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	cmp	w25, #3
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_key
Lloh42:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldrb	w8, [x24]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
Lloh45:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldrb	w8, [x24]
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_input_report_key
	mov	x0, x19
	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_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.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	_ETP_YMAX_V2,4,2                ; @ETP_YMAX_V2
	.comm	_ETP_2FT_YMAX,4,2               ; @ETP_2FT_YMAX
	.comm	_ABS_HAT0X,4,2                  ; @ABS_HAT0X
	.comm	_ABS_HAT0Y,4,2                  ; @ABS_HAT0Y
	.comm	_ABS_HAT1X,4,2                  ; @ABS_HAT1X
	.comm	_ABS_HAT1Y,4,2                  ; @ABS_HAT1Y
	.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_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.no_dead_strip	_elantech_report_absolute_v2
.subsections_via_symbols
