	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_pip_event_process
_cyapa_pip_event_process:               ## @cyapa_pip_event_process
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	_PIP_RESP_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$3, %rdi
	addq	(%rsi), %rdi
	callq	_get_unaligned_le16
	movq	_PIP_RESP_LENGTH_SIZE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	je	LBB0_29
## %bb.1:
	movq	(%rbx), %rcx
	movq	_PIP_RESP_REPORT_ID_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdx
	movq	_PIP_WAKEUP_EVENT_REPORT_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_4
## %bb.2:
	movq	_PIP_WAKEUP_EVENT_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_pm_runtime_get_sync
	movq	%r15, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r15, %rdi
	callq	_pm_runtime_put_sync_autosuspend
	jmp	LBB0_29
LBB0_4:
	movq	_PIP_TOUCH_REPORT_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_PIP_BTN_REPORT_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_GEN5_OLD_PUSH_BTN_REPORT_ID@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	_PIP_PUSH_BTN_REPORT_ID@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r10
	movq	_PIP_PROXIMITY_REPORT_ID@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r8
	cmpq	%r9, %rdx
	je	LBB0_10
## %bb.5:
	cmpq	%rcx, %rdx
	je	LBB0_10
## %bb.6:
	cmpq	%rsi, %rdx
	je	LBB0_10
## %bb.7:
	cmpq	%r10, %rdx
	je	LBB0_10
## %bb.8:
	cmpq	%r8, %rdx
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_29
LBB0_10:
	cmpq	%r9, %rdx
	jne	LBB0_15
## %bb.11:
	movq	_PIP_TOUCH_REPORT_HEAD_SIZE@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	jb	LBB0_13
## %bb.12:
	movq	_PIP_TOUCH_REPORT_MAX_SIZE@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	ja	LBB0_13
LBB0_15:
	cmpq	%rcx, %rdx
	je	LBB0_18
## %bb.16:
	cmpq	%rsi, %rdx
	je	LBB0_18
## %bb.17:
	cmpq	%r10, %rdx
	jne	LBB0_21
LBB0_18:
	movq	_PIP_BTN_REPORT_HEAD_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_20
## %bb.19:
	movq	_PIP_BTN_REPORT_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_20
LBB0_21:
	cmpq	%r8, %rdx
	jne	LBB0_24
## %bb.22:
	movq	_PIP_PROXIMITY_REPORT_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_24:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	cmpq	%r9, %rdx
	jne	LBB0_26
## %bb.25:
	callq	_cyapa_pip_report_touches
	jmp	LBB0_29
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_20:
	leaq	L_.str.2(%rip), %rsi
LBB0_14:
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_29:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	cmpq	%r8, %rdx
	jne	LBB0_28
## %bb.27:
	callq	_cyapa_pip_report_proximity
	jmp	LBB0_29
LBB0_28:
	callq	_cyapa_pip_report_buttons
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ## @PIP_RESP_LENGTH_OFFSET
	.comm	_PIP_RESP_LENGTH_SIZE,4,2       ## @PIP_RESP_LENGTH_SIZE
	.comm	_PIP_RESP_REPORT_ID_OFFSET,8,3  ## @PIP_RESP_REPORT_ID_OFFSET
	.comm	_PIP_WAKEUP_EVENT_REPORT_ID,8,3 ## @PIP_WAKEUP_EVENT_REPORT_ID
	.comm	_PIP_WAKEUP_EVENT_SIZE,4,2      ## @PIP_WAKEUP_EVENT_SIZE
	.comm	_PIP_TOUCH_REPORT_ID,8,3        ## @PIP_TOUCH_REPORT_ID
	.comm	_PIP_BTN_REPORT_ID,8,3          ## @PIP_BTN_REPORT_ID
	.comm	_GEN5_OLD_PUSH_BTN_REPORT_ID,8,3 ## @GEN5_OLD_PUSH_BTN_REPORT_ID
	.comm	_PIP_PUSH_BTN_REPORT_ID,8,3     ## @PIP_PUSH_BTN_REPORT_ID
	.comm	_PIP_PROXIMITY_REPORT_ID,8,3    ## @PIP_PROXIMITY_REPORT_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid report_id=0x%02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIP_TOUCH_REPORT_HEAD_SIZE,4,2 ## @PIP_TOUCH_REPORT_HEAD_SIZE
	.comm	_PIP_TOUCH_REPORT_MAX_SIZE,4,2  ## @PIP_TOUCH_REPORT_MAX_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"invalid touch packet length=%d\n"

	.comm	_PIP_BTN_REPORT_HEAD_SIZE,4,2   ## @PIP_BTN_REPORT_HEAD_SIZE
	.comm	_PIP_BTN_REPORT_MAX_SIZE,4,2    ## @PIP_BTN_REPORT_MAX_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"invalid button packet length=%d\n"

	.comm	_PIP_PROXIMITY_REPORT_SIZE,4,2  ## @PIP_PROXIMITY_REPORT_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"invalid proximity data, length=%d\n"

	.no_dead_strip	_cyapa_pip_event_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_pip_event_process
_cyapa_pip_event_process:               ; @cyapa_pip_event_process
	.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, x1
	mov	x21, x0
	ldr	x19, [x0]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _PIP_RESP_LENGTH_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIP_RESP_LENGTH_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #3
	bl	_get_unaligned_le16
Lloh3:
	adrp	x9, _PIP_RESP_LENGTH_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PIP_RESP_LENGTH_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w9
	b.eq	LBB0_18
; %bb.1:
	mov	x8, x0
Lloh6:
	adrp	x9, _PIP_RESP_REPORT_ID_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIP_RESP_REPORT_ID_OFFSET@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh8:
	ldr	x9, [x9]
	ldr	x2, [x10, x9, lsl #3]
Lloh9:
	adrp	x9, _PIP_WAKEUP_EVENT_REPORT_ID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PIP_WAKEUP_EVENT_REPORT_ID@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _PIP_WAKEUP_EVENT_SIZE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PIP_WAKEUP_EVENT_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x2, x9
	ccmp	w0, w10, #0, eq
	b.eq	LBB0_12
; %bb.2:
Lloh15:
	adrp	x9, _PIP_TOUCH_REPORT_ID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PIP_TOUCH_REPORT_ID@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _PIP_BTN_REPORT_ID@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PIP_BTN_REPORT_ID@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x10]
Lloh21:
	adrp	x10, _GEN5_OLD_PUSH_BTN_REPORT_ID@GOTPAGE
Lloh22:
	ldr	x10, [x10, _GEN5_OLD_PUSH_BTN_REPORT_ID@GOTPAGEOFF]
Lloh23:
	ldr	x12, [x10]
Lloh24:
	adrp	x10, _PIP_PUSH_BTN_REPORT_ID@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PIP_PUSH_BTN_REPORT_ID@GOTPAGEOFF]
Lloh26:
	ldr	x13, [x10]
Lloh27:
	adrp	x10, _PIP_PROXIMITY_REPORT_ID@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PIP_PROXIMITY_REPORT_ID@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x2, x9
	ccmp	x2, x11, #4, ne
	ccmp	x2, x12, #4, ne
	ccmp	x2, x13, #4, ne
	ccmp	x2, x10, #4, ne
	b.ne	LBB0_13
; %bb.3:
	cmp	x2, x9
	b.ne	LBB0_6
; %bb.4:
Lloh30:
	adrp	x14, _PIP_TOUCH_REPORT_HEAD_SIZE@GOTPAGE
Lloh31:
	ldr	x14, [x14, _PIP_TOUCH_REPORT_HEAD_SIZE@GOTPAGEOFF]
Lloh32:
	ldr	w14, [x14]
	cmp	w8, w14
	b.lo	LBB0_15
; %bb.5:
Lloh33:
	adrp	x14, _PIP_TOUCH_REPORT_MAX_SIZE@GOTPAGE
Lloh34:
	ldr	x14, [x14, _PIP_TOUCH_REPORT_MAX_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w14, [x14]
	cmp	w8, w14
	b.hi	LBB0_15
LBB0_6:
	cmp	x2, x11
	ccmp	x2, x12, #4, ne
	ccmp	x2, x13, #4, ne
	b.ne	LBB0_9
; %bb.7:
Lloh36:
	adrp	x11, _PIP_BTN_REPORT_HEAD_SIZE@GOTPAGE
Lloh37:
	ldr	x11, [x11, _PIP_BTN_REPORT_HEAD_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w11, [x11]
	cmp	w8, w11
	b.lo	LBB0_16
; %bb.8:
Lloh39:
	adrp	x11, _PIP_BTN_REPORT_MAX_SIZE@GOTPAGE
Lloh40:
	ldr	x11, [x11, _PIP_BTN_REPORT_MAX_SIZE@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x11]
	cmp	w8, w11
	b.hi	LBB0_16
LBB0_9:
Lloh42:
	adrp	x11, _PIP_PROXIMITY_REPORT_SIZE@GOTPAGE
Lloh43:
	ldr	x11, [x11, _PIP_PROXIMITY_REPORT_SIZE@GOTPAGEOFF]
Lloh44:
	ldr	w11, [x11]
	cmp	x2, x10
	ccmp	w8, w11, #4, eq
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	cmp	x2, x9
	b.ne	LBB0_20
; %bb.11:
	bl	_cyapa_pip_report_touches
	b	LBB0_18
LBB0_12:
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_sync_autosuspend
	b	LBB0_18
LBB0_13:
Lloh45:
	adrp	x1, l_.str@PAGE
Lloh46:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh47:
	adrp	x8, _EINVAL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_14:
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh52:
	adrp	x1, l_.str.1@PAGE
Lloh53:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh54:
	adrp	x1, l_.str.2@PAGE
Lloh55:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	mov	x0, x19
	mov	x2, x8
	bl	_dev_err
LBB0_18:
	mov	w0, #0
LBB0_19:
	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
LBB0_20:
	cmp	x2, x10
	b.ne	LBB0_22
; %bb.21:
	bl	_cyapa_pip_report_proximity
	b	LBB0_18
LBB0_22:
	bl	_cyapa_pip_report_buttons
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ; @PIP_RESP_LENGTH_OFFSET
	.comm	_PIP_RESP_LENGTH_SIZE,4,2       ; @PIP_RESP_LENGTH_SIZE
	.comm	_PIP_RESP_REPORT_ID_OFFSET,8,3  ; @PIP_RESP_REPORT_ID_OFFSET
	.comm	_PIP_WAKEUP_EVENT_REPORT_ID,8,3 ; @PIP_WAKEUP_EVENT_REPORT_ID
	.comm	_PIP_WAKEUP_EVENT_SIZE,4,2      ; @PIP_WAKEUP_EVENT_SIZE
	.comm	_PIP_TOUCH_REPORT_ID,8,3        ; @PIP_TOUCH_REPORT_ID
	.comm	_PIP_BTN_REPORT_ID,8,3          ; @PIP_BTN_REPORT_ID
	.comm	_GEN5_OLD_PUSH_BTN_REPORT_ID,8,3 ; @GEN5_OLD_PUSH_BTN_REPORT_ID
	.comm	_PIP_PUSH_BTN_REPORT_ID,8,3     ; @PIP_PUSH_BTN_REPORT_ID
	.comm	_PIP_PROXIMITY_REPORT_ID,8,3    ; @PIP_PROXIMITY_REPORT_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid report_id=0x%02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIP_TOUCH_REPORT_HEAD_SIZE,4,2 ; @PIP_TOUCH_REPORT_HEAD_SIZE
	.comm	_PIP_TOUCH_REPORT_MAX_SIZE,4,2  ; @PIP_TOUCH_REPORT_MAX_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"invalid touch packet length=%d\n"

	.comm	_PIP_BTN_REPORT_HEAD_SIZE,4,2   ; @PIP_BTN_REPORT_HEAD_SIZE
	.comm	_PIP_BTN_REPORT_MAX_SIZE,4,2    ; @PIP_BTN_REPORT_MAX_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"invalid button packet length=%d\n"

	.comm	_PIP_PROXIMITY_REPORT_SIZE,4,2  ; @PIP_PROXIMITY_REPORT_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"invalid proximity data, length=%d\n"

	.no_dead_strip	_cyapa_pip_event_process
.subsections_via_symbols
