	.file	"extr_phy.c_mt76x0_phy_tssi_adc_calibrate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mt76x0_phy_tssi_adc_calibrate, @function
mt76x0_phy_tssi_adc_calibrate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rax, QWORD PTR NL80211_BAND_5GHZ[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	esi, 34
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14, QWORD PTR [rdi]
	mov	rbx, rdx
	mov	edi, DWORD PTR CORE[rip]
	cmp	QWORD PTR [r14], rax
	sete	r12b
	call	MT_BBP@PLT
	lea	r12d, 524368[r12+r12*4]
	mov	rdi, rbp
	mov	edx, r12d
	mov	esi, eax
	call	mt76_wr@PLT
	mov	edi, 4
	call	BIT@PLT
	mov	edi, DWORD PTR CORE[rip]
	mov	esi, 34
	mov	r12d, eax
	call	MT_BBP@PLT
	xor	ecx, ecx
	mov	r8d, 200
	mov	edx, r12d
	mov	esi, eax
	mov	rdi, rbp
	call	mt76_poll_msec@PLT
	test	eax, eax
	je	.L9
	mov	edi, DWORD PTR CORE[rip]
	mov	esi, 35
	call	MT_BBP@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mt76_rr@PLT
	mov	rcx, QWORD PTR NL80211_BAND_5GHZ[rip]
	movzx	eax, al
	mov	DWORD PTR 0[r13], eax
	cmp	QWORD PTR [r14], rcx
	je	.L10
.L5:
	mov	edi, DWORD PTR CORE[rip]
	mov	esi, 34
	call	MT_BBP@PLT
	mov	edx, 524353
	mov	rdi, rbp
	mov	esi, eax
	call	mt76_wr@PLT
	mov	edi, DWORD PTR CORE[rip]
	mov	esi, 35
	call	MT_BBP@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mt76_rr@PLT
	mov	esi, 34
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
	mov	edi, DWORD PTR CORE[rip]
	call	MT_BBP@PLT
	mov	edx, 524354
	mov	rdi, rbp
	mov	esi, eax
	call	mt76_wr@PLT
	mov	edi, DWORD PTR CORE[rip]
	mov	esi, 35
	call	MT_BBP@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mt76_rr@PLT
	mov	edi, DWORD PTR CORE[rip]
	mov	esi, 34
	movzx	eax, al
	mov	DWORD PTR 4[rbx], eax
	call	MT_BBP@PLT
	mov	edx, 524355
	mov	rdi, rbp
	mov	esi, eax
	call	mt76_wr@PLT
	mov	edi, DWORD PTR CORE[rip]
	mov	esi, 35
	call	MT_BBP@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mt76_rr@PLT
	movzx	eax, al
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	sub	eax, -128
	mov	DWORD PTR 0[r13], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, 4
	call	BIT@PLT
	mov	edi, DWORD PTR CORE[rip]
	mov	esi, 34
	mov	r12d, eax
	call	MT_BBP@PLT
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	call	mt76_clear@PLT
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mt76x0_phy_tssi_adc_calibrate, .-mt76x0_phy_tssi_adc_calibrate
	.comm	NL80211_BAND_5GHZ,8,8
	.comm	ETIMEDOUT,4,4
	.comm	CORE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_phy.c_mt76x0_phy_tssi_adc_calibrate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt76x0_phy_tssi_adc_calibrate, %function
mt76x0_phy_tssi_adc_calibrate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, [r0]
	ldr	r9, .L10
	mov	r4, r0
	ldr	r5, .L10+4
	ldr	r0, [r10]
	mov	r8, r1
	ldr	r1, [r9]
	ldr	r3, .L10+8
	cmp	r0, r1
	sub	sp, sp, #8
	mov	r1, #34
	ldr	r0, [r5]
	ldr	r7, .L10+12
	mov	r6, r2
	movne	r7, r3
	bl	MT_BBP
	mov	r2, r7
	mov	r1, r0
	mov	r0, r4
	bl	mt76_wr
	mov	r1, #34
	ldr	r0, [r5]
	bl	MT_BBP
	mov	r7, r0
	mov	r0, #4
	bl	BIT
	mov	r3, #200
	mov	r2, r0
	str	r3, [sp]
	mov	r1, r7
	mov	r0, r4
	mov	r3, #0
	bl	mt76_poll_msec
	cmp	r0, #0
	beq	.L9
	mov	r1, #35
	ldr	r0, [r5]
	bl	MT_BBP
	mov	r1, r0
	mov	r0, r4
	bl	mt76_rr
	ldr	r3, [r9]
	ldr	r2, [r10]
	and	r0, r0, #255
	cmp	r2, r3
	str	r0, [r8]
	addeq	r0, r0, #128
	streq	r0, [r8]
	mov	r1, #34
	ldr	r0, [r5]
	bl	MT_BBP
	ldr	r2, .L10+16
	mov	r1, r0
	mov	r0, r4
	bl	mt76_wr
	mov	r1, #35
	ldr	r0, [r5]
	bl	MT_BBP
	mov	r1, r0
	mov	r0, r4
	bl	mt76_rr
	and	r0, r0, #255
	str	r0, [r6]
	mov	r1, #34
	ldr	r0, [r5]
	bl	MT_BBP
	ldr	r2, .L10+20
	mov	r1, r0
	mov	r0, r4
	bl	mt76_wr
	mov	r1, #35
	ldr	r0, [r5]
	bl	MT_BBP
	mov	r1, r0
	mov	r0, r4
	bl	mt76_rr
	and	r0, r0, #255
	str	r0, [r6, #4]
	mov	r1, #34
	ldr	r0, [r5]
	bl	MT_BBP
	ldr	r2, .L10+24
	mov	r1, r0
	mov	r0, r4
	bl	mt76_wr
	mov	r1, #35
	ldr	r0, [r5]
	bl	MT_BBP
	mov	r1, r0
	mov	r0, r4
	bl	mt76_rr
	mov	r3, r0
	mov	r0, #0
	and	r3, r3, #255
	str	r3, [r6, #8]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r1, #34
	ldr	r0, [r5]
	bl	MT_BBP
	mov	r5, r0
	mov	r0, #4
	bl	BIT
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	mt76_clear
	ldr	r3, .L10+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	NL80211_BAND_5GHZ
	.word	CORE
	.word	524368
	.word	524373
	.word	524353
	.word	524354
	.word	524355
	.word	ETIMEDOUT
	.size	mt76x0_phy_tssi_adc_calibrate, .-mt76x0_phy_tssi_adc_calibrate
	.comm	NL80211_BAND_5GHZ,4,4
	.comm	ETIMEDOUT,4,4
	.comm	CORE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
