	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxlan_teardown_locked
_vxlan_teardown_locked:                 ## @vxlan_teardown_locked
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	32(%rdi), %r12
	callq	_VXLAN_LOCK_WASSERT
	movq	_VXLAN_FLAG_TEARDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r13), %edi
	callq	_MPASS
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r12)
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	leaq	16(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_callout_stop
	movq	24(%r13), %r14
	movq	$0, 24(%r13)
	movq	%r13, %rdi
	callq	_VXLAN_WUNLOCK
	movq	_LINK_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_if_link_state_change
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vxlan_socket_remove_softc
	movl	4(%r13), %esi
	cmpl	$-1, %esi
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_vxlan_socket_mc_release_group_by_idx
	movl	$-1, 4(%r13)
LBB0_3:
	movq	%r13, %rdi
	callq	_VXLAN_WLOCK
	cmpq	$0, 8(%r13)
	je	LBB0_6
## %bb.4:
	leaq	20(%r13), %rbx
	movq	_hz@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_rm_sleep
	cmpq	$0, 8(%r13)
	jne	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_VXLAN_WUNLOCK
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_callout_drain
	movq	%r13, %rdi
	callq	_vxlan_free_multicast
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_vxlan_socket_release
LBB0_8:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vxlan_teardown_complete        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VXLAN_FLAG_TEARDOWN,4,2        ## @VXLAN_FLAG_TEARDOWN
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_LINK_STATE_DOWN,4,2            ## @LINK_STATE_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vxldrn"

	.comm	_hz,4,2                         ## @hz
	.no_dead_strip	_vxlan_teardown_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vxlan_teardown_locked
_vxlan_teardown_locked:                 ; @vxlan_teardown_locked
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x22, [x0, #32]
	bl	_VXLAN_LOCK_WASSERT
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _VXLAN_FLAG_TEARDOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VXLAN_FLAG_TEARDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_MPASS
Lloh3:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IFF_DRV_RUNNING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	s0, [x9]
	ld1.s	{ v0 }[1], [x8]
	ldr	d1, [x22]
	bic.8b	v0, v1, v0
	str	d0, [x22]
	add	x21, x19, #16
	mov	x0, x21
	bl	_callout_stop
	ldr	x20, [x19, #24]
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_VXLAN_WUNLOCK
Lloh8:
	adrp	x8, _LINK_STATE_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LINK_STATE_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_if_link_state_change
	cbz	x20, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_vxlan_socket_remove_softc
	ldr	w1, [x19, #4]
	cmn	w1, #1
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_vxlan_socket_mc_release_group_by_idx
	mov	w8, #-1
	str	w8, [x19, #4]
LBB0_3:
	mov	x0, x19
	bl	_VXLAN_WLOCK
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	add	x22, x19, #20
Lloh11:
	adrp	x24, _hz@GOTPAGE
Lloh12:
	ldr	x24, [x24, _hz@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str@PAGE
Lloh14:
	add	x23, x23, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	x3, x23
	bl	_rm_sleep
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_VXLAN_WUNLOCK
	mov	x0, x21
	bl	_callout_drain
	mov	x0, x19
	bl	_vxlan_free_multicast
	cbz	x20, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_vxlan_socket_release
LBB0_8:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vxlan_teardown_complete
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VXLAN_FLAG_TEARDOWN,4,2        ; @VXLAN_FLAG_TEARDOWN
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_LINK_STATE_DOWN,4,2            ; @LINK_STATE_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vxldrn"

	.comm	_hz,4,2                         ; @hz
	.no_dead_strip	_vxlan_teardown_locked
.subsections_via_symbols
