	.file	"extr_ar5212_misc.c_ar5212GetDfsThresh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ar5212GetDfsThresh
	.type	ar5212GetDfsThresh, @function
ar5212GetDfsThresh:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	esi, DWORD PTR AR_PHY_RADAR_0[rip]
	call	OS_REG_READ@PLT
	mov	esi, DWORD PTR AR_PHY_RADAR_0_FIRPWR[rip]
	mov	edi, eax
	mov	ebp, eax
	call	MS@PLT
	mov	esi, DWORD PTR AR_PHY_RADAR_0_RRSSI[rip]
	mov	edi, ebp
	or	eax, -128
	mov	DWORD PTR [rbx], eax
	call	MS@PLT
	mov	esi, DWORD PTR AR_PHY_RADAR_0_HEIGHT[rip]
	mov	edi, ebp
	mov	QWORD PTR 72[rbx], rax
	call	MS@PLT
	mov	esi, DWORD PTR AR_PHY_RADAR_0_PRSSI[rip]
	mov	edi, ebp
	mov	QWORD PTR 64[rbx], rax
	call	MS@PLT
	mov	esi, DWORD PTR AR_PHY_RADAR_0_INBAND[rip]
	mov	edi, ebp
	mov	QWORD PTR 56[rbx], rax
	call	MS@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, r12
	mov	QWORD PTR 48[rbx], rax
	xor	eax, eax
	test	DWORD PTR AR_PHY_RADAR_0_ENA[rip], ebp
	setne	al
	mov	QWORD PTR 16[rbx], 0
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR AH_FALSE[rip]
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 32[rbx], 0
	mov	DWORD PTR 40[rbx], eax
	call	IS_5413@PLT
	test	rax, rax
	jne	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR AR_PHY_RADAR_2[rip]
	mov	rdi, r12
	call	OS_REG_READ@PLT
	mov	esi, DWORD PTR AR_PHY_RADAR_2_RELPWR[rip]
	mov	edi, eax
	mov	ebp, eax
	call	MS@PLT
	mov	esi, DWORD PTR AR_PHY_RADAR_2_RELSTEP[rip]
	mov	edi, ebp
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 8[rbx], eax
	call	MS@PLT
	mov	esi, DWORD PTR AR_PHY_RADAR_2_MAXLEN[rip]
	mov	edi, ebp
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 12[rbx], eax
	call	MS@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 16[rbx], eax
	xor	eax, eax
	test	DWORD PTR AR_PHY_RADAR_2_USEFIR128[rip], ebp
	setne	al
	mov	DWORD PTR 20[rbx], eax
	xor	eax, eax
	test	DWORD PTR AR_PHY_RADAR_2_BLOCKOFDMWEAK[rip], ebp
	setne	al
	mov	DWORD PTR 24[rbx], eax
	xor	eax, eax
	test	DWORD PTR AR_PHY_RADAR_2_ENMAXRSSI[rip], ebp
	setne	al
	mov	DWORD PTR 28[rbx], eax
	xor	eax, eax
	test	DWORD PTR AR_PHY_RADAR_2_ENRELPWRCHK[rip], ebp
	setne	al
	mov	DWORD PTR 32[rbx], eax
	xor	eax, eax
	test	DWORD PTR AR_PHY_RADAR_2_ENRELSTEPCHK[rip], ebp
	setne	al
	mov	DWORD PTR 36[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ar5212GetDfsThresh, .-ar5212GetDfsThresh
	.comm	AR_PHY_RADAR_2_USEFIR128,4,4
	.comm	AR_PHY_RADAR_2_RELSTEP,4,4
	.comm	AR_PHY_RADAR_2_RELPWR,4,4
	.comm	AR_PHY_RADAR_2_MAXLEN,4,4
	.comm	AR_PHY_RADAR_2_ENRELSTEPCHK,4,4
	.comm	AR_PHY_RADAR_2_ENRELPWRCHK,4,4
	.comm	AR_PHY_RADAR_2_ENMAXRSSI,4,4
	.comm	AR_PHY_RADAR_2_BLOCKOFDMWEAK,4,4
	.comm	AR_PHY_RADAR_2,4,4
	.comm	AR_PHY_RADAR_0_RRSSI,4,4
	.comm	AR_PHY_RADAR_0_PRSSI,4,4
	.comm	AR_PHY_RADAR_0_INBAND,4,4
	.comm	AR_PHY_RADAR_0_HEIGHT,4,4
	.comm	AR_PHY_RADAR_0_FIRPWR,4,4
	.comm	AR_PHY_RADAR_0_ENA,4,4
	.comm	AR_PHY_RADAR_0,4,4
	.comm	AH_FALSE,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_ar5212_misc.c_ar5212GetDfsThresh.c"
	.text
	.align	2
	.global	ar5212GetDfsThresh
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar5212GetDfsThresh, %function
ar5212GetDfsThresh:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, [r3]
	mov	r6, r0
	bl	OS_REG_READ
	ldr	r3, .L8+4
	mov	r5, r0
	ldr	r1, [r3]
	bl	MS
	mvn	r3, r0, lsl #25
	mvn	r3, r3, lsr #25
	ldr	r2, .L8+8
	str	r3, [r4]
	ldr	r1, [r2]
	mov	r0, r5
	bl	MS
	ldr	r3, .L8+12
	str	r0, [r4, #56]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	ldr	r3, .L8+16
	str	r0, [r4, #52]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	ldr	r3, .L8+20
	str	r0, [r4, #48]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	ldr	r3, .L8+24
	str	r0, [r4, #44]
	ldr	r2, [r3]
	mov	r3, #0
	tst	r5, r2
	movne	r1, #1
	moveq	r1, r3
	ldr	r2, .L8+28
	mov	r0, r6
	ldr	r2, [r2]
	str	r1, [r4, #4]
	str	r3, [r4, #8]
	str	r2, [r4, #40]
	str	r3, [r4, #12]
	str	r3, [r4, #16]
	str	r3, [r4, #20]
	str	r3, [r4, #24]
	str	r3, [r4, #28]
	str	r3, [r4, #32]
	str	r3, [r4, #36]
	bl	IS_5413
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L8+32
	mov	r0, r6
	ldr	r1, [r3]
	bl	OS_REG_READ
	ldr	r3, .L8+36
	mov	r5, r0
	ldr	r1, [r3]
	bl	MS
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r3, .L8+40
	str	r0, [r4, #8]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r3, .L8+44
	str	r0, [r4, #12]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	ldr	r3, .L8+48
	ldr	r1, .L8+52
	ldr	r2, .L8+56
	ldr	r3, [r3]
	ldr	ip, [r1]
	subs	r0, r0, #0
	ldr	r1, [r2]
	ldr	r2, .L8+60
	movne	r0, #1
	tst	r5, r3
	ldr	r3, .L8+64
	ldr	r2, [r2]
	movne	lr, #1
	moveq	lr, #0
	tst	r5, ip
	ldr	r3, [r3]
	movne	ip, #1
	moveq	ip, #0
	tst	r5, r1
	movne	r1, #1
	moveq	r1, #0
	tst	r5, r2
	movne	r2, #1
	moveq	r2, #0
	tst	r5, r3
	movne	r3, #1
	moveq	r3, #0
	str	r0, [r4, #16]
	str	lr, [r4, #20]
	str	ip, [r4, #24]
	str	r1, [r4, #28]
	str	r2, [r4, #32]
	str	r3, [r4, #36]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	AR_PHY_RADAR_0
	.word	AR_PHY_RADAR_0_FIRPWR
	.word	AR_PHY_RADAR_0_RRSSI
	.word	AR_PHY_RADAR_0_HEIGHT
	.word	AR_PHY_RADAR_0_PRSSI
	.word	AR_PHY_RADAR_0_INBAND
	.word	AR_PHY_RADAR_0_ENA
	.word	AH_FALSE
	.word	AR_PHY_RADAR_2
	.word	AR_PHY_RADAR_2_RELPWR
	.word	AR_PHY_RADAR_2_RELSTEP
	.word	AR_PHY_RADAR_2_MAXLEN
	.word	AR_PHY_RADAR_2_USEFIR128
	.word	AR_PHY_RADAR_2_BLOCKOFDMWEAK
	.word	AR_PHY_RADAR_2_ENMAXRSSI
	.word	AR_PHY_RADAR_2_ENRELPWRCHK
	.word	AR_PHY_RADAR_2_ENRELSTEPCHK
	.size	ar5212GetDfsThresh, .-ar5212GetDfsThresh
	.comm	AR_PHY_RADAR_2_USEFIR128,4,4
	.comm	AR_PHY_RADAR_2_RELSTEP,4,4
	.comm	AR_PHY_RADAR_2_RELPWR,4,4
	.comm	AR_PHY_RADAR_2_MAXLEN,4,4
	.comm	AR_PHY_RADAR_2_ENRELSTEPCHK,4,4
	.comm	AR_PHY_RADAR_2_ENRELPWRCHK,4,4
	.comm	AR_PHY_RADAR_2_ENMAXRSSI,4,4
	.comm	AR_PHY_RADAR_2_BLOCKOFDMWEAK,4,4
	.comm	AR_PHY_RADAR_2,4,4
	.comm	AR_PHY_RADAR_0_RRSSI,4,4
	.comm	AR_PHY_RADAR_0_PRSSI,4,4
	.comm	AR_PHY_RADAR_0_INBAND,4,4
	.comm	AR_PHY_RADAR_0_HEIGHT,4,4
	.comm	AR_PHY_RADAR_0_FIRPWR,4,4
	.comm	AR_PHY_RADAR_0_ENA,4,4
	.comm	AR_PHY_RADAR_0,4,4
	.comm	AH_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
