	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _rtl8821ae_phy_txpower_training_by_path
LCPI0_0:
	.long	26                              ## 0x1a
	.long	20                              ## 0x14
	.space	4
	.space	4
LCPI0_1:
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	128                             ## 0x80
	.byte	4                               ## 0x4
	.byte	5                               ## 0x5
	.byte	6                               ## 0x6
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_2:
	.long	4293394432                      ## 0xffe80000
	.long	4294962688                      ## 0xffffee00
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
__rtl8821ae_phy_txpower_training_by_path: ## @_rtl8821ae_phy_txpower_training_by_path
	.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	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_rtl_priv
	cmpq	%rbx, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rax
	cmovneq	(%rax), %rbx
	movq	_DESC_RATEMCS7@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RB_TXPWRTRAING@GOTPCREL(%rip), %r13
	cmoveq	_RA_TXPWRTRAING@GOTPCREL(%rip), %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	__rtl8821ae_get_txpower_index
	cmpl	$13, %eax
	movl	$12, %edx
	cmovgel	%eax, %edx
	movl	(%r13), %esi
	addl	$-10, %edx
	movd	%eax, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	pmaxsd	LCPI0_0(%rip), %xmm0
	pshufb	LCPI0_1(%rip), %xmm0            ## xmm0 = zero,zero,xmm0[0,1],zero,xmm0[4,5,6,u,u,u,u,u,u,u,u]
	paddd	LCPI0_2(%rip), %xmm0
	pextrd	$1, %xmm0, %eax
	movd	%xmm0, %ecx
	orl	%edx, %ecx
	orl	%eax, %ecx
	movq	%r12, %rdi
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_set_bbreg                  ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
	.comm	_DESC_RATEMCS7,4,2              ## @DESC_RATEMCS7
	.comm	_RA_TXPWRTRAING,4,2             ## @RA_TXPWRTRAING
	.comm	_RF90_PATH_B,8,3                ## @RF90_PATH_B
	.comm	_RB_TXPWRTRAING,4,2             ## @RB_TXPWRTRAING
	.no_dead_strip	__rtl8821ae_phy_txpower_training_by_path
.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_phy_txpower_training_by_path
lCPI0_0:
	.long	26                              ; 0x1a
	.long	20                              ; 0x14
lCPI0_1:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
lCPI0_2:
	.long	4293394432                      ; 0xffe80000
	.long	4294962688                      ; 0xffffee00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
__rtl8821ae_phy_txpower_training_by_path: ; @_rtl8821ae_phy_txpower_training_by_path
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_rtl_priv
	ldr	x8, [x0]
	cmp	x8, x22
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RF90_PATH_B@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RF90_PATH_B@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x22
	csel	x1, x22, x9, eq
Lloh6:
	adrp	x8, _DESC_RATEMCS7@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DESC_RATEMCS7@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _RA_TXPWRTRAING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RA_TXPWRTRAING@GOTPAGEOFF]
Lloh11:
	adrp	x9, _RB_TXPWRTRAING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RB_TXPWRTRAING@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
	bl	__rtl8821ae_get_txpower_index
	ldr	w1, [x22]
	mov	w8, #12
	cmp	w0, #12
	csel	w8, w0, w8, gt
	sub	w8, w8, #10
	dup.2s	v0, w0
Lloh13:
	adrp	x9, lCPI0_0@PAGE
Lloh14:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	smax.2s	v0, v0, v1
Lloh15:
	adrp	x9, lCPI0_1@PAGE
Lloh16:
	ldr	d1, [x9, lCPI0_1@PAGEOFF]
	ushl.2s	v0, v0, v1
Lloh17:
	adrp	x9, lCPI0_2@PAGE
Lloh18:
	ldr	d1, [x9, lCPI0_2@PAGEOFF]
	add.2s	v0, v0, v1
	mov.s	w9, v0[1]
	orr	w8, w9, w8
	fmov	w9, s0
	orr	w3, w9, w8
	mov	x0, x19
	mov	w2, #16777215
	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
LBB0_2:
	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 AdrpLdr	Lloh17, Lloh18
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdrp	Lloh13, Lloh15
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
	.comm	_DESC_RATEMCS7,4,2              ; @DESC_RATEMCS7
	.comm	_RA_TXPWRTRAING,4,2             ; @RA_TXPWRTRAING
	.comm	_RF90_PATH_B,8,3                ; @RF90_PATH_B
	.comm	_RB_TXPWRTRAING,4,2             ; @RB_TXPWRTRAING
	.no_dead_strip	__rtl8821ae_phy_txpower_training_by_path
.subsections_via_symbols
