	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hv_kbd_handle_received_packet
_hv_kbd_handle_received_packet:         ## @hv_kbd_handle_received_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %r8d
	movl	(%rsi), %edx
	cmpl	$129, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_4
## %bb.2:
	movl	4(%rsi), %eax
	shll	$3, %eax
	subl	%eax, %r8d
	cmpl	$4, %r8d
	ja	LBB0_3
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movl	$128, %edx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_5:
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_3:
	cltq
	addq	%rax, %rsi
	movl	%r8d, %edx
	popq	%rbp
	jmp	_hv_kbd_on_receive              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal packet (type: %d, tid: %llx, size: %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"unhandled packet type %d, tid %llx len %d\n"

	.no_dead_strip	_hv_kbd_handle_received_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hv_kbd_handle_received_packet
_hv_kbd_handle_received_packet:         ; @hv_kbd_handle_received_packet
	.cfi_startproc
; %bb.0:
	mov	x4, x2
	ldr	w2, [x1]
	cmp	w2, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x1, #4]
	lsl	w8, w8, #3
	sub	w4, w4, w8
	cmp	w4, #4
	b.hi	LBB0_6
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #128
	b	_dev_err
LBB0_4:
	ret
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	_dev_err
LBB0_6:
	add	x1, x1, w8, sxtw
	mov	x2, x4
	b	_hv_kbd_on_receive
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal packet (type: %d, tid: %llx, size: %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"unhandled packet type %d, tid %llx len %d\n"

	.no_dead_strip	_hv_kbd_handle_received_packet
.subsections_via_symbols
