	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_dm_ctrl_initgain_bytwoport
__rtl92s_dm_ctrl_initgain_bytwoport:    ## @_rtl92s_dm_ctrl_initgain_bytwoport
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_rtl_priv
	cmpq	$0, 24(%rax)
	jne	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.2:
	movq	16(%rbx), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_4:
	movq	_DIG_STA_CONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_DIG_STA_DISCONNECT@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edx
	cmpq	(%rcx), %rax
	movl	%edx, 56(%rbx)
	je	LBB0_7
## %bb.5:
	movq	40(%rbx), %rax
	movq	_DIG_TWO_PORT_ALGO_FALSE_ALARM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_DIG_TWO_PORT_ALGO_RSSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	_FW_CMD_DIG_MODE_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl92s_phy_set_fw_cmd
	jmp	LBB0_7
LBB0_3:
	movq	_DIG_STA_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	(%rbx), %eax
	movl	%eax, 56(%rbx)
LBB0_7:
	movq	%r14, %rdi
	callq	__rtl92s_dm_false_alarm_counter_statistics
	movq	%r14, %rdi
	callq	__rtl92s_dm_initial_gain_sta_beforeconnect
	movq	32(%rbx), %rax
	movq	%rax, 48(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_DIG_STA_CONNECT,8,3            ## @DIG_STA_CONNECT
	.comm	_DIG_STA_DISCONNECT,8,3         ## @DIG_STA_DISCONNECT
	.comm	_DIG_TWO_PORT_ALGO_FALSE_ALARM,8,3 ## @DIG_TWO_PORT_ALGO_FALSE_ALARM
	.comm	_DIG_TWO_PORT_ALGO_RSSI,8,3     ## @DIG_TWO_PORT_ALGO_RSSI
	.comm	_FW_CMD_DIG_MODE_SS,4,2         ## @FW_CMD_DIG_MODE_SS
	.no_dead_strip	__rtl92s_dm_ctrl_initgain_bytwoport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_dm_ctrl_initgain_bytwoport
__rtl92s_dm_ctrl_initgain_bytwoport:    ; @_rtl92s_dm_ctrl_initgain_bytwoport
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rtl_priv
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _DIG_STA_CONNECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIG_STA_CONNECT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20, #32]
Lloh9:
	adrp	x9, _DIG_STA_DISCONNECT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DIG_STA_DISCONNECT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w10, [x20]
	str	w10, [x20, #56]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.4:
	ldr	x8, [x20, #40]
Lloh12:
	adrp	x9, _DIG_TWO_PORT_ALGO_FALSE_ALARM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DIG_TWO_PORT_ALGO_FALSE_ALARM@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh15:
	adrp	x8, _DIG_TWO_PORT_ALGO_RSSI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DIG_TWO_PORT_ALGO_RSSI@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x20, #40]
Lloh18:
	adrp	x8, _FW_CMD_DIG_MODE_SS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FW_CMD_DIG_MODE_SS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl92s_phy_set_fw_cmd
	b	LBB0_7
LBB0_6:
Lloh21:
	adrp	x8, _DIG_STA_DISCONNECT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DIG_STA_DISCONNECT@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x20, #32]
	ldr	w8, [x20]
	str	w8, [x20, #56]
LBB0_7:
	mov	x0, x19
	bl	__rtl92s_dm_false_alarm_counter_statistics
	mov	x0, x19
	bl	__rtl92s_dm_initial_gain_sta_beforeconnect
	ldr	x8, [x20, #32]
	str	x8, [x20, #48]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_DIG_STA_CONNECT,8,3            ; @DIG_STA_CONNECT
	.comm	_DIG_STA_DISCONNECT,8,3         ; @DIG_STA_DISCONNECT
	.comm	_DIG_TWO_PORT_ALGO_FALSE_ALARM,8,3 ; @DIG_TWO_PORT_ALGO_FALSE_ALARM
	.comm	_DIG_TWO_PORT_ALGO_RSSI,8,3     ; @DIG_TWO_PORT_ALGO_RSSI
	.comm	_FW_CMD_DIG_MODE_SS,4,2         ; @FW_CMD_DIG_MODE_SS
	.no_dead_strip	__rtl92s_dm_ctrl_initgain_bytwoport
.subsections_via_symbols
