	.file	"extr_ps.c_rtl_ps_set_rf_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"RF Change in progress! Wait to set..state_toset(%d).\n"
	.align 8
.LC1:
	.string	"switch case %#x not processed\n"
	.text
	.p2align 4
	.type	rtl_ps_set_rf_state, @function
rtl_ps_set_rf_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], edx
	call	rtl_priv@PLT
	mov	rdi, r13
	mov	rbp, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_psc@PLT
	mov	rbx, rax
.L6:
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	r8d, DWORD PTR [rbx]
	test	r8d, r8d
	je	.L2
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	r8d, r12d
	mov	rcx, r15
	mov	rdi, rbp
	mov	edx, DWORD PTR DBG_WARNING[rip]
	mov	esi, DWORD PTR COMP_ERR[rip]
	call	RT_TRACE@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR [rbx]
	test	ecx, ecx
	je	.L6
	add	r14d, 1
	mov	edi, 1
	call	mdelay@PLT
	cmp	r14d, 100
	jle	.L3
	xor	r8d, r8d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L2:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 1
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], r8d
	call	spin_unlock@PLT
	cmp	r12d, 129
	mov	r8d, DWORD PTR 12[rsp]
	je	.L7
	cmp	r12d, 130
	je	.L8
	cmp	r12d, 128
	je	.L9
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	mov	DWORD PTR 8[rsp], r8d
	call	pr_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
.L12:
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], r8d
	call	spin_lock@PLT
	mov	DWORD PTR [rbx], 0
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
.L8:
	mov	eax, DWORD PTR 8[rsp]
	cmp	DWORD PTR RF_CHANGE_BY_HW[rip], eax
	jne	.L9
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	jne	.L9
	mov	DWORD PTR 8[rbx], 1
.L9:
	mov	eax, DWORD PTR 8[rsp]
	or	DWORD PTR 12[rbx], eax
.L13:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, r12d
	mov	rdi, r13
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	r8d, 1
	jmp	.L12
.L7:
	mov	ecx, DWORD PTR 8[rsp]
	mov	eax, ecx
	not	eax
	and	eax, DWORD PTR 12[rbx]
	cmp	DWORD PTR RF_CHANGE_BY_HW[rip], ecx
	mov	DWORD PTR 12[rbx], eax
	je	.L19
.L11:
	test	eax, eax
	jne	.L12
	mov	DWORD PTR 12[rbx], 0
	jmp	.L13
.L19:
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	je	.L11
	mov	DWORD PTR 8[rbx], 0
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	rtl_ps_set_rf_state, .-rtl_ps_set_rf_state
	.comm	RF_CHANGE_BY_HW,4,4
	.comm	DBG_WARNING,4,4
	.comm	COMP_ERR,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_ps.c_rtl_ps_set_rf_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RF Change in progress! Wait to set..state_toset(%d)"
	.ascii	".\012\000"
	.align	2
.LC1:
	.ascii	"switch case %#x not processed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl_ps_set_rf_state, %function
rtl_ps_set_rf_state:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r7, r1
	str	r2, [sp, #8]
	mov	r8, r0
	bl	rtl_priv
	mov	r6, r0
	mov	r0, r8
	bl	rtl_priv
	bl	rtl_psc
	mov	r4, #0
	mov	r5, r0
	ldr	fp, .L22
	ldr	r10, .L22+4
	ldr	r9, .L22+8
.L6:
	mov	r0, r6
	bl	spin_lock
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	mov	r0, r6
	bl	spin_unlock
	mov	r3, r9
	mov	r0, r6
	ldr	r2, [fp]
	ldr	r1, [r10]
	str	r7, [sp]
	bl	RT_TRACE
.L3:
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L6
	mov	r0, #1
	add	r4, r4, #1
	bl	mdelay
	cmp	r4, #100
	ble	.L3
	mov	r3, #0
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r4, #1
	mov	r0, r6
	str	r4, [r5]
	str	r3, [sp, #12]
	bl	spin_unlock
	cmp	r7, #129
	ldr	r3, [sp, #12]
	beq	.L7
	cmp	r7, #130
	beq	.L8
	cmp	r7, #128
	beq	.L9
	mov	r1, r7
	ldr	r0, .L22+12
	str	r3, [sp, #8]
	bl	pr_err
	ldr	r3, [sp, #8]
.L12:
	mov	r0, r6
	str	r3, [sp, #8]
	bl	spin_lock
	mov	r2, #0
	mov	r0, r6
	str	r2, [r5]
	bl	spin_unlock
	ldr	r3, [sp, #8]
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r3, .L22+16
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	cmp	r3, r2
	bne	.L9
	ldr	r3, [r5, #8]
	cmp	r3, #0
	streq	r4, [r5, #8]
.L9:
	ldr	r3, [r5, #12]
	ldr	r2, [sp, #8]
	orr	r3, r3, r2
	str	r3, [r5, #12]
.L13:
	ldr	r3, [r6, #4]
	mov	r1, r7
	ldr	r3, [r3]
	mov	r0, r8
	ldr	r3, [r3]
	blx	r3
	mov	r3, #1
	b	.L12
.L7:
	ldr	r1, .L22+16
	ldr	r2, [r5, #12]
	ldr	r0, [sp, #8]
	ldr	r1, [r1]
	bic	r2, r2, r0
	cmp	r1, r0
	str	r2, [r5, #12]
	bne	.L11
	ldr	r1, [r5, #8]
	cmp	r1, #0
	strne	r3, [r5, #8]
.L11:
	cmp	r2, #0
	streq	r2, [r5, #12]
	beq	.L13
	b	.L12
.L23:
	.align	2
.L22:
	.word	DBG_WARNING
	.word	COMP_ERR
	.word	.LC0
	.word	.LC1
	.word	RF_CHANGE_BY_HW
	.size	rtl_ps_set_rf_state, .-rtl_ps_set_rf_state
	.comm	RF_CHANGE_BY_HW,4,4
	.comm	DBG_WARNING,4,4
	.comm	COMP_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
