	.file	"extr_cmd.c_wl1271_cmd_set_sta_key.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TARGET KEY: "
.LC1:
	.string	"could not set keys"
	.text
	.p2align 4
	.globl	wl1271_cmd_set_sta_key
	.type	wl1271_cmd_set_sta_key, @function
wl1271_cmd_set_sta_key:
.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	rax, QWORD PTR WL12XX_INVALID_LINK_ID[rip]
	mov	QWORD PTR 8[rsp], rcx
	cmp	QWORD PTR [rsi], rax
	je	.L11
	mov	r12, rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r14, rdi
	mov	rbx, r8
	mov	edi, 72
	mov	r15d, edx
	mov	r13, r9
	call	kzalloc@PLT
	mov	r8d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	neg	r8d
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR KEY_WEP[rip], rbx
	mov	QWORD PTR 0[rbp], rax
	jne	.L5
	mov	eax, DWORD PTR WEP_DEFAULT_LID_TYPE[rip]
	mov	DWORD PTR 64[rbp], eax
.L6:
	mov	edi, r15d
	call	cpu_to_le16@PLT
	mov	QWORD PTR 48[rbp], r13
	mov	edi, DWORD PTR 104[rsp]
	mov	QWORD PTR 56[rbp], rax
	mov	r12, QWORD PTR 32[rbp]
	mov	QWORD PTR 40[rbp], rbx
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 96[rsp]
	mov	QWORD PTR [r12], rax
	mov	r12, QWORD PTR 24[rbp]
	call	cpu_to_le32@PLT
	cmp	QWORD PTR KEY_TKIP[rip], rbx
	mov	rdi, QWORD PTR 8[rbp]
	mov	DWORD PTR [r12], eax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[rbp], rax
	je	.L14
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdx, r13
	call	memcpy@PLT
.L9:
	mov	edi, DWORD PTR DEBUG_CRYPT[rip]
	mov	ecx, 72
	mov	rdx, rbp
	lea	rsi, .LC0[rip]
	call	wl1271_dump@PLT
	xor	r8d, r8d
	mov	ecx, 72
	mov	rdx, rbp
	mov	esi, DWORD PTR CMD_SET_KEYS[rip]
	mov	rdi, r14
	call	wl1271_cmd_send@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L15
.L4:
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], r8d
	call	kfree@PLT
	mov	r8d, DWORD PTR 8[rsp]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR 88[rsp]
	call	is_broadcast_ether_addr@PLT
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR BROADCAST_LID_TYPE[rip]
	mov	DWORD PTR 64[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR UNICAST_LID_TYPE[rip]
	mov	DWORD PTR 64[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC1[rip]
	mov	DWORD PTR 8[rsp], eax
	call	wl1271_warning@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, QWORD PTR 80[rsp]
	mov	edx, 16
	call	memcpy@PLT
	mov	rax, QWORD PTR 80[rsp]
	mov	edx, 8
	lea	rsi, 192[rax]
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, 16[rax]
	call	memcpy@PLT
	mov	rax, QWORD PTR 80[rsp]
	mov	edx, 8
	lea	rsi, 128[rax]
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, 24[rax]
	call	memcpy@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	wl1271_cmd_set_sta_key, .-wl1271_cmd_set_sta_key
	.comm	WL12XX_INVALID_LINK_ID,8,8
	.comm	WEP_DEFAULT_LID_TYPE,4,4
	.comm	UNICAST_LID_TYPE,4,4
	.comm	KEY_WEP,8,8
	.comm	KEY_TKIP,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DEBUG_CRYPT,4,4
	.comm	CMD_SET_KEYS,4,4
	.comm	BROADCAST_LID_TYPE,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_cmd.c_wl1271_cmd_set_sta_key.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TARGET KEY: \000"
	.align	2
.LC1:
	.ascii	"could not set keys\000"
	.text
	.align	2
	.global	wl1271_cmd_set_sta_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl1271_cmd_set_sta_key, %function
wl1271_cmd_set_sta_key:
	@ args = 24, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r1
	ldr	r1, .L16
	ldr	ip, [r5]
	ldr	r1, [r1]
	sub	sp, sp, #12
	cmp	ip, r1
	moveq	r5, #0
	ldr	r9, [sp, #40]
	beq	.L1
	mov	r7, r3
	ldr	r3, .L16+4
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, #36
	mov	r8, r2
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L13
	ldr	r3, .L16+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	str	r2, [r4]
	cmp	r3, r9
	bne	.L5
	ldr	r3, .L16+12
	ldr	r3, [r3]
	str	r3, [r4, #32]
.L6:
	mov	r0, r8
	bl	cpu_to_le16
	ldr	r3, [sp, #44]
	str	r0, [r4, #28]
	str	r3, [r4, #24]
	ldr	r0, [sp, #60]
	str	r9, [r4, #20]
	ldr	r5, [r4, #16]
	bl	cpu_to_le16
	str	r0, [r5]
	ldr	r0, [sp, #56]
	ldr	r5, [r4, #12]
	bl	cpu_to_le32
	ldr	r3, .L16+16
	str	r0, [r5]
	ldr	r3, [r3]
	str	r7, [r4, #8]
	cmp	r3, r9
	beq	.L14
	ldr	r2, [sp, #44]
	ldr	r1, [sp, #48]
	ldr	r0, [r4, #4]
	bl	memcpy
.L9:
	ldr	r2, .L16+20
	mov	r3, #36
	ldr	r0, [r2]
	ldr	r1, .L16+24
	mov	r2, r4
	bl	wl1271_dump
	mov	r2, #0
	ldr	r3, .L16+28
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r6
	mov	r3, #36
	mov	r2, r4
	bl	wl1271_cmd_send
	subs	r5, r0, #0
	blt	.L15
.L4:
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r0, [sp, #52]
	bl	is_broadcast_ether_addr
	cmp	r0, #0
	ldrne	r3, .L16+32
	ldreq	r3, .L16+36
	ldr	r3, [r3]
	str	r3, [r4, #32]
	b	.L6
.L14:
	ldr	r1, [sp, #48]
	mov	r2, #16
	ldr	r0, [r4, #4]
	bl	memcpy
	ldr	r3, [sp, #48]
	ldr	r0, [r4, #4]
	add	r1, r3, #96
	mov	r2, #8
	add	r0, r0, #16
	bl	memcpy
	ldr	r0, [r4, #4]
	ldr	r3, [sp, #48]
	mov	r2, #8
	add	r1, r3, #64
	add	r0, r0, #24
	bl	memcpy
	b	.L9
.L13:
	ldr	r3, .L16+40
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L4
.L15:
	ldr	r0, .L16+44
	bl	wl1271_warning
	b	.L4
.L17:
	.align	2
.L16:
	.word	WL12XX_INVALID_LINK_ID
	.word	GFP_KERNEL
	.word	KEY_WEP
	.word	WEP_DEFAULT_LID_TYPE
	.word	KEY_TKIP
	.word	DEBUG_CRYPT
	.word	.LC0
	.word	CMD_SET_KEYS
	.word	BROADCAST_LID_TYPE
	.word	UNICAST_LID_TYPE
	.word	ENOMEM
	.word	.LC1
	.size	wl1271_cmd_set_sta_key, .-wl1271_cmd_set_sta_key
	.comm	WL12XX_INVALID_LINK_ID,4,4
	.comm	WEP_DEFAULT_LID_TYPE,4,4
	.comm	UNICAST_LID_TYPE,4,4
	.comm	KEY_WEP,4,4
	.comm	KEY_TKIP,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DEBUG_CRYPT,4,4
	.comm	CMD_SET_KEYS,4,4
	.comm	BROADCAST_LID_TYPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
