	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_packet_check_v4
_elantech_packet_check_v4:              ## @elantech_packet_check_v4
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movzbl	3(%rcx), %esi
	cmpq	$0, 24(%rdx)
	je	LBB0_3
## %bb.1:
	movl	%esi, %eax
	andb	$15, %al
	cmpb	$6, %al
	jne	LBB0_3
## %bb.2:
	movq	_PACKET_TRACKPOINT@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_3:
	cmpq	$0, 16(%rdx)
	je	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	testb	$8, %sil
	jmp	LBB0_10
LBB0_5:
	movl	$983040, %eax                   ## imm = 0xF0000
	andl	(%rdx), %eax
	cmpl	$458752, %eax                   ## imm = 0x70000
	jne	LBB0_7
## %bb.6:
	movq	8(%rdx), %rax
	cmpl	$42, 4(%rax)
	je	LBB0_9
LBB0_7:
	testb	$8, (%rcx)
	jne	LBB0_8
LBB0_9:
	movl	%esi, %eax
	andb	$28, %al
	xorl	%edx, %edx
	cmpb	$16, %al
LBB0_10:
	sete	%dl
	movq	_PACKET_UNKNOWN@GOTPCREL(%rip), %rcx
	testl	%edx, %edx
	je	LBB0_13
## %bb.11:
	andl	$3, %esi
	cmpb	$3, %sil
	je	LBB0_13
## %bb.12:
	leaq	l_switch.table.elantech_packet_check_v4(%rip), %rax
	movq	(%rax,%rsi,8), %rcx
	jmp	LBB0_13
LBB0_8:
	movq	_PACKET_UNKNOWN@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_TRACKPOINT,4,2          ## @PACKET_TRACKPOINT
	.comm	_PACKET_UNKNOWN,4,2             ## @PACKET_UNKNOWN
	.comm	_PACKET_V4_STATUS,4,2           ## @PACKET_V4_STATUS
	.comm	_PACKET_V4_HEAD,4,2             ## @PACKET_V4_HEAD
	.comm	_PACKET_V4_MOTION,4,2           ## @PACKET_V4_MOTION
	.no_dead_strip	_elantech_packet_check_v4
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.elantech_packet_check_v4
l_switch.table.elantech_packet_check_v4:
	.quad	_PACKET_V4_STATUS
	.quad	_PACKET_V4_HEAD
	.quad	_PACKET_V4_MOTION

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elantech_packet_check_v4
_elantech_packet_check_v4:              ; @elantech_packet_check_v4
	.cfi_startproc
; %bb.0:
	ldp	x9, x10, [x0]
	ldrb	w8, [x9, #3]
	ldr	x11, [x10, #24]
	and	w12, w8, #0xf
	cmp	x11, #0
	ccmp	w12, #6, #0, ne
	b.eq	LBB0_3
; %bb.1:
	ldr	x11, [x10, #16]
	cbz	x11, LBB0_4
; %bb.2:
	mov	w9, #1
	bic	w9, w9, w8, lsr #3
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _PACKET_TRACKPOINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET_TRACKPOINT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	w11, [x10]
	and	w11, w11, #0xf0000
	cmp	w11, #112, lsl #12              ; =458752
	b.ne	LBB0_6
; %bb.5:
	ldr	x10, [x10, #8]
	ldr	w10, [x10, #4]
	cmp	w10, #42
	b.eq	LBB0_7
LBB0_6:
	ldrb	w9, [x9]
	tbnz	w9, #3, LBB0_9
LBB0_7:
	and	w9, w8, #0x1c
	cmp	w9, #16
	cset	w9, eq
LBB0_8:
	and	w8, w8, #0x3
	cmp	w9, #0
	ccmp	w8, #3, #4, ne
	b.ne	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _PACKET_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_10:
Lloh6:
	adrp	x9, l_switch.table.elantech_packet_check_v4@PAGE
Lloh7:
	add	x9, x9, l_switch.table.elantech_packet_check_v4@PAGEOFF
	ldr	x8, [x9, w8, uxtw #3]
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_TRACKPOINT,4,2          ; @PACKET_TRACKPOINT
	.comm	_PACKET_UNKNOWN,4,2             ; @PACKET_UNKNOWN
	.comm	_PACKET_V4_STATUS,4,2           ; @PACKET_V4_STATUS
	.comm	_PACKET_V4_HEAD,4,2             ; @PACKET_V4_HEAD
	.comm	_PACKET_V4_MOTION,4,2           ; @PACKET_V4_MOTION
	.no_dead_strip	_elantech_packet_check_v4
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.elantech_packet_check_v4
l_switch.table.elantech_packet_check_v4:
	.quad	_PACKET_V4_STATUS
	.quad	_PACKET_V4_HEAD
	.quad	_PACKET_V4_MOTION

.subsections_via_symbols
