	.file	"extr_common.c_ath9k_cmn_init_crypto.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ath9k_cmn_init_crypto
	.type	ath9k_cmn_init_crypto, @function
ath9k_cmn_init_crypto:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	ath9k_hw_common@PLT
	mov	edx, DWORD PTR [rbx]
	mov	rbp, rax
	mov	eax, DWORD PTR AR_KEYTABLE_SIZE[rip]
	mov	DWORD PTR 0[rbp], eax
	test	DWORD PTR AR_PCU_MIC_NEW_LOC_ENA[rip], edx
	je	.L2
	mov	edx, DWORD PTR ATH_CRYPT_CAP_MIC_COMBINED[rip]
	or	DWORD PTR 4[rbp], edx
.L2:
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	ath_hw_keyreset@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L4
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ath9k_cmn_init_crypto, .-ath9k_cmn_init_crypto
	.comm	ATH_CRYPT_CAP_MIC_COMBINED,4,4
	.comm	AR_PCU_MIC_NEW_LOC_ENA,4,4
	.comm	AR_KEYTABLE_SIZE,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_common.c_ath9k_cmn_init_crypto.c"
	.text
	.align	2
	.global	ath9k_cmn_init_crypto
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath9k_cmn_init_crypto, %function
ath9k_cmn_init_crypto:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	ath9k_hw_common
	ldr	r2, .L11
	ldr	r1, [r4]
	ldr	r2, [r2]
	ldr	r3, .L11+4
	tst	r1, r2
	ldrne	r1, .L11+8
	ldrne	r2, [r0, #4]
	ldrne	r1, [r1]
	ldr	r3, [r3]
	orrne	r2, r2, r1
	strne	r2, [r0, #4]
	cmp	r3, #0
	mov	r5, r0
	str	r3, [r0]
	pople	{r4, r5, r6, pc}
	mov	r4, #0
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	ath_hw_keyreset
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	AR_PCU_MIC_NEW_LOC_ENA
	.word	AR_KEYTABLE_SIZE
	.word	ATH_CRYPT_CAP_MIC_COMBINED
	.size	ath9k_cmn_init_crypto, .-ath9k_cmn_init_crypto
	.comm	ATH_CRYPT_CAP_MIC_COMBINED,4,4
	.comm	AR_PCU_MIC_NEW_LOC_ENA,4,4
	.comm	AR_KEYTABLE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
