	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92d_phy_set_txpower_level   ## -- Begin function rtl92d_phy_set_txpower_level
	.p2align	4, 0x90
_rtl92d_phy_set_txpower_level:          ## @rtl92d_phy_set_txpower_level
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rtl_priv
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	__rtl92c_phy_get_rightchnlplace
	movl	%eax, %r14d
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	__rtl92d_get_txpower_index
	movq	(%r15), %rax
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	__rtl92d_ccxpower_index_check
	movq	(%r15), %rax
	movq	(%rbx), %rcx
LBB0_3:
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_rtl92d_phy_rf6052_set_cck_txpower
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_rtl92d_phy_rf6052_set_ofdm_txpower
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92d_phy_set_txpower_level   ; -- Begin function rtl92d_phy_set_txpower_level
	.p2align	2
_rtl92d_phy_set_txpower_level:          ; @rtl92d_phy_set_txpower_level
	.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	x20, x1
	mov	x19, 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
	bl	_rtl_efuse
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	__rtl92c_phy_get_rightchnlplace
	mov	x20, x0
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	__rtl92d_get_txpower_index
	ldr	x8, [x21]
Lloh3:
	adrp	x22, _BAND_ON_2_4G@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BAND_ON_2_4G@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	__rtl92d_ccxpower_index_check
	ldr	x8, [x21]
	ldr	x9, [x22]
LBB0_3:
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	add	x1, sp, #16
	mov	x0, x19
	bl	_rtl92d_phy_rf6052_set_cck_txpower
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_rtl92d_phy_rf6052_set_ofdm_txpower
LBB0_6:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
.subsections_via_symbols
