	.file	"extr_11ac.c_mwifiex_fill_vht_cap_tlv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mwifiex_fill_vht_cap_tlv
	.type	mwifiex_fill_vht_cap_tlv, @function
mwifiex_fill_vht_cap_tlv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, 1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	DWORD PTR 4[rsp], edx
	mov	rbx, rax
	mov	QWORD PTR 8[rsp], rax
	call	mwifiex_fill_vht_cap_info@PLT
	mov	edi, DWORD PTR [rbx]
	call	GET_DEVRXMCSMAP@PLT
	mov	rdi, QWORD PTR 24[r12]
	mov	ebp, eax
	call	le16_to_cpu@PLT
	mov	ebx, eax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, r15d
	mov	edi, ebp
	call	GET_VHTNSSMCS@PLT
	mov	esi, r15d
	mov	edi, ebx
	mov	r14d, eax
	call	GET_VHTNSSMCS@PLT
	mov	edx, DWORD PTR IEEE80211_VHT_MCS_NOT_SUPPORTED[rip]
	cmp	edx, r14d
	je	.L15
	cmp	edx, eax
	je	.L15
	mov	esi, eax
	mov	edi, r14d
	call	min@PLT
	mov	edx, eax
.L15:
	mov	esi, r15d
	xor	edi, edi
	add	r15d, 1
	call	SET_VHTNSSMCS@PLT
	cmp	r15d, 9
	jne	.L5
	xor	edi, edi
	mov	ebx, 1
	call	cpu_to_le16@PLT
	mov	esi, DWORD PTR 4[rsp]
	xor	edx, edx
	mov	rdi, r13
	mov	QWORD PTR 24[r12], rax
	call	mwifiex_convert_mcsmap_to_maxrate@PLT
	mov	edi, eax
	call	cpu_to_le16@PLT
	mov	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	call	GET_DEVTXMCSMAP@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	r15d, eax
	call	le16_to_cpu@PLT
	mov	ebp, eax
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, ebx
	mov	edi, r15d
	call	GET_VHTNSSMCS@PLT
	mov	esi, ebx
	mov	edi, ebp
	mov	r14d, eax
	call	GET_VHTNSSMCS@PLT
	mov	edx, DWORD PTR IEEE80211_VHT_MCS_NOT_SUPPORTED[rip]
	cmp	edx, r14d
	je	.L16
	cmp	edx, eax
	je	.L16
	mov	esi, eax
	mov	edi, r14d
	call	min@PLT
	mov	edx, eax
.L16:
	mov	esi, ebx
	xor	edi, edi
	add	ebx, 1
	call	SET_VHTNSSMCS@PLT
	cmp	ebx, 9
	jne	.L9
	xor	edi, edi
	call	cpu_to_le16@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, r13
	xor	edx, edx
	mov	QWORD PTR 8[r12], rax
	call	mwifiex_convert_mcsmap_to_maxrate@PLT
	mov	edi, eax
	call	cpu_to_le16@PLT
	mov	QWORD PTR [r12], rax
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	mwifiex_fill_vht_cap_tlv, .-mwifiex_fill_vht_cap_tlv
	.comm	IEEE80211_VHT_MCS_NOT_SUPPORTED,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_11ac.c_mwifiex_fill_vht_cap_tlv.c"
	.text
	.align	2
	.global	mwifiex_fill_vht_cap_tlv
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwifiex_fill_vht_cap_tlv, %function
mwifiex_fill_vht_cap_tlv:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0]
	sub	sp, sp, #12
	mov	r7, r1
	str	r2, [sp]
	str	r4, [sp, #4]
	mov	r8, r0
	bl	mwifiex_fill_vht_cap_info
	ldr	r0, [r4]
	bl	GET_DEVRXMCSMAP
	mov	r10, r0
	ldr	r0, [r7, #12]
	bl	le16_to_cpu
	mov	r4, #1
	mov	r6, r0
	ldr	r5, .L16
	b	.L4
.L13:
	mov	r1, r4
	mov	r0, #0
	add	r4, r4, #1
	bl	SET_VHTNSSMCS
	cmp	r4, #9
	beq	.L12
.L4:
	mov	r1, r4
	mov	r0, r10
	bl	GET_VHTNSSMCS
	mov	r1, r4
	mov	fp, r0
	mov	r0, r6
	bl	GET_VHTNSSMCS
	ldr	r2, [r5]
	cmp	r2, r0
	cmpne	r2, fp
	moveq	r9, #1
	movne	r9, #0
	beq	.L13
	mov	r1, r0
	mov	r0, fp
	bl	min
	mov	r1, r4
	mov	r2, r0
	add	r4, r4, #1
	mov	r0, r9
	bl	SET_VHTNSSMCS
	cmp	r4, #9
	bne	.L4
.L12:
	mov	r0, #0
	bl	cpu_to_le16
	ldr	r1, [sp]
	mov	r2, #0
	str	r0, [r7, #12]
	mov	r0, r8
	bl	mwifiex_convert_mcsmap_to_maxrate
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r2, [sp, #4]
	mov	r4, #1
	ldr	r0, [r2]
	str	r3, [r7, #8]
	bl	GET_DEVTXMCSMAP
	mov	r10, r0
	ldr	r0, [r7, #4]
	bl	le16_to_cpu
	mov	r6, r0
	b	.L7
.L15:
	mov	r1, r4
	mov	r0, #0
	add	r4, r4, #1
	bl	SET_VHTNSSMCS
	cmp	r4, #9
	beq	.L14
.L7:
	mov	r1, r4
	mov	r0, r10
	bl	GET_VHTNSSMCS
	mov	r1, r4
	mov	r9, r0
	mov	r0, r6
	bl	GET_VHTNSSMCS
	ldr	r2, [r5]
	cmp	r2, r0
	cmpne	r2, r9
	moveq	fp, #1
	movne	fp, #0
	beq	.L15
	mov	r1, r0
	mov	r0, r9
	bl	min
	mov	r1, r4
	mov	r2, r0
	add	r4, r4, #1
	mov	r0, fp
	bl	SET_VHTNSSMCS
	cmp	r4, #9
	bne	.L7
.L14:
	mov	r0, #0
	bl	cpu_to_le16
	mov	r2, #0
	ldr	r1, [sp]
	str	r0, [r7, #4]
	mov	r0, r8
	bl	mwifiex_convert_mcsmap_to_maxrate
	bl	cpu_to_le16
	str	r0, [r7]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	IEEE80211_VHT_MCS_NOT_SUPPORTED
	.size	mwifiex_fill_vht_cap_tlv, .-mwifiex_fill_vht_cap_tlv
	.comm	IEEE80211_VHT_MCS_NOT_SUPPORTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
