	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi_process_msg_packet         ## -- Begin function hfi_process_msg_packet
	.p2align	4, 0x90
_hfi_process_msg_packet:                ## @hfi_process_msg_packet
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_handlers@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	movl	$32, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rbx
	movl	-8(%rbx,%r15), %r8d
	cmpl	(%r13), %r8d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$40, %r15
	cmpq	%rax, %r12
	jb	LBB0_2
LBB0_4:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	addq	$8, %r13
	jmp	LBB0_15
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.6:
	movq	-32(%rbx,%r15), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_9
## %bb.7:
	cmpq	-24(%rbx,%r15), %rdx
	jge	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_9:
	cmpq	$0, (%rbx,%r15)
	je	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_11:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%edx, %esi
	callq	_to_instance
	movq	%rax, %rsi
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movl	(%r14), %edx
	movl	-8(%rbx,%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_warn
	movl	8(%r14), %eax
	movq	_HFI_MSG_EVENT_NOTIFY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.13:
	xorl	%esi, %esi
LBB0_14:
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	*-16(%rbx,%r15)
LBB0_15:
	movl	(%r13), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movslq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_handlers,8,3                   ## @handlers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad packet size (%d should be %d, pkt type:%x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"no valid instance(pkt session_id:%x, pkt:%x)\n"

	.comm	_HFI_MSG_EVENT_NOTIFY,4,2       ## @HFI_MSG_EVENT_NOTIFY
L_.str.2:                               ## @.str.2
	.asciz	"got invalid session id:%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi_process_msg_packet         ; -- Begin function hfi_process_msg_packet
	.p2align	2
_hfi_process_msg_packet:                ; @hfi_process_msg_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x25, _handlers@GOTPAGE
Lloh1:
	ldr	x25, [x25, _handlers@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x24, #0
	mov	x26, #0
	add	x23, x19, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x25]
	add	x8, x22, x24
	ldr	w8, [x8, #24]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	mov	x0, x22
	bl	_ARRAY_SIZE
	add	x24, x24, #40
	cmp	x26, w0, uxtw
	b.lo	LBB0_2
LBB0_4:
	add	x23, x19, #8
	b	LBB0_16
LBB0_5:
	ldr	x2, [x19]
	cbz	x2, LBB0_9
; %bb.6:
	ldr	x9, [x22, x24]
	cmp	x2, x9
	b.ge	LBB0_9
; %bb.7:
	add	x10, x22, x24
	ldr	x10, [x10, #8]
	cmp	x2, x10
	b.ge	LBB0_9
; %bb.8:
	stp	x9, x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_9:
	add	x25, x22, x24
	ldr	x8, [x25, #32]
	cbz	x8, LBB0_11
LBB0_10:
	mov	x1, #0
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x2
	bl	_to_instance
	mov	x1, x0
	cbz	x0, LBB0_13
LBB0_12:
	ldr	x8, [x25, #16]
	mov	x0, x20
	mov	x2, x19
	blr	x8
	b	LBB0_16
LBB0_13:
	ldr	w2, [x19]
	add	x8, x22, x24
	ldr	w3, [x8, #24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _HFI_MSG_EVENT_NOTIFY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HFI_MSG_EVENT_NOTIFY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.14:
	ldrsw	x2, [x19]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x21
	bl	_dev_err
LBB0_16:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_handlers,8,3                   ; @handlers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad packet size (%d should be %d, pkt type:%x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"no valid instance(pkt session_id:%x, pkt:%x)\n"

	.comm	_HFI_MSG_EVENT_NOTIFY,4,2       ; @HFI_MSG_EVENT_NOTIFY
l_.str.2:                               ; @.str.2
	.asciz	"got invalid session id:%x\n"

.subsections_via_symbols
