	.file	"extr_bgscan_learn.c_bgscan_learn_get_supp_freqs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bgscan_learn_get_supp_freqs, @function
bgscan_learn_get_supp_freqs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	mov	QWORD PTR 8[rsp], rdi
	test	r14, r14
	je	.L1
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	jle	.L7
	mov	rbp, r14
	xor	r12d, r12d
	xor	r14d, r14d
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 0[rbp]
	xor	ebx, ebx
	test	eax, eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rbp]
	lea	r15, 0[0+rbx*8]
	add	rax, r15
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR HOSTAPD_CHAN_DISABLED[rip], edx
	jne	.L4
	mov	esi, DWORD PTR 4[rax]
	mov	rdi, r14
	call	in_array@PLT
	test	rax, rax
	jne	.L4
	lea	rsi, 2[r12]
	mov	edx, 4
	mov	rdi, r14
	call	os_realloc_array@PLT
	test	rax, rax
	je	.L4
	mov	rcx, QWORD PTR 8[rbp]
	lea	rdx, 0[0+r12*4]
	mov	r14, rax
	mov	ecx, DWORD PTR 4[rcx+r15]
	mov	DWORD PTR [rax+r12*4], ecx
	add	r12, 1
	mov	DWORD PTR 4[rax+rdx], 0
.L4:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L5
.L6:
	mov	rax, QWORD PTR 8[rsp]
	add	r13d, 1
	add	rbp, 16
	cmp	DWORD PTR [rax], r13d
	jg	.L3
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bgscan_learn_get_supp_freqs, .-bgscan_learn_get_supp_freqs
	.comm	HOSTAPD_CHAN_DISABLED,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_bgscan_learn.c_bgscan_learn_get_supp_freqs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgscan_learn_get_supp_freqs, %function
bgscan_learn_get_supp_freqs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0, #4]
	sub	sp, sp, #12
	cmp	r9, #0
	str	r0, [sp, #4]
	beq	.L1
	ldr	r2, [r0]
	cmp	r2, #0
	ble	.L7
	mov	r6, r9
	add	r10, r9, #4
	mov	r9, #0
	mov	r7, r9
	ldr	fp, .L23
	str	r9, [sp]
.L3:
	ldr	ip, [r10, #-4]
	cmp	ip, #0
	movgt	r4, #0
	bgt	.L5
	b	.L6
.L16:
	mov	r2, #4
	mov	r0, r9
	bl	os_realloc_array
	cmp	r0, #0
	beq	.L20
	mov	r9, r0
	ldr	r2, [r6, #4]
	lsl	r3, r7, #2
	add	r5, r2, r5
	ldr	r2, [r5, #4]
	add	r3, r0, r3
	str	r2, [r0, r7, lsl #2]
	str	r8, [r3, #4]
	ldr	ip, [r10, #-4]
	add	r7, r7, #1
.L4:
	add	r4, r4, #1
	cmp	ip, r4
	ble	.L22
.L5:
	ldr	r3, [r6, #4]
	ldr	r2, [fp]
	ldr	r1, [r3, r4, lsl #3]
	lsl	r5, r4, #3
	tst	r1, r2
	add	r3, r3, r4, lsl #3
	bne	.L4
	ldr	r1, [r3, #4]
	mov	r0, r9
	bl	in_array
	subs	r8, r0, #0
	add	r1, r7, #2
	beq	.L16
.L20:
	ldr	ip, [r10, #-4]
	add	r4, r4, #1
	cmp	ip, r4
	bgt	.L5
.L22:
	ldr	r3, [sp, #4]
	ldr	r2, [r3]
.L6:
	ldr	r3, [sp]
	add	r6, r6, #8
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp]
	add	r10, r10, #8
	bgt	.L3
.L1:
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r9, #0
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	.align	2
.L23:
	.word	HOSTAPD_CHAN_DISABLED
	.size	bgscan_learn_get_supp_freqs, .-bgscan_learn_get_supp_freqs
	.comm	HOSTAPD_CHAN_DISABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
