	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723e_dm_initial_gain_sta
_rtl8723e_dm_initial_gain_sta:          ## @rtl8723e_dm_initial_gain_sta
	.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
	movq	%rax, %rbx
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %r8
	movq	8(%rbx), %r9
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	8(%rbx), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_DIG_STA_BEFORE_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_DIG_STA_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.5:
	movq	$0, 40(%rbx)
	movq	_DIG_EXT_PORT_STAGE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_DM_DIG_BACKOFF_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$32, 16(%rbx)
	movq	$0, 24(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtl8723e_dm_write_dig          ## TAILCALL
LBB0_3:
	movq	_DIG_STA_DISCONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_rtl8723e_dm_initial_gain_min_pwdb
	movq	%rax, 40(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtl92c_dm_ctrl_initgain_by_rssi ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_DIG,4,2                   ## @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"presta_cstate = %x, cursta_cstate = %x\n"

	.comm	_DIG_STA_BEFORE_CONNECT,8,3     ## @DIG_STA_BEFORE_CONNECT
	.comm	_DIG_STA_CONNECT,8,3            ## @DIG_STA_CONNECT
	.comm	_DIG_STA_DISCONNECT,8,3         ## @DIG_STA_DISCONNECT
	.comm	_DIG_EXT_PORT_STAGE_MAX,4,2     ## @DIG_EXT_PORT_STAGE_MAX
	.comm	_DM_DIG_BACKOFF_DEFAULT,4,2     ## @DM_DIG_BACKOFF_DEFAULT
	.no_dead_strip	_rtl8723e_dm_initial_gain_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8723e_dm_initial_gain_sta
_rtl8723e_dm_initial_gain_sta:          ; @rtl8723e_dm_initial_gain_sta
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _COMP_DIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_DIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldp	x4, x5, [x0]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	ldp	x9, x8, [x20]
Lloh8:
	adrp	x10, _DIG_STA_BEFORE_CONNECT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DIG_STA_BEFORE_CONNECT@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, _DIG_STA_CONNECT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DIG_STA_CONNECT@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x9, x8
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_3
; %bb.1:
Lloh14:
	adrp	x9, _DIG_STA_DISCONNECT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DIG_STA_DISCONNECT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	xzr, [x20, #40]
Lloh17:
	adrp	x8, _DIG_EXT_PORT_STAGE_MAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DIG_EXT_PORT_STAGE_MAX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _DM_DIG_BACKOFF_DEFAULT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DM_DIG_BACKOFF_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	mov	w8, #32
	str	w8, [x20, #16]
	str	xzr, [x20, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl8723e_dm_write_dig
LBB0_4:
	mov	x0, x19
	bl	_rtl8723e_dm_initial_gain_min_pwdb
	str	x0, [x20, #40]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl92c_dm_ctrl_initgain_by_rssi
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_DIG,4,2                   ; @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"presta_cstate = %x, cursta_cstate = %x\n"

	.comm	_DIG_STA_BEFORE_CONNECT,8,3     ; @DIG_STA_BEFORE_CONNECT
	.comm	_DIG_STA_CONNECT,8,3            ; @DIG_STA_CONNECT
	.comm	_DIG_STA_DISCONNECT,8,3         ; @DIG_STA_DISCONNECT
	.comm	_DIG_EXT_PORT_STAGE_MAX,4,2     ; @DIG_EXT_PORT_STAGE_MAX
	.comm	_DM_DIG_BACKOFF_DEFAULT,4,2     ; @DM_DIG_BACKOFF_DEFAULT
	.no_dead_strip	_rtl8723e_dm_initial_gain_sta
.subsections_via_symbols
