	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_phy_get_5g_tx_power_index
_rtw_phy_get_5g_tx_power_index:         ## @rtw_phy_get_5g_tx_power_index
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_DESC_RATEMCS0@GOTPCREL(%rip), %rax
	movq	_DESC_RATEMCS15@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
	cmpq	%rcx, (%rax)
	ja	LBB0_2
## %bb.1:
	movb	$1, %al
	cmpq	%rcx, %rbx
	jae	LBB0_3
LBB0_2:
	movq	_DESC_RATEVHT1SS_MCS0@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	setbe	%sil
	movq	_DESC_RATEVHT2SS_MCS9@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	setae	%al
	andb	%sil, %al
LBB0_3:
	movq	(%rdi), %rdi
	movq	(%r14), %r9
	movq	_DESC_RATEMCS8@GOTPCREL(%rip), %rsi
	cmpq	%rcx, (%rsi)
	ja	LBB0_5
## %bb.4:
	movb	$1, %r12b
	cmpq	%rcx, %rbx
	jae	LBB0_6
LBB0_5:
	movq	_DESC_RATEVHT2SS_MCS0@GOTPCREL(%rip), %rsi
	cmpq	%rcx, (%rsi)
	setbe	%r12b
LBB0_6:
	movq	(%rdi), %r15
	movq	(%r9,%r8,8), %rbx
	testb	%al, %al
	je	LBB0_7
## %bb.8:
	cmpl	$128, %edx
	je	LBB0_16
## %bb.9:
	cmpl	$129, %edx
	je	LBB0_14
## %bb.10:
	cmpl	$130, %edx
	je	LBB0_12
## %bb.11:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_12:
	movq	48(%r14), %rax
	imulq	%r15, %rax
	addq	%rax, %rbx
	testb	%r12b, %r12b
	je	LBB0_19
## %bb.13:
	addq	$24, %r14
	jmp	LBB0_18
LBB0_7:
	addq	$40, %r14
LBB0_18:
	imulq	(%r14), %r15
	addq	%r15, %rbx
LBB0_19:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	testb	%r12b, %r12b
	je	LBB0_19
## %bb.15:
	addq	$32, %r14
	jmp	LBB0_18
LBB0_16:
	addq	8(%r9,%r8,8), %rbx
	movq	%rbx, %rax
	shrq	%rax
	movq	16(%r14), %rbx
	imulq	%r15, %rbx
	addq	%rax, %rbx
	testb	%r12b, %r12b
	je	LBB0_19
## %bb.17:
	addq	$8, %r14
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_RATEMCS0,8,3              ## @DESC_RATEMCS0
	.comm	_DESC_RATEMCS15,8,3             ## @DESC_RATEMCS15
	.comm	_DESC_RATEVHT1SS_MCS0,8,3       ## @DESC_RATEVHT1SS_MCS0
	.comm	_DESC_RATEVHT2SS_MCS9,8,3       ## @DESC_RATEVHT2SS_MCS9
	.comm	_DESC_RATEMCS8,8,3              ## @DESC_RATEMCS8
	.comm	_DESC_RATEVHT2SS_MCS0,8,3       ## @DESC_RATEVHT2SS_MCS0
	.no_dead_strip	_rtw_phy_get_5g_tx_power_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_phy_get_5g_tx_power_index
_rtw_phy_get_5g_tx_power_index:         ; @rtw_phy_get_5g_tx_power_index
	.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	x20, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _DESC_RATEMCS0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DESC_RATEMCS0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DESC_RATEMCS15@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DESC_RATEMCS15@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x3
	ccmp	x10, x3, #0, ls
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _DESC_RATEVHT1SS_MCS0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DESC_RATEVHT1SS_MCS0@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x3
Lloh9:
	adrp	x9, _DESC_RATEVHT2SS_MCS9@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DESC_RATEVHT2SS_MCS9@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ccmp	x9, x3, #0, ls
	cset	w9, hs
	b	LBB0_3
LBB0_2:
	mov	w9, #1
LBB0_3:
	ldr	x19, [x8, x4, lsl #3]
	ldr	x11, [x0]
Lloh12:
	adrp	x12, _DESC_RATEMCS8@GOTPAGE
Lloh13:
	ldr	x12, [x12, _DESC_RATEMCS8@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x12, x3
	ccmp	x10, x3, #0, ls
	b.hs	LBB0_8
; %bb.4:
Lloh15:
	adrp	x10, _DESC_RATEVHT2SS_MCS0@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DESC_RATEVHT2SS_MCS0@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x10, x3
	cset	w22, ls
	ldr	x21, [x11]
	tbnz	w9, #0, LBB0_9
LBB0_5:
	add	x8, x20, #40
LBB0_6:
	ldr	x8, [x8]
	madd	x19, x8, x21, x19
LBB0_7:
	mov	x0, x19
	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
LBB0_8:
	mov	w22, #1
	ldr	x21, [x11]
	tbz	w9, #0, LBB0_5
LBB0_9:
	cmp	w2, #128
	b.eq	LBB0_17
; %bb.10:
	cmp	w2, #129
	b.eq	LBB0_15
; %bb.11:
	cmp	w2, #130
	b.eq	LBB0_13
; %bb.12:
	mov	w0, #1
	bl	_WARN_ON
LBB0_13:
	ldr	x8, [x20, #48]
	madd	x19, x8, x21, x19
	cbz	w22, LBB0_7
; %bb.14:
	add	x8, x20, #24
	b	LBB0_6
LBB0_15:
	cbz	w22, LBB0_7
; %bb.16:
	add	x8, x20, #32
	b	LBB0_6
LBB0_17:
	add	x8, x8, x4, lsl #3
	ldr	x8, [x8, #8]
	add	x8, x8, x19
	ldr	x9, [x20, #16]
	mul	x9, x9, x21
	add	x19, x9, x8, lsr #1
	cbz	w22, LBB0_7
; %bb.18:
	add	x8, x20, #8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_RATEMCS0,8,3              ; @DESC_RATEMCS0
	.comm	_DESC_RATEMCS15,8,3             ; @DESC_RATEMCS15
	.comm	_DESC_RATEVHT1SS_MCS0,8,3       ; @DESC_RATEVHT1SS_MCS0
	.comm	_DESC_RATEVHT2SS_MCS9,8,3       ; @DESC_RATEVHT2SS_MCS9
	.comm	_DESC_RATEMCS8,8,3              ; @DESC_RATEMCS8
	.comm	_DESC_RATEVHT2SS_MCS0,8,3       ; @DESC_RATEVHT2SS_MCS0
	.no_dead_strip	_rtw_phy_get_5g_tx_power_index
.subsections_via_symbols
