	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opa_vnic_update_state
_opa_vnic_update_state:                 ## @opa_vnic_update_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	_OPA_VNIC_STATE_FORWARDING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	sete	%sil
	testl	%r14d, %r14d
	setne	%dl
	movq	_OPA_VNIC_STATE_DROP_ALL@GOTPCREL(%rip), %rdi
	testb	%sil, %dl
	movq	(%rdi), %rdx
	cmovneq	%rax, %rdx
	movq	_OPA_VNIC_ETH_LINK_DOWN@GOTPCREL(%rip), %rsi
	cmovneq	_OPA_VNIC_ETH_LINK_UP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	%rdx, 24(%rbx)
	movl	%esi, 16(%rbx)
	movl	4(%rbx), %edi
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.1:
	callq	_netif_dormant_off
	jmp	LBB0_3
LBB0_2:
	callq	_netif_dormant_on
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OPA_VNIC_STATE_FORWARDING,8,3  ## @OPA_VNIC_STATE_FORWARDING
	.comm	_OPA_VNIC_ETH_LINK_UP,4,2       ## @OPA_VNIC_ETH_LINK_UP
	.comm	_OPA_VNIC_STATE_DROP_ALL,8,3    ## @OPA_VNIC_STATE_DROP_ALL
	.comm	_OPA_VNIC_ETH_LINK_DOWN,4,2     ## @OPA_VNIC_ETH_LINK_DOWN
	.no_dead_strip	_opa_vnic_update_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opa_vnic_update_state
_opa_vnic_update_state:                 ; @opa_vnic_update_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _OPA_VNIC_STATE_FORWARDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPA_VNIC_STATE_FORWARDING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w10, eq
	cmp	w20, #0
	cset	w11, ne
Lloh3:
	adrp	x12, _OPA_VNIC_STATE_DROP_ALL@GOTPAGE
Lloh4:
	ldr	x12, [x12, _OPA_VNIC_STATE_DROP_ALL@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	tst	w11, w10
	csel	x10, x8, x12, ne
Lloh6:
	adrp	x11, _OPA_VNIC_ETH_LINK_UP@GOTPAGE
Lloh7:
	ldr	x11, [x11, _OPA_VNIC_ETH_LINK_UP@GOTPAGEOFF]
Lloh8:
	adrp	x12, _OPA_VNIC_ETH_LINK_DOWN@GOTPAGE
Lloh9:
	ldr	x12, [x12, _OPA_VNIC_ETH_LINK_DOWN@GOTPAGEOFF]
	csel	x11, x11, x12, ne
	ldr	w11, [x11]
	str	x10, [x19, #24]
	str	w11, [x19, #16]
	ldr	w0, [x19, #4]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_netif_dormant_off
	b	LBB0_3
LBB0_2:
	bl	_netif_dormant_on
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OPA_VNIC_STATE_FORWARDING,8,3  ; @OPA_VNIC_STATE_FORWARDING
	.comm	_OPA_VNIC_ETH_LINK_UP,4,2       ; @OPA_VNIC_ETH_LINK_UP
	.comm	_OPA_VNIC_STATE_DROP_ALL,8,3    ; @OPA_VNIC_STATE_DROP_ALL
	.comm	_OPA_VNIC_ETH_LINK_DOWN,4,2     ; @OPA_VNIC_ETH_LINK_DOWN
	.no_dead_strip	_opa_vnic_update_state
.subsections_via_symbols
