	.file	"extr_if_mwl.c_addchannels.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	addchannels, @function
addchannels:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r9d, DWORD PTR [rcx]
	test	r9d, r9d
	jle	.L6
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[r15]
	lea	rdx, [rbx+rbx*2]
	mov	esi, r12d
	mov	rdi, rbp
	lea	rax, [rax+rdx*4]
	mov	rdx, r13
	mov	ecx, DWORD PTR 8[rax]
	mov	r8d, DWORD PTR 4[rax]
	push	r14
	.cfi_def_cfa_offset 72
	push	0
	.cfi_def_cfa_offset 80
	mov	r9d, DWORD PTR [rax]
	call	ieee80211_add_channel@PLT
	lea	edx, 1[rbx]
	cmp	DWORD PTR [r15], edx
	pop	rcx
	.cfi_def_cfa_offset 72
	setg	dl
	test	eax, eax
	pop	rsi
	.cfi_def_cfa_offset 64
	sete	al
	add	rbx, 1
	test	dl, al
	jne	.L3
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	addchannels, .-addchannels
	.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_if_mwl.c_addchannels.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addchannels, %function
addchannels:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r3
	ldr	r3, [r3]
	sub	sp, sp, #16
	cmp	r3, #0
	ldr	r8, [sp, #48]
	ble	.L1
	mov	r4, #0
	mov	r6, r0
	mov	r7, r1
	mov	r10, r2
	mov	r9, r4
.L3:
	ldr	r1, [r5, #4]
	add	r0, r4, r4, lsl #1
	add	r2, r1, r0, lsl #2
	ldr	r3, [r2, #8]
	str	r8, [sp, #12]
	str	r9, [sp, #8]
	ldr	r1, [r1, r0, lsl #2]
	mov	r0, r6
	str	r1, [sp, #4]
	ldr	r1, [r2, #4]
	mov	r2, r10
	str	r1, [sp]
	mov	r1, r7
	bl	ieee80211_add_channel
	ldr	ip, [r5]
	add	r4, r4, #1
	cmp	ip, r4
	movle	ip, #0
	movgt	ip, #1
	cmp	r0, #0
	movne	ip, #0
	cmp	ip, #0
	bne	.L3
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	addchannels, .-addchannels
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
