	.file	"extr_cfg.c_ieee80211_set_tx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ieee80211_set_tx, @function
ieee80211_set_tx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	esi, DWORD PTR NL80211_EXT_FEATURE_EXT_KEY_ID[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR EINVAL[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR [rdi]
	neg	r12d
	mov	rbx, rdx
	mov	edi, DWORD PTR 4[r14]
	call	wiphy_ext_feature_isset@PLT
	test	eax, eax
	jne	.L2
.L14:
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	mov	rsi, r13
	call	sta_info_get_bss@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L14
	cmp	QWORD PTR [rax], rbx
	je	.L6
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, r14
	mov	esi, DWORD PTR [rax+rbx*4]
	call	key_mtx_dereference@PLT
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR IEEE80211_KEY_FLAG_NO_AUTO_TX[rip], edx
	je	.L5
	mov	rdi, rax
	call	ieee80211_set_tx_key@PLT
	mov	r12d, eax
.L5:
	mov	rdi, r14
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ieee80211_set_tx, .-ieee80211_set_tx
	.comm	NL80211_EXT_FEATURE_EXT_KEY_ID,4,4
	.comm	IEEE80211_KEY_FLAG_NO_AUTO_TX,4,4
	.comm	EINVAL,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_cfg.c_ieee80211_set_tx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee80211_set_tx, %function
ieee80211_set_tx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L16
	ldr	r8, [r0]
	ldr	r9, .L16+4
	mov	r5, r0
	mov	r7, r1
	ldr	r0, [r8, #4]
	ldr	r1, [r3]
	mov	r6, r2
	ldr	r4, [r9]
	bl	wiphy_ext_feature_isset
	cmp	r0, #0
	bne	.L2
.L14:
	ldr	r4, [r9]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r5
	mov	r1, r7
	bl	sta_info_get_bss
	subs	r5, r0, #0
	beq	.L14
	ldr	r3, [r5]
	cmp	r3, r6
	moveq	r4, #0
	beq	.L1
	mov	r0, r8
	bl	mutex_lock
	ldr	r3, [r5, #4]
	mov	r0, r8
	ldr	r1, [r3, r6, lsl #2]
	bl	key_mtx_dereference
	subs	r3, r0, #0
	rsb	r4, r4, #0
	beq	.L5
	ldr	r1, .L16+8
	ldr	r2, [r3]
	ldr	r3, [r1]
	tst	r2, r3
	beq	.L5
	bl	ieee80211_set_tx_key
	mov	r4, r0
.L5:
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	NL80211_EXT_FEATURE_EXT_KEY_ID
	.word	EINVAL
	.word	IEEE80211_KEY_FLAG_NO_AUTO_TX
	.size	ieee80211_set_tx, .-ieee80211_set_tx
	.comm	NL80211_EXT_FEATURE_EXT_KEY_ID,4,4
	.comm	IEEE80211_KEY_FLAG_NO_AUTO_TX,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
