	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_store_tx_power_by_rate
__rtl8821ae_store_tx_power_by_rate:     ## @_rtl8821ae_store_tx_power_by_rate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	__rtl8821ae_get_rate_section_index
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rbx
	cmpq	%r12, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%rbx), %r12
LBB0_3:
	movq	_MAX_RF_PATH@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	%r14, %rax
	ja	LBB0_5
## %bb.4:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%rbx), %rax
	leaq	-1(%rax), %r14
LBB0_5:
	movq	16(%rbp), %r10
	cmpq	%r15, %rax
	ja	LBB0_7
## %bb.6:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %r8
	xorl	%eax, %eax
	movq	%r10, %r15
	callq	_RT_TRACE
	movq	%r15, %r10
	movq	(%rbx), %r15
	decq	%r15
LBB0_7:
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%r15,8), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r10, (%rax,%rbx,8)
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rcx
	movq	%r13, %rdi
	movq	%r12, %r8
	movq	%r14, %r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	pushq	%r15
	callq	_RT_TRACE
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Band %d\n"

	.comm	_MAX_RF_PATH,8,3                ## @MAX_RF_PATH
L_.str.1:                               ## @.str.1
	.asciz	"Invalid RfPath %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid TxNum %d\n"

	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.3:                               ## @.str.3
	.asciz	"TxPwrByRateOffset[Band %d][RfPath %d][TxNum %d][RateSection %d] = 0x%x\n"

	.no_dead_strip	__rtl8821ae_store_tx_power_by_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_store_tx_power_by_rate
__rtl8821ae_store_tx_power_by_rate:     ; @_rtl8821ae_store_tx_power_by_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	mov	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	bl	_rtl_priv
	mov	x23, x0
	mov	x0, x24
	bl	__rtl8821ae_get_rate_section_index
	mov	x24, x0
Lloh0:
	adrp	x27, _BAND_ON_2_4G@GOTPAGE
Lloh1:
	ldr	x27, [x27, _BAND_ON_2_4G@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh2:
	adrp	x9, _BAND_ON_5G@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BAND_ON_5G@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x19
	ccmp	x9, x19, #4, ne
Lloh5:
	adrp	x25, _COMP_INIT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _COMP_INIT@GOTPAGEOFF]
Lloh7:
	adrp	x26, _DBG_WARNING@GOTPAGE
Lloh8:
	ldr	x26, [x26, _DBG_WARNING@GOTPAGEOFF]
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x25]
	ldr	w2, [x26]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x23
	mov	x4, x19
	bl	_RT_TRACE
	ldr	x19, [x27]
LBB0_2:
Lloh11:
	adrp	x27, _MAX_RF_PATH@GOTPAGE
Lloh12:
	ldr	x27, [x27, _MAX_RF_PATH@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x8, x22
	b.hi	LBB0_4
; %bb.3:
	ldr	w1, [x25]
	ldr	w2, [x26]
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x4, x22
	bl	_RT_TRACE
	ldr	x8, [x27]
	sub	x22, x8, #1
LBB0_4:
	cmp	x8, x21
	b.hi	LBB0_6
; %bb.5:
	ldr	w1, [x25]
	ldr	w2, [x26]
Lloh15:
	adrp	x3, l_.str.2@PAGE
Lloh16:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x4, x21
	bl	_RT_TRACE
	ldr	x8, [x27]
	sub	x21, x8, #1
LBB0_6:
	ldr	x8, [x23]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x8, [x8, x21, lsl #3]
	str	x20, [x8, x24, lsl #3]
	ldr	w1, [x25]
Lloh17:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	stp	x24, x20, [sp, #16]
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	stp	x22, x21, [sp]
	mov	x0, x23
	mov	x4, x19
	bl	_RT_TRACE
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Band %d\n"

	.comm	_MAX_RF_PATH,8,3                ; @MAX_RF_PATH
l_.str.1:                               ; @.str.1
	.asciz	"Invalid RfPath %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid TxNum %d\n"

	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.3:                               ; @.str.3
	.asciz	"TxPwrByRateOffset[Band %d][RfPath %d][TxNum %d][RateSection %d] = 0x%x\n"

	.no_dead_strip	__rtl8821ae_store_tx_power_by_rate
.subsections_via_symbols
