	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lagg_clone_destroy
_lagg_clone_destroy:                    ## @lagg_clone_destroy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_LAGG_XLOCK
	movl	$1, (%r15)
	movq	%r15, %rdi
	callq	_lagg_stop
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	_vlan_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_EVENTHANDLER_DEREGISTER
	movq	_vlan_unconfig@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	_EVENTHANDLER_DEREGISTER
	leaq	8(%r15), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_CK_SLIST_FIRST
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_lagg_port_destroy
	jmp	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_lagg_proto_detach
	movq	%r15, %rdi
	callq	_LAGG_XUNLOCK
	leaq	4(%r15), %rdi
	callq	_ifmedia_removeall
	movq	%r14, %rdi
	callq	_ether_ifdetach
	movq	%r14, %rdi
	callq	_if_free
	xorl	%eax, %eax
	callq	_LAGG_LIST_LOCK
	movq	_lagg_softc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sc_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_V_lagg_list@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_SLIST_REMOVE
	xorl	%eax, %eax
	callq	_LAGG_LIST_UNLOCK
	movq	%r15, %rdi
	callq	_LAGG_SX_DESTROY
	movq	_M_LAGG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_vlan_config,4,2                ## @vlan_config
	.comm	_vlan_unconfig,4,2              ## @vlan_unconfig
	.comm	_V_lagg_list,4,2                ## @V_lagg_list
	.comm	_lagg_softc,4,2                 ## @lagg_softc
	.comm	_sc_entries,4,2                 ## @sc_entries
	.comm	_M_LAGG,4,2                     ## @M_LAGG
	.no_dead_strip	_lagg_clone_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lagg_clone_destroy
_lagg_clone_destroy:                    ; @lagg_clone_destroy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_LAGG_XLOCK
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_lagg_stop
Lloh0:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh3:
	adrp	x8, _vlan_config@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vlan_config@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_EVENTHANDLER_DEREGISTER
Lloh6:
	adrp	x8, _vlan_unconfig@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vlan_unconfig@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_EVENTHANDLER_DEREGISTER
	add	x21, x19, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_CK_SLIST_FIRST
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #1
	bl	_lagg_port_destroy
	b	LBB0_1
LBB0_3:
	mov	x0, x19
	bl	_lagg_proto_detach
	mov	x0, x19
	bl	_LAGG_XUNLOCK
	add	x0, x19, #4
	bl	_ifmedia_removeall
	mov	x0, x20
	bl	_ether_ifdetach
	mov	x0, x20
	bl	_if_free
	bl	_LAGG_LIST_LOCK
Lloh9:
	adrp	x8, _lagg_softc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _lagg_softc@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _sc_entries@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sc_entries@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x0, _V_lagg_list@GOTPAGE
Lloh16:
	ldr	x0, [x0, _V_lagg_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_SLIST_REMOVE
	bl	_LAGG_LIST_UNLOCK
	mov	x0, x19
	bl	_LAGG_SX_DESTROY
Lloh17:
	adrp	x8, _M_LAGG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_LAGG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_vlan_config,4,2                ; @vlan_config
	.comm	_vlan_unconfig,4,2              ; @vlan_unconfig
	.comm	_V_lagg_list,4,2                ; @V_lagg_list
	.comm	_lagg_softc,4,2                 ; @lagg_softc
	.comm	_sc_entries,4,2                 ; @sc_entries
	.comm	_M_LAGG,4,2                     ; @M_LAGG
	.no_dead_strip	_lagg_clone_destroy
.subsections_via_symbols
