	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function egalax_process_data
_egalax_process_data:                   ## @egalax_process_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	_EGALAX_FORMAT_RESOLUTION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edx
	movl	(%rcx), %esi
	andl	%edx, %esi
	shrl	%esi
	movb	$4, %cl
	subb	%sil, %cl
	movl	$255, %eax
	shrl	%cl, %eax
	movl	8(%rbx), %r15d
	movl	4(%rbx), %ecx
	andl	%eax, %ecx
	shll	$7, %ecx
	andl	$127, %r15d
	orl	%ecx, %r15d
	movb	$3, %cl
	subb	%sil, %cl
	shll	%cl, %r15d
	movq	8(%rdi), %r14
	andl	12(%rbx), %eax
	shll	$7, %eax
	movl	16(%rbx), %ebx
	andl	$127, %ebx
	orl	%eax, %ebx
	shll	%cl, %ebx
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EGALAX_FORMAT_TOUCH_BIT@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EGALAX_FORMAT_RESOLUTION_MASK,4,2 ## @EGALAX_FORMAT_RESOLUTION_MASK
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_EGALAX_FORMAT_TOUCH_BIT,4,2    ## @EGALAX_FORMAT_TOUCH_BIT
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.no_dead_strip	_egalax_process_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function egalax_process_data
_egalax_process_data:                   ; @egalax_process_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _EGALAX_FORMAT_RESOLUTION_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EGALAX_FORMAT_RESOLUTION_MASK@GOTPAGEOFF]
	ldp	x9, x19, [x0]
Lloh2:
	ldr	w8, [x8]
	ldp	w10, w11, [x9]
	and	w8, w8, w10
	asr	w8, w8, #1
	mov	w12, #3
	sub	w12, w12, w8
	mov	w13, #4
	sub	w8, w13, w8
	mov	w13, #255
	lsr	w8, w13, w8
	and	w11, w8, w11
	ldp	w13, w14, [x9, #8]
	and	w13, w13, #0x7f
	bfi	w13, w11, #7, #8
	lsl	w20, w13, w12
	and	w8, w8, w14
	ldr	w9, [x9, #16]
	and	w9, w9, #0x7f
	bfi	w9, w8, #7, #8
Lloh3:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
	lsl	w21, w9, w12
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _EGALAX_FORMAT_TOUCH_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EGALAX_FORMAT_TOUCH_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w2, w8, w10
	mov	x0, x19
	bl	_input_report_key
Lloh9:
	adrp	x8, _ABS_X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_abs
Lloh12:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EGALAX_FORMAT_RESOLUTION_MASK,4,2 ; @EGALAX_FORMAT_RESOLUTION_MASK
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_EGALAX_FORMAT_TOUCH_BIT,4,2    ; @EGALAX_FORMAT_TOUCH_BIT
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.no_dead_strip	_egalax_process_data
.subsections_via_symbols
