	.file	"extr_if_ath.c_ath_setup_stationkey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath_setup_stationkey, @function
ath_setup_stationkey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rsi, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 32[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rcx, 16[rsp]
	lea	rdx, 8[rsp]
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	r13, QWORD PTR [rax]
	call	ath_key_alloc@PLT
	test	eax, eax
	jne	.L9
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 32
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR 24[r12]
	mov	edi, DWORD PTR [r12]
	mov	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[r12], rax
	mov	eax, DWORD PTR IEEE80211_KEY_DEVKEY[rip]
	or	DWORD PTR 4[r12], eax
	call	IEEE80211_ADDR_COPY@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	call	ath_keyset@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath_setup_stationkey, .-ath_setup_stationkey
	.comm	IEEE80211_KEY_DEVKEY,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_if_ath.c_ath_setup_stationkey.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath_setup_stationkey, %function
ath_setup_stationkey:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #20]
	sub	sp, sp, #16
	ldr	ip, [r5, #4]
	ldr	lr, .L11
	mov	r1, r0
	mov	r4, r0
	add	r3, sp, #8
	mov	r0, r5
	add	r2, sp, #4
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	ldr	r6, [ip]
	bl	ath_key_alloc
	cmp	r0, #0
	bne	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r2, .L11+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, [sp, #4]
	orr	r3, r3, r2
	ldr	r2, [sp, #8]
	str	r3, [r4, #4]
	str	r1, [r4, #12]
	str	r2, [r4, #8]
	ldr	r1, [r4, #16]
	ldr	r0, [r4]
	bl	IEEE80211_ADDR_COPY
	mov	r2, r4
	mov	r0, r6
	mov	r1, r5
	ldr	r3, [r5]
	bl	ath_keyset
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	IEEE80211_KEY_DEVKEY
	.size	ath_setup_stationkey, .-ath_setup_stationkey
	.comm	IEEE80211_KEY_DEVKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
