	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen5_report_data_header_parse
_gen5_report_data_header_parse:         ## @gen5_report_data_header_parse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_PIP_RESP_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rsi,%rax,4), %rdi
	callq	_get_unaligned_le16
	movq	_PIP_RESP_REPORT_ID_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rbx,%rcx,4), %ecx
	leal	-130(%rcx), %edx
	cmpl	$3, %edx
	jae	LBB0_1
## %bb.7:
	movq	_PIP_BTN_REPORT_HEAD_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_6
## %bb.8:
	movq	_PIP_BTN_REPORT_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_10
	jmp	LBB0_6
LBB0_1:
	cmpl	$128, %ecx
	je	LBB0_9
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_6
## %bb.3:
	movq	_PIP_TOUCH_REPORT_HEAD_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_6
## %bb.4:
	movq	_PIP_TOUCH_REPORT_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_6
LBB0_10:
	movq	_CYAPA_GEN5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_CYAPA_STATE_GEN5_APP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_PIP_WAKEUP_EVENT_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ## @PIP_RESP_LENGTH_OFFSET
	.comm	_PIP_RESP_REPORT_ID_OFFSET,8,3  ## @PIP_RESP_REPORT_ID_OFFSET
	.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
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	.comm	_PIP_WAKEUP_EVENT_SIZE,4,2      ## @PIP_WAKEUP_EVENT_SIZE
	.comm	_CYAPA_GEN5,4,2                 ## @CYAPA_GEN5
	.comm	_CYAPA_STATE_GEN5_APP,4,2       ## @CYAPA_STATE_GEN5_APP
	.no_dead_strip	_gen5_report_data_header_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen5_report_data_header_parse
_gen5_report_data_header_parse:         ; @gen5_report_data_header_parse
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PIP_RESP_LENGTH_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIP_RESP_LENGTH_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x1, x8, lsl #2
	bl	_get_unaligned_le16
Lloh3:
	adrp	x8, _PIP_RESP_REPORT_ID_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIP_RESP_REPORT_ID_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x20, x8, lsl #2]
	sub	w9, w8, #130
	cmp	w9, #3
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _PIP_BTN_REPORT_HEAD_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PIP_BTN_REPORT_HEAD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PIP_BTN_REPORT_MAX_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PIP_BTN_REPORT_MAX_SIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _PIP_TOUCH_REPORT_HEAD_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PIP_TOUCH_REPORT_HEAD_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PIP_TOUCH_REPORT_MAX_SIZE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PIP_TOUCH_REPORT_MAX_SIZE@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.le	LBB0_8
LBB0_6:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x8, _PIP_WAKEUP_EVENT_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PIP_WAKEUP_EVENT_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_8:
	mov	w0, #0
Lloh22:
	adrp	x8, _CYAPA_GEN5@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CYAPA_GEN5@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _CYAPA_STATE_GEN5_APP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CYAPA_STATE_GEN5_APP@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ; @PIP_RESP_LENGTH_OFFSET
	.comm	_PIP_RESP_REPORT_ID_OFFSET,8,3  ; @PIP_RESP_REPORT_ID_OFFSET
	.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
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
	.comm	_PIP_WAKEUP_EVENT_SIZE,4,2      ; @PIP_WAKEUP_EVENT_SIZE
	.comm	_CYAPA_GEN5,4,2                 ; @CYAPA_GEN5
	.comm	_CYAPA_STATE_GEN5_APP,4,2       ; @CYAPA_STATE_GEN5_APP
	.no_dead_strip	_gen5_report_data_header_parse
.subsections_via_symbols
