	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ampdu_enable
_ieee80211_ampdu_enable:                ## @ieee80211_ampdu_enable
	.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	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	(%rsi), %r13
	movq	(%r15), %r14
	movl	20(%rsi), %edi
	callq	_TID_TO_WME_AC
	xorl	%r12d, %r12d
	cmpq	(%r14,%rax,8), %r13
	jl	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	_ieee80211_addba_maxtries@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.2:
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	callq	_ieee80211_time_after
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movq	_IEEE80211_MSG_11N@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	20(%rbx), %r13d
	movq	_ieee80211_wme_acnames@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%r13d, %edi
	callq	_TID_TO_WME_AC
	movl	(%r14,%rax,4), %r9d
	movl	16(%rbx), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %r8d
	pushq	8(%rbx)
	pushq	%rax
	pushq	(%rbx)
	callq	_IEEE80211_NOTE
	addq	$32, %rsp
	movl	$1, %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ieee80211_addba_maxtries,8,3   ## @ieee80211_addba_maxtries
	.comm	_ticks,4,2                      ## @ticks
	.comm	_IEEE80211_MSG_11N,4,2          ## @IEEE80211_MSG_11N
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable AMPDU on tid %d (%s), avgpps %d pkts %d attempt %d"

	.comm	_ieee80211_wme_acnames,8,3      ## @ieee80211_wme_acnames
	.no_dead_strip	_ieee80211_ampdu_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ampdu_enable
_ieee80211_ampdu_enable:                ; @ieee80211_ampdu_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x22, [x1]
	ldr	x23, [x20]
	ldr	w0, [x1, #20]
	bl	_TID_TO_WME_AC
	ldr	x8, [x23, x0, lsl #3]
	cmp	x22, x8
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _ieee80211_addba_maxtries@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ieee80211_addba_maxtries@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ticks@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x21, #24]
	bl	_ieee80211_time_after
	cbz	x0, LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _IEEE80211_MSG_11N@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_MSG_11N@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	w23, [x21, #20]
Lloh9:
	adrp	x8, _ieee80211_wme_acnames@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ieee80211_wme_acnames@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
	mov	x0, x23
	bl	_TID_TO_WME_AC
	ldr	w5, [x24, x0, lsl #2]
	ldr	w7, [x21, #16]
	ldp	x6, x8, [x21]
	str	x8, [sp]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x4, x23
	bl	_IEEE80211_NOTE
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ieee80211_addba_maxtries,8,3   ; @ieee80211_addba_maxtries
	.comm	_ticks,4,2                      ; @ticks
	.comm	_IEEE80211_MSG_11N,4,2          ; @IEEE80211_MSG_11N
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable AMPDU on tid %d (%s), avgpps %d pkts %d attempt %d"

	.comm	_ieee80211_wme_acnames,8,3      ; @ieee80211_wme_acnames
	.no_dead_strip	_ieee80211_ampdu_enable
.subsections_via_symbols
