	.file	"extr_rtl_dm.c__rtl92e_dm_ctrl_initgain_byrssi_driver.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rtl92e_dm_ctrl_initgain_byrssi_driver, @function
_rtl92e_dm_ctrl_initgain_byrssi_driver:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	rtllib_priv@PLT
	mov	edx, DWORD PTR dm_digtable[rip]
	test	edx, edx
	je	.L1
	cmp	QWORD PTR dm_digtable[rip+16], 0
	mov	rbx, rax
	jne	.L13
	cmp	DWORD PTR fw_dig.1957[rip], 3
	jle	.L4
.L5:
	mov	rdx, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR DIG_STA_DISCONNECT[rip]
	mov	rcx, QWORD PTR RTLLIB_LINKED[rip]
	cmp	QWORD PTR [rdx], rcx
	jne	.L8
	mov	eax, DWORD PTR DIG_STA_CONNECT[rip]
.L8:
	mov	DWORD PTR dm_digtable[rip+4], eax
	mov	eax, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	DWORD PTR dm_digtable[rip+24], eax
	call	_rtl92e_dm_initial_gain@PLT
	mov	rdi, rbp
	call	_rtl92e_dm_pd_th@PLT
	mov	rdi, rbp
	call	_rtl92e_dm_cs_ratio@PLT
	cmp	QWORD PTR dm_digtable[rip+16], 0
	je	.L9
	mov	QWORD PTR dm_digtable[rip+16], 0
.L9:
	mov	eax, DWORD PTR dm_digtable[rip+4]
	mov	DWORD PTR dm_digtable[rip+8], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	DWORD PTR fw_dig.1957[rip], 0
.L4:
	mov	r12d, 3
.L6:
	mov	edx, DWORD PTR bMaskByte1[rip]
	mov	esi, DWORD PTR UFWP[rip]
	mov	ecx, 8
	mov	rdi, rbp
	call	rtl92e_set_bb_reg@PLT
	sub	r12d, 1
	jne	.L6
	mov	eax, DWORD PTR DM_STA_DIG_OFF[rip]
	add	DWORD PTR fw_dig.1957[rip], 1
	mov	DWORD PTR dm_digtable[rip+28], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	_rtl92e_dm_ctrl_initgain_byrssi_driver, .-_rtl92e_dm_ctrl_initgain_byrssi_driver
	.local	fw_dig.1957
	.comm	fw_dig.1957,4,4
	.comm	dm_digtable,32,32
	.comm	bMaskByte1,4,4
	.comm	UFWP,4,4
	.comm	RTLLIB_LINKED,8,8
	.comm	DM_STA_DIG_OFF,4,4
	.comm	DIG_STA_DISCONNECT,4,4
	.comm	DIG_STA_CONNECT,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_rtl_dm.c__rtl92e_dm_ctrl_initgain_byrssi_driver.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92e_dm_ctrl_initgain_byrssi_driver, %function
_rtl92e_dm_ctrl_initgain_byrssi_driver:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, .L19
	mov	r5, r0
	bl	rtllib_priv
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r4, #12]
	mov	r6, r0
	cmp	r3, #0
	beq	.L3
	mov	r3, #0
	ldr	r8, .L19+4
	str	r3, [r8]
.L4:
	mov	r7, #3
	ldr	r10, .L19+8
	ldr	r9, .L19+12
.L6:
	mov	r3, #8
	mov	r0, r5
	ldr	r2, [r10]
	ldr	r1, [r9]
	bl	rtl92e_set_bb_reg
	subs	r7, r7, #1
	bne	.L6
	ldr	r2, .L19+16
	ldr	r3, [r8]
	ldr	r2, [r2]
	add	r3, r3, #1
	str	r2, [r4, #20]
	str	r3, [r8]
	b	.L5
.L3:
	ldr	r8, .L19+4
	ldr	r3, [r8]
	cmp	r3, #3
	ble	.L4
.L5:
	ldr	r2, [r6, #4]
	ldr	r3, .L19+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r5
	cmp	r2, r3
	ldreq	r3, .L19+24
	ldrne	r3, .L19+28
	ldr	r2, [r6]
	ldr	r3, [r3]
	str	r2, [r4, #16]
	str	r3, [r4, #4]
	bl	_rtl92e_dm_initial_gain
	mov	r0, r5
	bl	_rtl92e_dm_pd_th
	mov	r0, r5
	bl	_rtl92e_dm_cs_ratio
	ldr	r3, [r4, #12]
	cmp	r3, #0
	movne	r3, #0
	strne	r3, [r4, #12]
	ldr	r3, [r4, #4]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	.align	2
.L19:
	.word	dm_digtable
	.word	.LANCHOR0
	.word	bMaskByte1
	.word	UFWP
	.word	DM_STA_DIG_OFF
	.word	RTLLIB_LINKED
	.word	DIG_STA_CONNECT
	.word	DIG_STA_DISCONNECT
	.size	_rtl92e_dm_ctrl_initgain_byrssi_driver, .-_rtl92e_dm_ctrl_initgain_byrssi_driver
	.comm	dm_digtable,24,4
	.comm	bMaskByte1,4,4
	.comm	UFWP,4,4
	.comm	RTLLIB_LINKED,4,4
	.comm	DM_STA_DIG_OFF,4,4
	.comm	DIG_STA_DISCONNECT,4,4
	.comm	DIG_STA_CONNECT,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	fw_dig.4241, %object
	.size	fw_dig.4241, 4
fw_dig.4241:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
