	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_write_ofdm_power_reg
__rtl8821ae_write_ofdm_power_reg:       ## @_rtl8821ae_write_ofdm_power_reg
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_rtl_priv
	movq	%rax, %r15
	movq	_RTXAGC_A_OFDM18_OFDM6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_RTXAGC_A_OFDM54_OFDM24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_RTXAGC_A_MCS03_MCS00@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_RTXAGC_A_MCS07_MCS04@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_RTXAGC_A_MCS11_MCS08@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_RTXAGC_A_MCS15_MCS12@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_RTXAGC_B_OFDM18_OFDM6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	_RTXAGC_B_OFDM54_OFDM24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	_RTXAGC_B_MCS03_MCS00@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_RTXAGC_B_MCS07_MCS04@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	movq	_RTXAGC_B_MCS11_MCS08@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_RTXAGC_B_MCS15_MCS12@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movl	(%rbx), %ecx
	movq	_RF6052_MAX_TX_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %eax
	andl	$127, %eax
	cmpl	%edx, %eax
	cmovgel	%edx, %eax
	movl	%ecx, %r12d
	shrl	$8, %r12d
	andl	$127, %r12d
	cmpl	%edx, %r12d
	cmovgel	%edx, %r12d
	movslq	%r14d, %r14
	movl	%ecx, %esi
	shrl	$16, %esi
	andl	$127, %esi
	cmpl	%edx, %esi
	cmovgel	%edx, %esi
	shrl	$24, %ecx
	andl	$127, %ecx
	cmpl	%edx, %ecx
	cmovgel	%edx, %ecx
	shll	$24, %ecx
	shll	$16, %esi
	orl	%ecx, %esi
	shll	$8, %r12d
	orl	%eax, %r12d
	orl	%esi, %r12d
	movl	-80(%rbp,%r14,4), %ebx
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %ecx
	callq	_rtl_set_bbreg
	movq	_FPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %r8d
	movl	%r12d, %r9d
	callq	_RTPRINT
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %ecx
	movq	_RF6052_MAX_TX_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %eax
	andl	$127, %eax
	cmpl	%edx, %eax
	cmovgel	%edx, %eax
	movl	%ecx, %ebx
	shrl	$8, %ebx
	andl	$127, %ebx
	cmpl	%edx, %ebx
	cmovgel	%edx, %ebx
	movl	%ecx, %esi
	shrl	$16, %esi
	andl	$127, %esi
	cmpl	%edx, %esi
	cmovgel	%edx, %esi
	shrl	$24, %ecx
	andl	$127, %ecx
	cmpl	%edx, %ecx
	cmovgel	%edx, %ecx
	shll	$24, %ecx
	shll	$16, %esi
	orl	%ecx, %esi
	shll	$8, %ebx
	orl	%eax, %ebx
	orl	%esi, %ebx
	movl	-112(%rbp,%r14,4), %r15d
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %ecx
	callq	_rtl_set_bbreg
	movq	_FPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_1
## %bb.2:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str(%rip), %rcx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RTPRINT                        ## TAILCALL
LBB0_1:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTXAGC_A_OFDM18_OFDM6,4,2      ## @RTXAGC_A_OFDM18_OFDM6
	.comm	_RTXAGC_A_OFDM54_OFDM24,4,2     ## @RTXAGC_A_OFDM54_OFDM24
	.comm	_RTXAGC_A_MCS03_MCS00,4,2       ## @RTXAGC_A_MCS03_MCS00
	.comm	_RTXAGC_A_MCS07_MCS04,4,2       ## @RTXAGC_A_MCS07_MCS04
	.comm	_RTXAGC_A_MCS11_MCS08,4,2       ## @RTXAGC_A_MCS11_MCS08
	.comm	_RTXAGC_A_MCS15_MCS12,4,2       ## @RTXAGC_A_MCS15_MCS12
	.comm	_RTXAGC_B_OFDM18_OFDM6,4,2      ## @RTXAGC_B_OFDM18_OFDM6
	.comm	_RTXAGC_B_OFDM54_OFDM24,4,2     ## @RTXAGC_B_OFDM54_OFDM24
	.comm	_RTXAGC_B_MCS03_MCS00,4,2       ## @RTXAGC_B_MCS03_MCS00
	.comm	_RTXAGC_B_MCS07_MCS04,4,2       ## @RTXAGC_B_MCS07_MCS04
	.comm	_RTXAGC_B_MCS11_MCS08,4,2       ## @RTXAGC_B_MCS11_MCS08
	.comm	_RTXAGC_B_MCS15_MCS12,4,2       ## @RTXAGC_B_MCS15_MCS12
	.comm	_RF6052_MAX_TX_PWR,4,2          ## @RF6052_MAX_TX_PWR
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
	.comm	_FPHY,4,2                       ## @FPHY
	.comm	_PHY_TXPWR,4,2                  ## @PHY_TXPWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set 0x%x = %08x\n"

	.no_dead_strip	__rtl8821ae_write_ofdm_power_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function _rtl8821ae_write_ofdm_power_reg
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
lCPI0_1:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
__rtl8821ae_write_ofdm_power_reg:       ; @_rtl8821ae_write_ofdm_power_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_rtl_priv
	mov	x19, x0
Lloh3:
	adrp	x8, _RTXAGC_A_OFDM18_OFDM6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTXAGC_A_OFDM18_OFDM6@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RTXAGC_A_OFDM54_OFDM24@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RTXAGC_A_OFDM54_OFDM24@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
Lloh9:
	adrp	x8, _RTXAGC_A_MCS03_MCS00@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTXAGC_A_MCS03_MCS00@GOTPAGEOFF]
Lloh11:
	adrp	x9, _RTXAGC_A_MCS07_MCS04@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RTXAGC_A_MCS07_MCS04@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
Lloh15:
	adrp	x8, _RTXAGC_A_MCS11_MCS08@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTXAGC_A_MCS11_MCS08@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _RTXAGC_A_MCS15_MCS12@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RTXAGC_A_MCS15_MCS12@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #48]
Lloh21:
	adrp	x8, _RTXAGC_B_OFDM18_OFDM6@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RTXAGC_B_OFDM18_OFDM6@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _RTXAGC_B_OFDM54_OFDM24@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RTXAGC_B_OFDM54_OFDM24@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh27:
	adrp	x8, _RTXAGC_B_MCS03_MCS00@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RTXAGC_B_MCS03_MCS00@GOTPAGEOFF]
Lloh29:
	adrp	x9, _RTXAGC_B_MCS07_MCS04@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RTXAGC_B_MCS07_MCS04@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh33:
	adrp	x8, _RTXAGC_B_MCS11_MCS08@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RTXAGC_B_MCS11_MCS08@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _RTXAGC_B_MCS15_MCS12@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RTXAGC_B_MCS15_MCS12@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
	sbfiz	x25, x22, #2, #32
	ldr	w8, [x21]
Lloh39:
	adrp	x9, _RF6052_MAX_TX_PWR@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RF6052_MAX_TX_PWR@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	and	w10, w8, #0x7f
	cmp	w10, w9
	csel	w10, w10, w9, lt
	ubfx	w11, w8, #24, #7
	dup.2s	v0, w8
	cmp	w11, w9
	csel	w8, w11, w9, lt
Lloh42:
	adrp	x11, lCPI0_0@PAGE
Lloh43:
	ldr	d8, [x11, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v8
Lloh44:
	adrp	x11, lCPI0_1@PAGE
Lloh45:
	ldr	d9, [x11, lCPI0_1@PAGEOFF]
	movi.2s	v10, #127
	and.8b	v0, v0, v10
	dup.2s	v1, w9
	smin.2s	v0, v0, v1
	ushl.2s	v0, v0, v9
	mov.s	w9, v0[1]
	fmov	w11, s0
	orr	w8, w11, w8, lsl #24
	orr	w8, w8, w9
	orr	w23, w8, w10
	add	x8, sp, #32
	ldr	w24, [x8, x25]
Lloh46:
	adrp	x27, _MASKDWORD@GOTPAGE
Lloh47:
	ldr	x27, [x27, _MASKDWORD@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x24
	mov	x3, x23
	bl	_rtl_set_bbreg
Lloh48:
	adrp	x28, _FPHY@GOTPAGE
Lloh49:
	ldr	x28, [x28, _FPHY@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh50:
	adrp	x26, _PHY_TXPWR@GOTPAGE
Lloh51:
	ldr	x26, [x26, _PHY_TXPWR@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh52:
	adrp	x22, l_.str@PAGE
Lloh53:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	mov	x4, x24
	mov	x5, x23
	bl	_RTPRINT
	ldr	w8, [x21, #4]
Lloh54:
	adrp	x9, _RF6052_MAX_TX_PWR@GOTPAGE
Lloh55:
	ldr	x9, [x9, _RF6052_MAX_TX_PWR@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	and	w10, w8, #0x7f
	cmp	w10, w9
	csel	w10, w10, w9, lt
	ubfx	w11, w8, #24, #7
	cmp	w11, w9
	csel	w11, w11, w9, lt
	dup.2s	v0, w8
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v10
	dup.2s	v1, w9
	smin.2s	v0, v0, v1
	ushl.2s	v0, v0, v9
	mov.s	w8, v0[1]
	fmov	w9, s0
	orr	w9, w9, w11, lsl #24
	orr	w8, w9, w8
	orr	w21, w8, w10
	add	x8, sp, #8
	ldr	w23, [x8, x25]
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	bl	_rtl_set_bbreg
	ldr	w1, [x28]
	ldr	w2, [x26]
	ldr	x8, [sp, #56]
Lloh57:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh58:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x3, x22
	mov	x4, x23
	mov	x5, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_RTPRINT
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdr	Lloh44, Lloh45
	.loh AdrpAdrp	Lloh42, Lloh44
	.loh AdrpLdr	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTXAGC_A_OFDM18_OFDM6,4,2      ; @RTXAGC_A_OFDM18_OFDM6
	.comm	_RTXAGC_A_OFDM54_OFDM24,4,2     ; @RTXAGC_A_OFDM54_OFDM24
	.comm	_RTXAGC_A_MCS03_MCS00,4,2       ; @RTXAGC_A_MCS03_MCS00
	.comm	_RTXAGC_A_MCS07_MCS04,4,2       ; @RTXAGC_A_MCS07_MCS04
	.comm	_RTXAGC_A_MCS11_MCS08,4,2       ; @RTXAGC_A_MCS11_MCS08
	.comm	_RTXAGC_A_MCS15_MCS12,4,2       ; @RTXAGC_A_MCS15_MCS12
	.comm	_RTXAGC_B_OFDM18_OFDM6,4,2      ; @RTXAGC_B_OFDM18_OFDM6
	.comm	_RTXAGC_B_OFDM54_OFDM24,4,2     ; @RTXAGC_B_OFDM54_OFDM24
	.comm	_RTXAGC_B_MCS03_MCS00,4,2       ; @RTXAGC_B_MCS03_MCS00
	.comm	_RTXAGC_B_MCS07_MCS04,4,2       ; @RTXAGC_B_MCS07_MCS04
	.comm	_RTXAGC_B_MCS11_MCS08,4,2       ; @RTXAGC_B_MCS11_MCS08
	.comm	_RTXAGC_B_MCS15_MCS12,4,2       ; @RTXAGC_B_MCS15_MCS12
	.comm	_RF6052_MAX_TX_PWR,4,2          ; @RF6052_MAX_TX_PWR
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
	.comm	_FPHY,4,2                       ; @FPHY
	.comm	_PHY_TXPWR,4,2                  ; @PHY_TXPWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set 0x%x = %08x\n"

	.no_dead_strip	__rtl8821ae_write_ofdm_power_reg
.subsections_via_symbols
