	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_phy_set_tx_power_index_by_rs
_rtw_phy_set_tx_power_index_by_rs:      ## @rtw_phy_set_tx_power_index_by_rs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RTW_RATE_SECTION_MAX@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jbe	LBB0_4
## %bb.1:
	movq	%rdx, %r13
	movq	_rtw_rate_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_rtw_rate_section@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_rtw_phy_get_tx_power_index
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r12
	cmpq	%r12, %rdx
	jne	LBB0_3
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_RATE_SECTION_MAX,8,3       ## @RTW_RATE_SECTION_MAX
	.comm	_rtw_rate_section,8,3           ## @rtw_rate_section
	.comm	_rtw_rate_size,8,3              ## @rtw_rate_size
	.no_dead_strip	_rtw_phy_set_tx_power_index_by_rs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_phy_set_tx_power_index_by_rs
_rtw_phy_set_tx_power_index_by_rs:      ; @rtw_phy_set_tx_power_index_by_rs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _RTW_RATE_SECTION_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTW_RATE_SECTION_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.ls	LBB0_4
; %bb.1:
	lsl	x8, x3, #3
Lloh3:
	adrp	x9, _rtw_rate_size@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rtw_rate_size@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x25, [x9, x8]
	cbz	x25, LBB0_4
; %bb.2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh6:
	adrp	x9, _rtw_rate_section@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rtw_rate_section@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x26, [x9, x8]
	ldp	x22, x23, [x0]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x26], #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	mov	x4, x20
	mov	x5, x22
	bl	_rtw_phy_get_tx_power_index
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x19, lsl #3]
	str	x0, [x8, x24, lsl #3]
	subs	x25, x25, #1
	b.ne	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_RATE_SECTION_MAX,8,3       ; @RTW_RATE_SECTION_MAX
	.comm	_rtw_rate_section,8,3           ; @rtw_rate_section
	.comm	_rtw_rate_size,8,3              ; @rtw_rate_size
	.no_dead_strip	_rtw_phy_set_tx_power_index_by_rs
.subsections_via_symbols
