	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_report_trackpoint
_elan_report_trackpoint:                ## @elan_report_trackpoint
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r12
	movq	_ETP_REPORT_ID_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12,%rbx,4), %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12,%rbx,4), %edx
	andl	$2, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12,%rbx,4), %edx
	andl	$4, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movl	16(%r12,%rbx,4), %eax
	andl	$15, %eax
	cmpl	$6, %eax
	jne	LBB0_3
## %bb.2:
	movl	20(%r12,%rbx,4), %eax
	movl	8(%r12,%rbx,4), %ecx
	movl	12(%r12,%rbx,4), %r15d
	addl	%ecx, %ecx
	xorl	$-257, %ecx                     ## imm = 0xFEFF
	leal	(%rax,%rcx), %edx
	incl	%edx
	addl	%r15d, %r15d
	xorl	$256, %r15d                     ## imm = 0x100
	subl	24(%r12,%rbx,4), %r15d
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_report_rel
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_4:
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn_once                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETP_REPORT_ID_OFFSET,4,2       ## @ETP_REPORT_ID_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received a trackpoint report while no trackpoint device has been created. Please report upstream.\n"

	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.no_dead_strip	_elan_report_trackpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_report_trackpoint
_elan_report_trackpoint:                ; @elan_report_trackpoint
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ETP_REPORT_ID_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETP_REPORT_ID_OFFSET@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x1, x8, lsl #2
	add	x20, x8, #4
Lloh3:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w8, [x20]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
Lloh6:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [x20]
	and	w2, w8, #0x2
	mov	x0, x19
	bl	_input_report_key
Lloh9:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x20]
	and	w2, w8, #0x4
	mov	x0, x19
	bl	_input_report_key
	ldr	w8, [x20, #12]
	and	w8, w8, #0xf
	cmp	w8, #6
	b.ne	LBB0_3
; %bb.2:
	ldp	w8, w9, [x20, #4]
	lsl	w8, w8, #1
	eor	w8, w8, #0xfffffeff
	ldp	w10, w11, [x20, #16]
	add	w8, w10, w8
	add	w2, w8, #1
	lsl	w8, w9, #1
	eor	w8, w8, #0x100
	sub	w20, w8, w11
Lloh12:
	adrp	x8, _REL_X@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_input_report_rel
Lloh15:
	adrp	x8, _REL_Y@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_rel
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
LBB0_4:
	ldr	x0, [x0]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn_once
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ETP_REPORT_ID_OFFSET,4,2       ; @ETP_REPORT_ID_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received a trackpoint report while no trackpoint device has been created. Please report upstream.\n"

	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.no_dead_strip	_elan_report_trackpoint
.subsections_via_symbols
