	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ageq_append          ## -- Begin function ieee80211_ageq_append
	.p2align	4, 0x90
_ieee80211_ageq_append:                 ## @ieee80211_ageq_append
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_IEEE80211_AGEQ_LOCK
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	setl	%dil
	callq	___predict_true
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, (%rax)
	movq	32(%rbx), %rdi
	callq	_M_AGE_GET
	subl	%eax, %r15d
	jmp	LBB0_4
LBB0_5:
	incl	16(%rbx)
	movq	%rbx, %rdi
	callq	_IEEE80211_AGEQ_UNLOCK
	movq	%r14, %rdi
	callq	_ageq_mfree
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%r14, 32(%rbx)
LBB0_4:
	movslq	%r15d, %r12
	notl	%r15d
	shrl	$31, %r15d
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_KASSERT
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_M_AGE_SET
	movq	$0, (%r14)
	movq	%r14, 24(%rbx)
	incq	(%rbx)
	movq	%rbx, %rdi
	callq	_IEEE80211_AGEQ_UNLOCK
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ageq_append          ; -- Begin function ieee80211_ageq_append
	.p2align	2
_ieee80211_ageq_append:                 ; @ieee80211_ageq_append
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_IEEE80211_AGEQ_LOCK
	ldp	x8, x9, [x19]
	cmp	x8, x9
	cset	w0, lt
	bl	___predict_true
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.2:
	str	x20, [x8]
	ldr	x0, [x19, #32]
	bl	_M_AGE_GET
	sub	w21, w21, w0
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_IEEE80211_AGEQ_UNLOCK
	mov	x0, x20
	bl	_ageq_mfree
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	str	x20, [x19, #32]
LBB0_5:
	mvn	w8, w21
	lsr	w0, w8, #31
	sxtw	x1, w21
	bl	_KASSERT
	mov	x0, x20
	mov	x1, x21
	bl	_M_AGE_SET
	str	xzr, [x20]
	str	x20, [x19, #24]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	x0, x19
	bl	_IEEE80211_AGEQ_UNLOCK
	mov	w0, #0
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
