	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_mgmt_msg_handler
_nic_mgmt_msg_handler:                  ## @nic_mgmt_msg_handler
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	_HINIC_MGMT_MSG_CMD_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	ja	LBB0_7
## %bb.1:
	movq	_HINIC_MGMT_MSG_CMD_MAX@GOTPCREL(%rip), %rsi
	cmpq	%r12, (%rsi)
	jbe	LBB0_7
## %bb.2:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r12, %rbx
	subq	%rax, %rbx
	movq	(%rdi), %r13
	shlq	$4, %rbx
	leaq	(%rbx,%r13), %r14
	movq	_HINIC_CB_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HINIC_CB_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%esi, %edx
	movq	%r14, %rdi
	callq	_cmpxchg
	movq	_HINIC_CB_ENABLED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	movq	8(%r13,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	4(%r13,%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	*%rax
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_dev_err
LBB0_6:
	movq	_HINIC_CB_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_MGMT_MSG_CMD_BASE,8,3    ## @HINIC_MGMT_MSG_CMD_BASE
	.comm	_HINIC_MGMT_MSG_CMD_MAX,8,3     ## @HINIC_MGMT_MSG_CMD_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown L2NIC event, cmd = %d\n"

	.comm	_HINIC_CB_ENABLED,4,2           ## @HINIC_CB_ENABLED
	.comm	_HINIC_CB_RUNNING,4,2           ## @HINIC_CB_RUNNING
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled NIC Event %d\n"

	.no_dead_strip	_nic_mgmt_msg_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_mgmt_msg_handler
_nic_mgmt_msg_handler:                  ; @nic_mgmt_msg_handler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	ldr	x8, [x0, #8]
	ldr	x25, [x8]
Lloh0:
	adrp	x8, _HINIC_MGMT_MSG_CMD_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_MGMT_MSG_CMD_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HINIC_MGMT_MSG_CMD_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HINIC_MGMT_MSG_CMD_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #0, ls
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	mov	x2, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dev_err
LBB0_2:
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	sub	x27, x21, x8
	ldr	x28, [x0]
Lloh8:
	adrp	x26, _HINIC_CB_ENABLED@GOTPAGE
Lloh9:
	ldr	x26, [x26, _HINIC_CB_ENABLED@GOTPAGEOFF]
	add	x24, x28, x27, lsl #4
	ldr	w1, [x26]
Lloh10:
	adrp	x8, _HINIC_CB_RUNNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HINIC_CB_RUNNING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w2, w8, w1
	mov	x0, x24
	bl	_cmpxchg
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_5
; %bb.4:
	add	x9, x28, x27, lsl #4
	ldr	w0, [x9, #4]
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	blr	x8
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x25
	mov	x2, x21
	bl	_dev_err
LBB0_6:
Lloh15:
	adrp	x8, _HINIC_CB_RUNNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HINIC_CB_RUNNING@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x24]
	bic	w8, w9, w8
	str	w8, [x24]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_MGMT_MSG_CMD_BASE,8,3    ; @HINIC_MGMT_MSG_CMD_BASE
	.comm	_HINIC_MGMT_MSG_CMD_MAX,8,3     ; @HINIC_MGMT_MSG_CMD_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown L2NIC event, cmd = %d\n"

	.comm	_HINIC_CB_ENABLED,4,2           ; @HINIC_CB_ENABLED
	.comm	_HINIC_CB_RUNNING,4,2           ; @HINIC_CB_RUNNING
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled NIC Event %d\n"

	.no_dead_strip	_nic_mgmt_msg_handler
.subsections_via_symbols
