	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_dm_initialize_txpower_tracking_thermalmeter ## -- Begin function rtl8821ae_dm_initialize_txpower_tracking_thermalmeter
	.p2align	4, 0x90
_rtl8821ae_dm_initialize_txpower_tracking_thermalmeter: ## @rtl8821ae_dm_initialize_txpower_tracking_thermalmeter
	.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, %r15
	movq	%rax, %rdi
	callq	_rtl_dm
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_rtl_efuse
	movl	$1, (%r15)
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movl	%eax, 60(%rbx)
	movl	%eax, 56(%rbx)
	movq	%r14, %rdi
	callq	_rtl8821ae_dm_get_swing_index
	movq	_TXSCALE_TABLE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$24, %r10d
	cmovnel	%eax, %r10d
	movl	%r10d, (%rbx)
	movabsq	$103079215128, %rax             ## imm = 0x1800000018
	movq	%rax, 4(%rbx)
	movl	$24, 12(%rbx)
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_MAX_RF_PATH@GOTPCREL(%rip), %r8
	cmpl	(%r8), %eax
	jge	LBB0_4
## %bb.1:
	movq	16(%rbx), %r9
	movq	24(%rbx), %r11
	movq	48(%rbx), %rdi
	movq	40(%rbx), %rcx
	movq	32(%rbx), %rdx
	movl	%r10d, (%r9,%rax,4)
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	%esi, (%r11,%rax,4)
	movq	$0, (%rdi,%rax,8)
	movq	$0, (%rcx,%rax,8)
	movq	$0, (%rdx,%rax,8)
	incq	%rax
	movslq	(%r8), %rsi
	cmpq	%rsi, %rax
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %esi
	movl	%esi, (%r9,%rax,4)
	jmp	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXSCALE_TABLE_SIZE,4,2         ## @TXSCALE_TABLE_SIZE
	.comm	_RF90_PATH_A,4,2                ## @RF90_PATH_A
	.comm	_MAX_RF_PATH,4,2                ## @MAX_RF_PATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8821ae_dm_initialize_txpower_tracking_thermalmeter ; -- Begin function rtl8821ae_dm_initialize_txpower_tracking_thermalmeter
	.p2align	2
_rtl8821ae_dm_initialize_txpower_tracking_thermalmeter: ; @rtl8821ae_dm_initialize_txpower_tracking_thermalmeter
	.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, x0
	bl	_rtl_priv
	mov	x21, x0
	bl	_rtl_dm
	mov	x19, x0
	mov	x0, x21
	bl	_rtl_efuse
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [x0]
	stp	w8, w8, [x19, #60]
	str	w8, [x19, #56]
	mov	x0, x20
	bl	_rtl8821ae_dm_get_swing_index
Lloh0:
	adrp	x8, _TXSCALE_TABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXSCALE_TABLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #24
	cmp	w0, w8
	csel	w12, w9, w0, eq
	str	w12, [x19]
	movi.2s	v0, #24
	stur	d0, [x19, #4]
Lloh3:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
	str	w9, [x19, #12]
Lloh5:
	ldrsw	x14, [x8]
Lloh6:
	adrp	x8, _MAX_RF_PATH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_RF_PATH@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w14, w9
	b.ge	LBB0_4
; %bb.1:
	ldp	x9, x10, [x19, #16]
	ldr	x11, [x19, #48]
	lsl	x13, x14, #2
	str	w12, [x9, x13]
	ldr	w12, [x19]
	str	w12, [x10, x13]
	ldp	x13, x12, [x19, #32]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x15, x14, #3
	str	xzr, [x11, x15]
	str	xzr, [x12, x15]
	str	xzr, [x13, x15]
	add	x14, x14, #1
	ldrsw	x15, [x8]
	cmp	x14, x15
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w15, [x19]
	lsl	x16, x14, #2
	str	w15, [x9, x16]
	ldr	w15, [x19]
	str	w15, [x10, x16]
	b	LBB0_2
LBB0_4:
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TXSCALE_TABLE_SIZE,4,2         ; @TXSCALE_TABLE_SIZE
	.comm	_RF90_PATH_A,4,2                ; @RF90_PATH_A
	.comm	_MAX_RF_PATH,4,2                ; @MAX_RF_PATH
.subsections_via_symbols
