	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_dm_dynamic_txpower
__rtl92s_dm_dynamic_txpower:            ## @_rtl92s_dm_dynamic_txpower
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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	48(%rbx), %rcx
	movq	_RF_2T2R@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_24
## %bb.1:
	cmpl	$0, 40(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_HAL_DM_HIPWR_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_4
LBB0_3:
	movq	_TX_HIGHPWR_LEVEL_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_24
LBB0_4:
	movq	(%rax), %rcx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_7
## %bb.5:
	movq	16(%rbx), %r15
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%r15, %r15
	je	LBB0_6
## %bb.10:
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_11
LBB0_7:
	movq	8(%rax), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	16(%rbx), %r15
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	32(%rbx), %r15
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
LBB0_11:
	movq	%rbx, %rdi
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_TX_POWER_NEAR_FIELD_THRESH_LVL2@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_TX_POWER_NEAR_FIELD_THRESH_LVL1@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_MASKBYTE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$3216, %esi                     ## imm = 0xC90
	callq	_rtl_get_bbreg
	cmpl	$1, %eax
	jne	LBB0_12
LBB0_19:
	movq	_TX_HIGHPWR_LEVEL_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_12:
	cmpq	%r13, %r15
	jge	LBB0_13
## %bb.14:
	addq	$-3, %r13
	cmpq	%r13, %r15
	jge	LBB0_17
## %bb.15:
	cmpq	%r12, %r15
	jl	LBB0_17
## %bb.16:
	movq	_TX_HIGHPWR_LEVEL_NORMAL1@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_13:
	movq	_TX_HIGHPWR_LEVEL_NORMAL2@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	cmpq	24(%rbx), %rax
	je	LBB0_23
LBB0_22:
	movl	56(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtl92s_phy_set_txpower
	movq	8(%rbx), %rax
	jmp	LBB0_23
LBB0_6:
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_TX_HIGHPWR_LEVEL_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_23:
	movq	%rax, 24(%rbx)
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	addq	$-3, %r12
	cmpq	%r12, %r15
	jl	LBB0_19
## %bb.18:
	movq	8(%rbx), %rax
	cmpq	24(%rbx), %rax
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_HAL_DM_HIPWR_DISABLE,4,2       ## @HAL_DM_HIPWR_DISABLE
	.comm	_TX_HIGHPWR_LEVEL_NORMAL,8,3    ## @TX_HIGHPWR_LEVEL_NORMAL
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not connected to any\n"

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.1:                               ## @.str.1
	.asciz	"AP Client PWDB = 0x%lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"STA Default Port PWDB = 0x%lx\n"

L_.str.3:                               ## @.str.3
	.asciz	"AP Ext Port PWDB = 0x%lx\n"

	.comm	_TX_POWER_NEAR_FIELD_THRESH_LVL2,8,3 ## @TX_POWER_NEAR_FIELD_THRESH_LVL2
	.comm	_TX_POWER_NEAR_FIELD_THRESH_LVL1,8,3 ## @TX_POWER_NEAR_FIELD_THRESH_LVL1
	.comm	_MASKBYTE0,4,2                  ## @MASKBYTE0
	.comm	_TX_HIGHPWR_LEVEL_NORMAL2,8,3   ## @TX_HIGHPWR_LEVEL_NORMAL2
	.comm	_TX_HIGHPWR_LEVEL_NORMAL1,8,3   ## @TX_HIGHPWR_LEVEL_NORMAL1
	.no_dead_strip	__rtl92s_dm_dynamic_txpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_dm_dynamic_txpower
__rtl92s_dm_dynamic_txpower:            ; @_rtl92s_dm_dynamic_txpower
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	ldr	x8, [x19, #48]
Lloh0:
	adrp	x9, _RF_2T2R@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RF_2T2R@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.1:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _HAL_DM_HIPWR_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HAL_DM_HIPWR_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _TX_HIGHPWR_LEVEL_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_HIGHPWR_LEVEL_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_22
LBB0_4:
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.5:
	ldr	x21, [x19, #16]
Lloh12:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	cbz	x21, LBB0_20
; %bb.6:
Lloh15:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	str	x21, [sp]
Lloh18:
	adrp	x3, l_.str.3@PAGE
Lloh19:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_7:
	ldr	x8, [x0, #8]
Lloh20:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x21, [x19, #16]
Lloh23:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	str	x21, [sp]
Lloh29:
	adrp	x3, l_.str.1@PAGE
Lloh30:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	ldr	x21, [x19, #32]
Lloh31:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh32:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	str	x21, [sp]
Lloh37:
	adrp	x3, l_.str.2@PAGE
Lloh38:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_RT_TRACE
Lloh39:
	adrp	x8, _TX_POWER_NEAR_FIELD_THRESH_LVL2@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TX_POWER_NEAR_FIELD_THRESH_LVL2@GOTPAGEOFF]
Lloh41:
	ldr	x23, [x8]
Lloh42:
	adrp	x8, _TX_POWER_NEAR_FIELD_THRESH_LVL1@GOTPAGE
Lloh43:
	ldr	x8, [x8, _TX_POWER_NEAR_FIELD_THRESH_LVL1@GOTPAGEOFF]
Lloh44:
	ldr	x22, [x8]
Lloh45:
	adrp	x8, _MASKBYTE0@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MASKBYTE0@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #3216
	bl	_rtl_get_bbreg
	cmp	w0, #1
	b.ne	LBB0_12
LBB0_11:
Lloh48:
	adrp	x8, _TX_HIGHPWR_LEVEL_NORMAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _TX_HIGHPWR_LEVEL_NORMAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	cmp	x21, x23
	b.ge	LBB0_16
; %bb.13:
	sub	x8, x23, #3
	cmp	x21, x8
	b.ge	LBB0_23
; %bb.14:
	cmp	x21, x22
	b.lt	LBB0_23
; %bb.15:
Lloh50:
	adrp	x8, _TX_HIGHPWR_LEVEL_NORMAL1@GOTPAGE
Lloh51:
	ldr	x8, [x8, _TX_HIGHPWR_LEVEL_NORMAL1@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh52:
	adrp	x8, _TX_HIGHPWR_LEVEL_NORMAL2@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TX_HIGHPWR_LEVEL_NORMAL2@GOTPAGEOFF]
LBB0_17:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_18:
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.19:
	ldr	w1, [x19, #56]
	mov	x0, x20
	bl	_rtl92s_phy_set_txpower
	ldr	x8, [x19, #8]
	b	LBB0_21
LBB0_20:
Lloh54:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
Lloh57:
	adrp	x3, l_.str@PAGE
Lloh58:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh59:
	adrp	x8, _TX_HIGHPWR_LEVEL_NORMAL@GOTPAGE
Lloh60:
	ldr	x8, [x8, _TX_HIGHPWR_LEVEL_NORMAL@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_21:
	str	x8, [x19, #24]
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
	sub	x8, x22, #3
	cmp	x21, x8
	b.lt	LBB0_11
; %bb.24:
	ldr	x8, [x19, #8]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_HAL_DM_HIPWR_DISABLE,4,2       ; @HAL_DM_HIPWR_DISABLE
	.comm	_TX_HIGHPWR_LEVEL_NORMAL,8,3    ; @TX_HIGHPWR_LEVEL_NORMAL
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not connected to any\n"

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.1:                               ; @.str.1
	.asciz	"AP Client PWDB = 0x%lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"STA Default Port PWDB = 0x%lx\n"

l_.str.3:                               ; @.str.3
	.asciz	"AP Ext Port PWDB = 0x%lx\n"

	.comm	_TX_POWER_NEAR_FIELD_THRESH_LVL2,8,3 ; @TX_POWER_NEAR_FIELD_THRESH_LVL2
	.comm	_TX_POWER_NEAR_FIELD_THRESH_LVL1,8,3 ; @TX_POWER_NEAR_FIELD_THRESH_LVL1
	.comm	_MASKBYTE0,4,2                  ; @MASKBYTE0
	.comm	_TX_HIGHPWR_LEVEL_NORMAL2,8,3   ; @TX_HIGHPWR_LEVEL_NORMAL2
	.comm	_TX_HIGHPWR_LEVEL_NORMAL1,8,3   ; @TX_HIGHPWR_LEVEL_NORMAL1
	.no_dead_strip	__rtl92s_dm_dynamic_txpower
.subsections_via_symbols
