	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92ee_phy_store_txpower_by_rate_base
__rtl92ee_phy_store_txpower_by_rate_base: ## @_rtl92ee_phy_store_txpower_by_rate_base
	.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	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %r15
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jbe	LBB0_1
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %r12
	movq	_RF_1TX@GOTPCREL(%rip), %r13
	movq	%rax, %rbx
	cmpq	%rax, %rbx
	jne	LBB0_4
	.p2align	4, 0x90
LBB0_3:
	movq	(%r15), %rcx
	movq	(%r12), %rsi
	movq	(%rcx,%rsi,8), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	(%r13), %r8
	movq	(%rcx,%r8,8), %rcx
	movl	12(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$24, %edx
	andl	$15, %edx
	shrq	$28, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,2), %r9
	movq	_CCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:
	cmpq	%rdx, %rbx
	jne	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	movq	(%r12), %rsi
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%rdx,8), %rax
	movq	(%r13), %r8
	movq	(%rax,%r8,8), %rax
	movl	12(%rax), %eax
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	leaq	(%rcx,%rcx,4), %rcx
	andl	$15, %eax
	leaq	(%rax,%rcx,2), %r9
	movq	_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
LBB0_6:
	callq	__rtl92ee_phy_set_txpower_by_rate_base
LBB0_7:
	movq	(%r15), %rax
	movq	(%r12), %rsi
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r13), %r8
	movq	(%rax,%r8,8), %rax
	movl	4(%rax), %eax
	movl	%eax, %ecx
	shrl	$24, %ecx
	andl	$15, %ecx
	shrq	$28, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,2), %r9
	movq	_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	__rtl92ee_phy_set_txpower_by_rate_base
	movq	(%r15), %rax
	movq	(%r12), %rsi
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r13), %r8
	movq	(%rax,%r8,8), %rax
	movl	20(%rax), %eax
	movl	%eax, %ecx
	shrl	$24, %ecx
	andl	$15, %ecx
	shrq	$28, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,2), %r9
	movq	_HT_MCS0_MCS7@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	__rtl92ee_phy_set_txpower_by_rate_base
	movq	(%r15), %rax
	movq	(%r12), %rsi
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_RF_2TX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	(%rax,%r8,8), %rax
	movl	28(%rax), %eax
	movl	%eax, %ecx
	shrl	$24, %ecx
	andl	$15, %ecx
	shrq	$28, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,2), %r9
	movq	_HT_MCS8_MCS15@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	__rtl92ee_phy_set_txpower_by_rate_base
	incq	%rbx
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rbx
	ja	LBB0_9
## %bb.8:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jne	LBB0_4
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
	.comm	_RF90_PATH_B,8,3                ## @RF90_PATH_B
	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
	.comm	_RF_1TX,8,3                     ## @RF_1TX
	.comm	_CCK,4,2                        ## @CCK
	.comm	_OFDM,4,2                       ## @OFDM
	.comm	_HT_MCS0_MCS7,4,2               ## @HT_MCS0_MCS7
	.comm	_RF_2TX,8,3                     ## @RF_2TX
	.comm	_HT_MCS8_MCS15,4,2              ## @HT_MCS8_MCS15
	.no_dead_strip	__rtl92ee_phy_store_txpower_by_rate_base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92ee_phy_store_txpower_by_rate_base
__rtl92ee_phy_store_txpower_by_rate_base: ; @_rtl92ee_phy_store_txpower_by_rate_base
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_rtl_priv
Lloh0:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _RF90_PATH_B@GOTPAGE
Lloh4:
	ldr	x23, [x23, _RF90_PATH_B@GOTPAGEOFF]
	ldr	x2, [x23]
	cmp	x8, x2
	b.ls	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x24, _BAND_ON_2_4G@GOTPAGE
Lloh6:
	ldr	x24, [x24, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh7:
	adrp	x25, _RF_1TX@GOTPAGE
Lloh8:
	ldr	x25, [x25, _RF_1TX@GOTPAGEOFF]
	mov	w26, #10
Lloh9:
	adrp	x22, _RF_2TX@GOTPAGE
Lloh10:
	ldr	x22, [x22, _RF_2TX@GOTPAGEOFF]
	mov	x21, x8
Lloh11:
	adrp	x27, _HT_MCS8_MCS15@GOTPAGE
Lloh12:
	ldr	x27, [x27, _HT_MCS8_MCS15@GOTPAGEOFF]
	cmp	x21, x8
	b.ne	LBB0_4
LBB0_3:
	ldr	x9, [x20]
	ldr	x1, [x24]
	ldr	x9, [x9, x1, lsl #3]
	ldr	x9, [x9, x8, lsl #3]
	ldr	x4, [x25]
	ldr	x9, [x9, x4, lsl #3]
	ldr	w9, [x9, #12]
	lsr	x10, x9, #28
	ubfx	x9, x9, #24, #4
	madd	x5, x10, x26, x9
Lloh13:
	adrp	x9, _CCK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CCK@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x9]
	mov	x0, x19
	mov	x2, x8
	b	LBB0_6
LBB0_4:
	cmp	x21, x2
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x20]
	ldr	x1, [x24]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x8, [x8, x2, lsl #3]
	ldr	x4, [x25]
	ldr	x8, [x8, x4, lsl #3]
	ldr	w8, [x8, #12]
	ubfx	x9, x8, #4, #4
	and	x8, x8, #0xf
	madd	x5, x9, x26, x8
Lloh16:
	adrp	x8, _CCK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CCK@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
LBB0_6:
	bl	__rtl92ee_phy_set_txpower_by_rate_base
LBB0_7:
	ldr	x8, [x20]
	ldr	x1, [x24]
	ldr	x8, [x8, x1, lsl #3]
	lsl	x28, x21, #3
	ldr	x8, [x8, x28]
	ldr	x4, [x25]
	ldr	x8, [x8, x4, lsl #3]
	ldr	w8, [x8, #4]
	lsr	x9, x8, #28
	ubfx	x8, x8, #24, #4
	madd	x5, x9, x26, x8
Lloh19:
	adrp	x8, _OFDM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OFDM@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	__rtl92ee_phy_set_txpower_by_rate_base
	ldr	x8, [x20]
	ldr	x1, [x24]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x8, [x8, x28]
	ldr	x4, [x25]
	ldr	x8, [x8, x4, lsl #3]
	ldr	w8, [x8, #20]
	lsr	x9, x8, #28
	ubfx	x8, x8, #24, #4
	madd	x5, x9, x26, x8
Lloh22:
	adrp	x8, _HT_MCS0_MCS7@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HT_MCS0_MCS7@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	__rtl92ee_phy_set_txpower_by_rate_base
	ldr	x8, [x20]
	ldr	x1, [x24]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x8, [x8, x28]
	ldr	x4, [x22]
	ldr	x8, [x8, x4, lsl #3]
	ldr	w8, [x8, #28]
	lsr	x9, x8, #28
	ubfx	x8, x8, #24, #4
	madd	x5, x9, x26, x8
	ldr	w3, [x27]
	mov	x0, x19
	mov	x2, x21
	bl	__rtl92ee_phy_set_txpower_by_rate_base
	add	x21, x21, #1
	ldr	x2, [x23]
	cmp	x21, x2
	b.hi	LBB0_1
; %bb.8:
Lloh25:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_4
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
	.comm	_RF90_PATH_B,8,3                ; @RF90_PATH_B
	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
	.comm	_RF_1TX,8,3                     ; @RF_1TX
	.comm	_CCK,4,2                        ; @CCK
	.comm	_OFDM,4,2                       ; @OFDM
	.comm	_HT_MCS0_MCS7,4,2               ; @HT_MCS0_MCS7
	.comm	_RF_2TX,8,3                     ; @RF_2TX
	.comm	_HT_MCS8_MCS15,4,2              ; @HT_MCS8_MCS15
	.no_dead_strip	__rtl92ee_phy_store_txpower_by_rate_base
.subsections_via_symbols
