	.file	"extr_cpsmgr.c_zfPowerSavingMgrSleepIfIdle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"zfPowerSavingMgrSleepIfIdle: IDLE so slep now...\n"
	.text
	.p2align 4
	.type	zfPowerSavingMgrSleepIfIdle, @function
zfPowerSavingMgrSleepIfIdle:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	zmw_get_wlan_dev@PLT
	xor	eax, eax
	call	zmw_declare_for_critical_section@PLT
	mov	rdi, rbp
	call	zfPowerSavingMgrIsIdle@PLT
	test	rax, rax
	jne	.L6
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	zmw_enter_critical_section@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	eax, DWORD PTR [rax]
	sub	eax, 129
	cmp	eax, 2
	jbe	.L7
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	zmw_leave_critical_section@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	zm_debug_msg0@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	edx, DWORD PTR ZM_PS_MSG_STATE_T1[rip]
	mov	rdi, rbp
	mov	DWORD PTR 4[rax], edx
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	zmw_leave_critical_section@PLT
	.cfi_endproc
.LFE0:
	.size	zfPowerSavingMgrSleepIfIdle, .-zfPowerSavingMgrSleepIfIdle
	.comm	wd,8,8
	.comm	ZM_PS_MSG_STATE_T1,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_cpsmgr.c_zfPowerSavingMgrSleepIfIdle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"zfPowerSavingMgrSleepIfIdle: IDLE so slep now...\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfPowerSavingMgrSleepIfIdle, %function
zfPowerSavingMgrSleepIfIdle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	zmw_get_wlan_dev
	bl	zmw_declare_for_critical_section
	mov	r0, r4
	bl	zfPowerSavingMgrIsIdle
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r5, .L7
	mov	r0, r4
	bl	zmw_enter_critical_section
	ldr	r3, [r5]
	ldr	r3, [r3]
	sub	r3, r3, #129
	cmp	r3, #2
	bls	.L6
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	zmw_leave_critical_section
.L6:
	ldr	r0, .L7+4
	bl	zm_debug_msg0
	ldr	r2, .L7+8
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	str	r2, [r3, #4]
	b	zmw_leave_critical_section
.L8:
	.align	2
.L7:
	.word	wd
	.word	.LC0
	.word	ZM_PS_MSG_STATE_T1
	.size	zfPowerSavingMgrSleepIfIdle, .-zfPowerSavingMgrSleepIfIdle
	.comm	wd,4,4
	.comm	ZM_PS_MSG_STATE_T1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
