	.file	"extr_hw.c__rtl92ee_set_fw_clock_on.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Receive CPWM INT!!! PSState = %X\n"
	.text
	.p2align 4
	.type	_rtl92ee_set_fw_clock_on, @function
_rtl92ee_set_fw_clock_on:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	rtl_priv@PLT
	mov	rdi, r13
	mov	rbp, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_hal@PLT
	mov	esi, DWORD PTR HAL_DEF_WOWLAN[rip]
	lea	rdx, 20[rsp]
	mov	rdi, r13
	mov	r12, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	esi, DWORD PTR 8[r12]
	test	esi, esi
	je	.L1
	mov	ecx, DWORD PTR 16[rbp]
	test	ecx, ecx
	je	.L1
	xor	ebx, ebx
.L5:
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jne	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	je	.L21
.L4:
	mov	rdi, rbp
	add	ebx, 1
	call	spin_unlock_bh@PLT
	mov	edi, 100
	call	udelay@PLT
	cmp	ebx, 1000
	jle	.L22
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L21:
	.cfi_restore_state
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	jmp	.L5
.L3:
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	mov	edi, DWORD PTR 4[r12]
	call	IS_IN_LOW_POWER_STATE_92E@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, r13
	mov	esi, DWORD PTR HW_VAR_SET_RPWM[rip]
	lea	rdx, 12[rsp]
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	edi, DWORD PTR 12[rsp]
	call	FW_PS_IS_ACK@PLT
	test	rax, rax
	jne	.L24
.L8:
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	DWORD PTR [r12], 0
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	test	r14d, r14d
	je	.L1
	mov	edi, 10
	call	MSECS@PLT
	add	rax, QWORD PTR jiffies[rip]
	lea	rdi, 4[rbp]
	mov	rsi, rax
	call	mod_timer@PLT
	jmp	.L1
.L6:
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	DWORD PTR [r12], 0
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	jmp	.L1
.L24:
	mov	r13d, DWORD PTR REG_HISR[rip]
	mov	rdi, rbp
	mov	esi, r13d
	call	rtl_read_dword@PLT
	test	DWORD PTR IMR_CPWM[rip], eax
	jne	.L9
	cmp	ebx, 499
	jle	.L11
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	ebx, 500
	je	.L8
.L11:
	mov	edi, 50
	add	ebx, 1
	call	udelay@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	rtl_read_dword@PLT
	test	DWORD PTR IMR_CPWM[rip], eax
	je	.L25
.L9:
	mov	esi, r13d
	mov	rdi, rbp
	mov	edx, 256
	call	rtl_write_word@PLT
	mov	r8d, DWORD PTR FW_PS_STATE_RF_ON_92E[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_POWER[rip]
	lea	rcx, .LC0[rip]
	mov	DWORD PTR 4[r12], r8d
	call	RT_TRACE@PLT
	jmp	.L8
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_rtl92ee_set_fw_clock_on, .-_rtl92ee_set_fw_clock_on
	.comm	jiffies,8,8
	.comm	REG_HISR,4,4
	.comm	IMR_CPWM,4,4
	.comm	HW_VAR_SET_RPWM,4,4
	.comm	HAL_DEF_WOWLAN,4,4
	.comm	FW_PS_STATE_RF_ON_92E,4,4
	.comm	DBG_LOUD,4,4
	.comm	COMP_POWER,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_hw.c__rtl92ee_set_fw_clock_on.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Receive CPWM INT!!! PSState = %X\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92ee_set_fw_clock_on, %function
_rtl92ee_set_fw_clock_on:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L32
	sub	sp, sp, #28
	str	r1, [sp, #12]
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r7, r0
	bl	rtl_priv
	mov	r5, r0
	mov	r0, r7
	bl	rtl_priv
	bl	rtl_hal
	mov	r6, r0
	ldr	r3, [r5, #8]
	ldr	r2, .L32+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r7
	add	r2, sp, #16
	blx	r3
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L1
	mov	r4, #0
.L5:
	mov	r0, r5
	bl	spin_lock_bh
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L4
	b	.L3
.L28:
	mov	r0, r5
	bl	spin_lock_bh
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L27
.L4:
	mov	r0, r5
	bl	spin_unlock_bh
	add	r4, r4, #1
	mov	r0, #100
	bl	udelay
	cmp	r4, #1000
	ble	.L28
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L27:
	mov	r0, r5
	bl	spin_unlock_bh
	b	.L5
.L3:
	mov	r0, r5
	bl	spin_unlock_bh
	ldr	r0, [r6, #4]
	bl	IS_IN_LOW_POWER_STATE_92E
	subs	r9, r0, #0
	beq	.L6
	ldr	r3, [r5, #8]
	ldr	r2, .L32+8
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r3, [r3]
	add	r2, sp, #12
	mov	r0, r7
	blx	r3
	ldr	r0, [sp, #12]
	bl	FW_PS_IS_ACK
	cmp	r0, #0
	bne	.L30
.L8:
	mov	r0, r5
	bl	spin_lock_bh
	mov	r3, #0
	mov	r0, r5
	str	r3, [r6]
	bl	spin_unlock_bh
	cmp	r8, #0
	beq	.L1
	mov	r0, #10
	bl	MSECS
	mov	r1, r0
	ldr	r3, .L32+12
	add	r0, r5, #4
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	mod_timer
	b	.L1
.L6:
	mov	r0, r5
	bl	spin_lock_bh
	mov	r0, r5
	str	r9, [r6]
	bl	spin_unlock_bh
	b	.L1
.L30:
	ldr	r3, .L32+16
	mov	r0, r5
	ldr	r7, [r3]
	ldr	r9, .L32+20
	mov	r1, r7
	bl	rtl_read_dword
	ldr	r3, [r9]
	tst	r0, r3
	bne	.L9
	cmp	r4, #500
	blt	.L11
	b	.L8
.L31:
	cmp	r4, #500
	beq	.L8
.L11:
	mov	r0, #50
	bl	udelay
	mov	r1, r7
	mov	r0, r5
	bl	rtl_read_dword
	ldr	r3, [r9]
	add	r4, r4, #1
	tst	r0, r3
	beq	.L31
.L9:
	mov	r1, r7
	mov	r2, #256
	mov	r0, r5
	bl	rtl_write_word
	ldr	r3, .L32+24
	ldr	r2, .L32+28
	ldr	r3, [r3]
	ldr	r1, .L32+32
	str	r3, [r6, #4]
	ldr	r2, [r2]
	str	r3, [sp]
	mov	r0, r5
	ldr	r1, [r1]
	ldr	r3, .L32+36
	bl	RT_TRACE
	b	.L8
.L29:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC1
	.word	HAL_DEF_WOWLAN
	.word	HW_VAR_SET_RPWM
	.word	jiffies
	.word	REG_HISR
	.word	IMR_CPWM
	.word	FW_PS_STATE_RF_ON_92E
	.word	DBG_LOUD
	.word	COMP_POWER
	.word	.LC0
	.size	_rtl92ee_set_fw_clock_on, .-_rtl92ee_set_fw_clock_on
	.comm	jiffies,4,4
	.comm	REG_HISR,4,4
	.comm	IMR_CPWM,4,4
	.comm	HW_VAR_SET_RPWM,4,4
	.comm	HAL_DEF_WOWLAN,4,4
	.comm	FW_PS_STATE_RF_ON_92E,4,4
	.comm	DBG_LOUD,4,4
	.comm	COMP_POWER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
