	.file	"extr_dm.c_rtl8723e_dm_initial_gain_sta.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"presta_cstate = %x, cursta_cstate = %x\n"
	.text
	.p2align 4
	.type	rtl8723e_dm_initial_gain_sta, @function
rtl8723e_dm_initial_gain_sta:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	rtl_priv@PLT
	mov	edx, DWORD PTR DBG_TRACE[rip]
	mov	esi, DWORD PTR COMP_DIG[rip]
	lea	rcx, .LC0[rip]
	mov	r9, QWORD PTR 8[rax]
	mov	r8, QWORD PTR [rax]
	mov	rbx, rax
	mov	rdi, rax
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rbx], rax
	je	.L2
	cmp	rax, QWORD PTR DIG_STA_BEFORE_CONNECT[rip]
	je	.L2
	cmp	rax, QWORD PTR DIG_STA_CONNECT[rip]
	je	.L2
	mov	eax, DWORD PTR DIG_EXT_PORT_STAGE_MAX[rip]
	mov	QWORD PTR 40[rbx], 0
	mov	rdi, rbp
	mov	DWORD PTR 16[rbx], 32
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR DM_DIG_BACKOFF_DEFAULT[rip]
	mov	QWORD PTR 24[rbx], 0
	mov	DWORD PTR 32[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	rtl8723e_dm_write_dig@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	rax, QWORD PTR DIG_STA_DISCONNECT[rip]
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	rtl8723e_dm_initial_gain_min_pwdb@PLT
	mov	rdi, rbp
	mov	QWORD PTR 40[rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	rtl92c_dm_ctrl_initgain_by_rssi@PLT
	.cfi_endproc
.LFE0:
	.size	rtl8723e_dm_initial_gain_sta, .-rtl8723e_dm_initial_gain_sta
	.comm	DM_DIG_BACKOFF_DEFAULT,4,4
	.comm	DIG_STA_DISCONNECT,8,8
	.comm	DIG_STA_CONNECT,8,8
	.comm	DIG_STA_BEFORE_CONNECT,8,8
	.comm	DIG_EXT_PORT_STAGE_MAX,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_DIG,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_dm.c_rtl8723e_dm_initial_gain_sta.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"presta_cstate = %x, cursta_cstate = %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8723e_dm_initial_gain_sta, %function
rtl8723e_dm_initial_gain_sta:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #12
	mov	r5, r0
	bl	rtl_priv
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r2, .L8
	str	r3, [sp, #4]
	ldr	r1, [r0]
	ldr	r3, .L8+4
	str	r1, [sp]
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, .L8+8
	bl	RT_TRACE
	ldm	r4, {r2, r3}
	cmp	r2, r3
	beq	.L2
	ldr	r2, .L8+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L8+16
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	ldr	r0, .L8+20
	mov	r3, #0
	ldr	ip, [r0]
	mov	r2, #32
	mov	r0, r5
	ldr	r1, .L8+24
	str	ip, [r4, #20]
	ldr	r1, [r1]
	str	r3, [r4, #24]
	str	r1, [r4, #16]
	str	r3, [r4, #12]
	str	r2, [r4, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	rtl8723e_dm_write_dig
.L2:
	ldr	r2, .L8+28
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	mov	r0, r5
	bl	rtl8723e_dm_initial_gain_min_pwdb
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #24]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	rtl92c_dm_ctrl_initgain_by_rssi
.L9:
	.align	2
.L8:
	.word	DBG_TRACE
	.word	COMP_DIG
	.word	.LC0
	.word	DIG_STA_BEFORE_CONNECT
	.word	DIG_STA_CONNECT
	.word	DIG_EXT_PORT_STAGE_MAX
	.word	DM_DIG_BACKOFF_DEFAULT
	.word	DIG_STA_DISCONNECT
	.size	rtl8723e_dm_initial_gain_sta, .-rtl8723e_dm_initial_gain_sta
	.comm	DM_DIG_BACKOFF_DEFAULT,4,4
	.comm	DIG_STA_DISCONNECT,4,4
	.comm	DIG_STA_CONNECT,4,4
	.comm	DIG_STA_BEFORE_CONNECT,4,4
	.comm	DIG_EXT_PORT_STAGE_MAX,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_DIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
