	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_rf6052_set_ccktxpower ## -- Begin function rtl92s_phy_rf6052_set_ccktxpower
	.p2align	4, 0x90
_rtl92s_phy_rf6052_set_ccktxpower:      ## @rtl92s_phy_rf6052_set_ccktxpower
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movl	$63, %edx
	cmpl	$2, (%rax)
	jl	LBB0_4
## %bb.1:
	cmpl	$1, 4(%rax)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rax)
	je	LBB0_4
LBB0_3:
	movl	%r14d, %edx
LBB0_4:
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	movq	_TX_HIGH_PWR_LEVEL_LEVEL1@GOTPCREL(%rip), %rcx
	movl	$16, %edx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_TX_HIGH_PWR_LEVEL_LEVEL2@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovel	%edx, %r14d
	movl	%r14d, %edx
LBB0_7:
	movq	_RF6052_MAX_TX_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	cmovll	%edx, %ecx
	movq	_RTXAGC_CCK_MCS32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTX_AGCRATECCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_set_bbreg                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_HIGH_PWR_LEVEL_LEVEL1,8,3   ## @TX_HIGH_PWR_LEVEL_LEVEL1
	.comm	_TX_HIGH_PWR_LEVEL_LEVEL2,8,3   ## @TX_HIGH_PWR_LEVEL_LEVEL2
	.comm	_RF6052_MAX_TX_PWR,4,2          ## @RF6052_MAX_TX_PWR
	.comm	_RTXAGC_CCK_MCS32,4,2           ## @RTXAGC_CCK_MCS32
	.comm	_BTX_AGCRATECCK,4,2             ## @BTX_AGCRATECCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_rf6052_set_ccktxpower ; -- Begin function rtl92s_phy_rf6052_set_ccktxpower
	.p2align	2
_rtl92s_phy_rf6052_set_ccktxpower:      ; @rtl92s_phy_rf6052_set_ccktxpower
	.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, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_efuse
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
LBB0_3:
	mov	x8, x20
	ldr	x9, [x22]
	cbnz	x9, LBB0_8
	b	LBB0_5
LBB0_4:
	mov	w8, #63
	ldr	x9, [x22]
	cbnz	x9, LBB0_8
LBB0_5:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _TX_HIGH_PWR_LEVEL_LEVEL1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_HIGH_PWR_LEVEL_LEVEL1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #16
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x9, _TX_HIGH_PWR_LEVEL_LEVEL2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_HIGH_PWR_LEVEL_LEVEL2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	w8, wzr, w20, eq
LBB0_8:
Lloh6:
	adrp	x9, _RF6052_MAX_TX_PWR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RF6052_MAX_TX_PWR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w3, w8, w9, lt
Lloh9:
	adrp	x8, _RTXAGC_CCK_MCS32@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTXAGC_CCK_MCS32@GOTPAGEOFF]
Lloh11:
	adrp	x9, _BTX_AGCRATECCK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BTX_AGCRATECCK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w2, [x9]
	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	_rtl_set_bbreg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_HIGH_PWR_LEVEL_LEVEL1,8,3   ; @TX_HIGH_PWR_LEVEL_LEVEL1
	.comm	_TX_HIGH_PWR_LEVEL_LEVEL2,8,3   ; @TX_HIGH_PWR_LEVEL_LEVEL2
	.comm	_RF6052_MAX_TX_PWR,4,2          ; @RF6052_MAX_TX_PWR
	.comm	_RTXAGC_CCK_MCS32,4,2           ; @RTXAGC_CCK_MCS32
	.comm	_BTX_AGCRATECCK,4,2             ; @BTX_AGCRATECCK
.subsections_via_symbols
