	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ampdu_rx_add_slot
_ampdu_rx_add_slot:                     ## @ampdu_rx_add_slot
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	8(%r8), %r15
	movq	24(%rdi), %rax
	movslq	%esi, %rsi
	cmpq	$0, (%rax,%rsi,8)
	je	LBB0_1
## %bb.2:
	movq	%r8, %rbx
	movq	_IEEE80211_MSG_INPUT@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_11N@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	orl	(%rax), %r12d
	movl	(%r8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %r14d
	movq	(%rdi), %rsi
	decq	%rsi
	movl	%r14d, %edi
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r13d
	callq	_IEEE80211_SEQ_ADD
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %r9d
	pushq	%rax
	pushq	%r14
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_IEEE80211_DISCARD_MAC
	addq	$32, %rsp
	incl	(%r15)
	movq	_rx_dup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IEEE80211_NODE_STAT
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_m_freem
	movl	$-1, %eax
	jmp	LBB0_3
LBB0_1:
	movq	%r9, (%rax,%rsi,8)
	incl	16(%rdi)
	movl	(%r9), %eax
	addl	%eax, 12(%rdi)
	incl	4(%r15)
	xorl	%eax, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MSG_INPUT,4,2        ## @IEEE80211_MSG_INPUT
	.comm	_IEEE80211_MSG_11N,4,2          ## @IEEE80211_MSG_11N
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a-mpdu duplicate"

L_.str.1:                               ## @.str.1
	.asciz	"seqno %u tid %u BA win <%u:%u>"

	.comm	_rx_dup,4,2                     ## @rx_dup
	.no_dead_strip	_ampdu_rx_add_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ampdu_rx_add_slot
_ampdu_rx_add_slot:                     ; @ampdu_rx_add_slot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x20, [x4, #8]
	ldr	x9, [x0, #24]
	ldr	x8, [x9, w1, sxtw #3]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
Lloh0:
	adrp	x8, _IEEE80211_MSG_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MSG_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_MSG_11N@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_MSG_11N@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w24, w9, w8
	ldr	w25, [x4]
	ldr	w26, [x0, #8]
	ldr	x8, [x0]
	sub	x1, x8, #1
	mov	x0, x26
	bl	_IEEE80211_SEQ_ADD
	str	w0, [sp]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
Lloh8:
	adrp	x4, l_.str.1@PAGE
Lloh9:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	mov	x5, x23
	mov	x6, x22
	mov	x7, x26
	bl	_IEEE80211_DISCARD_MAC
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh10:
	adrp	x8, _rx_dup@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rx_dup@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_IEEE80211_NODE_STAT
	mov	x0, x19
	bl	_m_freem
	mov	w8, #-1
	b	LBB0_3
LBB0_2:
	sxtw	x10, w1
	str	x19, [x9, x10, lsl #3]
	movi.2s	v0, #1
	ld1.s	{ v0 }[0], [x19]
	ldur	d1, [x0, #12]
	add.2s	v0, v1, v0
	stur	d0, [x0, #12]
	ldr	w9, [x20, #4]
	add	w9, w9, #1
	str	w9, [x20, #4]
LBB0_3:
	mov	x0, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MSG_INPUT,4,2        ; @IEEE80211_MSG_INPUT
	.comm	_IEEE80211_MSG_11N,4,2          ; @IEEE80211_MSG_11N
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a-mpdu duplicate"

l_.str.1:                               ; @.str.1
	.asciz	"seqno %u tid %u BA win <%u:%u>"

	.comm	_rx_dup,4,2                     ; @rx_dup
	.no_dead_strip	_ampdu_rx_add_slot
.subsections_via_symbols
