	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_init_crypto          ## -- Begin function ath9k_cmn_init_crypto
	.p2align	4, 0x90
_ath9k_cmn_init_crypto:                 ## @ath9k_cmn_init_crypto
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	_AR_KEYTABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_AR_PCU_MIC_NEW_LOC_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_ATH_CRYPT_CAP_MIC_COMBINED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r14)
LBB0_2:
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ath_hw_keyreset
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_KEYTABLE_SIZE,4,2           ## @AR_KEYTABLE_SIZE
	.comm	_AR_PCU_MIC_NEW_LOC_ENA,4,2     ## @AR_PCU_MIC_NEW_LOC_ENA
	.comm	_ATH_CRYPT_CAP_MIC_COMBINED,4,2 ## @ATH_CRYPT_CAP_MIC_COMBINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_cmn_init_crypto          ; -- Begin function ath9k_cmn_init_crypto
	.p2align	2
_ath9k_cmn_init_crypto:                 ; @ath9k_cmn_init_crypto
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_ath9k_hw_common
	mov	x19, x0
Lloh0:
	adrp	x8, _AR_KEYTABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_KEYTABLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _AR_PCU_MIC_NEW_LOC_ENA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AR_PCU_MIC_NEW_LOC_ENA@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _ATH_CRYPT_CAP_MIC_COMBINED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH_CRYPT_CAP_MIC_COMBINED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_2:
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ath_hw_keyreset
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_KEYTABLE_SIZE,4,2           ; @AR_KEYTABLE_SIZE
	.comm	_AR_PCU_MIC_NEW_LOC_ENA,4,2     ; @AR_PCU_MIC_NEW_LOC_ENA
	.comm	_ATH_CRYPT_CAP_MIC_COMBINED,4,2 ; @ATH_CRYPT_CAP_MIC_COMBINED
.subsections_via_symbols
