	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x2_get_power_info_2g
_mt76x2_get_power_info_2g:              ## @mt76x2_get_power_info_2g
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdx), %eax
	xorl	%ecx, %ecx
	cmpl	$11, %eax
	setl	%cl
	xorq	$5, %rcx
	cmpl	$6, %eax
	movl	$3, %r13d
	cmovgeq	%rcx, %r13
	leaq	-96(%rbp), %rdx
	movl	%r8d, %esi
	movl	$48, %ecx
	callq	_mt76x02_eeprom_copy
	movq	-96(%rbp), %rax
	movq	8(%r12), %rcx
	movslq	%r15d, %rbx
	shlq	$5, %rbx
	movq	%rax, 24(%rcx,%rbx)
	movq	-88(%rbp), %rax
	movq	%rax, 16(%rcx,%rbx)
	movq	-80(%rbp), %rax
	movq	%rax, 8(%rcx,%rbx)
	movq	-96(%rbp,%r13,8), %rdi
	movl	$7, %esi
	callq	_mt76x02_sign_extend_optional
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	_MT_EE_RF_2G_TSSI_OFF_TXPOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	sarl	$8, %eax
	movl	%eax, (%r12)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EE_RF_2G_TSSI_OFF_TXPOWER,4,2 ## @MT_EE_RF_2G_TSSI_OFF_TXPOWER
	.no_dead_strip	_mt76x2_get_power_info_2g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x2_get_power_info_2g
_mt76x2_get_power_info_2g:              ; @mt76x2_get_power_info_2g
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	w8, [x2]
	cmp	w8, #11
	mov	w9, #4
	cinc	x9, x9, ge
	cmp	w8, #6
	mov	w8, #3
	csel	x22, x8, x9, lt
	add	x23, sp, #8
	add	x2, sp, #8
	mov	x1, x4
	mov	w3, #48
	bl	_mt76x02_eeprom_copy
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	sbfiz	x19, x19, #5, #32
	add	x9, x9, x19
	str	x8, [x9, #24]
	ldr	x8, [sp, #16]
	str	x8, [x9, #16]
	ldr	x8, [sp, #24]
	str	x8, [x9, #8]
	ldr	x0, [x23, x22, lsl #3]
	mov	w1, #7
	bl	_mt76x02_sign_extend_optional
	ldr	x8, [x20, #8]
	str	w0, [x8, x19]
Lloh3:
	adrp	x8, _MT_EE_RF_2G_TSSI_OFF_TXPOWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_EE_RF_2G_TSSI_OFF_TXPOWER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_mt76x02_eeprom_get
	asr	w8, w0, #8
	str	w8, [x20]
	ldr	x8, [sp, #56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_EE_RF_2G_TSSI_OFF_TXPOWER,4,2 ; @MT_EE_RF_2G_TSSI_OFF_TXPOWER
	.no_dead_strip	_mt76x2_get_power_info_2g
.subsections_via_symbols
