	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x2_get_power_info_5g
_mt76x2_get_power_info_5g:              ## @mt76x2_get_power_info_5g
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdx), %ebx
	movl	%ebx, %edi
	callq	_mt76x2_get_cal_channel_group
	movq	_MT_TX_POWER_GROUP_SIZE_5G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	$191, %ebx
	jg	LBB0_1
## %bb.2:
	leal	-184(%rbx), %ecx
	movl	$3, %r15d
	cmpl	$-140, %ecx
	jb	LBB0_14
## %bb.3:
	cmpl	$52, %ebx
	jb	LBB0_1
## %bb.5:
	cmpl	$58, %ebx
	jb	LBB0_14
## %bb.6:
	cmpl	$98, %ebx
	jb	LBB0_1
## %bb.8:
	cmpl	$106, %ebx
	jb	LBB0_14
## %bb.9:
	cmpl	$116, %ebx
	jae	LBB0_11
LBB0_1:
	movl	$4, %r15d
LBB0_14:
	imull	%eax, %esi
	addl	%r12d, %esi
	leaq	-96(%rbp), %rdx
	movq	%r14, %rdi
	movl	$40, %ecx
	callq	_mt76x02_eeprom_copy
	movq	-96(%rbp), %rax
	movq	8(%r13), %rcx
	movslq	-100(%rbp), %rbx                ## 4-byte Folded Reload
	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,%r15,8), %rdi
	movl	$7, %esi
	callq	_mt76x02_sign_extend_optional
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	_MT_EE_RF_2G_RX_HIGH_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mt76x02_eeprom_get
	movzbl	%al, %eax
	movl	%eax, (%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpl	$130, %ebx
	jb	LBB0_14
## %bb.12:
	movl	$4, %r15d
	cmpl	$149, %ebx
	jb	LBB0_14
## %bb.13:
	cmpl	$157, %ebx
	movl	$4, %r15d
	sbbq	$0, %r15
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_TX_POWER_GROUP_SIZE_5G,4,2  ## @MT_TX_POWER_GROUP_SIZE_5G
	.comm	_MT_EE_RF_2G_RX_HIGH_GAIN,4,2   ## @MT_EE_RF_2G_RX_HIGH_GAIN
	.no_dead_strip	_mt76x2_get_power_info_5g
.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_5g
_mt76x2_get_power_info_5g:              ; @mt76x2_get_power_info_5g
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w23, [x2]
	mov	x0, x23
	bl	_mt76x2_get_cal_channel_group
Lloh3:
	adrp	x8, _MT_TX_POWER_GROUP_SIZE_5G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_TX_POWER_GROUP_SIZE_5G@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, #191
	b.le	LBB0_2
; %bb.1:
	mov	w23, #4
	b	LBB0_5
LBB0_2:
	sub	w9, w23, #184
	cmn	w9, #140
	b.hs	LBB0_4
; %bb.3:
	mov	w23, #3
	b	LBB0_5
LBB0_4:
	mov	w9, #4
	mov	w10, #3
	mov	w11, #4
	mov	w12, #3
	mov	w13, #4
	mov	w14, #3
	mov	w15, #4
	cmp	w23, #157
	mov	w16, #3
	cinc	x16, x16, hs
	cmp	w23, #149
	csel	x15, x15, x16, lo
	cmp	w23, #130
	csel	x14, x14, x15, lo
	cmp	w23, #116
	csel	x13, x13, x14, lo
	cmp	w23, #106
	csel	x12, x12, x13, lo
	cmp	w23, #98
	csel	x11, x11, x12, lo
	cmp	w23, #58
	csel	x10, x10, x11, lo
	cmp	w23, #52
	csel	x23, x9, x10, lo
LBB0_5:
	madd	w1, w8, w0, w22
	mov	x22, sp
	mov	x2, sp
	mov	x0, x20
	mov	w3, #40
	bl	_mt76x02_eeprom_copy
	ldr	x8, [sp]
	ldr	x9, [x19, #8]
	sbfiz	x21, x21, #5, #32
	add	x9, x9, x21
	str	x8, [x9, #24]
	ldr	x8, [sp, #8]
	str	x8, [x9, #16]
	ldr	x8, [sp, #16]
	str	x8, [x9, #8]
	ldr	x0, [x22, x23, lsl #3]
	mov	w1, #7
	bl	_mt76x02_sign_extend_optional
	ldr	x8, [x19, #8]
	str	w0, [x8, x21]
Lloh6:
	adrp	x8, _MT_EE_RF_2G_RX_HIGH_GAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_EE_RF_2G_RX_HIGH_GAIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	and	w8, w0, #0xff
	str	w8, [x19]
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_TX_POWER_GROUP_SIZE_5G,4,2  ; @MT_TX_POWER_GROUP_SIZE_5G
	.comm	_MT_EE_RF_2G_RX_HIGH_GAIN,4,2   ; @MT_EE_RF_2G_RX_HIGH_GAIN
	.no_dead_strip	_mt76x2_get_power_info_5g
.subsections_via_symbols
