	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_report_trackpoint
_elantech_report_trackpoint:            ## @elantech_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	%rdi, %r15
	movq	(%rdi), %r12
	movq	8(%rdi), %rbx
	movq	8(%rbx), %r14
	movq	%r12, %rdi
	callq	_get_unaligned_le32
	andl	$-8, %eax
	cmpl	$645922831, %eax                ## imm = 0x2680000F
	jg	LBB0_4
## %bb.1:
	cmpl	$100663344, %eax                ## imm = 0x6000030
	je	LBB0_3
## %bb.2:
	cmpl	$369131552, %eax                ## imm = 0x16008020
	je	LBB0_3
	jmp	LBB0_6
LBB0_4:
	cmpl	$914391040, %eax                ## imm = 0x36808000
	je	LBB0_3
## %bb.5:
	cmpl	$645922832, %eax                ## imm = 0x26800010
	jne	LBB0_6
LBB0_3:
	movzbl	4(%r12), %r15d
	movzbl	1(%r12), %eax
	xorl	$128, %eax
	addl	%eax, %eax
	subl	%eax, %r15d
	movzbl	2(%r12), %ebx
	xorl	$128, %ebx
	addl	%ebx, %ebx
	movzbl	5(%r12), %eax
	subl	%eax, %ebx
	movzbl	(%r12), %esi
	movq	%r14, %rdi
	callq	_psmouse_report_standard_buttons
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_input_report_rel
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_6:
	cmpl	$1, (%rbx)
	jne	LBB0_7
## %bb.8:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elantech_packet_dump           ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.no_dead_strip	_elantech_report_trackpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elantech_report_trackpoint
_elantech_report_trackpoint:            ; @elantech_report_trackpoint
	.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
	mov	x21, x0
	ldp	x20, x22, [x0]
	ldr	x19, [x22, #8]
	mov	x0, x20
	bl	_get_unaligned_le32
	and	w8, w0, #0xfffffff8
	mov	w9, #15
	movk	w9, #9856, lsl #16
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.1:
	mov	w9, #48
	movk	w9, #1536, lsl #16
	cmp	w8, w9
	mov	w9, #32800
	movk	w9, #5632, lsl #16
	ccmp	w8, w9, #4, ne
	b.eq	LBB0_5
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	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	_elantech_packet_dump
LBB0_4:
	mov	w9, #32768
	movk	w9, #13952, lsl #16
	cmp	w8, w9
	mov	w9, #16
	movk	w9, #9856, lsl #16
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_2
LBB0_5:
	ldrb	w8, [x20, #4]
	ldrb	w9, [x20, #1]
	eor	w9, w9, #0x80
	sub	w21, w8, w9, lsl #1
	ldrb	w8, [x20, #2]
	eor	w8, w8, #0x80
	lsl	w8, w8, #1
	ldrb	w9, [x20, #5]
	sub	w22, w8, w9
	ldrb	w1, [x20]
	mov	x0, x19
	bl	_psmouse_report_standard_buttons
Lloh0:
	adrp	x8, _REL_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_rel
Lloh3:
	adrp	x8, _REL_Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_rel
	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
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.no_dead_strip	_elantech_report_trackpoint
.subsections_via_symbols
