	.file	"extr_phy.c__rtl92ce_phy_set_rf_power_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IPS Set eRf nic enable\n"
.LC1:
	.string	"Set ERFON sleeped:%d ms\n"
.LC2:
	.string	"IPS Set eRf nic disable\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"eRf Off/Sleep: %d times TcbBusyQueue[%d] =%d before doze!\n"
	.align 8
.LC4:
	.string	"ERFSLEEP: %d times TcbBusyQueue[%d] = %d !\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Set ERFSLEEP awaked:%d ms\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"switch case %#x not processed\n"
	.text
	.p2align 4
	.type	_rtl92ce_phy_set_rf_power_state, @function
_rtl92ce_phy_set_rf_power_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	rtl_priv@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	rtl_pcipriv@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_mac@PLT
	mov	rdi, rbp
	mov	r15, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_psc@PLT
	mov	rbx, rax
	cmp	r12d, 129
	je	.L2
	cmp	r12d, 130
	je	.L3
	cmp	r12d, 128
	je	.L39
	mov	esi, r12d
	lea	rdi, .LC6[rip]
	call	pr_err@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	DWORD PTR [rax], 130
	je	.L40
.L6:
	mov	rdi, QWORD PTR jiffies[rip]
	sub	rdi, QWORD PTR 8[rbx]
	call	jiffies_to_msecs@PLT
	mov	edx, DWORD PTR DBG_DMESG[rip]
	mov	rdi, r13
	mov	esi, DWORD PTR COMP_RF[rip]
	mov	r8d, eax
	lea	rcx, .LC1[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR jiffies[rip]
	mov	rdi, rbp
	mov	QWORD PTR 16[rbx], rax
	call	rtl92ce_phy_set_rf_on@PLT
.L9:
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR MAC80211_LINKED[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR [r15], edx
	je	.L41
.L37:
	mov	esi, DWORD PTR LED_CTL_NO_LINK[rip]
	mov	rdi, rbp
	call	rax
.L11:
	mov	DWORD PTR [rbx], r12d
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	cmp	DWORD PTR [rax], 130
	je	.L11
	xor	r15d, r15d
	xor	r14d, r14d
	cmp	QWORD PTR RTL_PCI_MAX_TX_QUEUE_COUNT[rip], 0
	je	.L15
	mov	rbx, r15
	mov	QWORD PTR 8[rsp], rax
	mov	r15, QWORD PTR [rsp]
	mov	QWORD PTR [rsp], rbp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR [r15]
	lea	rbp, [rax+rbx*4]
	mov	rdi, rbp
	call	skb_queue_len@PLT
	test	eax, eax
	je	.L18
	mov	rdi, rbp
	add	r14, 1
	call	skb_queue_len@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r9, rbx
	mov	r8, r14
	mov	esi, DWORD PTR COMP_ERR[rip]
	mov	edx, DWORD PTR DBG_WARNING[rip]
	push	rax
	.cfi_def_cfa_offset 96
	mov	rdi, r13
	lea	rcx, .LC3[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	edi, 10
	call	udelay@PLT
	cmp	r14, QWORD PTR MAX_DOZE_WAITING_TIMES_9x[rip]
	pop	rcx
	.cfi_def_cfa_offset 88
	pop	rsi
	.cfi_def_cfa_offset 80
	jnb	.L42
	cmp	QWORD PTR RTL_PCI_MAX_TX_QUEUE_COUNT[rip], rbx
	jbe	.L43
.L14:
	cmp	QWORD PTR BEACON_QUEUE[rip], rbx
	jne	.L16
.L18:
	add	rbx, 1
	cmp	QWORD PTR RTL_PCI_MAX_TX_QUEUE_COUNT[rip], rbx
	ja	.L14
.L43:
	mov	rbx, QWORD PTR 8[rsp]
	mov	rbp, QWORD PTR [rsp]
.L15:
	mov	rdi, QWORD PTR jiffies[rip]
	sub	rdi, QWORD PTR 16[rbx]
	call	jiffies_to_msecs@PLT
	mov	edx, DWORD PTR DBG_DMESG[rip]
	mov	rdi, r13
	mov	esi, DWORD PTR COMP_RF[rip]
	mov	r8d, eax
	lea	rcx, .LC5[rip]
	xor	eax, eax
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR jiffies[rip]
	mov	rdi, rbp
	mov	QWORD PTR 8[rbx], rax
	call	_rtl92ce_phy_set_rf_sleep@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 24[rax]
	test	DWORD PTR RT_RF_OFF_LEVL_HALT_NIC[rip], eax
	jne	.L44
	mov	rax, QWORD PTR 0[r13]
	mov	ecx, DWORD PTR RF_CHANGE_BY_IPS[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR 28[rbx], ecx
	je	.L37
	mov	esi, DWORD PTR LED_CTL_POWER_OFF[rip]
	mov	rdi, rbp
	call	rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L41:
	mov	esi, DWORD PTR LED_CTL_LINK[rip]
	mov	rdi, rbp
	call	rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L40:
	mov	esi, DWORD PTR RT_RF_OFF_LEVL_HALT_NIC[rip]
	mov	rdi, rax
	call	RT_IN_PS_LEVEL@PLT
	test	eax, eax
	je	.L6
	xor	r14d, r14d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L45:
	cmp	r14d, 9
	jg	.L22
.L7:
	mov	edx, DWORD PTR DBG_DMESG[rip]
	mov	rdi, r13
	xor	eax, eax
	add	r14d, 1
	mov	esi, DWORD PTR COMP_RF[rip]
	lea	rcx, .LC0[rip]
	call	RT_TRACE@PLT
	mov	rdi, rbp
	call	rtl_ps_enable_nic@PLT
	test	eax, eax
	je	.L45
.L22:
	mov	esi, DWORD PTR RT_RF_OFF_LEVL_HALT_NIC[rip]
	mov	rdi, rbx
	call	RT_CLEAR_PS_LEVEL@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edx, DWORD PTR DBG_DMESG[rip]
	mov	esi, DWORD PTR COMP_RF[rip]
	mov	rdi, r13
	xor	eax, eax
	lea	rcx, .LC2[rip]
	call	RT_TRACE@PLT
	mov	rdi, rbp
	call	rtl_ps_disable_nic@PLT
	mov	esi, DWORD PTR RT_RF_OFF_LEVL_HALT_NIC[rip]
	mov	rdi, rbx
	call	RT_SET_PS_LEVEL@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L42:
	mov	r14, rbp
	mov	r15, rbx
	mov	rbp, QWORD PTR [rsp]
	mov	rbx, QWORD PTR 8[rsp]
	mov	rdi, r14
	call	skb_queue_len@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r9, r15
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR DBG_WARNING[rip]
	xor	eax, eax
	lea	rcx, .LC4[rip]
	mov	r8, QWORD PTR MAX_DOZE_WAITING_TIMES_9x[rip]
	mov	esi, DWORD PTR COMP_ERR[rip]
	call	RT_TRACE@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	_rtl92ce_phy_set_rf_power_state, .-_rtl92ce_phy_set_rf_power_state
	.comm	jiffies,8,8
	.comm	RT_RF_OFF_LEVL_HALT_NIC,4,4
	.comm	RTL_PCI_MAX_TX_QUEUE_COUNT,8,8
	.comm	RF_CHANGE_BY_IPS,4,4
	.comm	MAX_DOZE_WAITING_TIMES_9x,8,8
	.comm	MAC80211_LINKED,4,4
	.comm	LED_CTL_POWER_OFF,4,4
	.comm	LED_CTL_NO_LINK,4,4
	.comm	LED_CTL_LINK,4,4
	.comm	DBG_WARNING,4,4
	.comm	DBG_DMESG,4,4
	.comm	COMP_RF,4,4
	.comm	COMP_ERR,4,4
	.comm	BEACON_QUEUE,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_phy.c__rtl92ce_phy_set_rf_power_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IPS Set eRf nic enable\012\000"
	.align	2
.LC1:
	.ascii	"Set ERFON sleeped:%d ms\012\000"
	.align	2
.LC2:
	.ascii	"IPS Set eRf nic disable\012\000"
	.align	2
.LC3:
	.ascii	"eRf Off/Sleep: %d times TcbBusyQueue[%d] =%d before"
	.ascii	" doze!\012\000"
	.align	2
.LC4:
	.ascii	"ERFSLEEP: %d times TcbBusyQueue[%d] = %d !\012\000"
	.align	2
.LC5:
	.ascii	"Set ERFSLEEP awaked:%d ms\012\000"
	.align	2
.LC6:
	.ascii	"switch case %#x not processed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92ce_phy_set_rf_power_state, %function
_rtl92ce_phy_set_rf_power_state:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	mov	r5, r1
	mov	r4, r0
	bl	rtl_priv
	mov	r7, r0
	mov	r0, r4
	bl	rtl_pcipriv
	mov	r3, r0
	mov	r0, r4
	mov	r9, r3
	bl	rtl_priv
	bl	rtl_mac
	mov	r8, r0
	mov	r0, r4
	bl	rtl_priv
	bl	rtl_psc
	cmp	r5, #129
	mov	r6, r0
	beq	.L2
	cmp	r5, #130
	beq	.L3
	cmp	r5, #128
	beq	.L36
	mov	r1, r5
	ldr	r0, .L42
	bl	pr_err
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [r0]
	cmp	r3, #130
	beq	.L37
.L6:
	ldr	r9, .L42+4
	ldr	r1, [r6, #4]
	ldr	r0, [r9]
	ldr	r2, .L42+8
	ldr	r3, .L42+12
	sub	r0, r0, r1
	ldr	r10, [r2]
	ldr	fp, [r3]
	bl	jiffies_to_msecs
	ldr	r3, .L42+16
	str	r0, [sp]
	mov	r2, fp
	mov	r1, r10
	mov	r0, r7
	bl	RT_TRACE
	ldr	r3, [r9]
	mov	r0, r4
	str	r3, [r6, #8]
	bl	rtl92ce_phy_set_rf_on
.L8:
	ldr	r2, .L42+20
	ldr	r3, [r7]
	ldr	r1, [r8]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r1, r2
	ldr	r3, [r3]
	beq	.L38
.L34:
	ldr	r2, .L42+24
	mov	r0, r4
	ldr	r1, [r2]
	blx	r3
.L10:
	mov	r0, #1
	str	r5, [r6]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	ldr	r3, [r0]
	cmp	r3, #130
	beq	.L10
	ldr	r10, .L42+28
	ldr	r3, [r10]
	cmp	r3, #0
	beq	.L14
	mov	r8, #0
	str	r4, [sp, #24]
	mov	r6, r9
	mov	r4, r8
	ldr	fp, .L42+32
	str	r0, [sp, #20]
	str	r5, [sp, #28]
	b	.L13
.L15:
	ldr	r9, [r6]
	add	r9, r9, r8, lsl #2
	mov	r0, r9
	bl	skb_queue_len
	cmp	r0, #0
	beq	.L17
	ldr	r3, .L42+36
	mov	r0, r9
	ldr	r5, [r3]
	ldr	r3, .L42+40
	add	r4, r4, #1
	ldr	r2, [r3]
	str	r2, [sp, #16]
	bl	skb_queue_len
	ldr	r3, .L42+44
	mov	r1, r5
	ldr	r2, [sp, #16]
	str	r0, [sp, #8]
	str	r4, [sp]
	mov	r0, r7
	str	r8, [sp, #4]
	bl	RT_TRACE
	mov	r0, #10
	bl	udelay
	ldr	r3, .L42+48
	ldr	r3, [r3]
	cmp	r4, r3
	bcs	.L39
	ldr	r3, [r10]
	cmp	r3, r8
	bls	.L40
.L13:
	ldr	r3, [fp]
	cmp	r3, r8
	bne	.L15
.L17:
	ldr	r3, [r10]
	add	r8, r8, #1
	cmp	r3, r8
	bhi	.L13
.L40:
	ldr	r6, [sp, #20]
	ldr	r4, [sp, #24]
	ldr	r5, [sp, #28]
.L14:
	ldr	r8, .L42+4
	ldr	r1, [r6, #8]
	ldr	r0, [r8]
	ldr	r2, .L42+8
	ldr	r3, .L42+12
	sub	r0, r0, r1
	ldr	r9, [r2]
	ldr	r10, [r3]
	bl	jiffies_to_msecs
	mov	r2, r10
	str	r0, [sp]
	mov	r1, r9
	mov	r0, r7
	ldr	r3, .L42+52
	bl	RT_TRACE
	ldr	r3, [r8]
	mov	r0, r4
	str	r3, [r6, #4]
	bl	_rtl92ce_phy_set_rf_sleep
	b	.L10
.L3:
	ldr	r8, .L42+56
	ldr	r2, [r0, #12]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L41
	ldr	r2, .L42+60
	ldr	r3, [r7]
	ldr	r2, [r2]
	ldr	r1, [r0, #16]
	ldr	r3, [r3]
	cmp	r1, r2
	ldr	r3, [r3]
	beq	.L34
	ldr	r2, .L42+64
	mov	r0, r4
	ldr	r1, [r2]
	blx	r3
	b	.L10
.L38:
	ldr	r2, .L42+68
	mov	r0, r4
	ldr	r1, [r2]
	blx	r3
	b	.L10
.L37:
	ldr	r3, .L42+56
	ldr	r1, [r3]
	bl	RT_IN_PS_LEVEL
	cmp	r0, #0
	beq	.L6
	mov	r9, #0
	ldr	fp, .L42+12
	ldr	r10, .L42+72
.L7:
	ldr	r1, .L42+8
	mov	r3, r10
	ldr	r2, [fp]
	ldr	r1, [r1]
	mov	r0, r7
	bl	RT_TRACE
	mov	r0, r4
	bl	rtl_ps_enable_nic
	add	r9, r9, #1
	cmp	r9, #9
	cmple	r0, #0
	beq	.L7
	ldr	r3, .L42+56
	mov	r0, r6
	ldr	r1, [r3]
	bl	RT_CLEAR_PS_LEVEL
	b	.L8
.L41:
	ldr	r3, .L42+8
	ldr	r2, .L42+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L42+76
	mov	r0, r7
	bl	RT_TRACE
	mov	r0, r4
	bl	rtl_ps_disable_nic
	mov	r0, r6
	ldr	r1, [r8]
	bl	RT_SET_PS_LEVEL
	b	.L10
.L39:
	str	r3, [sp, #16]
	ldr	r3, .L42+36
	mov	r0, r9
	ldr	r9, [r3]
	ldr	r3, .L42+40
	ldr	r6, [sp, #20]
	ldr	r10, [r3]
	ldr	r4, [sp, #24]
	ldr	r5, [sp, #28]
	bl	skb_queue_len
	ldr	r3, [sp, #16]
	str	r0, [sp, #8]
	str	r3, [sp]
	mov	r2, r10
	mov	r1, r9
	mov	r0, r7
	ldr	r3, .L42+80
	str	r8, [sp, #4]
	bl	RT_TRACE
	b	.L14
.L43:
	.align	2
.L42:
	.word	.LC6
	.word	jiffies
	.word	COMP_RF
	.word	DBG_DMESG
	.word	.LC1
	.word	MAC80211_LINKED
	.word	LED_CTL_NO_LINK
	.word	RTL_PCI_MAX_TX_QUEUE_COUNT
	.word	BEACON_QUEUE
	.word	COMP_ERR
	.word	DBG_WARNING
	.word	.LC3
	.word	MAX_DOZE_WAITING_TIMES_9x
	.word	.LC5
	.word	RT_RF_OFF_LEVL_HALT_NIC
	.word	RF_CHANGE_BY_IPS
	.word	LED_CTL_POWER_OFF
	.word	LED_CTL_LINK
	.word	.LC0
	.word	.LC2
	.word	.LC4
	.size	_rtl92ce_phy_set_rf_power_state, .-_rtl92ce_phy_set_rf_power_state
	.comm	jiffies,4,4
	.comm	RT_RF_OFF_LEVL_HALT_NIC,4,4
	.comm	RTL_PCI_MAX_TX_QUEUE_COUNT,4,4
	.comm	RF_CHANGE_BY_IPS,4,4
	.comm	MAX_DOZE_WAITING_TIMES_9x,4,4
	.comm	MAC80211_LINKED,4,4
	.comm	LED_CTL_POWER_OFF,4,4
	.comm	LED_CTL_NO_LINK,4,4
	.comm	LED_CTL_LINK,4,4
	.comm	DBG_WARNING,4,4
	.comm	DBG_DMESG,4,4
	.comm	COMP_RF,4,4
	.comm	COMP_ERR,4,4
	.comm	BEACON_QUEUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
