	.file	"extr_mwl8k.c_mwl8k_get_survey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mwl8k_get_survey, @function
mwl8k_get_survey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 16[rdi]
	cmp	QWORD PTR 16[rax], 0
	je	.L2
	mov	rdx, QWORD PTR [rdi]
	mov	rcx, QWORD PTR NL80211_BAND_2GHZ[rip]
	mov	rdx, QWORD PTR [rdx]
	mov	r12, QWORD PTR [rdx+rcx*8]
	test	r12, r12
	je	.L3
	mov	ecx, DWORD PTR [r12]
	cmp	ecx, esi
	jg	.L4
	sub	esi, ecx
.L3:
	mov	rcx, QWORD PTR NL80211_BAND_5GHZ[rip]
	mov	r12, QWORD PTR [rdx+rcx*8]
	test	r12, r12
	je	.L5
	cmp	DWORD PTR [r12], esi
	jg	.L4
.L5:
	mov	eax, DWORD PTR ENOENT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	esi, esi
	jne	.L5
	mov	rdx, QWORD PTR 8[rdi]
	mov	eax, DWORD PTR [rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	QWORD PTR 8[rbp], rdx
	mov	edx, DWORD PTR SURVEY_INFO_NOISE_DBM[rip]
	mov	DWORD PTR 0[rbp], eax
	xor	eax, eax
	mov	DWORD PTR 4[rbp], edx
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	movsx	rsi, esi
	mov	rdi, rbp
	mov	edx, 16
	lea	rbx, 0[0+rsi*4]
	mov	rsi, QWORD PTR 8[rax]
	add	rsi, rbx
	call	memcpy@PLT
	add	rbx, QWORD PTR 8[r12]
	xor	eax, eax
	mov	QWORD PTR 8[rbp], rbx
	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	mwl8k_get_survey, .-mwl8k_get_survey
	.comm	SURVEY_INFO_NOISE_DBM,4,4
	.comm	NL80211_BAND_5GHZ,8,8
	.comm	NL80211_BAND_2GHZ,8,8
	.comm	ENOENT,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_mwl8k.c_mwl8k_get_survey.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwl8k_get_survey, %function
mwl8k_get_survey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	lr, [r0, #8]
	mov	r3, r1
	ldr	r1, [lr, #8]
	mov	ip, r0
	cmp	r1, #0
	mov	r5, r2
	beq	.L2
	ldr	r2, [r0]
	ldr	r1, .L15
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r4, [r2, r1, lsl #2]
	cmp	r4, #0
	beq	.L3
	ldr	r1, [r4]
	cmp	r1, r3
	bgt	.L4
	sub	r3, r3, r1
.L3:
	ldr	r1, .L15+4
	ldr	r1, [r1]
	ldr	r4, [r2, r1, lsl #2]
	cmp	r4, #0
	beq	.L5
	ldr	r2, [r4]
	cmp	r2, r3
	bgt	.L4
.L5:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	rsb	r0, r3, #0
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r3, #0
	bne	.L5
	mov	r0, r3
	ldr	r3, .L15+12
	ldr	r1, [ip, #4]
	ldr	r2, [lr]
	ldr	r3, [r3]
	str	r1, [r5, #8]
	stm	r5, {r2, r3}
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r1, [lr, #4]
	mov	r2, #12
	add	r1, r1, r3, lsl #2
	mov	r0, r5
	lsl	r6, r3, #2
	bl	memcpy
	ldr	r3, [r4, #4]
	mov	r0, #0
	add	r3, r3, r6
	str	r3, [r5, #8]
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	NL80211_BAND_2GHZ
	.word	NL80211_BAND_5GHZ
	.word	ENOENT
	.word	SURVEY_INFO_NOISE_DBM
	.size	mwl8k_get_survey, .-mwl8k_get_survey
	.comm	SURVEY_INFO_NOISE_DBM,4,4
	.comm	NL80211_BAND_5GHZ,4,4
	.comm	NL80211_BAND_2GHZ,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
