	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_recv_action_meshpeering_close
_mesh_recv_action_meshpeering_close:    ## @mesh_recv_action_meshpeering_close
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	addq	$8, %rdx
	movq	_IEEE80211_ACTION_MESHPEERING_CLOSE@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	leaq	-40(%rbp), %r8
	callq	_mesh_parse_meshpeering_action
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	12(%rbx), %edi
	movq	_IEEE80211_MSG_ACTION@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_MESH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	movq	%rbx, %rdx
	callq	_IEEE80211_NOTE
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_5
## %bb.2:
	movl	$51, %ecx
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.7:
	movl	8(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_IEEE80211_REASON_MESH_CLOSE_RCVD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_IEEE80211_ACTION_CAT_SELF_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_ieee80211_send_action
	movq	%rbx, %rdi
	movl	$131, %esi
	callq	_mesh_linkchange
	movq	%rbx, %rdi
	callq	_mesh_peer_timeout_setup
	jmp	LBB0_5
LBB0_3:
	cmpl	$3, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_mesh_linkchange
	movq	%rbx, %rdi
	callq	_mesh_peer_timeout_stop
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ACTION_MESHPEERING_CLOSE,4,2 ## @IEEE80211_ACTION_MESHPEERING_CLOSE
	.comm	_IEEE80211_MSG_ACTION,4,2       ## @IEEE80211_MSG_ACTION
	.comm	_IEEE80211_MSG_MESH,4,2         ## @IEEE80211_MSG_MESH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"recv PEER CLOSE"

	.comm	_IEEE80211_REASON_MESH_CLOSE_RCVD,4,2 ## @IEEE80211_REASON_MESH_CLOSE_RCVD
	.comm	_IEEE80211_ACTION_CAT_SELF_PROT,4,2 ## @IEEE80211_ACTION_CAT_SELF_PROT
	.no_dead_strip	_mesh_recv_action_meshpeering_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_recv_action_meshpeering_close
_mesh_recv_action_meshpeering_close:    ; @mesh_recv_action_meshpeering_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x2, x2, #8
Lloh3:
	adrp	x20, _IEEE80211_ACTION_MESHPEERING_CLOSE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IEEE80211_ACTION_MESHPEERING_CLOSE@GOTPAGEOFF]
	ldr	w5, [x20]
	mov	x4, sp
	bl	_mesh_parse_meshpeering_action
	cbz	x0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _IEEE80211_MSG_ACTION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_MSG_ACTION@GOTPAGEOFF]
	ldr	w0, [x19, #12]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IEEE80211_MSG_MESH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_MSG_MESH@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
Lloh13:
	adrp	x4, l_.str.1@PAGE
Lloh14:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_IEEE80211_NOTE
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_6
; %bb.2:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #51
	tst	w9, w10
	b.eq	LBB0_4
; %bb.3:
	ldur	d0, [x19, #4]
	rev64.2s	v0, v0
	str	d0, [sp, #8]
Lloh15:
	adrp	x8, _IEEE80211_REASON_MESH_CLOSE_RCVD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_REASON_MESH_CLOSE_RCVD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh18:
	adrp	x8, _IEEE80211_ACTION_CAT_SELF_PROT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_ACTION_CAT_SELF_PROT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x20]
	add	x3, sp, #8
	mov	x0, x19
	bl	_ieee80211_send_action
	mov	x0, x19
	mov	w1, #131
	bl	_mesh_linkchange
	mov	x0, x19
	bl	_mesh_peer_timeout_setup
	b	LBB0_6
LBB0_4:
	cmp	w8, #3
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #130
	bl	_mesh_linkchange
	mov	x0, x19
	bl	_mesh_peer_timeout_stop
LBB0_6:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ACTION_MESHPEERING_CLOSE,4,2 ; @IEEE80211_ACTION_MESHPEERING_CLOSE
	.comm	_IEEE80211_MSG_ACTION,4,2       ; @IEEE80211_MSG_ACTION
	.comm	_IEEE80211_MSG_MESH,4,2         ; @IEEE80211_MSG_MESH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"recv PEER CLOSE"

	.comm	_IEEE80211_REASON_MESH_CLOSE_RCVD,4,2 ; @IEEE80211_REASON_MESH_CLOSE_RCVD
	.comm	_IEEE80211_ACTION_CAT_SELF_PROT,4,2 ; @IEEE80211_ACTION_CAT_SELF_PROT
	.no_dead_strip	_mesh_recv_action_meshpeering_close
.subsections_via_symbols
