	.file	"extr_ar9285.c_ar9285GetNoiseFloor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"NF calibrated [ctl] [chain 0] is %d\n"
	.align 8
.LC1:
	.string	"NF calibrated [ext] [chain 0] is %d\n"
	.text
	.p2align 4
	.type	ar9285GetNoiseFloor, @function
ar9285GetNoiseFloor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR AR_PHY_CCA[rip]
	mov	r13d, DWORD PTR AR9280_PHY_MINCCA_PWR[rip]
	call	OS_REG_READ@PLT
	mov	esi, r13d
	mov	edi, eax
	call	MS@PLT
	mov	esi, DWORD PTR HAL_DEBUG_NFCAL[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	mov	ebx, eax
	xor	eax, -512
	test	bh, 1
	cmovne	ebx, eax
	mov	ecx, ebx
	call	HALDEBUG@PLT
	mov	DWORD PTR 0[rbp], ebx
	mov	esi, DWORD PTR AR_PHY_EXT_CCA[rip]
	mov	rdi, r12
	mov	r13d, DWORD PTR AR9280_PHY_EXT_MINCCA_PWR[rip]
	call	OS_REG_READ@PLT
	mov	esi, r13d
	mov	edi, eax
	call	MS@PLT
	mov	esi, DWORD PTR HAL_DEBUG_NFCAL[rip]
	mov	rdi, r12
	lea	rdx, .LC1[rip]
	mov	ebx, eax
	xor	eax, -512
	test	bh, 1
	cmovne	ebx, eax
	mov	ecx, ebx
	call	HALDEBUG@PLT
	mov	DWORD PTR 12[rbp], ebx
	mov	QWORD PTR 4[rbp], 0
	mov	QWORD PTR 16[rbp], 0
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ar9285GetNoiseFloor, .-ar9285GetNoiseFloor
	.comm	HAL_DEBUG_NFCAL,4,4
	.comm	AR_PHY_EXT_CCA,4,4
	.comm	AR_PHY_CCA,4,4
	.comm	AR9280_PHY_MINCCA_PWR,4,4
	.comm	AR9280_PHY_EXT_MINCCA_PWR,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_ar9285.c_ar9285GetNoiseFloor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NF calibrated [ctl] [chain 0] is %d\012\000"
	.align	2
.LC1:
	.ascii	"NF calibrated [ext] [chain 0] is %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar9285GetNoiseFloor, %function
ar9285GetNoiseFloor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, [r3]
	mov	r6, r0
	bl	OS_REG_READ
	ldr	r3, .L12+4
	ldr	r7, .L12+8
	ldr	r1, [r3]
	bl	MS
	mov	r5, r0
	tst	r0, #256
	eorne	r5, r0, #-16777216
	eorne	r5, r5, #16711680
	eorne	r5, r5, #65024
	ldr	r2, .L12+12
	mov	r3, r5
	ldr	r1, [r7]
	mov	r0, r6
	bl	HALDEBUG
	ldr	r3, .L12+16
	str	r5, [r4]
	ldr	r1, [r3]
	mov	r0, r6
	bl	OS_REG_READ
	ldr	r3, .L12+20
	ldr	r1, [r3]
	bl	MS
	mov	r5, r0
	tst	r0, #256
	eorne	r5, r0, #-16777216
	eorne	r5, r5, #16711680
	eorne	r5, r5, #65024
	mov	r3, r5
	mov	r0, r6
	ldr	r1, [r7]
	ldr	r2, .L12+24
	bl	HALDEBUG
	mov	r3, #0
	str	r5, [r4, #12]
	str	r3, [r4, #4]
	str	r3, [r4, #16]
	str	r3, [r4, #8]
	str	r3, [r4, #20]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	AR_PHY_CCA
	.word	AR9280_PHY_MINCCA_PWR
	.word	HAL_DEBUG_NFCAL
	.word	.LC0
	.word	AR_PHY_EXT_CCA
	.word	AR9280_PHY_EXT_MINCCA_PWR
	.word	.LC1
	.size	ar9285GetNoiseFloor, .-ar9285GetNoiseFloor
	.comm	HAL_DEBUG_NFCAL,4,4
	.comm	AR_PHY_EXT_CCA,4,4
	.comm	AR_PHY_CCA,4,4
	.comm	AR9280_PHY_MINCCA_PWR,4,4
	.comm	AR9280_PHY_EXT_MINCCA_PWR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
