	.file	"extr_dm.c__rtl92s_dm_ctrl_initgain_bytwoport.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rtl92s_dm_ctrl_initgain_bytwoport, @function
_rtl92s_dm_ctrl_initgain_bytwoport:
.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
	cmp	QWORD PTR 24[rax], 0
	jne	.L1
	mov	rbx, rax
	mov	rdx, QWORD PTR DIG_STA_DISCONNECT[rip]
	mov	rax, QWORD PTR MAC80211_LINKED[rip]
	cmp	QWORD PTR 8[rbx], rax
	jl	.L8
.L3:
	mov	rax, QWORD PTR DIG_STA_CONNECT[rip]
	mov	ecx, DWORD PTR [rbx]
	mov	QWORD PTR 32[rbx], rax
	mov	DWORD PTR 56[rbx], ecx
	cmp	rax, rdx
	je	.L5
	mov	rax, QWORD PTR DIG_TWO_PORT_ALGO_FALSE_ALARM[rip]
	cmp	QWORD PTR 40[rbx], rax
	je	.L9
.L5:
	mov	rdi, rbp
	call	_rtl92s_dm_false_alarm_counter_statistics@PLT
	mov	rdi, rbp
	call	_rtl92s_dm_initial_gain_sta_beforeconnect@PLT
	mov	rax, QWORD PTR 32[rbx]
	mov	QWORD PTR 48[rbx], rax
.L1:
	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
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR NL80211_IFTYPE_ADHOC[rip]
	cmp	QWORD PTR 16[rbx], rax
	je	.L3
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 32[rbx], rdx
	mov	DWORD PTR 56[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR DIG_TWO_PORT_ALGO_RSSI[rip]
	mov	esi, DWORD PTR FW_CMD_DIG_MODE_SS[rip]
	mov	rdi, rbp
	mov	QWORD PTR 40[rbx], rax
	call	rtl92s_phy_set_fw_cmd@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	_rtl92s_dm_ctrl_initgain_bytwoport, .-_rtl92s_dm_ctrl_initgain_bytwoport
	.comm	NL80211_IFTYPE_ADHOC,8,8
	.comm	MAC80211_LINKED,8,8
	.comm	FW_CMD_DIG_MODE_SS,4,4
	.comm	DIG_TWO_PORT_ALGO_RSSI,8,8
	.comm	DIG_TWO_PORT_ALGO_FALSE_ALARM,8,8
	.comm	DIG_STA_DISCONNECT,8,8
	.comm	DIG_STA_CONNECT,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_dm.c__rtl92s_dm_ctrl_initgain_bytwoport.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92s_dm_ctrl_initgain_bytwoport, %function
_rtl92s_dm_ctrl_initgain_bytwoport:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	rtl_priv
	ldr	r3, [r0, #12]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L10
	ldr	r1, [r0, #4]
	ldr	r2, [r3]
	ldr	r3, .L10+4
	cmp	r1, r2
	mov	r4, r0
	ldr	r2, [r3]
	blt	.L8
.L3:
	ldr	r3, .L10+8
	ldr	r1, [r4]
	ldr	r3, [r3]
	str	r1, [r4, #28]
	cmp	r3, r2
	str	r3, [r4, #16]
	beq	.L5
	ldr	r3, .L10+12
	ldr	r2, [r4, #20]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
.L5:
	mov	r0, r5
	bl	_rtl92s_dm_false_alarm_counter_statistics
	mov	r0, r5
	bl	_rtl92s_dm_initial_gain_sta_beforeconnect
	ldr	r3, [r4, #16]
	str	r3, [r4, #24]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L10+16
	ldr	r1, [r0, #8]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L3
	ldr	r3, [r0]
	str	r2, [r0, #16]
	str	r3, [r0, #28]
	b	.L5
.L9:
	ldr	r3, .L10+20
	ldr	r2, .L10+24
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r1, [r2]
	str	r3, [r4, #20]
	bl	rtl92s_phy_set_fw_cmd
	b	.L5
.L11:
	.align	2
.L10:
	.word	MAC80211_LINKED
	.word	DIG_STA_DISCONNECT
	.word	DIG_STA_CONNECT
	.word	DIG_TWO_PORT_ALGO_FALSE_ALARM
	.word	NL80211_IFTYPE_ADHOC
	.word	DIG_TWO_PORT_ALGO_RSSI
	.word	FW_CMD_DIG_MODE_SS
	.size	_rtl92s_dm_ctrl_initgain_bytwoport, .-_rtl92s_dm_ctrl_initgain_bytwoport
	.comm	NL80211_IFTYPE_ADHOC,4,4
	.comm	MAC80211_LINKED,4,4
	.comm	FW_CMD_DIG_MODE_SS,4,4
	.comm	DIG_TWO_PORT_ALGO_RSSI,4,4
	.comm	DIG_TWO_PORT_ALGO_FALSE_ALARM,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
