	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_tx_aggr_oper
_ath9k_htc_tx_aggr_oper:                ## @ath9k_htc_tx_aggr_oper
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_ath9k_hw_common
	movq	_ATH9K_HTC_MAX_TID@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jle	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %rdi
	xorl	%r15d, %r15d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	8(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%ebx, %eax
	andl	$15, %eax
	movl	%eax, -56(%rbp)
	movq	_IEEE80211_AMPDU_TX_START@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r13d, (%rax)
	sete	%cl
	movl	%ecx, -52(%rbp)
	movq	_WMI_TX_AGGR_ENABLE_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_WMI_CMD_BUF
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$0, -52(%rbp)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	(%r12), %r8d
	leaq	L_.str.3(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_ath_dbg
	movq	%r14, %rdi
	callq	_spin_lock_bh
	cmpl	$0, -52(%rbp)
	jne	LBB0_3
## %bb.4:
	movq	_AGGR_STOP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_AGGR_START@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_6:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_HTC_MAX_TID,4,2          ## @ATH9K_HTC_MAX_TID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_AMPDU_TX_START,4,2   ## @IEEE80211_AMPDU_TX_START
	.comm	_WMI_TX_AGGR_ENABLE_CMDID,4,2   ## @WMI_TX_AGGR_ENABLE_CMDID
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"%s TX aggregation for (%pM, %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Starting"

L_.str.5:                               ## @.str.5
	.asciz	"Stopping"

	.comm	_AGGR_START,4,2                 ## @AGGR_START
	.comm	_AGGR_STOP,4,2                  ## @AGGR_STOP
	.no_dead_strip	_ath9k_htc_tx_aggr_oper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_tx_aggr_oper
_ath9k_htc_tx_aggr_oper:                ; @ath9k_htc_tx_aggr_oper
	.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	x19, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_ath9k_hw_common
Lloh0:
	adrp	x8, _ATH9K_HTC_MAX_TID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH9K_HTC_MAX_TID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x24, [x21, #8]
	ldr	w8, [x24, #8]
	str	w8, [sp, #8]
	and	w8, w19, #0xf
Lloh3:
	adrp	x9, _IEEE80211_AMPDU_TX_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_AMPDU_TX_START@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w23
	cset	w9, eq
	stp	w8, w9, [sp]
Lloh6:
	adrp	x8, _WMI_TX_AGGR_ENABLE_CMDID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_TX_AGGR_ENABLE_CMDID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_WMI_CMD_BUF
Lloh9:
	adrp	x8, _CONFIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, l_.str.4@PAGE
Lloh13:
	add	x8, x8, l_.str.4@PAGEOFF
	ldr	w9, [sp, #4]
Lloh14:
	adrp	x10, l_.str.5@PAGE
Lloh15:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w9, #0
	csel	x3, x10, x8, eq
	ldr	w4, [x21]
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x5, x19
	bl	_ath_dbg
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	w8, [sp, #4]
Lloh18:
	adrp	x9, _AGGR_START@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AGGR_START@GOTPAGEOFF]
Lloh20:
	adrp	x10, _AGGR_STOP@GOTPAGE
Lloh21:
	ldr	x10, [x10, _AGGR_STOP@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	ldr	x9, [x24]
	str	w8, [x9, w19, sxtw #2]
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_HTC_MAX_TID,4,2          ; @ATH9K_HTC_MAX_TID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_AMPDU_TX_START,4,2   ; @IEEE80211_AMPDU_TX_START
	.comm	_WMI_TX_AGGR_ENABLE_CMDID,4,2   ; @WMI_TX_AGGR_ENABLE_CMDID
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"%s TX aggregation for (%pM, %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Starting"

l_.str.5:                               ; @.str.5
	.asciz	"Stopping"

	.comm	_AGGR_START,4,2                 ; @AGGR_START
	.comm	_AGGR_STOP,4,2                  ; @AGGR_STOP
	.no_dead_strip	_ath9k_htc_tx_aggr_oper
.subsections_via_symbols
