	.file	"extr_mac.c_ath10k_peer_assoc_h_vht.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mac vht peer %pM max_mpdu %d flags 0x%x\n"
	.text
	.p2align 4
	.type	ath10k_peer_assoc_h_vht, @function
ath10k_peer_assoc_h_vht:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	call	ath10k_mac_vif_chan@PLT
	mov	edi, eax
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L1
	mov	edx, DWORD PTR 28[rbx]
	test	edx, edx
	jne	.L23
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR 0[r13]
	mov	r13, QWORD PTR [rax+rdx*8]
	mov	rdi, r13
	call	ath10k_peer_assoc_h_vht_masked@PLT
	test	rax, rax
	jne	.L1
	mov	rdx, QWORD PTR [r12]
	mov	rcx, QWORD PTR [rsp]
	mov	eax, DWORD PTR 24[rbp]
	movsx	rcx, DWORD PTR [rcx]
	or	eax, DWORD PTR 12[rdx]
	cmp	rcx, QWORD PTR NL80211_BAND_2GHZ[rip]
	mov	DWORD PTR 24[rbp], eax
	je	.L25
.L3:
	mov	ecx, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK[rip]
	mov	esi, 1
	mov	edi, DWORD PTR 28[rbp]
	and	eax, ecx
	mov	DWORD PTR 0[rbp], ecx
	mov	ecx, DWORD PTR IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT[rip]
	shr	eax, cl
	mov	ecx, DWORD PTR IEEE80211_HT_MAX_AMPDU_FACTOR[rip]
	add	ecx, eax
	sal	esi, cl
	sub	esi, 1
	call	max@PLT
	mov	DWORD PTR 28[rbp], eax
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR IEEE80211_STA_RX_BW_80[rip]
	je	.L26
.L4:
	cmp	rax, QWORD PTR IEEE80211_STA_RX_BW_160[rip]
	je	.L27
.L5:
	mov	eax, DWORD PTR NL80211_VHT_NSS_MAX[rip]
	test	eax, eax
	jle	.L13
	xor	r15d, r15d
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 20[rbx]
	call	__le16_to_cpu@PLT
	lea	ecx, [r15+r15]
	sar	eax, cl
	and	eax, 3
	cmp	DWORD PTR IEEE80211_VHT_MCS_NOT_SUPPORTED[rip], eax
	je	.L7
	cmp	QWORD PTR 0[r13+r15*8], 0
	je	.L7
	lea	r14d, 1[r15]
.L7:
	add	r15, 1
	cmp	DWORD PTR NL80211_VHT_NSS_MAX[rip], r15d
	jg	.L8
.L6:
	mov	edi, DWORD PTR 36[rbx]
	mov	esi, r14d
	call	min@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	DWORD PTR 32[rbp], eax
	call	__le16_to_cpu@PLT
	mov	edi, DWORD PTR 20[rbx]
	mov	DWORD PTR 8[rbp], eax
	call	__le16_to_cpu@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	DWORD PTR 12[rbp], eax
	call	__le16_to_cpu@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	DWORD PTR 16[rbp], eax
	call	__le16_to_cpu@PLT
	mov	rsi, r13
	mov	edi, eax
	call	ath10k_peer_assoc_h_vht_limit@PLT
	mov	ecx, DWORD PTR 32[rbx]
	mov	r9d, DWORD PTR 24[rbp]
	mov	rdi, r12
	mov	DWORD PTR 20[rbp], eax
	mov	r8d, DWORD PTR 28[rbp]
	lea	rdx, .LC0[rip]
	mov	esi, DWORD PTR ATH10K_DBG_MAC[rip]
	call	ath10k_dbg@PLT
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L1
	mov	edx, DWORD PTR 8[rbx]
	test	DWORD PTR IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK[rip], edx
	je	.L1
	cmp	eax, 780
	je	.L10
	cmp	eax, 1560
	jne	.L1
	mov	DWORD PTR 4[rbp], 2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, QWORD PTR [r12]
	mov	eax, DWORD PTR [rax]
	or	DWORD PTR 24[rbp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdx, QWORD PTR [r12]
	mov	edx, DWORD PTR 4[rdx]
	or	DWORD PTR 24[rbp], edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	or	eax, DWORD PTR 8[rdx]
	mov	DWORD PTR 24[rbp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	xor	r14d, r14d
	jmp	.L6
.L10:
	mov	DWORD PTR 4[rbp], 1
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath10k_peer_assoc_h_vht, .-ath10k_peer_assoc_h_vht
	.comm	NL80211_VHT_NSS_MAX,4,4
	.comm	NL80211_BAND_2GHZ,8,8
	.comm	IEEE80211_VHT_MCS_NOT_SUPPORTED,4,4
	.comm	IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK,4,4
	.comm	IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT,4,4
	.comm	IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,4
	.comm	IEEE80211_STA_RX_BW_80,8,8
	.comm	IEEE80211_STA_RX_BW_160,8,8
	.comm	IEEE80211_HT_MAX_AMPDU_FACTOR,4,4
	.comm	ATH10K_DBG_MAC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mac.c_ath10k_peer_assoc_h_vht.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mac vht peer %pM max_mpdu %d flags 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath10k_peer_assoc_h_vht, %function
ath10k_peer_assoc_h_vht:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	sub	sp, sp, #28
	ldr	r3, .L29
	mov	r7, r0
	mov	r0, r1
	add	r1, sp, #16
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r4, [ip]
	bl	ath10k_mac_vif_chan
	bl	WARN_ON
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r5, #24]
	cmp	r3, #0
	bne	.L27
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	ldr	r2, [sp, #16]
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	str	r3, [sp, #12]
	bl	ath10k_peer_assoc_h_vht_masked
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [sp, #16]
	ldr	r1, .L29+4
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r2, [r7]
	cmp	r0, r1
	mvn	r1, #0
	ldr	ip, [r2, #12]
	ldr	r3, [r6, #24]
	ldreq	r2, [r2, #8]
	orr	r3, r3, ip
	str	r3, [r6, #24]
	orreq	r3, r2, r3
	streq	r3, [r6, #24]
	ldr	r3, .L29+8
	ldr	ip, .L29+12
	ldr	r2, [r3]
	ldr	r3, .L29+16
	ldr	r0, [r5, #4]
	ldr	ip, [ip]
	ldr	r3, [r3]
	and	r2, r2, r0
	add	r3, r3, r2, lsr ip
	mvn	r1, r1, lsl r3
	str	r0, [r6]
	ldr	r0, [r6, #28]
	bl	max
	ldr	r2, .L29+20
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	fp, .L29+24
	cmp	r3, r2
	ldreq	r1, [r7]
	ldreq	r2, [r6, #24]
	ldreq	r1, [r1, #4]
	mov	r8, #0
	orreq	r2, r2, r1
	streq	r2, [r6, #24]
	ldr	r2, .L29+28
	str	r0, [r6, #28]
	ldr	r2, [r2]
	cmp	r3, r2
	ldreq	r2, [r7]
	ldreq	r3, [r6, #24]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r6, #24]
	ldr	r3, [fp]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [sp, #12]
	ldr	r10, .L29+32
	sub	r9, r3, #4
.L8:
	ldr	r0, [r5, #16]
	bl	__le16_to_cpu
	lsl	r1, r4, #1
	ldr	r2, [r10]
	asr	r1, r0, r1
	and	r1, r1, #3
	cmp	r2, r1
	add	r4, r4, #1
	beq	.L7
	ldr	r2, [r9, r4, lsl #2]
	cmp	r2, #0
	movne	r8, r4
.L7:
	ldr	r2, [fp]
	cmp	r2, r4
	bgt	.L8
.L6:
	mov	r1, r8
	ldr	r0, [r5, #32]
	bl	min
	mov	r3, r0
	ldr	r0, [r5, #20]
	str	r3, [r6, #32]
	bl	__le16_to_cpu
	mov	r3, r0
	ldr	r0, [r5, #16]
	str	r3, [r6, #8]
	bl	__le16_to_cpu
	mov	r3, r0
	ldr	r0, [r5, #12]
	str	r3, [r6, #12]
	bl	__le16_to_cpu
	mov	r3, r0
	ldr	r0, [r5, #8]
	str	r3, [r6, #16]
	bl	__le16_to_cpu
	ldr	r1, [sp, #12]
	bl	ath10k_peer_assoc_h_vht_limit
	ldr	r2, [r6, #24]
	ldr	r3, [r6, #28]
	ldr	r1, .L29+36
	str	r0, [r6, #20]
	ldr	r1, [r1]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r5, #28]
	mov	r0, r7
	ldr	r2, .L29+40
	bl	ath10k_dbg
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L1
	ldr	r2, .L29+44
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L1
	cmp	r3, #780
	beq	.L10
	ldr	r2, .L29+48
	cmp	r3, r2
	moveq	r3, #2
	streq	r3, [r6, #4]
	b	.L1
.L10:
	mov	r3, #1
	str	r3, [r6, #4]
	b	.L1
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	NL80211_BAND_2GHZ
	.word	IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.word	IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT
	.word	IEEE80211_HT_MAX_AMPDU_FACTOR
	.word	IEEE80211_STA_RX_BW_80
	.word	NL80211_VHT_NSS_MAX
	.word	IEEE80211_STA_RX_BW_160
	.word	IEEE80211_VHT_MCS_NOT_SUPPORTED
	.word	ATH10K_DBG_MAC
	.word	.LC0
	.word	IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK
	.word	1560
	.size	ath10k_peer_assoc_h_vht, .-ath10k_peer_assoc_h_vht
	.comm	NL80211_VHT_NSS_MAX,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	IEEE80211_VHT_MCS_NOT_SUPPORTED,4,4
	.comm	IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK,4,4
	.comm	IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT,4,4
	.comm	IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,4
	.comm	IEEE80211_STA_RX_BW_80,4,4
	.comm	IEEE80211_STA_RX_BW_160,4,4
	.comm	IEEE80211_HT_MAX_AMPDU_FACTOR,4,4
	.comm	ATH10K_DBG_MAC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
