	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_ampdu_action
_ath9k_htc_ampdu_action:                ## @ath9k_htc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r13
	movq	16(%rdx), %r12
	movl	(%rdx), %r14d
	movq	8(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_ath9k_htc_ps_wakeup
	xorl	%ebx, %ebx
	leal	-128(%r14), %eax
	cmpl	$6, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	xorl	%ebx, %ebx
	jmpq	*%rax
LBB0_4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_ath9k_htc_tx_aggr_oper
	movl	8(%r12), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_ieee80211_stop_tx_ba_cb_irqsafe
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_8:
	movl	4(%r13), %edi
	callq	_ath9k_hw_common
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_ath_err
	jmp	LBB0_9
LBB0_2:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$131, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_ath9k_htc_tx_aggr_oper
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movl	8(%r12), %esi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_ieee80211_start_tx_ba_cb_irqsafe
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_ATH9K_HTC_MAX_TID@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	(%rax), %rbx
	jae	LBB0_6
## %bb.7:
	movq	(%r12), %r14
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	_AGGR_OPERATIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r13, %rdi
	callq	_ath9k_htc_ps_restore
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %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_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_ATH9K_HTC_MAX_TID,8,3          ## @ATH9K_HTC_MAX_TID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AGGR_OPERATIONAL,4,2           ## @AGGR_OPERATIONAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown AMPDU action\n"

	.no_dead_strip	_ath9k_htc_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_htc_ampdu_action
_ath9k_htc_ampdu_action:                ; @ath9k_htc_ampdu_action
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
	ldr	w24, [x2]
	ldp	x20, x22, [x2, #8]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_ath9k_htc_ps_wakeup
	sub	w8, w24, #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
	mov	x1, x21
	mov	x2, x22
	mov	x3, x24
	mov	x4, x20
	bl	_ath9k_htc_tx_aggr_oper
	ldr	w1, [x22, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_ieee80211_stop_tx_ba_cb_irqsafe
	b	LBB0_8
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_8
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #131
	mov	x4, x20
	bl	_ath9k_htc_tx_aggr_oper
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w1, [x22, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_ieee80211_start_tx_ba_cb_irqsafe
	b	LBB0_9
LBB0_6:
Lloh4:
	adrp	x8, _ATH9K_HTC_MAX_TID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATH9K_HTC_MAX_TID@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x20, x8
	b.hs	LBB0_10
; %bb.7:
	ldr	x22, [x22]
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_bh
Lloh7:
	adrp	x8, _AGGR_OPERATIONAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AGGR_OPERATIONAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x22]
	str	w8, [x9, x20, lsl #2]
	mov	x0, x21
	bl	_spin_unlock_bh
LBB0_8:
	mov	w23, #0
LBB0_9:
	mov	x0, x19
	bl	_ath9k_htc_ps_restore
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
	.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_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_ATH9K_HTC_MAX_TID,8,3          ; @ATH9K_HTC_MAX_TID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AGGR_OPERATIONAL,4,2           ; @AGGR_OPERATIONAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown AMPDU action\n"

	.no_dead_strip	_ath9k_htc_ampdu_action
.subsections_via_symbols
