	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_config_tx_power_per_rate
_mt7601u_config_tx_power_per_rate:      ## @mt7601u_config_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_MT_EE_TX_POWER_DELTA_BW40@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rsi,%rax,4), %edi
	callq	_get_delta
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_MT_EE_TX_POWER_BYRATE
	cltq
	leaq	(%r14,%rax,4), %rdi
	callq	_get_unaligned_le32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_mt7601u_save_power_rate
	cmpl	$-1, %ebx
	je	LBB0_2
## %bb.1:
	movq	_MT_TX_PWR_CFG_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_mt7601u_wr
LBB0_2:
	movl	$1, %edi
	callq	_MT_EE_TX_POWER_BYRATE
	cltq
	leaq	(%r14,%rax,4), %rdi
	callq	_get_unaligned_le32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_mt7601u_save_power_rate
	cmpl	$-1, %ebx
	je	LBB0_4
## %bb.3:
	movq	_MT_TX_PWR_CFG_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_mt7601u_wr
LBB0_4:
	movl	$2, %edi
	callq	_MT_EE_TX_POWER_BYRATE
	cltq
	leaq	(%r14,%rax,4), %rdi
	callq	_get_unaligned_le32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$2, %ecx
	callq	_mt7601u_save_power_rate
	cmpl	$-1, %ebx
	je	LBB0_6
## %bb.5:
	movq	_MT_TX_PWR_CFG_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$8, %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_mt7601u_wr
LBB0_6:
	movl	$3, %edi
	callq	_MT_EE_TX_POWER_BYRATE
	cltq
	leaq	(%r14,%rax,4), %rdi
	callq	_get_unaligned_le32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$3, %ecx
	callq	_mt7601u_save_power_rate
	cmpl	$-1, %ebx
	je	LBB0_8
## %bb.7:
	movq	_MT_TX_PWR_CFG_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$12, %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_mt7601u_wr
LBB0_8:
	movl	$4, %edi
	callq	_MT_EE_TX_POWER_BYRATE
	cltq
	leaq	(%r14,%rax,4), %rdi
	callq	_get_unaligned_le32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$4, %ecx
	callq	_mt7601u_save_power_rate
	cmpl	$-1, %ebx
	je	LBB0_10
## %bb.9:
	movq	_MT_TX_PWR_CFG_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$16, %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_mt7601u_wr
LBB0_10:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7601u_extra_power_over_mac   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EE_TX_POWER_DELTA_BW40,8,3  ## @MT_EE_TX_POWER_DELTA_BW40
	.comm	_MT_TX_PWR_CFG_0,8,3            ## @MT_TX_PWR_CFG_0
	.no_dead_strip	_mt7601u_config_tx_power_per_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_config_tx_power_per_rate
_mt7601u_config_tx_power_per_rate:      ; @mt7601u_config_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MT_EE_TX_POWER_DELTA_BW40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_EE_TX_POWER_DELTA_BW40@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x1, x8, lsl #2]
	bl	_get_delta
	mov	x21, x0
	mov	w0, #0
	bl	_MT_EE_TX_POWER_BYRATE
	add	x0, x20, w0, sxtw #2
	bl	_get_unaligned_le32
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	bl	_mt7601u_save_power_rate
Lloh3:
	adrp	x23, _MT_TX_PWR_CFG_0@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MT_TX_PWR_CFG_0@GOTPAGEOFF]
	cmn	w22, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	x1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_mt7601u_wr
LBB0_2:
	mov	w0, #1
	bl	_MT_EE_TX_POWER_BYRATE
	add	x0, x20, w0, sxtw #2
	bl	_get_unaligned_le32
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #1
	bl	_mt7601u_save_power_rate
	cmn	w22, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x23]
	add	x1, x8, #4
	mov	x0, x19
	mov	x2, x22
	bl	_mt7601u_wr
LBB0_4:
	mov	w0, #2
	bl	_MT_EE_TX_POWER_BYRATE
	add	x0, x20, w0, sxtw #2
	bl	_get_unaligned_le32
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #2
	bl	_mt7601u_save_power_rate
	cmn	w22, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x23]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x22
	bl	_mt7601u_wr
LBB0_6:
	mov	w0, #3
	bl	_MT_EE_TX_POWER_BYRATE
	add	x0, x20, w0, sxtw #2
	bl	_get_unaligned_le32
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #3
	bl	_mt7601u_save_power_rate
	cmn	w22, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x23]
	add	x1, x8, #12
	mov	x0, x19
	mov	x2, x22
	bl	_mt7601u_wr
LBB0_8:
	mov	w0, #4
	bl	_MT_EE_TX_POWER_BYRATE
	add	x0, x20, w0, sxtw #2
	bl	_get_unaligned_le32
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #4
	bl	_mt7601u_save_power_rate
	cmn	w20, #1
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x23]
	add	x1, x8, #16
	mov	x0, x19
	mov	x2, x20
	bl	_mt7601u_wr
LBB0_10:
	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	_mt7601u_extra_power_over_mac
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_EE_TX_POWER_DELTA_BW40,8,3  ; @MT_EE_TX_POWER_DELTA_BW40
	.comm	_MT_TX_PWR_CFG_0,8,3            ; @MT_TX_PWR_CFG_0
	.no_dead_strip	_mt7601u_config_tx_power_per_rate
.subsections_via_symbols
