	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alps_process_packet_v4
_alps_process_packet_v4:                ## @alps_process_packet_v4
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	testb	$64, 6(%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$3, (%r15)
	setge	%dil
	jmp	LBB0_3
LBB0_2:
	movl	$0, (%r15)
	xorl	%edi, %edi
LBB0_3:
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movslq	(%r15), %rax
	movb	6(%rbx), %cl
	movq	8(%r15), %rdx
	movb	%cl, (%rdx,%rax,2)
	addq	%rax, %rax
	movb	7(%rbx), %cl
	movq	8(%r15), %rdx
	cltq
	movb	%cl, 1(%rdx,%rax)
	movzbl	4(%rbx), %eax
	andl	$1, %eax
	movl	%eax, 16(%r15)
	movzbl	4(%rbx), %eax
	shrl	%eax
	andl	$1, %eax
	movl	%eax, 20(%r15)
	movb	(%rbx), %al
	movb	1(%rbx), %cl
	shlb	$4, %cl
	movb	3(%rbx), %dl
	shrb	$2, %dl
	andb	$12, %dl
	orb	%cl, %dl
	shrb	$4, %al
	andb	$3, %al
	orb	%dl, %al
	movb	%al, 40(%r15)
	movb	2(%rbx), %al
	movb	3(%rbx), %cl
	shlb	$4, %al
	andb	$15, %cl
	orb	%al, %cl
	movb	%cl, 41(%r15)
	movb	5(%rbx), %al
	andb	$127, %al
	movb	%al, 24(%r15)
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	cmpl	$1, %eax
	jle	LBB0_5
## %bb.6:
	leaq	16(%r15), %rsi
	movl	$0, (%r15)
	movq	8(%r15), %rax
	movzbl	2(%rax), %ecx
	andl	$31, %ecx
	shll	$10, %ecx
	movzbl	3(%rax), %edx
	andl	$96, %edx
	leal	(%rcx,%rdx,8), %ecx
	movb	(%rax), %dl
	shlb	$2, %dl
	movzbl	%dl, %edx
	orl	%ecx, %edx
	movzbl	1(%rax), %ecx
	shrl	$5, %ecx
	andl	$3, %ecx
	orl	%edx, %ecx
	movl	%ecx, 28(%r15)
	movzbl	5(%rax), %ecx
	andl	$1, %ecx
	shll	$10, %ecx
	movzbl	3(%rax), %edx
	andl	$31, %edx
	shll	$5, %edx
	orl	%ecx, %edx
	movzbl	1(%rax), %eax
	andl	$31, %eax
	orl	%edx, %eax
	movl	%eax, 32(%r15)
	movq	%r15, %rdi
	callq	_alps_process_bitmap
	movl	%eax, %esi
	movl	%eax, 36(%r15)
	jmp	LBB0_7
LBB0_5:
	movl	36(%r15), %esi
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alps_report_semi_mt_data       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alps_process_packet_v4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alps_process_packet_v4
_alps_process_packet_v4:                ; @alps_process_packet_v4
	.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	x19, x0
	ldp	x21, x20, [x0]
	ldrb	w8, [x21, #6]
	tbnz	w8, #6, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #2
	cset	w0, gt
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_4
LBB0_2:
	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_3:
	mov	w0, #0
	str	wzr, [x20]
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_2
LBB0_4:
	ldrsw	x8, [x20]
	lsl	x8, x8, #1
	ldrb	w9, [x21, #6]
	ldr	x10, [x20, #8]
	strb	w9, [x10, x8]
	ldrb	w9, [x21, #7]
	ldr	x10, [x20, #8]
	add	x8, x10, w8, sxtw
	strb	w9, [x8, #1]
	ldrb	w8, [x21, #4]
	and	w8, w8, #0x1
	str	w8, [x20, #16]
	ldrb	w8, [x21, #4]
	ubfx	w8, w8, #1, #1
	str	w8, [x20, #20]
	ldrb	w8, [x21, #1]
	lsl	w8, w8, #4
	ldrb	w9, [x21, #3]
	bfxil	w8, w9, #2, #4
	ldrb	w9, [x21]
	bfxil	w8, w9, #4, #2
	strb	w8, [x20, #40]
	ldrb	w8, [x21, #2]
	ldrb	w9, [x21, #3]
	bfi	w9, w8, #4, #28
	strb	w9, [x20, #41]
	ldrb	w8, [x21, #5]
	and	w8, w8, #0x7f
	strb	w8, [x20, #24]
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	cmp	w8, #1
	b.le	LBB0_6
; %bb.5:
	add	x1, x20, #16
	str	wzr, [x20]
	ldr	x8, [x20, #8]
	ldrb	w9, [x8, #2]
	and	w9, w9, #0x1f
	ldrb	w10, [x8, #3]
	and	w10, w10, #0x60
	lsl	w10, w10, #3
	bfi	w10, w9, #10, #5
	ldrb	w9, [x8]
	bfi	w10, w9, #2, #6
	ldrb	w9, [x8, #1]
	bfxil	w10, w9, #5, #2
	str	w10, [x20, #28]
	ldrb	w9, [x8, #5]
	and	w9, w9, #0x1
	lsl	w9, w9, #10
	ldrb	w10, [x8, #3]
	and	w10, w10, #0x1f
	bfi	w9, w10, #5, #5
	ldrb	w8, [x8, #1]
	bfxil	w9, w8, #0, #5
	str	w9, [x20, #32]
	mov	x0, x20
	bl	_alps_process_bitmap
	mov	x1, x0
	str	w0, [x20, #36]
	b	LBB0_7
LBB0_6:
	ldr	w1, [x20, #36]
LBB0_7:
	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	_alps_report_semi_mt_data
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alps_process_packet_v4
.subsections_via_symbols
