	.file	"extr_txrx.c_cw1200_upload_keys.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cw1200_upload_keys
	.type	cw1200_upload_keys, @function
cw1200_upload_keys:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR WSM_KEY_MAX_INDEX[rip]
	test	eax, eax
	js	.L5
	mov	r12, rdi
	xor	ebx, ebx
	xor	r13d, r13d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR WSM_KEY_MAX_INDEX[rip], ebx
	jl	.L1
.L4:
	mov	ebp, DWORD PTR [r12]
	mov	edi, ebx
	call	BIT@PLT
	test	ebp, eax
	je	.L3
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, r12
	lea	rsi, [rax+rbx*4]
	call	wsm_add_key@PLT
	mov	r13d, eax
	test	eax, eax
	jns	.L3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L5:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cw1200_upload_keys, .-cw1200_upload_keys
	.comm	WSM_KEY_MAX_INDEX,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_txrx.c_cw1200_upload_keys.c"
	.text
	.align	2
	.global	cw1200_upload_keys
	.syntax unified
	.arm
	.fpu softvfp
	.type	cw1200_upload_keys, %function
cw1200_upload_keys:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L12
	ldr	r3, [r8]
	cmp	r3, #0
	blt	.L5
	mov	r7, #0
	mov	r6, r0
	mov	r4, r7
	b	.L4
.L3:
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	blt	.L1
.L4:
	mov	r0, r4
	ldr	r5, [r6]
	bl	BIT
	tst	r5, r0
	beq	.L3
	ldr	r1, [r6, #4]
	mov	r0, r6
	add	r1, r1, r4, lsl #2
	bl	wsm_add_key
	subs	r7, r0, #0
	bge	.L3
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r7, #0
	b	.L1
.L13:
	.align	2
.L12:
	.word	WSM_KEY_MAX_INDEX
	.size	cw1200_upload_keys, .-cw1200_upload_keys
	.comm	WSM_KEY_MAX_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
