	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_ampdu_finalize         ## -- Begin function brcms_c_ampdu_finalize
	.p2align	4, 0x90
_brcms_c_ampdu_finalize:                ## @brcms_c_ampdu_finalize
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %r15
	movq	24(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	_PHY_TXC1_BW_20MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_BRCMS_GF_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BRCMS_LONG_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_skb_queue_empty
	testq	%rax, %rax
	je	LBB0_1
## %bb.36:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, -100(%rbp)               ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_peek
	movq	%rax, %r12
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_peek_tail
	movq	%rax, %r15
	movq	(%rax), %rbx
	movq	96(%rbx), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movq	_TXFID_QUEUE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	80(%rbx), %rdi
	callq	_le16_to_cpu
	movq	_TXC_AMPDU_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_TXC_AMPDU_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TXC_AMPDU_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%edx, %edi
	callq	_cpu_to_le16
	movq	%rax, 80(%rbx)
	movq	(%rbx), %rax
	movq	_AMPDU_FBR_NULL_DELIM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	$0, (%rax,%rcx,4)
	movq	_AMPDU_DELIMITER_LEN@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	subl	%edx, 4(%r13)
	movq	72(%rbx), %rdi
	callq	_le16_to_cpu
	movq	8(%rbx), %rdi
	testb	$3, %al
	movl	%r14d, -108(%rbp)               ## 4-byte Spill
	je	LBB0_2
## %bb.3:
	callq	_BRCMS_GET_MIMO_PLCP_LEN
	jmp	LBB0_4
LBB0_2:
	callq	_BRCMS_GET_CCK_PLCP_LEN
LBB0_4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_roundup
	subl	%eax, %ebx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addl	%ebx, 4(%r13)
	movq	%r12, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %r13
	movq	(%r12), %r14
	movq	80(%r14), %rdi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	cmpq	%r15, %r12
	je	LBB0_6
## %bb.5:
	movq	_TXC_AMPDU_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_TXC_AMPDU_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TXC_AMPDU_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
LBB0_6:
	movq	_PHY_TXC1_BW_20MHZ@GOTPCREL(%rip), %r12
	movq	_TXC_STARTMSDU@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	96(%r14), %edi
	callq	_ieee80211_is_rts
	xorl	%r15d, %r15d
	movl	$0, %ecx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_TXC_SENDRTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	orl	%ecx, %ebx
	movl	96(%r14), %edi
	callq	_ieee80211_is_cts
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	setne	-45(%rbp)                       ## 1-byte Folded Spill
	je	LBB0_10
## %bb.9:
	movq	_TXC_SENDCTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_10:
	orl	%r15d, %ebx
	leaq	104(%r14), %r15
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 80(%r14)
	movq	8(%r13), %rax
	testq	%rax, %rax
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jle	LBB0_11
## %bb.12:
	movq	8(%r14), %rax
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rax
LBB0_13:
	movl	(%rax), %ecx
	movl	12(%rax), %edi
	movq	_MIMO_PLCP_40MHZ@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	andl	%ecx, %ebx
	callq	_plcp3_issgi
	movl	(%r15), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.14:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_wlc_phy_chanspec_get
	movl	%eax, %edi
	callq	_CHSPEC_SB_UPPER
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_PHY_TXC1_BW_20MHZ_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_16:
	movl	(%r12), %eax
LBB0_17:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_18:
	movq	_RSPEC_MIMORATE@GOTPCREL(%rip), %rbx
	movl	104(%r14), %eax
	movl	(%r15), %edx
	movl	%edx, %r13d
	notl	%r13d
	andl	%eax, %r13d
	orl	(%rbx), %r13d
	andl	%eax, %edx
	movq	_PHY_TXC1_BW_40MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_RSPEC_BW_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	testl	%edx, %edx
	cmovel	%edx, %r12d
	movq	72(%r14), %rdi
	callq	_le16_to_cpu
	testb	$3, %al
	je	LBB0_19
## %bb.20:
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	(%r15), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	orl	(%rbx), %edx
	testl	%eax, %ecx
	je	LBB0_22
## %bb.21:
	movq	_PHY_TXC1_BW_40MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RSPEC_BW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %edx
LBB0_22:
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_23
LBB0_19:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_cck_phy2mac_rate
	movl	%eax, %edi
	callq	_cck_rspec
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_23:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	orl	%r12d, %r13d
	xorl	%ebx, %ebx
	orq	%rdx, %rax
	sete	-44(%rbp)                       ## 1-byte Folded Spill
	movl	$0, %eax
	je	LBB0_25
## %bb.24:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%ecx, %r12d
	callq	_brcms_c_rspec_to_rts_rspec
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_brcms_c_rspec_to_rts_rspec
LBB0_25:
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	notl	-92(%rbp)                       ## 4-byte Folded Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	4(%r12), %esi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_BRCMS_SET_MIMO_PLCP_LEN
	movq	%rbx, %rdi
	callq	_BRCMS_SET_MIMO_PLCP_AMPDU
	cmpq	$0, 64(%r14)
	movl	%r15d, %eax
	je	LBB0_27
## %bb.26:
	movl	4(%r12), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_brcms_c_calc_lsig_len
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 64(%r14)
	movq	_BRCMS_MM_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_27:
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movslq	-108(%rbp), %rbx                ## 4-byte Folded Reload
	movl	-104(%rbp), %edi                ## 4-byte Reload
	andl	-92(%rbp), %edi                 ## 4-byte Folded Reload
	cmpq	$0, 56(%r14)
	je	LBB0_29
## %bb.28:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movl	%edi, %r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_brcms_c_calc_lsig_len
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%r15d, %edi
	movq	%rax, 56(%r14)
	movq	_BRCMS_MM_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_29:
	xorl	%r12d, %r12d
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_mcs_2_rate
	shlq	$4, %rbx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	cmpq	(%rcx,%rbx), %rax
	jl	LBB0_31
## %bb.30:
	movl	8(%rcx,%rbx), %esi
	movl	-112(%rbp), %edi                ## 4-byte Reload
	callq	_min
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, %r12
LBB0_31:
	movq	%r12, 48(%r14)
	movq	16(%r14), %rdi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_33
## %bb.32:
	movq	_TXC_PREAMBLE_RTS_MAIN_SHORT@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	notl	%ecx
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_BRCMS_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	-100(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %r8d
	cmovel	%eax, %r8d
	movq	_TXC_PREAMBLE_RTS_FB_SHORT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	movl	$0, %r12d
	movb	-45(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %r12b
	cmovel	%eax, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-96(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1
	pushq	%rax
	callq	_brcms_c_compute_rtscts_dur
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 88(%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	$1
	pushq	%rax
	callq	_brcms_c_compute_rtscts_dur
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r14)
	movq	88(%r14), %rcx
	movq	%rcx, 40(%r14)
	movq	%rax, 32(%r14)
LBB0_33:
	cmpq	$0, -128(%rbp)                  ## 8-byte Folded Reload
	jle	LBB0_35
## %bb.34:
	movq	_TXC_AMPDU_FBR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_BRCMS_SET_MIMO_PLCP_AMPDU
	movq	8(%r14), %rdi
	callq	_BRCMS_SET_MIMO_PLCP_AMPDU
LBB0_35:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rcx), %ebx
	movl	(%rax), %r15d
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_skb_queue_len
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_dbg_ht                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TXC1_BW_20MHZ,4,2          ## @PHY_TXC1_BW_20MHZ
	.comm	_BRCMS_GF_PREAMBLE,4,2          ## @BRCMS_GF_PREAMBLE
	.comm	_BRCMS_LONG_PREAMBLE,4,2        ## @BRCMS_LONG_PREAMBLE
	.comm	_TXFID_QUEUE_MASK,4,2           ## @TXFID_QUEUE_MASK
	.comm	_TXC_AMPDU_MASK,4,2             ## @TXC_AMPDU_MASK
	.comm	_TXC_AMPDU_LAST,4,2             ## @TXC_AMPDU_LAST
	.comm	_TXC_AMPDU_SHIFT,4,2            ## @TXC_AMPDU_SHIFT
	.comm	_AMPDU_FBR_NULL_DELIM,8,3       ## @AMPDU_FBR_NULL_DELIM
	.comm	_AMPDU_DELIMITER_LEN,4,2        ## @AMPDU_DELIMITER_LEN
	.comm	_TXC_AMPDU_FIRST,4,2            ## @TXC_AMPDU_FIRST
	.comm	_TXC_STARTMSDU,4,2              ## @TXC_STARTMSDU
	.comm	_TXC_SENDRTS,4,2                ## @TXC_SENDRTS
	.comm	_TXC_SENDCTS,4,2                ## @TXC_SENDCTS
	.comm	_MIMO_PLCP_40MHZ,4,2            ## @MIMO_PLCP_40MHZ
	.comm	_PHY_TXC1_BW_20MHZ_UP,4,2       ## @PHY_TXC1_BW_20MHZ_UP
	.comm	_RSPEC_MIMORATE,4,2             ## @RSPEC_MIMORATE
	.comm	_PHY_TXC1_BW_40MHZ,4,2          ## @PHY_TXC1_BW_40MHZ
	.comm	_RSPEC_BW_SHIFT,4,2             ## @RSPEC_BW_SHIFT
	.comm	_BRCMS_MM_PREAMBLE,4,2          ## @BRCMS_MM_PREAMBLE
	.comm	_TXC_PREAMBLE_RTS_MAIN_SHORT,4,2 ## @TXC_PREAMBLE_RTS_MAIN_SHORT
	.comm	_BRCMS_SHORT_PREAMBLE,4,2       ## @BRCMS_SHORT_PREAMBLE
	.comm	_TXC_PREAMBLE_RTS_FB_SHORT,4,2  ## @TXC_PREAMBLE_RTS_FB_SHORT
	.comm	_TXC_AMPDU_FBR,4,2              ## @TXC_AMPDU_FBR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: count %d ampdu_len %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_ampdu_finalize         ; -- Begin function brcms_c_ampdu_finalize
	.p2align	2
_brcms_c_ampdu_finalize:                ; @brcms_c_ampdu_finalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	x22, [x20, #24]
	ldr	w28, [x0]
Lloh0:
	adrp	x9, _PHY_TXC1_BW_20MHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_TXC1_BW_20MHZ@GOTPAGEOFF]
Lloh2:
	adrp	x8, _BRCMS_GF_PREAMBLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BRCMS_GF_PREAMBLE@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x9]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _BRCMS_LONG_PREAMBLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMS_LONG_PREAMBLE@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
	add	x21, x0, #8
	mov	x0, x21
	bl	_skb_queue_empty
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_2:
	str	w23, [sp, #56]                  ; 4-byte Folded Spill
	mov	x0, x21
	bl	_skb_peek
	mov	x23, x0
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x21
	bl	_skb_peek_tail
	mov	x25, x0
	ldr	x21, [x0]
	ldr	x0, [x21, #96]
	bl	_le16_to_cpu
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x8, _TXFID_QUEUE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TXFID_QUEUE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	x8, [x22]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	x0, [x21, #80]
	bl	_le16_to_cpu
Lloh12:
	adrp	x22, _TXC_AMPDU_MASK@GOTPAGE
Lloh13:
	ldr	x22, [x22, _TXC_AMPDU_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w8, w0, w8
Lloh14:
	adrp	x9, _TXC_AMPDU_LAST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TXC_AMPDU_LAST@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x27, _TXC_AMPDU_SHIFT@GOTPAGE
Lloh18:
	ldr	x27, [x27, _TXC_AMPDU_SHIFT@GOTPAGEOFF]
	ldr	w10, [x27]
	lsl	w9, w9, w10
	orr	w0, w9, w8
	bl	_cpu_to_le16
	ldr	x8, [x21]
Lloh19:
	adrp	x9, _AMPDU_FBR_NULL_DELIM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AMPDU_FBR_NULL_DELIM@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	str	wzr, [x8, x9]
Lloh22:
	adrp	x8, _AMPDU_DELIMITER_LEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AMPDU_DELIMITER_LEN@GOTPAGEOFF]
	str	x0, [x21, #80]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	msub	w8, w8, w10, w9
	str	w8, [x19, #4]
	ldr	x0, [x21, #72]
	bl	_le16_to_cpu
	mov	x8, x0
	ldr	x0, [x21, #8]
	tst	w8, #0x3
	str	w24, [sp, #76]                  ; 4-byte Folded Spill
	str	w28, [sp, #8]                   ; 4-byte Folded Spill
	b.eq	LBB0_4
; %bb.3:
	bl	_BRCMS_GET_MIMO_PLCP_LEN
	b	LBB0_5
LBB0_4:
	bl	_BRCMS_GET_CCK_PLCP_LEN
LBB0_5:
	mov	x24, x0
	mov	w1, #4
	bl	_roundup
	ldr	w8, [x19, #4]
	sub	w9, w24, w0
	add	w8, w8, w9
	str	w8, [x19, #4]
	mov	x0, x23
	bl	_IEEE80211_SKB_CB
	ldr	x28, [x0]
	ldr	x24, [x23]
	add	x8, x24, #104
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	ldr	x0, [x24, #80]
	bl	_le16_to_cpu
	cmp	x23, x25
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x22]
	bic	w8, w0, w8
Lloh25:
	adrp	x9, _TXC_AMPDU_FIRST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TXC_AMPDU_FIRST@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	ldr	w10, [x27]
	lsl	w9, w9, w10
	orr	w0, w9, w8
LBB0_7:
Lloh28:
	adrp	x8, _TXC_STARTMSDU@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TXC_STARTMSDU@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w21, w8, w0
	ldr	w0, [x24, #96]
	bl	_ieee80211_is_rts
	mov	x27, x0
Lloh31:
	adrp	x8, _TXC_SENDRTS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TXC_SENDRTS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w21, w21, w8
	ldr	w0, [x24, #96]
	bl	_ieee80211_is_cts
	mov	x23, x0
	cmp	x0, #0
	cset	w22, ne
Lloh34:
	adrp	x8, _TXC_SENDCTS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TXC_SENDCTS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	csel	w8, wzr, w8, eq
	orr	w0, w21, w8
	bl	_cpu_to_le16
	str	x0, [x24, #80]
	ldr	x8, [x28, #8]
	cmp	x8, #1
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	str	w22, [sp, #4]                   ; 4-byte Folded Spill
	b.lt	LBB0_9
; %bb.8:
	ldr	x8, [x24, #8]
	b	LBB0_10
LBB0_9:
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
LBB0_10:
	ldr	w0, [x8, #12]
	ldr	w22, [x8]
Lloh37:
	adrp	x25, _MIMO_PLCP_40MHZ@GOTPAGE
Lloh38:
	ldr	x25, [x25, _MIMO_PLCP_40MHZ@GOTPAGEOFF]
	ldr	w8, [x25]
	and	w21, w8, w22
	bl	_plcp3_issgi
	ldr	w8, [x25]
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	cbz	w21, LBB0_15
; %bb.11:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_wlc_phy_chanspec_get
	bl	_CHSPEC_SB_UPPER
	cbz	x0, LBB0_13
; %bb.12:
Lloh39:
	adrp	x8, _PHY_TXC1_BW_20MHZ_UP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PHY_TXC1_BW_20MHZ_UP@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh41:
	adrp	x8, _PHY_TXC1_BW_20MHZ@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PHY_TXC1_BW_20MHZ@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
LBB0_15:
Lloh43:
	adrp	x21, _RSPEC_MIMORATE@GOTPAGE
Lloh44:
	ldr	x21, [x21, _RSPEC_MIMORATE@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x24, #104]
	ldr	w10, [x25]
	bic	w11, w9, w10
	orr	w8, w11, w8
Lloh45:
	adrp	x28, _PHY_TXC1_BW_40MHZ@GOTPAGE
Lloh46:
	ldr	x28, [x28, _PHY_TXC1_BW_40MHZ@GOTPAGEOFF]
	ldr	w11, [x28]
Lloh47:
	adrp	x26, _RSPEC_BW_SHIFT@GOTPAGE
Lloh48:
	ldr	x26, [x26, _RSPEC_BW_SHIFT@GOTPAGEOFF]
	ldr	w12, [x26]
	lsl	w11, w11, w12
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	ldr	x0, [x24, #72]
	bl	_le16_to_cpu
	tst	w0, #0x3
	b.eq	LBB0_18
; %bb.16:
	ldr	w8, [x21]
	ldr	x9, [x24, #8]
	ldr	w9, [x9]
	ldr	w10, [x25]
	bic	w11, w9, w10
	orr	w25, w11, w8
	tst	w10, w9
	b.eq	LBB0_19
; %bb.17:
	ldr	w8, [x28]
	ldr	w9, [x26]
	lsl	w8, w8, w9
	orr	w25, w8, w25
	b	LBB0_19
LBB0_18:
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	bl	_cck_phy2mac_rate
	bl	_cck_rspec
	mov	x25, x0
LBB0_19:
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	ldp	w9, w8, [sp, #16]               ; 8-byte Folded Reload
	and	w28, w9, w8
	orr	x8, x27, x23
	cmp	x8, #0
	cset	w27, eq
	cbnz	x8, LBB0_21
; %bb.20:
	str	wzr, [sp, #24]                  ; 4-byte Folded Spill
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	ldp	w23, w1, [sp, #56]              ; 8-byte Folded Reload
	mov	w2, #0
	mov	x3, x23
	bl	_brcms_c_rspec_to_rts_rspec
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	x1, x25
	mov	w2, #0
	mov	x3, x23
	bl	_brcms_c_rspec_to_rts_rspec
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
LBB0_22:
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	bic	w26, w22, w8
	ldr	w1, [x19, #4]
	ldr	x22, [sp, #64]                  ; 8-byte Folded Reload
	mov	x0, x22
	bl	_BRCMS_SET_MIMO_PLCP_LEN
	mov	x0, x22
	bl	_BRCMS_SET_MIMO_PLCP_AMPDU
	ldr	x8, [x24, #64]
Lloh49:
	adrp	x22, _BRCMS_MM_PREAMBLE@GOTPAGE
Lloh50:
	ldr	x22, [x22, _BRCMS_MM_PREAMBLE@GOTPAGEOFF]
	ldr	w23, [sp, #76]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_24
; %bb.23:
	ldr	w2, [x19, #4]
	mov	x0, x20
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
	bl	_brcms_c_calc_lsig_len
	bl	_cpu_to_le16
	str	x0, [x24, #64]
	ldr	w23, [x22]
LBB0_24:
	sxtw	x28, w28
	ldr	x8, [x24, #56]
	cbz	x8, LBB0_26
; %bb.25:
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	x1, x25
	bl	_brcms_c_calc_lsig_len
	bl	_cpu_to_le16
	str	x0, [x24, #56]
	ldr	w8, [x22]
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
LBB0_26:
	mov	x0, x26
	mov	w1, #1
	mov	w2, #0
	bl	_mcs_2_rate
	lsl	x8, x28, #4
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x9, x8]
	cmp	x0, x8
	b.ge	LBB0_28
; %bb.27:
	mov	x0, #0
	b	LBB0_29
LBB0_28:
	add	x8, x9, x28, lsl #4
	ldr	w1, [x8, #8]
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	bl	_min
	bl	_cpu_to_le16
LBB0_29:
	str	x0, [x24, #48]
	ldr	x0, [x24, #16]
	bl	_le16_to_cpu
	mov	x26, x0
	tbnz	w27, #0, LBB0_31
; %bb.30:
Lloh51:
	adrp	x8, _TXC_PREAMBLE_RTS_MAIN_SHORT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _TXC_PREAMBLE_RTS_MAIN_SHORT@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _BRCMS_SHORT_PREAMBLE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _BRCMS_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	bics	wzr, w8, w26
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	csel	w4, w9, w10, eq
Lloh57:
	adrp	x8, _TXC_PREAMBLE_RTS_FB_SHORT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _TXC_PREAMBLE_RTS_FB_SHORT@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	bics	wzr, w8, w26
	csel	w27, w9, w10, eq
	ldr	w6, [x19, #4]
	mov	x0, x20
	ldr	w22, [sp, #4]                   ; 4-byte Folded Reload
	mov	x1, x22
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	ldr	w3, [sp, #60]                   ; 4-byte Folded Reload
	mov	x5, x23
	mov	w7, #1
	bl	_brcms_c_compute_rtscts_dur
	bl	_cpu_to_le16
	str	x0, [x24, #88]
	ldr	w6, [x19, #4]
	mov	x0, x20
	mov	x1, x22
	ldr	w2, [sp, #56]                   ; 4-byte Folded Reload
	mov	x3, x25
	mov	x4, x27
	ldr	w5, [sp, #76]                   ; 4-byte Folded Reload
	mov	w7, #1
	bl	_brcms_c_compute_rtscts_dur
	bl	_cpu_to_le16
	ldr	x8, [x24, #88]
	stp	x0, x8, [x24, #32]
	str	x0, [x24, #24]
LBB0_31:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, #1
	b.lt	LBB0_33
; %bb.32:
Lloh60:
	adrp	x8, _TXC_AMPDU_FBR@GOTPAGE
Lloh61:
	ldr	x8, [x8, _TXC_AMPDU_FBR@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	orr	w0, w8, w26
	bl	_cpu_to_le16
	str	x0, [x24, #16]
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	bl	_BRCMS_SET_MIMO_PLCP_AMPDU
	ldr	x0, [x24, #8]
	bl	_BRCMS_SET_MIMO_PLCP_AMPDU
LBB0_33:
	ldp	x9, x8, [x20]
	ldr	w20, [x8]
	ldr	w22, [x9]
	mov	x0, x21
	bl	_skb_queue_len
	mov	x3, x0
Lloh63:
	adrp	x1, l_.str@PAGE
Lloh64:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w4, [x19, #4]
	mov	x0, x20
	mov	x2, x22
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_brcms_dbg_ht
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TXC1_BW_20MHZ,4,2          ; @PHY_TXC1_BW_20MHZ
	.comm	_BRCMS_GF_PREAMBLE,4,2          ; @BRCMS_GF_PREAMBLE
	.comm	_BRCMS_LONG_PREAMBLE,4,2        ; @BRCMS_LONG_PREAMBLE
	.comm	_TXFID_QUEUE_MASK,4,2           ; @TXFID_QUEUE_MASK
	.comm	_TXC_AMPDU_MASK,4,2             ; @TXC_AMPDU_MASK
	.comm	_TXC_AMPDU_LAST,4,2             ; @TXC_AMPDU_LAST
	.comm	_TXC_AMPDU_SHIFT,4,2            ; @TXC_AMPDU_SHIFT
	.comm	_AMPDU_FBR_NULL_DELIM,8,3       ; @AMPDU_FBR_NULL_DELIM
	.comm	_AMPDU_DELIMITER_LEN,4,2        ; @AMPDU_DELIMITER_LEN
	.comm	_TXC_AMPDU_FIRST,4,2            ; @TXC_AMPDU_FIRST
	.comm	_TXC_STARTMSDU,4,2              ; @TXC_STARTMSDU
	.comm	_TXC_SENDRTS,4,2                ; @TXC_SENDRTS
	.comm	_TXC_SENDCTS,4,2                ; @TXC_SENDCTS
	.comm	_MIMO_PLCP_40MHZ,4,2            ; @MIMO_PLCP_40MHZ
	.comm	_PHY_TXC1_BW_20MHZ_UP,4,2       ; @PHY_TXC1_BW_20MHZ_UP
	.comm	_RSPEC_MIMORATE,4,2             ; @RSPEC_MIMORATE
	.comm	_PHY_TXC1_BW_40MHZ,4,2          ; @PHY_TXC1_BW_40MHZ
	.comm	_RSPEC_BW_SHIFT,4,2             ; @RSPEC_BW_SHIFT
	.comm	_BRCMS_MM_PREAMBLE,4,2          ; @BRCMS_MM_PREAMBLE
	.comm	_TXC_PREAMBLE_RTS_MAIN_SHORT,4,2 ; @TXC_PREAMBLE_RTS_MAIN_SHORT
	.comm	_BRCMS_SHORT_PREAMBLE,4,2       ; @BRCMS_SHORT_PREAMBLE
	.comm	_TXC_PREAMBLE_RTS_FB_SHORT,4,2  ; @TXC_PREAMBLE_RTS_FB_SHORT
	.comm	_TXC_AMPDU_FBR,4,2              ; @TXC_AMPDU_FBR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: count %d ampdu_len %d\n"

.subsections_via_symbols
