	.file	"extr_ks_wlan_net.c_ks_wlan_set_beacon_lost.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ks_wlan_set_beacon_lost, @function
ks_wlan_set_beacon_lost:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdx
	call	netdev_priv@PLT
	mov	r8d, DWORD PTR EPERM[rip]
	mov	rcx, QWORD PTR SLP_SLEEP[rip]
	neg	r8d
	cmp	QWORD PTR [rax], rcx
	je	.L1
	mov	r8d, DWORD PTR EINVAL[rip]
	mov	rdx, QWORD PTR [rbx]
	neg	r8d
	cmp	rdx, QWORD PTR BEACON_LOST_COUNT_MAX[rip]
	jg	.L1
	mov	QWORD PTR 24[rax], rdx
	mov	rsi, QWORD PTR MODE_INFRASTRUCTURE[rip]
	xor	r8d, r8d
	cmp	QWORD PTR 16[rax], rsi
	je	.L8
.L1:
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r8d, DWORD PTR EINPROGRESS[rip]
	mov	edx, DWORD PTR SME_MODE_SET[rip]
	or	DWORD PTR 8[rax], edx
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	r8d
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	ks_wlan_set_beacon_lost, .-ks_wlan_set_beacon_lost
	.comm	SME_MODE_SET,4,4
	.comm	SLP_SLEEP,8,8
	.comm	MODE_INFRASTRUCTURE,8,8
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	EINPROGRESS,4,4
	.comm	BEACON_LOST_COUNT_MAX,8,8
	.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_ks_wlan_net.c_ks_wlan_set_beacon_lost.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ks_wlan_set_beacon_lost, %function
ks_wlan_set_beacon_lost:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r2
	bl	netdev_priv
	ldr	r3, .L10
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
	ldr	r2, .L10+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	bgt	.L9
	ldr	r2, .L10+8
	ldr	r1, [r0, #8]
	ldr	r2, [r2]
	str	r3, [r0, #12]
	cmp	r1, r2
	ldreq	r2, .L10+12
	ldreq	r3, .L10+16
	ldreq	r1, [r2]
	ldreq	r2, [r0, #4]
	ldreq	r3, [r3]
	orreq	r2, r2, r1
	streq	r2, [r0, #4]
	rsbeq	r0, r3, #0
	movne	r0, #0
	pop	{r4, pc}
.L9:
	ldr	r3, .L10+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L8:
	ldr	r3, .L10+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	SLP_SLEEP
	.word	BEACON_LOST_COUNT_MAX
	.word	MODE_INFRASTRUCTURE
	.word	SME_MODE_SET
	.word	EINPROGRESS
	.word	EINVAL
	.word	EPERM
	.size	ks_wlan_set_beacon_lost, .-ks_wlan_set_beacon_lost
	.comm	SME_MODE_SET,4,4
	.comm	SLP_SLEEP,4,4
	.comm	MODE_INFRASTRUCTURE,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	EINPROGRESS,4,4
	.comm	BEACON_LOST_COUNT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
