	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_get_rate_power          ## -- Begin function mt76x2_get_rate_power
	.p2align	4, 0x90
_mt76x2_get_rate_power:                 ## @mt76x2_get_rate_power
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdx), %r12
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_MT_EE_TX_POWER_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	32(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	cmpq	%r13, %r12
	movq	32(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	32(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	_MT_EE_TX_POWER_OFDM_2G_6M@GOTPCREL(%rip), %rax
	cmoveq	_MT_EE_TX_POWER_OFDM_5G_6M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_EE_TX_POWER_OFDM_2G_24M@GOTPCREL(%rip), %r12
	cmoveq	_MT_EE_TX_POWER_OFDM_5G_24M@GOTPCREL(%rip), %r12
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	24(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	24(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	24(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	24(%rbx), %rcx
	movq	%rax, 32(%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	24(%rbx), %rcx
	movq	%rax, 56(%rcx)
	movq	24(%rbx), %rcx
	movq	%rax, 48(%rcx)
	movq	_MT_EE_TX_POWER_HT_MCS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	16(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	_MT_EE_TX_POWER_HT_MCS4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	16(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, 32(%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	16(%rbx), %rcx
	movq	%rax, 56(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, 48(%rcx)
	movq	_MT_EE_TX_POWER_HT_MCS8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	16(%rbx), %rcx
	movq	%rax, 72(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, 64(%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	16(%rbx), %rcx
	movq	%rax, 88(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, 80(%rcx)
	movq	_MT_EE_TX_POWER_HT_MCS12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	16(%rbx), %rcx
	movq	%rax, 104(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, 96(%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	16(%rbx), %rcx
	movq	%rax, 120(%rcx)
	movq	16(%rbx), %rcx
	movq	%rax, 112(%rcx)
	movq	_MT_EE_TX_POWER_VHT_MCS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	_MT_EE_TX_POWER_VHT_MCS4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_mt76x02_rate_power_val
	movq	(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	(%rbx), %rcx
	movq	%rax, 32(%rcx)
	sarl	$8, %r15d
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	(%rbx), %rcx
	movq	%rax, 56(%rcx)
	movq	(%rbx), %rcx
	movq	%rax, 48(%rcx)
	movq	_MT_EE_TX_POWER_VHT_MCS8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %edi
	sarl	$8, %edi
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	cmovel	%eax, %edi
	sarl	$8, %edi
	callq	_mt76x02_rate_power_val
	movq	(%rbx), %rcx
	movq	%rax, 72(%rcx)
	movq	(%rbx), %rcx
	movq	%rax, 64(%rcx)
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rsi
	movl	$64, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	64(%rax), %rax
	movq	%rax, 64(%rcx)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	72(%rax), %rax
	movq	%rax, 72(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_MT_EE_TX_POWER_CCK,4,2         ## @MT_EE_TX_POWER_CCK
	.comm	_MT_EE_TX_POWER_OFDM_5G_6M,4,2  ## @MT_EE_TX_POWER_OFDM_5G_6M
	.comm	_MT_EE_TX_POWER_OFDM_2G_6M,4,2  ## @MT_EE_TX_POWER_OFDM_2G_6M
	.comm	_MT_EE_TX_POWER_OFDM_5G_24M,4,2 ## @MT_EE_TX_POWER_OFDM_5G_24M
	.comm	_MT_EE_TX_POWER_OFDM_2G_24M,4,2 ## @MT_EE_TX_POWER_OFDM_2G_24M
	.comm	_MT_EE_TX_POWER_HT_MCS0,4,2     ## @MT_EE_TX_POWER_HT_MCS0
	.comm	_MT_EE_TX_POWER_HT_MCS4,4,2     ## @MT_EE_TX_POWER_HT_MCS4
	.comm	_MT_EE_TX_POWER_HT_MCS8,4,2     ## @MT_EE_TX_POWER_HT_MCS8
	.comm	_MT_EE_TX_POWER_HT_MCS12,4,2    ## @MT_EE_TX_POWER_HT_MCS12
	.comm	_MT_EE_TX_POWER_VHT_MCS0,4,2    ## @MT_EE_TX_POWER_VHT_MCS0
	.comm	_MT_EE_TX_POWER_VHT_MCS4,4,2    ## @MT_EE_TX_POWER_VHT_MCS4
	.comm	_MT_EE_TX_POWER_VHT_MCS8,4,2    ## @MT_EE_TX_POWER_VHT_MCS8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_get_rate_power          ; -- Begin function mt76x2_get_rate_power
	.p2align	2
_mt76x2_get_rate_power:                 ; @mt76x2_get_rate_power
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x2]
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh3:
	adrp	x8, _MT_EE_TX_POWER_CCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_EE_TX_POWER_CCK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #32]
	str	x0, [x8, #8]
	ldr	x8, [x19, #32]
	str	x0, [x8]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #32]
	str	x0, [x8, #24]
	ldr	x8, [x19, #32]
Lloh6:
	adrp	x9, _MT_EE_TX_POWER_OFDM_5G_6M@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT_EE_TX_POWER_OFDM_5G_6M@GOTPAGEOFF]
	str	x0, [x8, #16]
Lloh8:
	adrp	x8, _MT_EE_TX_POWER_OFDM_2G_6M@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT_EE_TX_POWER_OFDM_2G_6M@GOTPAGEOFF]
	cmp	x22, x23
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _MT_EE_TX_POWER_OFDM_5G_24M@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_EE_TX_POWER_OFDM_5G_24M@GOTPAGEOFF]
Lloh12:
	adrp	x9, _MT_EE_TX_POWER_OFDM_2G_24M@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT_EE_TX_POWER_OFDM_2G_24M@GOTPAGEOFF]
	csel	x24, x8, x9, eq
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	ldr	x8, [x19, #24]
	str	x0, [x8]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #24]
	str	x0, [x8, #24]
	ldr	x8, [x19, #24]
	str	x0, [x8, #16]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #24]
	str	x0, [x8, #40]
	ldr	x8, [x19, #24]
	str	x0, [x8, #32]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #24]
	str	x0, [x8, #56]
	ldr	x8, [x19, #24]
	str	x0, [x8, #48]
Lloh14:
	adrp	x8, _MT_EE_TX_POWER_HT_MCS0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_EE_TX_POWER_HT_MCS0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	ldr	x8, [x19, #16]
	str	x0, [x8]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #16]
	str	x0, [x8, #24]
	ldr	x8, [x19, #16]
	str	x0, [x8, #16]
Lloh17:
	adrp	x8, _MT_EE_TX_POWER_HT_MCS4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_EE_TX_POWER_HT_MCS4@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #16]
	str	x0, [x8, #40]
	ldr	x8, [x19, #16]
	str	x0, [x8, #32]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #16]
	str	x0, [x8, #56]
	ldr	x8, [x19, #16]
	str	x0, [x8, #48]
Lloh20:
	adrp	x8, _MT_EE_TX_POWER_HT_MCS8@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_EE_TX_POWER_HT_MCS8@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #16]
	str	x0, [x8, #72]
	ldr	x8, [x19, #16]
	str	x0, [x8, #64]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #16]
	str	x0, [x8, #88]
	ldr	x8, [x19, #16]
	str	x0, [x8, #80]
Lloh23:
	adrp	x8, _MT_EE_TX_POWER_HT_MCS12@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MT_EE_TX_POWER_HT_MCS12@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #16]
	str	x0, [x8, #104]
	ldr	x8, [x19, #16]
	str	x0, [x8, #96]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19, #16]
	str	x0, [x8, #120]
	ldr	x8, [x19, #16]
	str	x0, [x8, #112]
Lloh26:
	adrp	x8, _MT_EE_TX_POWER_VHT_MCS0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MT_EE_TX_POWER_VHT_MCS0@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	str	x0, [x8]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19]
	str	x0, [x8, #24]
	ldr	x8, [x19]
	str	x0, [x8, #16]
Lloh29:
	adrp	x8, _MT_EE_TX_POWER_VHT_MCS4@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MT_EE_TX_POWER_VHT_MCS4@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19]
	str	x0, [x8, #40]
	ldr	x8, [x19]
	str	x0, [x8, #32]
	asr	w0, w21, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19]
	str	x0, [x8, #56]
	ldr	x8, [x19]
	str	x0, [x8, #48]
Lloh32:
	adrp	x8, _MT_EE_TX_POWER_VHT_MCS8@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MT_EE_TX_POWER_VHT_MCS8@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	cmp	x22, x23
	asr	w8, w0, #8
	csel	w8, w0, w8, eq
	asr	w0, w8, #8
	bl	_mt76x02_rate_power_val
	ldr	x8, [x19]
	str	x0, [x8, #72]
	ldr	x8, [x19]
	str	x0, [x8, #64]
	ldp	x0, x1, [x19, #8]
	mov	w2, #64
	bl	_memcpy
	ldp	x8, x9, [x19]
	ldr	x8, [x8, #64]
	str	x8, [x9, #64]
	ldp	x8, x9, [x19]
	ldr	x8, [x8, #72]
	str	x8, [x9, #72]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_MT_EE_TX_POWER_CCK,4,2         ; @MT_EE_TX_POWER_CCK
	.comm	_MT_EE_TX_POWER_OFDM_5G_6M,4,2  ; @MT_EE_TX_POWER_OFDM_5G_6M
	.comm	_MT_EE_TX_POWER_OFDM_2G_6M,4,2  ; @MT_EE_TX_POWER_OFDM_2G_6M
	.comm	_MT_EE_TX_POWER_OFDM_5G_24M,4,2 ; @MT_EE_TX_POWER_OFDM_5G_24M
	.comm	_MT_EE_TX_POWER_OFDM_2G_24M,4,2 ; @MT_EE_TX_POWER_OFDM_2G_24M
	.comm	_MT_EE_TX_POWER_HT_MCS0,4,2     ; @MT_EE_TX_POWER_HT_MCS0
	.comm	_MT_EE_TX_POWER_HT_MCS4,4,2     ; @MT_EE_TX_POWER_HT_MCS4
	.comm	_MT_EE_TX_POWER_HT_MCS8,4,2     ; @MT_EE_TX_POWER_HT_MCS8
	.comm	_MT_EE_TX_POWER_HT_MCS12,4,2    ; @MT_EE_TX_POWER_HT_MCS12
	.comm	_MT_EE_TX_POWER_VHT_MCS0,4,2    ; @MT_EE_TX_POWER_VHT_MCS0
	.comm	_MT_EE_TX_POWER_VHT_MCS4,4,2    ; @MT_EE_TX_POWER_VHT_MCS4
	.comm	_MT_EE_TX_POWER_VHT_MCS8,4,2    ; @MT_EE_TX_POWER_VHT_MCS8
.subsections_via_symbols
