	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_get_power_info          ## -- Begin function mt76x2_get_power_info
	.p2align	4, 0x90
_mt76x2_get_power_info:                 ## @mt76x2_get_power_info
	.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, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_MT_EE_TX_POWER_DELTA_BW40@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r14d
	movq	_MT_EE_TX_POWER_DELTA_BW80@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movq	(%r13), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	sarl	$8, %r14d
	movq	_MT_EE_TX_POWER_0_START_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_mt76x2_get_power_info_5g
	movq	_MT_EE_TX_POWER_1_START_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	_mt76x2_get_power_info_5g
	jmp	LBB0_3
LBB0_2:
	movq	_MT_EE_TX_POWER_0_START_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_mt76x2_get_power_info_2g
	movq	_MT_EE_TX_POWER_1_START_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	_mt76x2_get_power_info_2g
LBB0_3:
	movq	%r12, %rdi
	callq	_mt76x2_tssi_enabled
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	24(%rbx), %edi
	callq	_mt76x02_field_valid
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
LBB0_6:
	movl	%r14d, %edi
	callq	_mt76x02_rate_power_val
	movq	%rax, 8(%rbx)
	movl	%r15d, %edi
	callq	_mt76x02_rate_power_val
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EE_TX_POWER_DELTA_BW40,4,2  ## @MT_EE_TX_POWER_DELTA_BW40
	.comm	_MT_EE_TX_POWER_DELTA_BW80,4,2  ## @MT_EE_TX_POWER_DELTA_BW80
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_MT_EE_TX_POWER_0_START_5G,4,2  ## @MT_EE_TX_POWER_0_START_5G
	.comm	_MT_EE_TX_POWER_1_START_5G,4,2  ## @MT_EE_TX_POWER_1_START_5G
	.comm	_MT_EE_TX_POWER_0_START_2G,4,2  ## @MT_EE_TX_POWER_0_START_2G
	.comm	_MT_EE_TX_POWER_1_START_2G,4,2  ## @MT_EE_TX_POWER_1_START_2G
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_get_power_info          ; -- Begin function mt76x2_get_power_info
	.p2align	2
_mt76x2_get_power_info:                 ; @mt76x2_get_power_info
	.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	x23, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _MT_EE_TX_POWER_DELTA_BW40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_EE_TX_POWER_DELTA_BW40@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_mt76x02_eeprom_get
	mov	x20, x0
Lloh3:
	adrp	x8, _MT_EE_TX_POWER_DELTA_BW80@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_EE_TX_POWER_DELTA_BW80@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	ldr	x8, [x23]
Lloh6:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	asr	w20, w20, #8
Lloh9:
	adrp	x8, _MT_EE_TX_POWER_0_START_5G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_EE_TX_POWER_0_START_5G@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	w3, #0
	bl	_mt76x2_get_power_info_5g
Lloh12:
	adrp	x8, _MT_EE_TX_POWER_1_START_5G@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_EE_TX_POWER_1_START_5G@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	w3, #1
	bl	_mt76x2_get_power_info_5g
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _MT_EE_TX_POWER_0_START_2G@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_EE_TX_POWER_0_START_2G@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	w3, #0
	bl	_mt76x2_get_power_info_2g
Lloh18:
	adrp	x8, _MT_EE_TX_POWER_1_START_2G@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MT_EE_TX_POWER_1_START_2G@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	w3, #1
	bl	_mt76x2_get_power_info_2g
LBB0_3:
	mov	x0, x22
	bl	_mt76x2_tssi_enabled
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #24]
	bl	_mt76x02_field_valid
	cbnz	w0, LBB0_6
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_6:
	mov	x0, x20
	bl	_mt76x02_rate_power_val
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_mt76x02_rate_power_val
	str	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_EE_TX_POWER_DELTA_BW40,4,2  ; @MT_EE_TX_POWER_DELTA_BW40
	.comm	_MT_EE_TX_POWER_DELTA_BW80,4,2  ; @MT_EE_TX_POWER_DELTA_BW80
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_MT_EE_TX_POWER_0_START_5G,4,2  ; @MT_EE_TX_POWER_0_START_5G
	.comm	_MT_EE_TX_POWER_1_START_5G,4,2  ; @MT_EE_TX_POWER_1_START_5G
	.comm	_MT_EE_TX_POWER_0_START_2G,4,2  ; @MT_EE_TX_POWER_0_START_2G
	.comm	_MT_EE_TX_POWER_1_START_2G,4,2  ; @MT_EE_TX_POWER_1_START_2G
.subsections_via_symbols
