	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723e_dm_ctrl_initgain_by_twoport
_rtl8723e_dm_ctrl_initgain_by_twoport:  ## @rtl8723e_dm_ctrl_initgain_by_twoport
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_rtl_priv
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.3:
	movq	_DIG_STA_DISCONNECT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_DIG_STA_CONNECT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_rtl8723e_dm_initial_gain_sta
	movq	%r15, %rdi
	callq	_rtl8723e_dm_initial_gain_multi_sta
	movq	%r15, %rdi
	callq	_rtl8723e_dm_cck_packet_detection_thresh
	movl	(%r14), %eax
	movl	%eax, 4(%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_DIG_STA_CONNECT,4,2            ## @DIG_STA_CONNECT
	.comm	_DIG_STA_DISCONNECT,4,2         ## @DIG_STA_DISCONNECT
	.no_dead_strip	_rtl8723e_dm_ctrl_initgain_by_twoport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8723e_dm_ctrl_initgain_by_twoport
_rtl8723e_dm_ctrl_initgain_by_twoport:  ; @rtl8723e_dm_ctrl_initgain_by_twoport
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_priv
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DIG_STA_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DIG_STA_DISCONNECT@GOTPAGEOFF]
Lloh5:
	adrp	x11, _DIG_STA_CONNECT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DIG_STA_CONNECT@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, lt
	ldr	w8, [x8]
	str	w8, [x0]
	mov	x0, x19
	bl	_rtl8723e_dm_initial_gain_sta
	mov	x0, x19
	bl	_rtl8723e_dm_initial_gain_multi_sta
	mov	x0, x19
	bl	_rtl8723e_dm_cck_packet_detection_thresh
	ldr	w8, [x20]
	str	w8, [x20, #4]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_DIG_STA_CONNECT,4,2            ; @DIG_STA_CONNECT
	.comm	_DIG_STA_DISCONNECT,4,2         ; @DIG_STA_DISCONNECT
	.no_dead_strip	_rtl8723e_dm_ctrl_initgain_by_twoport
.subsections_via_symbols
