	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92c_dm_dynamic_txpower
_rtl92c_dm_dynamic_txpower:             ## @rtl92c_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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
	cmpl	$0, 40(%rbx)
	je	LBB0_21
## %bb.1:
	movq	_HAL_DM_HIPWR_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	_TXHIGHPWRLEVEL_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_21
LBB0_3:
	movq	(%rax), %rcx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_6
## %bb.4:
	movq	16(%rbx), %r15
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%r15, %r15
	je	LBB0_5
## %bb.9:
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	8(%rax), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	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_10
LBB0_8:
	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_10:
	movq	%rbx, %rdi
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_TX_POWER_NEAR_FIELD_THRESH_LVL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_TXHIGHPWRLEVEL_LEVEL1@GOTPCREL(%rip), %rax
	cmpq	%rcx, %r15
	jge	LBB0_11
## %bb.12:
	addq	$-3, %rcx
	movq	_TX_POWER_NEAR_FIELD_THRESH_LVL1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rcx, %r15
	jge	LBB0_15
## %bb.13:
	cmpq	%rdx, %r15
	jl	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_17
LBB0_11:
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_17
LBB0_15:
	addq	$-5, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_18
## %bb.16:
	leaq	L_.str.6(%rip), %rcx
	movq	_TXHIGHPWRLEVEL_NORMAL@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_18:
	movq	8(%rbx), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_20
## %bb.19:
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	48(%rbx), %r8
	leaq	L_.str.7(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	48(%rbx), %rsi
	movq	%r14, %rdi
	callq	_rtl88e_phy_set_txpower_level
	movq	8(%rbx), %rax
	jmp	LBB0_20
LBB0_5:
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_TXHIGHPWRLEVEL_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_20:
	movq	%rax, 24(%rbx)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HAL_DM_HIPWR_DISABLE,4,2       ## @HAL_DM_HIPWR_DISABLE
	.comm	_TXHIGHPWRLEVEL_NORMAL,8,3      ## @TXHIGHPWRLEVEL_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	_TXHIGHPWRLEVEL_LEVEL1,8,3      ## @TXHIGHPWRLEVEL_LEVEL1
L_.str.4:                               ## @.str.4
	.asciz	"TXHIGHPWRLEVEL_LEVEL1 (TxPwr = 0x0)\n"

	.comm	_TX_POWER_NEAR_FIELD_THRESH_LVL1,8,3 ## @TX_POWER_NEAR_FIELD_THRESH_LVL1
L_.str.5:                               ## @.str.5
	.asciz	"TXHIGHPWRLEVEL_LEVEL1 (TxPwr = 0x10)\n"

L_.str.6:                               ## @.str.6
	.asciz	"TXHIGHPWRLEVEL_NORMAL\n"

L_.str.7:                               ## @.str.7
	.asciz	"PHY_SetTxPowerLevel8192S() Channel = %d\n"

	.no_dead_strip	_rtl92c_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 rtl92c_dm_dynamic_txpower
_rtl92c_dm_dynamic_txpower:             ; @rtl92c_dm_dynamic_txpower
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w8, [x19, #40]
	cbz	w8, LBB0_21
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _HAL_DM_HIPWR_DISABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HAL_DM_HIPWR_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _TXHIGHPWRLEVEL_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TXHIGHPWRLEVEL_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_21
LBB0_3:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.4:
	ldr	x21, [x19, #16]
Lloh9:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	cbz	x21, LBB0_19
; %bb.5:
Lloh12:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	str	x21, [sp]
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	x8, [x0, #8]
Lloh17:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x21, [x19, #16]
Lloh20:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	str	x21, [sp]
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	x21, [x19, #32]
Lloh28:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	str	x21, [sp]
Lloh34:
	adrp	x3, l_.str.2@PAGE
Lloh35:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_RT_TRACE
Lloh36:
	adrp	x8, _TX_POWER_NEAR_FIELD_THRESH_LVL2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TX_POWER_NEAR_FIELD_THRESH_LVL2@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_13
; %bb.10:
	sub	x9, x8, #3
Lloh39:
	adrp	x8, _TX_POWER_NEAR_FIELD_THRESH_LVL1@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TX_POWER_NEAR_FIELD_THRESH_LVL1@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x21, x9
	ccmp	x21, x8, #8, lt
	b.ge	LBB0_14
; %bb.11:
	sub	x8, x8, #5
	cmp	x21, x8
	b.ge	LBB0_17
; %bb.12:
Lloh42:
	adrp	x3, l_.str.6@PAGE
Lloh43:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh44:
	adrp	x8, _TXHIGHPWRLEVEL_NORMAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TXHIGHPWRLEVEL_NORMAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh46:
	adrp	x3, l_.str.4@PAGE
Lloh47:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh48:
	adrp	x3, l_.str.5@PAGE
Lloh49:
	add	x3, x3, l_.str.5@PAGEOFF
LBB0_15:
Lloh50:
	adrp	x8, _TXHIGHPWRLEVEL_LEVEL1@GOTPAGE
Lloh51:
	ldr	x8, [x8, _TXHIGHPWRLEVEL_LEVEL1@GOTPAGEOFF]
LBB0_16:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh52:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh53:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh56:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_RT_TRACE
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.18:
Lloh58:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh59:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh62:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	ldr	x8, [x19, #48]
	str	x8, [sp]
Lloh64:
	adrp	x3, l_.str.7@PAGE
Lloh65:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x1, [x19, #48]
	mov	x0, x20
	bl	_rtl88e_phy_set_txpower_level
	ldr	x8, [x19, #8]
	b	LBB0_20
LBB0_19:
Lloh66:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
Lloh69:
	adrp	x3, l_.str@PAGE
Lloh70:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh71:
	adrp	x8, _TXHIGHPWRLEVEL_NORMAL@GOTPAGE
Lloh72:
	ldr	x8, [x8, _TXHIGHPWRLEVEL_NORMAL@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_20:
	str	x8, [x19, #24]
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_HAL_DM_HIPWR_DISABLE,4,2       ; @HAL_DM_HIPWR_DISABLE
	.comm	_TXHIGHPWRLEVEL_NORMAL,8,3      ; @TXHIGHPWRLEVEL_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	_TXHIGHPWRLEVEL_LEVEL1,8,3      ; @TXHIGHPWRLEVEL_LEVEL1
l_.str.4:                               ; @.str.4
	.asciz	"TXHIGHPWRLEVEL_LEVEL1 (TxPwr = 0x0)\n"

	.comm	_TX_POWER_NEAR_FIELD_THRESH_LVL1,8,3 ; @TX_POWER_NEAR_FIELD_THRESH_LVL1
l_.str.5:                               ; @.str.5
	.asciz	"TXHIGHPWRLEVEL_LEVEL1 (TxPwr = 0x10)\n"

l_.str.6:                               ; @.str.6
	.asciz	"TXHIGHPWRLEVEL_NORMAL\n"

l_.str.7:                               ; @.str.7
	.asciz	"PHY_SetTxPowerLevel8192S() Channel = %d\n"

	.no_dead_strip	_rtl92c_dm_dynamic_txpower
.subsections_via_symbols
