	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_set_txpower         ## -- Begin function rtl92s_phy_set_txpower
	.p2align	4, 0x90
_rtl92s_phy_set_txpower:                ## @rtl92s_phy_set_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_rtl_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %r13
	leaq	-64(%rbp), %r15
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	__rtl92s_phy_get_txpower_index
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-56(%rbp), %r9d
	movl	-52(%rbp), %r10d
	movl	-64(%rbp), %r11d
	movl	-60(%rbp), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %r8d
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_RT_TRACE
	addq	$32, %rsp
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	__rtl92s_phy_ccxpower_indexcheck
	movl	-56(%rbp), %esi
	movq	%rbx, %rdi
	callq	_rtl92s_phy_rf6052_set_ccktxpower
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_rtl92s_phy_rf6052_set_ofdmtxpower
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Channel-%d, cckPowerLevel (A / B) = 0x%x / 0x%x, ofdmPowerLevel (A / B) = 0x%x / 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_set_txpower         ; -- Begin function rtl92s_phy_set_txpower
	.p2align	2
_rtl92s_phy_set_txpower:                ; @rtl92s_phy_set_txpower
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_efuse
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	__rtl92s_phy_get_txpower_index
Lloh3:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DBG_LOUD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w2, [x9]
	ldp	w5, w6, [sp, #16]
	ldp	w7, w8, [sp, #8]
	str	w8, [sp]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	mov	x4, x19
	bl	_RT_TRACE
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	__rtl92s_phy_ccxpower_indexcheck
	ldr	w1, [sp, #16]
	mov	x0, x20
	bl	_rtl92s_phy_rf6052_set_ccktxpower
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_rtl92s_phy_rf6052_set_ofdmtxpower
LBB0_2:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Channel-%d, cckPowerLevel (A / B) = 0x%x / 0x%x, ofdmPowerLevel (A / B) = 0x%x / 0x%x\n"

.subsections_via_symbols
