	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_ampdu_action
_ath9k_ampdu_action:                    ## @ath9k_ampdu_action
	.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
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movl	4(%rbx), %edi
	callq	_ath9k_hw_common
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %r15
	movq	8(%r15), %r12
	movl	(%r13), %r14d
	movl	8(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_mutex_lock
	addl	$-128, %r14d
	cmpl	$6, %r14d
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	xorl	%r14d, %r14d
	jmpq	*%rcx
LBB0_8:
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ath_tx_aggr_stop
	jmp	LBB0_7
LBB0_11:
	movl	4(%rbx), %edi
	callq	_ath9k_hw_common
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_ath_err
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_ath_tx_aggr_stop
	movl	4(%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_ieee80211_stop_tx_ba_cb_irqsafe
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	callq	_ath9k_is_chanctx_enabled
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_ATH_OP_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_10:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ath_node_to_tid
	movq	_IEEE80211_MIN_AMPDU_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movb	(%r15), %cl
	shll	%cl, %edx
	movl	%edx, (%rax)
	jmp	LBB0_12
LBB0_5:
	addq	$4, %r13
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movq	%r13, %rcx
	callq	_ath_tx_aggr_start
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	4(%r15), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_ieee80211_start_tx_ba_cb_irqsafe
LBB0_7:
	movq	%rbx, %rdi
	callq	_ath9k_ps_restore
LBB0_12:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_ATH_OP_SCANNING,4,2            ## @ATH_OP_SCANNING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IEEE80211_MIN_AMPDU_BUF,4,2    ## @IEEE80211_MIN_AMPDU_BUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown AMPDU action\n"

	.no_dead_strip	_ath9k_ampdu_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_ampdu_action
_ath9k_ampdu_action:                    ; @ath9k_ampdu_action
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x2
	mov	x22, x1
	ldr	x19, [x0]
	ldr	w0, [x19, #4]
	bl	_ath9k_hw_common
	mov	x25, x0
	ldr	x20, [x24, #16]
	ldr	x26, [x20, #8]
	ldr	w23, [x24]
	ldr	w21, [x24, #8]
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w23, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	mov	w23, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ath_tx_aggr_stop
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_ath9k_hw_common
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath_err
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ath_tx_aggr_stop
	ldr	w1, [x20, #4]
	mov	x0, x22
	mov	x2, x21
	bl	_ieee80211_stop_tx_ba_cb_irqsafe
LBB0_5:
	mov	x0, x19
	bl	_ath9k_ps_restore
LBB0_6:
	mov	w23, #0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	_ath9k_is_chanctx_enabled
	cbz	w0, LBB0_12
; %bb.9:
Lloh4:
	adrp	x8, _ATH_OP_SCANNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATH_OP_SCANNING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_bit
	cbz	w0, LBB0_12
; %bb.10:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_7
LBB0_11:
	mov	x0, x26
	mov	x1, x21
	bl	_ath_node_to_tid
	mov	w23, #0
Lloh10:
	adrp	x8, _IEEE80211_MIN_AMPDU_BUF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IEEE80211_MIN_AMPDU_BUF@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x20]
	lsl	w8, w8, w9
	str	w8, [x0]
	b	LBB0_7
LBB0_12:
	add	x23, x24, #4
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_ath_tx_aggr_start
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	w1, [x20, #4]
	mov	x0, x22
	mov	x2, x21
	bl	_ieee80211_start_tx_ba_cb_irqsafe
LBB0_14:
	mov	x0, x19
	bl	_ath9k_ps_restore
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_ATH_OP_SCANNING,4,2            ; @ATH_OP_SCANNING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IEEE80211_MIN_AMPDU_BUF,4,2    ; @IEEE80211_MIN_AMPDU_BUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown AMPDU action\n"

	.no_dead_strip	_ath9k_ampdu_action
.subsections_via_symbols
