	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_raw_event
_elan_raw_event:                        ## @elan_raw_event
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_is_not_elan_touchpad
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.1:
	movq	(%r12), %rcx
	movq	_ELAN_SINGLE_FINGER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	movq	_ELAN_MT_FIRST_FINGER@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	sete	%bl
	orb	%dl, %bl
	movq	_ELAN_MT_SECOND_FINGER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	orb	%bl, %dl
	cmpb	$1, %dl
	jne	LBB0_4
## %bb.2:
	movq	_ELAN_INPUT_REPORT_SIZE@GOTPCREL(%rip), %rdx
	cmpl	%r15d, (%rdx)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_elan_usb_report_input
	jmp	LBB0_7
LBB0_4:
	movq	_ELAN_MT_I2C@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.5:
	movq	_ELAN_I2C_REPORT_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_elan_i2c_report_input
LBB0_7:
	movl	$1, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELAN_SINGLE_FINGER,8,3         ## @ELAN_SINGLE_FINGER
	.comm	_ELAN_MT_FIRST_FINGER,8,3       ## @ELAN_MT_FIRST_FINGER
	.comm	_ELAN_MT_SECOND_FINGER,8,3      ## @ELAN_MT_SECOND_FINGER
	.comm	_ELAN_INPUT_REPORT_SIZE,4,2     ## @ELAN_INPUT_REPORT_SIZE
	.comm	_ELAN_MT_I2C,8,3                ## @ELAN_MT_I2C
	.comm	_ELAN_I2C_REPORT_SIZE,4,2       ## @ELAN_I2C_REPORT_SIZE
	.no_dead_strip	_elan_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_raw_event
_elan_raw_event:                        ; @elan_raw_event
	.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	x20, x3
	mov	x19, x2
	mov	x22, x0
	bl	_hid_get_drvdata
	mov	x21, x0
	mov	x0, x22
	bl	_is_not_elan_touchpad
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ELAN_SINGLE_FINGER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELAN_SINGLE_FINGER@GOTPAGEOFF]
Lloh2:
	adrp	x10, _ELAN_MT_FIRST_FINGER@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ELAN_MT_FIRST_FINGER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _ELAN_MT_SECOND_FINGER@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ELAN_MT_SECOND_FINGER@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	ccmp	x8, x9, #4, ne
Lloh9:
	adrp	x9, _ELAN_INPUT_REPORT_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ELAN_INPUT_REPORT_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ccmp	w9, w20, #0, eq
	b.eq	LBB0_5
; %bb.3:
Lloh12:
	adrp	x9, _ELAN_MT_I2C@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ELAN_MT_I2C@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _ELAN_I2C_REPORT_SIZE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ELAN_I2C_REPORT_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, w20, #0, eq
	b.ne	LBB0_1
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	bl	_elan_i2c_report_input
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	bl	_elan_usb_report_input
LBB0_6:
	mov	w0, #1
LBB0_7:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ELAN_SINGLE_FINGER,8,3         ; @ELAN_SINGLE_FINGER
	.comm	_ELAN_MT_FIRST_FINGER,8,3       ; @ELAN_MT_FIRST_FINGER
	.comm	_ELAN_MT_SECOND_FINGER,8,3      ; @ELAN_MT_SECOND_FINGER
	.comm	_ELAN_INPUT_REPORT_SIZE,4,2     ; @ELAN_INPUT_REPORT_SIZE
	.comm	_ELAN_MT_I2C,8,3                ; @ELAN_MT_I2C
	.comm	_ELAN_I2C_REPORT_SIZE,4,2       ; @ELAN_I2C_REPORT_SIZE
	.no_dead_strip	_elan_raw_event
.subsections_via_symbols
