	.file	"extr_rtl_wx.c__rtl92e_wx_set_retry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rtl92e_wx_set_retry, @function
_rtl92e_wx_set_retry:
.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, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	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
	call	rtllib_priv@PLT
	cmp	QWORD PTR 24[rax], 0
	je	.L15
	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
.L15:
	.cfi_restore_state
	lea	r14, 16[rax]
	mov	rbx, rax
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 0[r13]
	mov	r12d, eax
	and	r12d, DWORD PTR IW_RETRY_LIFETIME[rip]
	jne	.L3
	cmp	QWORD PTR 16[r13], 0
	jne	.L3
	test	DWORD PTR IW_RETRY_LIMIT[rip], eax
	je	.L3
	mov	rdx, QWORD PTR 8[r13]
	cmp	rdx, QWORD PTR R8192_MAX_RETRY[rip]
	jg	.L3
	test	DWORD PTR IW_RETRY_MAX[rip], eax
	jne	.L16
	mov	QWORD PTR 8[rbx], rdx
.L7:
	mov	rdi, rbp
	call	rtl92e_commit@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.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
.L16:
	.cfi_restore_state
	mov	QWORD PTR [rbx], rdx
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	_rtl92e_wx_set_retry, .-_rtl92e_wx_set_retry
	.comm	R8192_MAX_RETRY,8,8
	.comm	IW_RETRY_MAX,4,4
	.comm	IW_RETRY_LIMIT,4,4
	.comm	IW_RETRY_LIFETIME,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_rtl_wx.c__rtl92e_wx_set_retry.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92e_wx_set_retry, %function
_rtl92e_wx_set_retry:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	mov	r6, r0
	bl	rtllib_priv
	ldr	r3, [r0, #12]
	cmp	r3, #0
	movne	r5, #0
	beq	.L14
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	add	r8, r0, #8
	mov	r4, r0
	mov	r0, r8
	bl	mutex_lock
	ldr	r2, .L15
	ldr	r3, [r7]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L3
	ldr	r5, [r7, #8]
	cmp	r5, #0
	bne	.L3
	ldr	r2, .L15+4
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L3
	ldr	r1, .L15+8
	ldr	r2, [r7, #4]
	ldr	r1, [r1]
	cmp	r2, r1
	bgt	.L3
	ldr	r1, .L15+12
	mov	r0, r6
	ldr	r1, [r1]
	tst	r3, r1
	strne	r2, [r4]
	streq	r2, [r4, #4]
	bl	rtl92e_commit
	b	.L5
.L3:
	ldr	r3, .L15+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L5:
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	IW_RETRY_LIFETIME
	.word	IW_RETRY_LIMIT
	.word	R8192_MAX_RETRY
	.word	IW_RETRY_MAX
	.word	EINVAL
	.size	_rtl92e_wx_set_retry, .-_rtl92e_wx_set_retry
	.comm	R8192_MAX_RETRY,4,4
	.comm	IW_RETRY_MAX,4,4
	.comm	IW_RETRY_LIMIT,4,4
	.comm	IW_RETRY_LIFETIME,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
