	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_node_leave           ## -- Begin function ieee80211_node_leave
	.p2align	4, 0x90
_ieee80211_node_leave:                  ## @ieee80211_node_leave
	.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	24(%rdi), %r15
	movq	8(%rdi), %r14
	movq	16(%rdi), %r12
	movq	_IEEE80211_MSG_ASSOC@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	callq	_IEEE80211_NODE_AID
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%eax, %r8d
	callq	_IEEE80211_NOTE
	movq	(%r12), %rsi
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rsi
	setne	%dil
	callq	_KASSERT
	cmpq	$0, (%r13)
	je	LBB0_11
## %bb.1:
	movq	16(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	*%rax
LBB0_3:
	movq	%r15, %rdi
	callq	_IEEE80211_LOCK
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_IEEE80211_AID_CLR
	decl	8(%r12)
	decl	4(%r15)
	movl	(%r15), %edi
	callq	_IEEE80211_IS_CHAN_VHT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_ieee80211_vht_node_leave
LBB0_5:
	movl	(%r15), %edi
	callq	_IEEE80211_IS_CHAN_HT
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_ieee80211_ht_node_leave
LBB0_7:
	movl	(%r15), %edi
	callq	_IEEE80211_IS_CHAN_ANYG
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	(%r15), %edi
	callq	_IEEE80211_IS_CHAN_FULL
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_ieee80211_node_leave_11g
LBB0_10:
	movq	%r15, %rdi
	callq	_IEEE80211_UNLOCK
	movq	%r13, %rdi
	callq	_ieee80211_sta_leave
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_IEEE80211_NODE_LOCK
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_node_reclaim
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_NODE_UNLOCK          ## TAILCALL
LBB0_13:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_free_node            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MSG_ASSOC,4,2        ## @IEEE80211_MSG_ASSOC
	.comm	_IEEE80211_MSG_DEBUG,4,2        ## @IEEE80211_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"station with aid %d leaves"

	.comm	_IEEE80211_M_STA,8,3            ## @IEEE80211_M_STA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_node_leave           ; -- Begin function ieee80211_node_leave
	.p2align	2
_ieee80211_node_leave:                  ; @ieee80211_node_leave
	.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
	ldp	x22, x21, [x0, #16]
Lloh0:
	adrp	x8, _IEEE80211_MSG_ASSOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MSG_ASSOC@GOTPAGEOFF]
	ldr	x20, [x0, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w23, w9, w8
	bl	_IEEE80211_NODE_AID
	mov	x4, x0
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	bl	_IEEE80211_NOTE
	ldr	x1, [x22]
Lloh8:
	adrp	x8, _IEEE80211_M_STA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_M_STA@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x1, x8
	cset	w0, ne
	bl	_KASSERT
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	mov	x0, x21
	bl	_IEEE80211_LOCK
	ldr	x1, [x19]
	mov	x0, x22
	bl	_IEEE80211_AID_CLR
	ldr	w8, [x22, #8]
	sub	w8, w8, #1
	str	w8, [x22, #8]
	ldp	w0, w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21, #4]
	bl	_IEEE80211_IS_CHAN_VHT
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_ieee80211_vht_node_leave
LBB0_5:
	ldr	w0, [x21]
	bl	_IEEE80211_IS_CHAN_HT
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_ieee80211_ht_node_leave
LBB0_7:
	ldr	w0, [x21]
	bl	_IEEE80211_IS_CHAN_ANYG
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w0, [x21]
	bl	_IEEE80211_IS_CHAN_FULL
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_ieee80211_node_leave_11g
LBB0_10:
	mov	x0, x21
	bl	_IEEE80211_UNLOCK
	mov	x0, x19
	bl	_ieee80211_sta_leave
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_IEEE80211_NODE_LOCK
	mov	x0, x20
	mov	x1, x19
	bl	_node_reclaim
	mov	x0, x20
	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	_IEEE80211_NODE_UNLOCK
LBB0_13:
	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	_ieee80211_free_node
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MSG_ASSOC,4,2        ; @IEEE80211_MSG_ASSOC
	.comm	_IEEE80211_MSG_DEBUG,4,2        ; @IEEE80211_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"station with aid %d leaves"

	.comm	_IEEE80211_M_STA,8,3            ; @IEEE80211_M_STA
.subsections_via_symbols
