	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_netdev_event
_cnic_netdev_event:                     ## @cnic_netdev_event
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rdi
	movq	%rsi, %r14
	callq	_netdev_notifier_info_to_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cnic_from_netdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %r15
	movq	_NETDEV_UNREGISTER@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	callq	_cnic_ulp_exit
	jmp	LBB0_6
LBB0_3:
	movq	_NETDEV_REGISTER@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_12
## %bb.4:
	movq	%rbx, %rdi
	callq	_is_cnic_dev
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_cnic_hold
	movq	(%r12), %r15
	movq	%r12, %rdi
	callq	_cnic_ulp_init
LBB0_6:
	movq	_NETDEV_UP@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_10
## %bb.7:
	movq	%r12, %rdi
	callq	_cnic_register_netdev
	testq	%rax, %rax
	jne	LBB0_17
## %bb.8:
	movq	%r12, %rdi
	callq	_cnic_start_hw
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_cnic_ulp_start
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_cnic_rcv_netevent
	movq	_NETDEV_GOING_DOWN@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_15
## %bb.11:
	movq	%r12, %rdi
	callq	_cnic_ulp_stop
	movq	%r12, %rdi
	callq	_cnic_stop_hw
	movq	%r12, %rdi
	callq	_cnic_unregister_netdev
	jmp	LBB0_17
LBB0_12:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cnic_get_vlan
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.13:
	movl	%eax, %r15d
	callq	_cnic_from_netdev
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	%rax, %rbx
	movq	_VLAN_CFI_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_cnic_rcv_netevent
	movq	%rbx, %rdi
	jmp	LBB0_18
LBB0_15:
	movq	_NETDEV_UNREGISTER@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_17
## %bb.16:
	movq	_cnic_dev_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_write_lock
	leaq	8(%r12), %rdi
	callq	_list_del_init
	movq	%rbx, %rdi
	callq	_write_unlock
	movq	%r12, %rdi
	callq	_cnic_put
	movq	%r12, %rdi
	callq	_cnic_free_dev
	jmp	LBB0_19
LBB0_17:
	movq	%r12, %rdi
LBB0_18:
	callq	_cnic_put
LBB0_19:
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_REGISTER,8,3            ## @NETDEV_REGISTER
	.comm	_NETDEV_UNREGISTER,8,3          ## @NETDEV_UNREGISTER
	.comm	_NETDEV_UP,8,3                  ## @NETDEV_UP
	.comm	_NETDEV_GOING_DOWN,8,3          ## @NETDEV_GOING_DOWN
	.comm	_cnic_dev_lock,4,2              ## @cnic_dev_lock
	.comm	_VLAN_CFI_MASK,4,2              ## @VLAN_CFI_MASK
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.no_dead_strip	_cnic_netdev_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_netdev_event
_cnic_netdev_event:                     ; @cnic_netdev_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x0, x2
	mov	x19, x1
	bl	_netdev_notifier_info_to_dev
	mov	x21, x0
	bl	_cnic_from_netdev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _NETDEV_UNREGISTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_UNREGISTER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_cnic_ulp_exit
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _NETDEV_REGISTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETDEV_REGISTER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x21
	bl	_is_cnic_dev
	cbz	x0, LBB0_12
; %bb.5:
	mov	x20, x0
	bl	_cnic_hold
	ldr	x21, [x20]
	mov	x0, x20
	bl	_cnic_ulp_init
LBB0_6:
Lloh6:
	adrp	x8, _NETDEV_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETDEV_UP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_cnic_register_netdev
	cbnz	x0, LBB0_17
; %bb.8:
	mov	x0, x20
	bl	_cnic_start_hw
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_cnic_ulp_start
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	bl	_cnic_rcv_netevent
Lloh9:
	adrp	x8, _NETDEV_GOING_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETDEV_GOING_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_15
; %bb.11:
	mov	x0, x20
	bl	_cnic_ulp_stop
	mov	x0, x20
	bl	_cnic_stop_hw
	mov	x0, x20
	bl	_cnic_unregister_netdev
	b	LBB0_17
LBB0_12:
	add	x1, sp, #8
	mov	x0, x21
	bl	_cnic_get_vlan
	mov	x20, x0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_19
; %bb.13:
	bl	_cnic_from_netdev
	cbz	x0, LBB0_19
; %bb.14:
	mov	x21, x0
Lloh12:
	adrp	x8, _VLAN_CFI_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VLAN_CFI_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w2, w8, w20
	ldr	x0, [x0]
	mov	x1, x19
	bl	_cnic_rcv_netevent
	mov	x0, x21
	b	LBB0_18
LBB0_15:
Lloh15:
	adrp	x8, _NETDEV_UNREGISTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETDEV_UNREGISTER@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_17
; %bb.16:
Lloh18:
	adrp	x19, _cnic_dev_lock@GOTPAGE
Lloh19:
	ldr	x19, [x19, _cnic_dev_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_write_lock
	add	x0, x20, #8
	bl	_list_del_init
	mov	x0, x19
	bl	_write_unlock
	mov	x0, x20
	bl	_cnic_put
	mov	x0, x20
	bl	_cnic_free_dev
	b	LBB0_19
LBB0_17:
	mov	x0, x20
LBB0_18:
	bl	_cnic_put
LBB0_19:
Lloh20:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_REGISTER,8,3            ; @NETDEV_REGISTER
	.comm	_NETDEV_UNREGISTER,8,3          ; @NETDEV_UNREGISTER
	.comm	_NETDEV_UP,8,3                  ; @NETDEV_UP
	.comm	_NETDEV_GOING_DOWN,8,3          ; @NETDEV_GOING_DOWN
	.comm	_cnic_dev_lock,4,2              ; @cnic_dev_lock
	.comm	_VLAN_CFI_MASK,4,2              ; @VLAN_CFI_MASK
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.no_dead_strip	_cnic_netdev_event
.subsections_via_symbols
