	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_get_temp_comp           ## -- Begin function mt76x2_get_temp_comp
	.p2align	4, 0x90
_mt76x2_get_temp_comp:                  ## @mt76x2_get_temp_comp
	.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	(%rdi), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_mt76x2_temp_tx_alc_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mt76x02_ext_pa_enabled
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_MT_EE_TX_POWER_EXT_PA_5G@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_mt76x02_eeprom_get
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, (%r14)
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_6
## %bb.5:
	movq	_MT_EE_RF_TEMP_COMP_SLOPE_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_mt76x02_eeprom_get
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_MT_EE_RF_TEMP_COMP_SLOPE_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mt76x02_eeprom_get
	movl	%eax, %r15d
	movq	_MT_EE_TX_POWER_DELTA_BW80@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mt76x02_eeprom_get
	sarl	$8, %eax
LBB0_7:
	movzbl	%r15b, %ecx
	movl	%ecx, 4(%r14)
	sarl	$8, %r15d
	movl	%r15d, 8(%r14)
	movl	%eax, %ecx
	andl	$15, %ecx
	negl	%ecx
	movslq	%ecx, %rcx
	movq	%rcx, 16(%r14)
	shrl	$4, %eax
	andl	$15, %eax
	movl	%eax, 12(%r14)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MT_EE_TX_POWER_EXT_PA_5G,4,2   ## @MT_EE_TX_POWER_EXT_PA_5G
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_MT_EE_RF_TEMP_COMP_SLOPE_5G,4,2 ## @MT_EE_RF_TEMP_COMP_SLOPE_5G
	.comm	_MT_EE_RF_TEMP_COMP_SLOPE_2G,4,2 ## @MT_EE_RF_TEMP_COMP_SLOPE_2G
	.comm	_MT_EE_TX_POWER_DELTA_BW80,4,2  ## @MT_EE_TX_POWER_DELTA_BW80
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x2_get_temp_comp           ; -- Begin function mt76x2_get_temp_comp
	.p2align	2
_mt76x2_get_temp_comp:                  ; @mt76x2_get_temp_comp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w21, [x8]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x20
	bl	_mt76x2_temp_tx_alc_enabled
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_mt76x02_ext_pa_enabled
	cbz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x22, _MT_EE_TX_POWER_EXT_PA_5G@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MT_EE_TX_POWER_EXT_PA_5G@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	ubfx	w8, w0, #8, #7
	str	w8, [x19]
Lloh2:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _MT_EE_RF_TEMP_COMP_SLOPE_5G@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_EE_RF_TEMP_COMP_SLOPE_5G@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x8, x0
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _MT_EE_RF_TEMP_COMP_SLOPE_2G@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_EE_RF_TEMP_COMP_SLOPE_2G@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	mov	x21, x0
Lloh14:
	adrp	x8, _MT_EE_TX_POWER_DELTA_BW80@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_EE_TX_POWER_DELTA_BW80@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mt76x02_eeprom_get
	asr	w8, w0, #8
LBB0_6:
	mov	w0, #0
	and	w9, w21, #0xff
	asr	w10, w21, #8
	stp	w9, w10, [x19, #4]
	and	w9, w8, #0xf
	neg	w9, w9
	sxtw	x9, w9
	str	x9, [x19, #16]
	ubfx	w8, w8, #4, #4
	str	w8, [x19, #12]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MT_EE_TX_POWER_EXT_PA_5G,4,2   ; @MT_EE_TX_POWER_EXT_PA_5G
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_MT_EE_RF_TEMP_COMP_SLOPE_5G,4,2 ; @MT_EE_RF_TEMP_COMP_SLOPE_5G
	.comm	_MT_EE_RF_TEMP_COMP_SLOPE_2G,4,2 ; @MT_EE_RF_TEMP_COMP_SLOPE_2G
	.comm	_MT_EE_TX_POWER_DELTA_BW80,4,2  ; @MT_EE_TX_POWER_DELTA_BW80
.subsections_via_symbols
