	.file	"extr_wmi.c_ath6kl_wmi_addkey_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"addkey cmd: key_index=%u key_type=%d key_usage=%d key_len=%d key_op_ctrl=%d\n"
	.text
	.p2align 4
	.globl	ath6kl_wmi_addkey_cmd
	.type	ath6kl_wmi_addkey_cmd, @function
ath6kl_wmi_addkey_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	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
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 80
	.cfi_def_cfa_offset 136
	mov	rax, QWORD PTR 136[rsp]
	mov	rcx, QWORD PTR 168[rsp]
	mov	QWORD PTR 24[rsp], rdi
	mov	edx, DWORD PTR 176[rsp]
	mov	r12, QWORD PTR 160[rsp]
	mov	QWORD PTR 32[rsp], rsi
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR 144[rsp]
	mov	QWORD PTR 40[rsp], rcx
	mov	edi, DWORD PTR ATH6KL_DBG_WMI[rip]
	mov	ecx, r14d
	mov	DWORD PTR 52[rsp], edx
	mov	r13, QWORD PTR 152[rsp]
	mov	rdx, rbx
	mov	DWORD PTR 8[rsp], eax
	push	r12
	.cfi_def_cfa_offset 144
	call	ath6kl_dbg@PLT
	cmp	QWORD PTR WMI_MAX_KEY_INDEX[rip], rbx
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
	jl	.L2
	cmp	QWORD PTR WMI_MAX_KEY_LEN[rip], rbp
	jl	.L2
	test	r13, r13
	je	.L2
	cmp	DWORD PTR [rsp], 8
	ja	.L2
	cmp	r14d, DWORD PTR WEP_CRYPT[rip]
	je	.L6
	cmp	QWORD PTR 8[rsp], 0
	je	.L2
	mov	edi, 48
	call	ath6kl_wmi_get_new_buf@PLT
	mov	r9, rax
	test	rax, rax
	jne	.L30
.L12:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 72
	.cfi_remember_state
	.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
.L30:
	.cfi_restore_state
	mov	r10, QWORD PTR [r9]
	mov	edx, ebp
	mov	rsi, r13
	mov	QWORD PTR 56[rsp], r9
	mov	QWORD PTR 40[r10], rbx
	mov	edi, DWORD PTR 20[r10]
	mov	DWORD PTR [r10], r14d
	mov	QWORD PTR 32[r10], r15
	mov	QWORD PTR 24[r10], rbp
	mov	QWORD PTR 48[rsp], r10
	call	memcpy@PLT
	mov	r10, QWORD PTR 48[rsp]
	mov	r9, QWORD PTR 56[rsp]
.L11:
	mov	edi, DWORD PTR 16[r10]
	mov	edx, DWORD PTR [rsp]
	mov	QWORD PTR 56[rsp], r9
	mov	rsi, QWORD PTR 8[rsp]
	mov	QWORD PTR 48[rsp], r10
	call	memcpy@PLT
	mov	r9, QWORD PTR 56[rsp]
	mov	r10, QWORD PTR 48[rsp]
.L9:
	mov	rsi, QWORD PTR 32[rsp]
	mov	QWORD PTR 8[r10], r12
	test	rsi, rsi
	je	.L10
	mov	edi, DWORD PTR 4[r10]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	QWORD PTR [rsp], r9
	call	memcpy@PLT
	mov	r9, QWORD PTR [rsp]
.L10:
	mov	r8d, DWORD PTR 44[rsp]
	mov	ecx, DWORD PTR WMI_ADD_CIPHER_KEY_CMDID[rip]
	mov	rdx, r9
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	add	rsp, 72
	.cfi_remember_state
	.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
	jmp	ath6kl_wmi_cmd_send@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, 48
	call	ath6kl_wmi_get_new_buf@PLT
	test	rax, rax
	je	.L12
	mov	r10, QWORD PTR [rax]
	mov	edx, ebp
	mov	rsi, r13
	mov	QWORD PTR 56[rsp], rax
	mov	QWORD PTR 40[r10], rbx
	mov	edi, DWORD PTR 20[r10]
	mov	DWORD PTR [r10], r14d
	mov	QWORD PTR 32[r10], r15
	mov	QWORD PTR 24[r10], rbp
	mov	QWORD PTR 48[rsp], r10
	call	memcpy@PLT
	cmp	QWORD PTR 8[rsp], 0
	mov	r10, QWORD PTR 48[rsp]
	mov	r9, QWORD PTR 56[rsp]
	je	.L9
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	ath6kl_wmi_addkey_cmd, .-ath6kl_wmi_addkey_cmd
	.comm	WMI_MAX_KEY_LEN,8,8
	.comm	WMI_MAX_KEY_INDEX,8,8
	.comm	WMI_ADD_CIPHER_KEY_CMDID,4,4
	.comm	WEP_CRYPT,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	ATH6KL_DBG_WMI,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_wmi.c_ath6kl_wmi_addkey_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"addkey cmd: key_index=%u key_type=%d key_usage=%d k"
	.ascii	"ey_len=%d key_op_ctrl=%d\012\000"
	.text
	.align	2
	.global	ath6kl_wmi_addkey_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_wmi_addkey_cmd, %function
ath6kl_wmi_addkey_cmd:
	@ args = 32, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	lr, r0
	mov	r4, r2
	sub	sp, sp, #44
	ldr	r5, [sp, #84]
	ldr	r7, [sp, #100]
	ldr	r6, [sp, #80]
	stmib	sp, {r5, r7}
	str	ip, [sp, #20]
	ldr	ip, [sp, #104]
	ldr	r1, .L30
	str	r6, [sp]
	str	ip, [sp, #24]
	ldr	ip, [sp, #108]
	ldr	r0, [r1]
	ldr	r1, .L30+4
	mov	fp, r3
	ldr	r10, [sp, #88]
	ldr	r9, [sp, #92]
	ldr	r8, [sp, #96]
	str	lr, [sp, #16]
	str	ip, [sp, #28]
	bl	ath6kl_dbg
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r3, r4
	blt	.L2
	ldr	r3, .L30+12
	ldr	r3, [r3]
	cmp	r3, r5
	blt	.L2
	cmp	r9, #8
	movls	r3, #0
	movhi	r3, #1
	cmp	r8, #0
	moveq	r3, #1
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L30+16
	ldr	r3, [r3]
	cmp	fp, r3
	beq	.L5
	cmp	r10, #0
	beq	.L2
	mov	r0, #32
	bl	ath6kl_wmi_get_new_buf
	subs	r3, r0, #0
	str	r3, [sp, #32]
	bne	.L29
.L11:
	ldr	r3, .L30+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L2:
	ldr	r3, .L30+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	ldr	r3, [sp, #32]
	mov	r1, r8
	ldr	r3, [r3]
	mov	r2, r5
	ldr	r0, [r3, #16]
	str	r4, [r3, #28]
	str	fp, [r3]
	str	r6, [r3, #24]
	str	r5, [r3, #20]
	str	r3, [sp, #36]
	bl	memcpy
	ldr	r3, [sp, #36]
.L10:
	ldr	r0, [r3, #12]
	mov	r2, r9
	mov	r1, r10
	str	r3, [sp, #36]
	bl	memcpy
	ldr	r3, [sp, #36]
.L8:
	ldr	r1, [sp, #24]
	str	r7, [r3, #8]
	cmp	r1, #0
	beq	.L9
	ldr	r2, .L30+28
	ldr	r0, [r3, #4]
	ldr	r2, [r2]
	bl	memcpy
.L9:
	ldr	r3, [sp, #28]
	ldr	ip, .L30+32
	str	r3, [sp, #80]
	ldr	r2, [sp, #32]
	ldr	r1, [sp, #20]
	ldr	r0, [sp, #16]
	ldr	r3, [ip]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ath6kl_wmi_cmd_send
.L5:
	mov	r0, #32
	bl	ath6kl_wmi_get_new_buf
	subs	r3, r0, #0
	str	r3, [sp, #32]
	beq	.L11
	ldr	r3, [sp, #32]
	mov	r1, r8
	ldr	r3, [r3]
	mov	r2, r5
	ldr	r0, [r3, #16]
	str	r4, [r3, #28]
	str	fp, [r3]
	str	r6, [r3, #24]
	str	r5, [r3, #20]
	str	r3, [sp, #36]
	bl	memcpy
	cmp	r10, #0
	ldr	r3, [sp, #36]
	beq	.L8
	b	.L10
.L31:
	.align	2
.L30:
	.word	ATH6KL_DBG_WMI
	.word	.LC0
	.word	WMI_MAX_KEY_INDEX
	.word	WMI_MAX_KEY_LEN
	.word	WEP_CRYPT
	.word	ENOMEM
	.word	EINVAL
	.word	ETH_ALEN
	.word	WMI_ADD_CIPHER_KEY_CMDID
	.size	ath6kl_wmi_addkey_cmd, .-ath6kl_wmi_addkey_cmd
	.comm	WMI_MAX_KEY_LEN,4,4
	.comm	WMI_MAX_KEY_INDEX,4,4
	.comm	WMI_ADD_CIPHER_KEY_CMDID,4,4
	.comm	WEP_CRYPT,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	ATH6KL_DBG_WMI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
