	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mesh_plink_deactivate
___mesh_plink_deactivate:               ## @__mesh_plink_deactivate
	.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, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	_NL80211_PLINK_ESTAB@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_mesh_plink_dec_estab_count
	movl	%eax, %r15d
LBB0_2:
	movq	_NL80211_PLINK_BLOCKED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_mesh_path_flush_by_nexthop
	movq	%rbx, %rdi
	callq	_ieee80211_mps_sta_status_update
	movq	%r14, %rdi
	callq	_ieee80211_mps_local_status_update
	orl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_PLINK_ESTAB,8,3        ## @NL80211_PLINK_ESTAB
	.comm	_NL80211_PLINK_BLOCKED,8,3      ## @NL80211_PLINK_BLOCKED
	.no_dead_strip	___mesh_plink_deactivate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mesh_plink_deactivate
___mesh_plink_deactivate:               ; @__mesh_plink_deactivate
	.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
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _NL80211_PLINK_ESTAB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_PLINK_ESTAB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mesh_plink_dec_estab_count
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh3:
	adrp	x8, _NL80211_PLINK_BLOCKED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_PLINK_BLOCKED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	x0, x20
	bl	_mesh_path_flush_by_nexthop
	mov	x0, x20
	bl	_ieee80211_mps_sta_status_update
	mov	x0, x19
	bl	_ieee80211_mps_local_status_update
	orr	w0, w0, w21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_PLINK_ESTAB,8,3        ; @NL80211_PLINK_ESTAB
	.comm	_NL80211_PLINK_BLOCKED,8,3      ; @NL80211_PLINK_BLOCKED
	.no_dead_strip	___mesh_plink_deactivate
.subsections_via_symbols
