	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x0_get_tx_power_per_rate   ## -- Begin function mt76x0_get_tx_power_per_rate
	.p2align	4, 0x90
_mt76x0_get_tx_power_per_rate:          ## @mt76x0_get_tx_power_per_rate
	.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	%rdx, %r12
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_MT_EE_TX_POWER_BYRATE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_s6_to_s8
	movq	32(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	32(%r12), %rcx
	movq	%rax, (%rcx)
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_s6_to_s8
	movq	32(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	32(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	_MT_EE_TX_POWER_BYRATE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$2, %eax
	cmpq	%r13, %r15
	movl	$288, %esi                      ## imm = 0x120
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_s6_to_s8
	movq	24(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r12), %rcx
	movq	%rax, (%rcx)
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_s6_to_s8
	movq	24(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	24(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	_MT_EE_TX_POWER_BYRATE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$4, %eax
	cmpq	%r13, %r15
	movl	$290, %esi                      ## imm = 0x122
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_s6_to_s8
	movq	24(%r12), %rcx
	movq	%rax, 40(%rcx)
	movq	24(%r12), %rcx
	movq	%rax, 32(%rcx)
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_s6_to_s8
	movq	24(%r12), %rcx
	movq	%rax, 56(%rcx)
	movq	24(%r12), %rcx
	movq	%rax, 48(%rcx)
	movq	_MT_EE_TX_POWER_BYRATE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$6, %eax
	cmpq	%r13, %r15
	movl	$292, %esi                      ## imm = 0x124
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_s6_to_s8
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	16(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%r12), %rcx
	movq	%rax, (%rcx)
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_s6_to_s8
	movq	(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	16(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	16(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	_MT_EE_TX_POWER_BYRATE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$8, %eax
	cmpq	%r13, %r15
	movl	$294, %esi                      ## imm = 0x126
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_s6_to_s8
	movq	(%r12), %rcx
	movq	%rax, 40(%rcx)
	movq	(%r12), %rcx
	movq	%rax, 32(%rcx)
	movq	16(%r12), %rcx
	movq	%rax, 40(%rcx)
	movq	16(%r12), %rcx
	movq	%rax, 32(%rcx)
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_s6_to_s8
	movq	(%r12), %rcx
	movq	%rax, 56(%rcx)
	movq	(%r12), %rcx
	movq	%rax, 48(%rcx)
	movq	16(%r12), %rcx
	movq	%rax, 56(%rcx)
	movq	16(%r12), %rcx
	movq	%rax, 48(%rcx)
	movq	_MT_EE_TX_POWER_BYRATE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$14, %eax
	cmpq	%r13, %r15
	movl	$236, %esi
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_s6_to_s8
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_s6_to_s8
	movq	8(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	_MT_EE_TX_POWER_BYRATE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$16, %eax
	cmpq	%r13, %r15
	movl	$238, %esi
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_s6_to_s8
	movq	8(%r12), %rcx
	movq	%rax, 40(%rcx)
	movq	8(%r12), %rcx
	movq	%rax, 32(%rcx)
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_s6_to_s8
	movq	8(%r12), %rcx
	movq	%rax, 56(%rcx)
	movq	8(%r12), %rcx
	movq	%rax, 48(%rcx)
	movq	%r14, %rdi
	movl	$306, %esi                      ## imm = 0x132
	callq	_mt76x02_eeprom_get
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_s6_to_s8
	movq	(%r12), %rcx
	movq	%rax, 64(%rcx)
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_s6_to_s8
	movq	(%r12), %rcx
	movq	%rax, 72(%rcx)
	movq	%r14, %rdi
	callq	_mt76x0_tssi_enabled
	xorl	%esi, %esi
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_mt76x0_get_delta
	movl	%eax, %esi
LBB0_2:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76x02_add_rate_power_offset  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_MT_EE_TX_POWER_BYRATE_BASE,4,2 ## @MT_EE_TX_POWER_BYRATE_BASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x0_get_tx_power_per_rate   ; -- Begin function mt76x0_get_tx_power_per_rate
	.p2align	2
_mt76x0_get_tx_power_per_rate:          ; @mt76x0_get_tx_power_per_rate
	.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, x2
	mov	x20, x0
	ldr	x22, [x1]
Lloh0:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh3:
	adrp	x24, _MT_EE_TX_POWER_BYRATE_BASE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MT_EE_TX_POWER_BYRATE_BASE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_s6_to_s8
	ldr	x8, [x19, #32]
	str	x0, [x8, #8]
	ldr	x8, [x19, #32]
	str	x0, [x8]
	asr	w0, w21, #8
	bl	_s6_to_s8
	ldr	x8, [x19, #32]
	str	x0, [x8, #24]
	ldr	x8, [x19, #32]
	str	x0, [x8, #16]
	ldr	w8, [x24]
	add	w8, w8, #2
	cmp	x22, x23
	mov	w9, #288
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_s6_to_s8
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	ldr	x8, [x19, #24]
	str	x0, [x8]
	asr	w0, w21, #8
	bl	_s6_to_s8
	cmp	x22, x23
	ldr	x8, [x19, #24]
	str	x0, [x8, #24]
	ldr	x8, [x19, #24]
	str	x0, [x8, #16]
	ldr	w8, [x24]
	add	w8, w8, #4
	mov	w9, #290
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_s6_to_s8
	ldr	x8, [x19, #24]
	str	x0, [x8, #40]
	ldr	x8, [x19, #24]
	str	x0, [x8, #32]
	asr	w0, w21, #8
	bl	_s6_to_s8
	cmp	x22, x23
	ldr	x8, [x19, #24]
	str	x0, [x8, #56]
	ldr	x8, [x19, #24]
	str	x0, [x8, #48]
	ldr	w8, [x24]
	add	w8, w8, #6
	mov	w9, #292
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_s6_to_s8
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	ldr	x8, [x19, #16]
	str	x0, [x8]
	asr	w0, w21, #8
	bl	_s6_to_s8
	cmp	x22, x23
	ldr	x8, [x19]
	str	x0, [x8, #24]
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	x8, [x19, #16]
	str	x0, [x8, #24]
	ldr	x8, [x19, #16]
	str	x0, [x8, #16]
	ldr	w8, [x24]
	add	w8, w8, #8
	mov	w9, #294
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_s6_to_s8
	ldr	x8, [x19]
	str	x0, [x8, #40]
	ldr	x8, [x19]
	str	x0, [x8, #32]
	ldr	x8, [x19, #16]
	str	x0, [x8, #40]
	ldr	x8, [x19, #16]
	str	x0, [x8, #32]
	asr	w0, w21, #8
	bl	_s6_to_s8
	cmp	x22, x23
	ldr	x8, [x19]
	str	x0, [x8, #56]
	ldr	x8, [x19]
	str	x0, [x8, #48]
	ldr	x8, [x19, #16]
	str	x0, [x8, #56]
	ldr	x8, [x19, #16]
	str	x0, [x8, #48]
	ldr	w8, [x24]
	add	w8, w8, #14
	mov	w9, #236
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_s6_to_s8
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	x8, [x19, #8]
	str	x0, [x8]
	asr	w0, w21, #8
	bl	_s6_to_s8
	cmp	x22, x23
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	ldr	w8, [x24]
	add	w8, w8, #16
	mov	w9, #238
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_s6_to_s8
	ldr	x8, [x19, #8]
	str	x0, [x8, #40]
	ldr	x8, [x19, #8]
	str	x0, [x8, #32]
	asr	w0, w21, #8
	bl	_s6_to_s8
	ldr	x8, [x19, #8]
	str	x0, [x8, #56]
	ldr	x8, [x19, #8]
	str	x0, [x8, #48]
	mov	x0, x20
	mov	w1, #306
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	bl	_s6_to_s8
	ldr	x8, [x19]
	str	x0, [x8, #64]
	asr	w0, w21, #8
	bl	_s6_to_s8
	ldr	x8, [x19]
	str	x0, [x8, #72]
	mov	x0, x20
	bl	_mt76x0_tssi_enabled
	mov	w1, #0
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_mt76x0_get_delta
	mov	x1, x0
LBB0_2:
	mov	x0, x19
	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
	b	_mt76x02_add_rate_power_offset
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_MT_EE_TX_POWER_BYRATE_BASE,4,2 ; @MT_EE_TX_POWER_BYRATE_BASE
.subsections_via_symbols
