	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_ampdu_action
_wcn36xx_ampdu_action:                  ## @wcn36xx_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, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	24(%rdx), %rdi
	callq	_wcn36xx_sta_to_priv
	movq	%rax, %r13
	movq	24(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r12d
	movq	8(%r14), %r15
	movq	_WCN36XX_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_wcn36xx_dbg
	movq	%rbx, %rdi
	callq	_mutex_lock
	addl	$-128, %r12d
	cmpl	$6, %r12d
	ja	LBB0_7
## %bb.1:
	addq	$16, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	%rbx, %r14
	movq	%r13, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	_WCN36XX_AMPDU_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r13), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	%rbx, %rdi
	movq	%r14, %rbx
	callq	_spin_unlock_bh
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_ieee80211_stop_tx_ba_cb_irqsafe
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_wcn36xx_err
	jmp	LBB0_8
LBB0_4:
	movq	%r13, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	_WCN36XX_AMPDU_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r13), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_ieee80211_start_tx_ba_cb_irqsafe
	jmp	LBB0_8
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_get_sta_index
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_wcn36xx_smd_del_ba
	jmp	LBB0_8
LBB0_2:
	movq	%r15, (%r13)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_sta_index
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	movl	%eax, %r9d
	callq	_wcn36xx_smd_add_ba_session
	movq	%rbx, %rdi
	callq	_wcn36xx_smd_add_ba
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_get_sta_index
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wcn36xx_smd_trigger_ba
	jmp	LBB0_8
LBB0_5:
	movq	%r13, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	_WCN36XX_AMPDU_OPERATIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r13), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_get_sta_index
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	$1, %r8d
	movl	%eax, %r9d
	callq	_wcn36xx_smd_add_ba_session
LBB0_8:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %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_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_WCN36XX_DBG_MAC,4,2            ## @WCN36XX_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac ampdu action action %d tid %d\n"

	.comm	_WCN36XX_AMPDU_START,4,2        ## @WCN36XX_AMPDU_START
	.comm	_WCN36XX_AMPDU_OPERATIONAL,4,2  ## @WCN36XX_AMPDU_OPERATIONAL
	.comm	_WCN36XX_AMPDU_NONE,4,2         ## @WCN36XX_AMPDU_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Unknown AMPDU action\n"

	.no_dead_strip	_wcn36xx_ampdu_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_ampdu_action
_wcn36xx_ampdu_action:                  ; @wcn36xx_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	x20, x1
	ldr	x19, [x0]
	ldr	x0, [x2, #24]
	bl	_wcn36xx_sta_to_priv
	mov	x23, x0
	ldr	x22, [x24, #24]
	ldr	w25, [x24]
	ldr	x21, [x24, #8]
Lloh0:
	adrp	x8, _WCN36XX_DBG_MAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_DBG_MAC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	mov	x3, x21
	bl	_wcn36xx_dbg
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w25, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	add	x24, x24, #16
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x24, x23, #8
	mov	x0, x24
	bl	_spin_lock_bh
Lloh7:
	adrp	x8, _WCN36XX_AMPDU_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WCN36XX_AMPDU_NONE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x23, #16]
	str	w8, [x9, x21, lsl #2]
	mov	x0, x24
	bl	_spin_unlock_bh
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_ieee80211_stop_tx_ba_cb_irqsafe
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wcn36xx_err
	b	LBB0_8
LBB0_4:
	add	x24, x23, #8
	mov	x0, x24
	bl	_spin_lock_bh
Lloh12:
	adrp	x8, _WCN36XX_AMPDU_START@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WCN36XX_AMPDU_START@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x23, #16]
	str	w8, [x9, x21, lsl #2]
	mov	x0, x24
	bl	_spin_unlock_bh
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_ieee80211_start_tx_ba_cb_irqsafe
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x23
	bl	_get_sta_index
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_wcn36xx_smd_del_ba
	b	LBB0_8
LBB0_6:
	str	x21, [x23]
	mov	x0, x20
	mov	x1, x23
	bl	_get_sta_index
	mov	x5, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x24
	mov	w4, #0
	bl	_wcn36xx_smd_add_ba_session
	mov	x0, x19
	bl	_wcn36xx_smd_add_ba
	mov	x0, x20
	mov	x1, x23
	bl	_get_sta_index
	mov	x1, x0
	mov	x0, x19
	bl	_wcn36xx_smd_trigger_ba
	b	LBB0_8
LBB0_7:
	add	x25, x23, #8
	mov	x0, x25
	bl	_spin_lock_bh
Lloh15:
	adrp	x8, _WCN36XX_AMPDU_OPERATIONAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WCN36XX_AMPDU_OPERATIONAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x9, [x23, #16]
	str	w8, [x9, x21, lsl #2]
	mov	x0, x25
	bl	_spin_unlock_bh
	mov	x0, x20
	mov	x1, x23
	bl	_get_sta_index
	mov	x5, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x24
	mov	w4, #1
	bl	_wcn36xx_smd_add_ba_session
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_7-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_WCN36XX_DBG_MAC,4,2            ; @WCN36XX_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac ampdu action action %d tid %d\n"

	.comm	_WCN36XX_AMPDU_START,4,2        ; @WCN36XX_AMPDU_START
	.comm	_WCN36XX_AMPDU_OPERATIONAL,4,2  ; @WCN36XX_AMPDU_OPERATIONAL
	.comm	_WCN36XX_AMPDU_NONE,4,2         ; @WCN36XX_AMPDU_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Unknown AMPDU action\n"

	.no_dead_strip	_wcn36xx_ampdu_action
.subsections_via_symbols
