	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_tx_start_ampdu
_wcn36xx_tx_start_ampdu:                ## @wcn36xx_tx_start_ampdu
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	(%rdx), %r12
	movq	(%rdi), %rdi
	callq	_conf_is_ht
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_wcn36xx_priv_to_sta
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_ieee80211_is_data_qos
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_skb_get_queue_mapping
	movq	_IEEE80211_AC_VO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r12, %rdi
	callq	_ieee80211_get_qos_ctl
	movq	_IEEE80211_QOS_CTL_TID_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	andq	(%rax), %rbx
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	_WCN36XX_AMPDU_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	movq	16(%r15), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 16(%r15)
	movq	_WCN36XX_AMPDU_START_THRESH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_6
## %bb.5:
	movq	_WCN36XX_AMPDU_START@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%rbx,8)
	movq	$0, 16(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ieee80211_start_tx_ba_session
LBB0_6:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_AC_VO,8,3            ## @IEEE80211_AC_VO
	.comm	_IEEE80211_QOS_CTL_TID_MASK,8,3 ## @IEEE80211_QOS_CTL_TID_MASK
	.comm	_WCN36XX_AMPDU_NONE,8,3         ## @WCN36XX_AMPDU_NONE
	.comm	_WCN36XX_AMPDU_START_THRESH,8,3 ## @WCN36XX_AMPDU_START_THRESH
	.comm	_WCN36XX_AMPDU_START,8,3        ## @WCN36XX_AMPDU_START
	.no_dead_strip	_wcn36xx_tx_start_ampdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_tx_start_ampdu
_wcn36xx_tx_start_ampdu:                ; @wcn36xx_tx_start_ampdu
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x19, x1
	ldr	x21, [x2]
	ldr	x0, [x0]
	bl	_conf_is_ht
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_wcn36xx_priv_to_sta
	mov	x20, x0
	ldr	w0, [x21]
	bl	_ieee80211_is_data_qos
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_skb_get_queue_mapping
Lloh0:
	adrp	x8, _IEEE80211_AC_VO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_AC_VO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x21
	bl	_ieee80211_get_qos_ctl
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _IEEE80211_QOS_CTL_TID_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_TID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x22, x9, x8
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19]
	ldr	x9, [x8, x22, lsl #3]
Lloh6:
	adrp	x10, _WCN36XX_AMPDU_NONE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WCN36XX_AMPDU_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
	ldr	x9, [x19, #16]
	add	x10, x9, #1
	str	x10, [x19, #16]
Lloh9:
	adrp	x10, _WCN36XX_AMPDU_START_THRESH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WCN36XX_AMPDU_START_THRESH@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_7
; %bb.6:
Lloh12:
	adrp	x9, _WCN36XX_AMPDU_START@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WCN36XX_AMPDU_START@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	str	x9, [x8, x22, lsl #3]
	str	xzr, [x19, #16]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_ieee80211_start_tx_ba_session
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_AC_VO,8,3            ; @IEEE80211_AC_VO
	.comm	_IEEE80211_QOS_CTL_TID_MASK,8,3 ; @IEEE80211_QOS_CTL_TID_MASK
	.comm	_WCN36XX_AMPDU_NONE,8,3         ; @WCN36XX_AMPDU_NONE
	.comm	_WCN36XX_AMPDU_START_THRESH,8,3 ; @WCN36XX_AMPDU_START_THRESH
	.comm	_WCN36XX_AMPDU_START,8,3        ; @WCN36XX_AMPDU_START
	.no_dead_strip	_wcn36xx_tx_start_ampdu
.subsections_via_symbols
