	.file	"extr_nl80211.c_nl80211_put_sta_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nl80211_put_sta_rate, @function
nl80211_put_sta_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	esi, edx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	call	nla_nest_start@PLT
	test	rax, rax
	je	.L7
	mov	rdi, rbx
	mov	r12, rax
	call	cfg80211_calculate_bitrate@PLT
	mov	rdx, rax
	cmp	rax, 65535
	ja	.L4
	test	rax, rax
	jne	.L5
.L15:
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR RATE_INFO_FLAGS_MCS[rip], eax
	jne	.L44
	test	DWORD PTR RATE_INFO_FLAGS_VHT_MCS[rip], eax
	jne	.L45
.L10:
	mov	rsi, r12
	mov	rdi, rbp
	call	nla_nest_end@PLT
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR NL80211_RATE_INFO_BITRATE32[rip]
	mov	rdi, rbp
	call	nla_put_u32@PLT
	test	rax, rax
	je	.L15
.L7:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR NL80211_RATE_INFO_MCS[rip]
	mov	rdi, rbp
	call	nla_put_u8@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR RATE_INFO_FLAGS_40_MHZ_WIDTH[rip], eax
	jne	.L46
.L8:
	test	DWORD PTR RATE_INFO_FLAGS_SHORT_GI[rip], eax
	je	.L10
	mov	esi, DWORD PTR NL80211_RATE_INFO_SHORT_GI[rip]
	mov	rdi, rbp
	call	nla_put_flag@PLT
	test	rax, rax
	je	.L10
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR NL80211_RATE_INFO_VHT_MCS[rip]
	mov	rdi, rbp
	call	nla_put_u8@PLT
	test	rax, rax
	jne	.L7
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR NL80211_RATE_INFO_VHT_NSS[rip]
	mov	rdi, rbp
	call	nla_put_u8@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR RATE_INFO_FLAGS_40_MHZ_WIDTH[rip], eax
	jne	.L47
.L11:
	test	DWORD PTR RATE_INFO_FLAGS_80_MHZ_WIDTH[rip], eax
	jne	.L48
.L12:
	test	DWORD PTR RATE_INFO_FLAGS_80P80_MHZ_WIDTH[rip], eax
	jne	.L49
.L13:
	test	DWORD PTR RATE_INFO_FLAGS_160_MHZ_WIDTH[rip], eax
	je	.L8
	mov	esi, DWORD PTR NL80211_RATE_INFO_160_MHZ_WIDTH[rip]
	mov	rdi, rbp
	call	nla_put_flag@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR [rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L46:
	mov	esi, DWORD PTR NL80211_RATE_INFO_40_MHZ_WIDTH[rip]
	mov	rdi, rbp
	call	nla_put_flag@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR [rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L47:
	mov	esi, DWORD PTR NL80211_RATE_INFO_40_MHZ_WIDTH[rip]
	mov	rdi, rbp
	call	nla_put_flag@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR [rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L48:
	mov	esi, DWORD PTR NL80211_RATE_INFO_80_MHZ_WIDTH[rip]
	mov	rdi, rbp
	call	nla_put_flag@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR [rbx]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L49:
	mov	esi, DWORD PTR NL80211_RATE_INFO_80P80_MHZ_WIDTH[rip]
	mov	rdi, rbp
	call	nla_put_flag@PLT
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR [rbx]
	jmp	.L13
.L5:
	mov	esi, DWORD PTR NL80211_RATE_INFO_BITRATE32[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	nla_put_u32@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L7
	mov	esi, DWORD PTR NL80211_RATE_INFO_BITRATE[rip]
	mov	rdi, rbp
	call	nla_put_u16@PLT
	test	rax, rax
	je	.L15
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	nl80211_put_sta_rate, .-nl80211_put_sta_rate
	.comm	RATE_INFO_FLAGS_VHT_MCS,4,4
	.comm	RATE_INFO_FLAGS_SHORT_GI,4,4
	.comm	RATE_INFO_FLAGS_MCS,4,4
	.comm	RATE_INFO_FLAGS_80_MHZ_WIDTH,4,4
	.comm	RATE_INFO_FLAGS_80P80_MHZ_WIDTH,4,4
	.comm	RATE_INFO_FLAGS_40_MHZ_WIDTH,4,4
	.comm	RATE_INFO_FLAGS_160_MHZ_WIDTH,4,4
	.comm	NL80211_RATE_INFO_VHT_NSS,4,4
	.comm	NL80211_RATE_INFO_VHT_MCS,4,4
	.comm	NL80211_RATE_INFO_SHORT_GI,4,4
	.comm	NL80211_RATE_INFO_MCS,4,4
	.comm	NL80211_RATE_INFO_BITRATE32,4,4
	.comm	NL80211_RATE_INFO_BITRATE,4,4
	.comm	NL80211_RATE_INFO_80_MHZ_WIDTH,4,4
	.comm	NL80211_RATE_INFO_80P80_MHZ_WIDTH,4,4
	.comm	NL80211_RATE_INFO_40_MHZ_WIDTH,4,4
	.comm	NL80211_RATE_INFO_160_MHZ_WIDTH,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_nl80211.c_nl80211_put_sta_rate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nl80211_put_sta_rate, %function
nl80211_put_sta_rate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	sub	sp, sp, #8
	mov	r1, r2
	mov	r6, r0
	bl	nla_nest_start
	subs	r5, r0, #0
	beq	.L7
	mov	r0, r4
	bl	cfg80211_calculate_bitrate
	cmp	r0, #65536
	mov	r2, r0
	bcs	.L4
	cmp	r0, #0
	bne	.L5
.L15:
	ldr	r2, .L52
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L46
	ldr	r2, .L52+4
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L47
.L10:
	mov	r1, r5
	mov	r0, r6
	bl	nla_nest_end
	mov	r0, #1
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L52+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_put_u32
	cmp	r0, #0
	beq	.L15
.L7:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L46:
	ldr	r3, .L52+12
	mov	r0, r6
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	bl	nla_put_u8
	cmp	r0, #0
	bne	.L7
	ldr	r2, .L52+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L48
.L8:
	ldr	r2, .L52+20
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L10
	ldr	r3, .L52+24
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_put_flag
	cmp	r0, #0
	beq	.L10
	b	.L7
.L47:
	ldr	r3, .L52+28
	mov	r0, r6
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	bl	nla_put_u8
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L52+32
	mov	r0, r6
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	bl	nla_put_u8
	cmp	r0, #0
	bne	.L7
	ldr	r2, .L52+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L49
.L11:
	ldr	r2, .L52+36
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L50
.L12:
	ldr	r2, .L52+40
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L51
.L13:
	ldr	r2, .L52+44
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r3, .L52+48
	beq	.L8
.L44:
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_put_flag
	cmp	r0, #0
	bne	.L7
	ldr	r3, [r4]
	b	.L8
.L48:
	ldr	r3, .L52+52
	b	.L44
.L49:
	ldr	r3, .L52+52
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_put_flag
	cmp	r0, #0
	bne	.L7
	ldr	r3, [r4]
	b	.L11
.L50:
	ldr	r3, .L52+56
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_put_flag
	cmp	r0, #0
	bne	.L7
	ldr	r3, [r4]
	b	.L12
.L51:
	ldr	r3, .L52+60
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_put_flag
	cmp	r0, #0
	bne	.L7
	ldr	r3, [r4]
	b	.L13
.L5:
	ldr	r3, .L52+8
	str	r0, [sp, #4]
	ldr	r1, [r3]
	mov	r0, r6
	bl	nla_put_u32
	cmp	r0, #0
	ldr	r2, [sp, #4]
	bne	.L7
	ldr	r3, .L52+64
	mov	r0, r6
	ldr	r1, [r3]
	bl	nla_put_u16
	cmp	r0, #0
	beq	.L15
	b	.L7
.L53:
	.align	2
.L52:
	.word	RATE_INFO_FLAGS_MCS
	.word	RATE_INFO_FLAGS_VHT_MCS
	.word	NL80211_RATE_INFO_BITRATE32
	.word	NL80211_RATE_INFO_MCS
	.word	RATE_INFO_FLAGS_40_MHZ_WIDTH
	.word	RATE_INFO_FLAGS_SHORT_GI
	.word	NL80211_RATE_INFO_SHORT_GI
	.word	NL80211_RATE_INFO_VHT_MCS
	.word	NL80211_RATE_INFO_VHT_NSS
	.word	RATE_INFO_FLAGS_80_MHZ_WIDTH
	.word	RATE_INFO_FLAGS_80P80_MHZ_WIDTH
	.word	RATE_INFO_FLAGS_160_MHZ_WIDTH
	.word	NL80211_RATE_INFO_160_MHZ_WIDTH
	.word	NL80211_RATE_INFO_40_MHZ_WIDTH
	.word	NL80211_RATE_INFO_80_MHZ_WIDTH
	.word	NL80211_RATE_INFO_80P80_MHZ_WIDTH
	.word	NL80211_RATE_INFO_BITRATE
	.size	nl80211_put_sta_rate, .-nl80211_put_sta_rate
	.comm	RATE_INFO_FLAGS_VHT_MCS,4,4
	.comm	RATE_INFO_FLAGS_SHORT_GI,4,4
	.comm	RATE_INFO_FLAGS_MCS,4,4
	.comm	RATE_INFO_FLAGS_80_MHZ_WIDTH,4,4
	.comm	RATE_INFO_FLAGS_80P80_MHZ_WIDTH,4,4
	.comm	RATE_INFO_FLAGS_40_MHZ_WIDTH,4,4
	.comm	RATE_INFO_FLAGS_160_MHZ_WIDTH,4,4
	.comm	NL80211_RATE_INFO_VHT_NSS,4,4
	.comm	NL80211_RATE_INFO_VHT_MCS,4,4
	.comm	NL80211_RATE_INFO_SHORT_GI,4,4
	.comm	NL80211_RATE_INFO_MCS,4,4
	.comm	NL80211_RATE_INFO_BITRATE32,4,4
	.comm	NL80211_RATE_INFO_BITRATE,4,4
	.comm	NL80211_RATE_INFO_80_MHZ_WIDTH,4,4
	.comm	NL80211_RATE_INFO_80P80_MHZ_WIDTH,4,4
	.comm	NL80211_RATE_INFO_40_MHZ_WIDTH,4,4
	.comm	NL80211_RATE_INFO_160_MHZ_WIDTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
