	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92c_dm_initial_gain_multi_sta
_rtl92c_dm_initial_gain_multi_sta:      ## @rtl92c_dm_initial_gain_multi_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.1:
	movq	8(%rbx), %rax
	movq	_DIG_STA_DISCONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_15:
	movb	$0, _rtl92c_dm_initial_gain_multi_sta.initialized(%rip)
	movq	_DIG_EXT_PORT_STAGE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %r15
	cmpb	$0, _rtl92c_dm_initial_gain_multi_sta.initialized(%rip)
	jne	LBB0_4
## %bb.3:
	movb	$1, _rtl92c_dm_initial_gain_multi_sta.initialized(%rip)
	movq	_DIG_EXT_PORT_STAGE_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$32, 24(%rbx)
	movq	%r14, %rdi
	callq	_rtl92c_dm_write_dig
LBB0_4:
	movq	32(%rbx), %rax
	movq	_DIG_MULTISTA_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:
	cmpq	40(%rbx), %r15
	jge	LBB0_10
## %bb.6:
	movq	16(%rbx), %rcx
	movq	_DIG_EXT_PORT_STAGE_1@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rax, %rcx
	jne	LBB0_7
LBB0_10:
	cmpq	48(%rbx), %r15
	jle	LBB0_14
## %bb.11:
	movq	_DIG_EXT_PORT_STAGE_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	callq	_rtl92c_dm_ctrl_initgain_by_fa
	jmp	LBB0_14
LBB0_12:
	movq	_DIG_EXT_PORT_STAGE_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 16(%rbx)
	je	LBB0_14
## %bb.13:
	movq	%rax, 16(%rbx)
	movl	$32, 24(%rbx)
	movq	%r14, %rdi
	callq	_rtl92c_dm_write_dig
	jmp	LBB0_14
LBB0_7:
	movq	_DIG_EXT_PORT_STAGE_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	movl	$32, 24(%rbx)
	movq	%r14, %rdi
	callq	_rtl92c_dm_write_dig
	movq	(%r12), %rax
LBB0_9:
	movq	%rax, 16(%rbx)
LBB0_14:
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %r9
	movq	32(%rbx), %r8
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rtl92c_dm_initial_gain_multi_sta.initialized,1,2 ## @rtl92c_dm_initial_gain_multi_sta.initialized
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_DIG_STA_DISCONNECT,8,3         ## @DIG_STA_DISCONNECT
	.comm	_DIG_EXT_PORT_STAGE_MAX,8,3     ## @DIG_EXT_PORT_STAGE_MAX
	.comm	_DIG_EXT_PORT_STAGE_0,8,3       ## @DIG_EXT_PORT_STAGE_0
	.comm	_DIG_MULTISTA_CONNECT,8,3       ## @DIG_MULTISTA_CONNECT
	.comm	_DIG_EXT_PORT_STAGE_1,8,3       ## @DIG_EXT_PORT_STAGE_1
	.comm	_DIG_EXT_PORT_STAGE_2,8,3       ## @DIG_EXT_PORT_STAGE_2
	.comm	_COMP_DIG,4,2                   ## @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"curmultista_cstate = %x dig_ext_port_stage %x\n"

	.no_dead_strip	_rtl92c_dm_initial_gain_multi_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl92c_dm_initial_gain_multi_sta
_rtl92c_dm_initial_gain_multi_sta:      ; @rtl92c_dm_initial_gain_multi_sta
	.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	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _DIG_STA_DISCONNECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIG_STA_DISCONNECT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _rtl92c_dm_initial_gain_multi_sta.initialized@PAGE
	strb	wzr, [x8, _rtl92c_dm_initial_gain_multi_sta.initialized@PAGEOFF]
Lloh7:
	adrp	x8, _DIG_EXT_PORT_STAGE_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIG_EXT_PORT_STAGE_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	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
LBB0_3:
	ldr	x21, [x19]
	adrp	x8, _rtl92c_dm_initial_gain_multi_sta.initialized@PAGE
	ldrb	w9, [x8, _rtl92c_dm_initial_gain_multi_sta.initialized@PAGEOFF]
	tbnz	w9, #0, LBB0_5
; %bb.4:
	mov	w9, #1
	strb	w9, [x8, _rtl92c_dm_initial_gain_multi_sta.initialized@PAGEOFF]
Lloh10:
	adrp	x8, _DIG_EXT_PORT_STAGE_0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DIG_EXT_PORT_STAGE_0@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	w8, #32
	str	w8, [x19, #24]
	mov	x0, x20
	bl	_rtl92c_dm_write_dig
LBB0_5:
	ldr	x8, [x19, #32]
Lloh13:
	adrp	x9, _DIG_MULTISTA_CONNECT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DIG_MULTISTA_CONNECT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19, #40]
	cmp	x21, x8
	b.ge	LBB0_8
; %bb.7:
	ldr	x9, [x19, #16]
Lloh16:
	adrp	x22, _DIG_EXT_PORT_STAGE_1@GOTPAGE
Lloh17:
	ldr	x22, [x22, _DIG_EXT_PORT_STAGE_1@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x9, x8
	b.ne	LBB0_12
LBB0_8:
	ldr	x8, [x19, #48]
	cmp	x21, x8
	b.le	LBB0_15
; %bb.9:
Lloh18:
	adrp	x8, _DIG_EXT_PORT_STAGE_2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DIG_EXT_PORT_STAGE_2@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	x0, x20
	bl	_rtl92c_dm_ctrl_initgain_by_fa
	b	LBB0_15
LBB0_10:
	ldr	x9, [x19, #16]
Lloh21:
	adrp	x8, _DIG_EXT_PORT_STAGE_0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DIG_EXT_PORT_STAGE_0@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_15
; %bb.11:
	str	x8, [x19, #16]
	mov	w8, #32
	str	w8, [x19, #24]
	mov	x0, x20
	bl	_rtl92c_dm_write_dig
	b	LBB0_15
LBB0_12:
Lloh24:
	adrp	x10, _DIG_EXT_PORT_STAGE_2@GOTPAGE
Lloh25:
	ldr	x10, [x10, _DIG_EXT_PORT_STAGE_2@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #32
	str	w8, [x19, #24]
	mov	x0, x20
	bl	_rtl92c_dm_write_dig
	ldr	x8, [x22]
LBB0_14:
	str	x8, [x19, #16]
LBB0_15:
Lloh27:
	adrp	x8, _COMP_DIG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _COMP_DIG@GOTPAGEOFF]
Lloh29:
	adrp	x9, _DBG_TRACE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _DBG_TRACE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	ldr	w2, [x9]
	ldr	x4, [x19, #32]
	ldr	x5, [x19, #16]
Lloh33:
	adrp	x3, l_.str@PAGE
Lloh34:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_RT_TRACE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rtl92c_dm_initial_gain_multi_sta.initialized,1,2 ; @rtl92c_dm_initial_gain_multi_sta.initialized
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_DIG_STA_DISCONNECT,8,3         ; @DIG_STA_DISCONNECT
	.comm	_DIG_EXT_PORT_STAGE_MAX,8,3     ; @DIG_EXT_PORT_STAGE_MAX
	.comm	_DIG_EXT_PORT_STAGE_0,8,3       ; @DIG_EXT_PORT_STAGE_0
	.comm	_DIG_MULTISTA_CONNECT,8,3       ; @DIG_MULTISTA_CONNECT
	.comm	_DIG_EXT_PORT_STAGE_1,8,3       ; @DIG_EXT_PORT_STAGE_1
	.comm	_DIG_EXT_PORT_STAGE_2,8,3       ; @DIG_EXT_PORT_STAGE_2
	.comm	_COMP_DIG,4,2                   ; @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"curmultista_cstate = %x dig_ext_port_stage %x\n"

	.no_dead_strip	_rtl92c_dm_initial_gain_multi_sta
.subsections_via_symbols
