	.file	"extr_cmd.c_wl12xx_cmd_set_default_wep_key.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cmd set_default_wep_key %d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"cmd set_default_wep_key failed: %d"
	.text
	.p2align 4
	.globl	wl12xx_cmd_set_default_wep_key
	.type	wl12xx_cmd_set_default_wep_key, @function
wl12xx_cmd_set_default_wep_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	mov	rdx, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR DEBUG_CMD[rip]
	call	wl1271_debug@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 32
	call	kzalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L6
	mov	QWORD PTR 16[rax], r12
	mov	edi, DWORD PTR KEY_SET_ID[rip]
	mov	QWORD PTR 24[rax], rbx
	mov	eax, DWORD PTR WEP_DEFAULT_LID_TYPE[rip]
	mov	DWORD PTR 8[rbp], eax
	call	cpu_to_le16@PLT
	xor	r8d, r8d
	mov	ecx, 32
	mov	rdx, rbp
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR KEY_WEP[rip]
	mov	rdi, r13
	mov	esi, DWORD PTR CMD_SET_KEYS[rip]
	mov	DWORD PTR 0[rbp], eax
	call	wl1271_cmd_send@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L7
.L3:
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	wl1271_warning@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	wl12xx_cmd_set_default_wep_key, .-wl12xx_cmd_set_default_wep_key
	.comm	WEP_DEFAULT_LID_TYPE,4,4
	.comm	KEY_WEP,4,4
	.comm	KEY_SET_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CMD_SET_KEYS,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_wl12xx_cmd_set_default_wep_key.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cmd set_default_wep_key %d\000"
	.align	2
.LC1:
	.ascii	"cmd set_default_wep_key failed: %d\000"
	.text
	.align	2
	.global	wl12xx_cmd_set_default_wep_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl12xx_cmd_set_default_wep_key, %function
wl12xx_cmd_set_default_wep_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r1
	ldr	r1, .L8
	sub	sp, sp, #12
	mov	r7, r0
	mov	r6, r2
	ldr	r0, [r1]
	mov	r2, r5
	ldr	r1, .L8+4
	bl	wl1271_debug
	ldr	r3, .L8+8
	mov	r0, #20
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L6
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	ldr	r2, [r2]
	ldr	r0, [r3]
	str	r5, [r4, #12]
	str	r2, [r4, #8]
	str	r6, [r4, #16]
	bl	cpu_to_le16
	mov	r3, #0
	ldr	r1, .L8+20
	ldr	r2, .L8+24
	ldr	r1, [r1]
	str	r0, [r4, #4]
	str	r1, [r4]
	mov	r0, r7
	ldr	r1, [r2]
	str	r3, [sp]
	mov	r2, r4
	mov	r3, #20
	bl	wl1271_cmd_send
	subs	r5, r0, #0
	blt	.L7
.L3:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldr	r3, .L8+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L7:
	mov	r1, r5
	ldr	r0, .L8+32
	bl	wl1271_warning
	b	.L3
.L9:
	.align	2
.L8:
	.word	DEBUG_CMD
	.word	.LC0
	.word	GFP_KERNEL
	.word	WEP_DEFAULT_LID_TYPE
	.word	KEY_SET_ID
	.word	KEY_WEP
	.word	CMD_SET_KEYS
	.word	ENOMEM
	.word	.LC1
	.size	wl12xx_cmd_set_default_wep_key, .-wl12xx_cmd_set_default_wep_key
	.comm	WEP_DEFAULT_LID_TYPE,4,4
	.comm	KEY_WEP,4,4
	.comm	KEY_SET_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CMD_SET_KEYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
