	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723e_phy_update_txpower_dbm ## -- Begin function rtl8723e_phy_update_txpower_dbm
	.p2align	4, 0x90
_rtl8723e_phy_update_txpower_dbm:       ## @rtl8723e_phy_update_txpower_dbm
	.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
	movq	%rsi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, %r14
	movq	_WIRELESS_MODE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	__rtl8723e_phy_dbm_to_txpwr_idx
	movq	%rax, %r13
	movq	_WIRELESS_MODE_N_24G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	__rtl8723e_phy_dbm_to_txpwr_idx
	movq	%rax, %rbx
	subq	(%r14), %rbx
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	cmovleq	%r12, %rbx
	movq	_COMP_TXAGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	callq	_RT_TRACE
	movq	24(%r14), %rax
	movq	8(%r14), %r9
	movq	16(%r14), %rsi
	movq	(%rax), %r8
	movq	8(%rax), %rcx
	movq	(%rsi), %rdx
	movq	8(%rsi), %rsi
	movq	(%r9), %rdi
	movq	8(%r9), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, (%r8,%r12)
	movq	%rbx, (%rdx,%r12)
	movq	%rbx, (%rdi,%r12)
	movq	%r13, (%rcx,%r12)
	movq	%rbx, (%rsi,%r12)
	movq	%rbx, (%rax,%r12)
	movq	%r13, 8(%r8,%r12)
	movq	%rbx, 8(%rdx,%r12)
	movq	%rbx, 8(%rdi,%r12)
	movq	%r13, 8(%rcx,%r12)
	movq	%rbx, 8(%rsi,%r12)
	movq	%rbx, 8(%rax,%r12)
	addq	$16, %r12
	cmpq	$112, %r12
	jne	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rtl8723e_phy_set_txpower_level
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIRELESS_MODE_B,4,2            ## @WIRELESS_MODE_B
	.comm	_WIRELESS_MODE_N_24G,4,2        ## @WIRELESS_MODE_N_24G
	.comm	_COMP_TXAGC,4,2                 ## @COMP_TXAGC
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lx dBm, ccktxpwridx = %d, ofdmtxpwridx = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723e_phy_update_txpower_dbm ; -- Begin function rtl8723e_phy_update_txpower_dbm
	.p2align	2
_rtl8723e_phy_update_txpower_dbm:       ; @rtl8723e_phy_update_txpower_dbm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x24, x0
Lloh0:
	adrp	x8, _WIRELESS_MODE_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIRELESS_MODE_B@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	__rtl8723e_phy_dbm_to_txpwr_idx
	mov	x21, x0
Lloh3:
	adrp	x8, _WIRELESS_MODE_N_24G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIRELESS_MODE_N_24G@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	__rtl8723e_phy_dbm_to_txpwr_idx
	ldr	x8, [x24]
	sub	x8, x0, x8
	cmp	x8, #0
	csel	x22, x8, xzr, gt
Lloh6:
	adrp	x8, _COMP_TXAGC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMP_TXAGC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x23
	mov	x5, x21
	mov	x6, x22
	bl	_RT_TRACE
	ldp	x9, x11, [x24, #8]
	ldr	x13, [x24, #24]
	ldp	x10, x8, [x9]
	ldp	x12, x9, [x11]
	ldp	x13, x11, [x13]
	str	x21, [x13]
	str	x22, [x12]
	str	x22, [x10]
	str	x21, [x11]
	str	x22, [x9]
	str	x22, [x8]
	str	x21, [x13, #8]
	str	x22, [x12, #8]
	str	x22, [x10, #8]
	str	x21, [x11, #8]
	str	x22, [x9, #8]
	str	x22, [x8, #8]
	str	x21, [x13, #16]
	str	x22, [x12, #16]
	str	x22, [x10, #16]
	str	x21, [x11, #16]
	str	x22, [x9, #16]
	str	x22, [x8, #16]
	str	x21, [x13, #24]
	str	x22, [x12, #24]
	str	x22, [x10, #24]
	str	x21, [x11, #24]
	str	x22, [x9, #24]
	str	x22, [x8, #24]
	str	x21, [x13, #32]
	str	x22, [x12, #32]
	str	x22, [x10, #32]
	str	x21, [x11, #32]
	str	x22, [x9, #32]
	str	x22, [x8, #32]
	str	x21, [x13, #40]
	str	x22, [x12, #40]
	str	x22, [x10, #40]
	str	x21, [x11, #40]
	str	x22, [x9, #40]
	str	x22, [x8, #40]
	str	x21, [x13, #48]
	str	x22, [x12, #48]
	str	x22, [x10, #48]
	str	x21, [x11, #48]
	str	x22, [x9, #48]
	str	x22, [x8, #48]
	str	x21, [x13, #56]
	str	x22, [x12, #56]
	str	x22, [x10, #56]
	str	x21, [x11, #56]
	str	x22, [x9, #56]
	str	x22, [x8, #56]
	str	x21, [x13, #64]
	str	x22, [x12, #64]
	str	x22, [x10, #64]
	str	x21, [x11, #64]
	str	x22, [x9, #64]
	str	x22, [x8, #64]
	str	x21, [x13, #72]
	str	x22, [x12, #72]
	str	x22, [x10, #72]
	str	x21, [x11, #72]
	str	x22, [x9, #72]
	str	x22, [x8, #72]
	str	x21, [x13, #80]
	str	x22, [x12, #80]
	str	x22, [x10, #80]
	str	x21, [x11, #80]
	str	x22, [x9, #80]
	str	x22, [x8, #80]
	str	x21, [x13, #88]
	str	x22, [x12, #88]
	str	x22, [x10, #88]
	str	x21, [x11, #88]
	str	x22, [x9, #88]
	str	x22, [x8, #88]
	str	x21, [x13, #96]
	str	x22, [x12, #96]
	str	x22, [x10, #96]
	str	x21, [x11, #96]
	str	x22, [x9, #96]
	str	x22, [x8, #96]
	str	x21, [x13, #104]
	str	x22, [x12, #104]
	str	x22, [x10, #104]
	str	x21, [x11, #104]
	str	x22, [x9, #104]
	str	x22, [x8, #104]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl8723e_phy_set_txpower_level
	mov	w0, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WIRELESS_MODE_B,4,2            ; @WIRELESS_MODE_B
	.comm	_WIRELESS_MODE_N_24G,4,2        ; @WIRELESS_MODE_N_24G
	.comm	_COMP_TXAGC,4,2                 ; @COMP_TXAGC
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lx dBm, ccktxpwridx = %d, ofdmtxpwridx = %d\n"

.subsections_via_symbols
