	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_ani_init              ## -- Begin function ath9k_hw_ani_init
	.p2align	4, 0x90
_ath9k_hw_ani_init:                     ## @ath9k_hw_ani_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	_ANI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_ath_dbg
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ATH9K_ANI_CCK_TRIG_LOW@GOTPCREL(%rip), %rax
	movq	_ATH9K_ANI_CCK_TRIG_HIGH@GOTPCREL(%rip), %rcx
	movq	_ATH9K_ANI_OFDM_TRIG_LOW@GOTPCREL(%rip), %rdx
	movq	_ATH9K_ANI_OFDM_TRIG_HIGH@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	_ATH9K_ANI_CCK_TRIG_LOW_OLD@GOTPCREL(%rip), %rax
	movq	_ATH9K_ANI_CCK_TRIG_HIGH_OLD@GOTPCREL(%rip), %rcx
	movq	_ATH9K_ANI_OFDM_TRIG_LOW_OLD@GOTPCREL(%rip), %rdx
	movq	_ATH9K_ANI_OFDM_TRIG_HIGH_OLD@GOTPCREL(%rip), %rsi
LBB0_3:
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	movl	(%rsi), %esi
	movl	%esi, 16(%rbx)
	movl	%edx, 12(%rbx)
	movl	%ecx, 8(%rbx)
	movl	%eax, 4(%rbx)
	movq	_ATH9K_ANI_SPUR_IMMUNE_LVL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_ATH9K_ANI_FIRSTEP_LVL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, 24(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 28(%rbx)
	movq	_ATH9K_ANI_CCK_DEF_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_ATH9K_ANI_OFDM_DEF_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_ATH9K_ANI_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ATH9K_ANI_POLLINTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_ath9k_ani_restart
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ath9k_enable_mib_counters      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ANI,4,2                        ## @ANI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialize ANI\n"

	.comm	_ATH9K_ANI_OFDM_TRIG_HIGH,4,2   ## @ATH9K_ANI_OFDM_TRIG_HIGH
	.comm	_ATH9K_ANI_OFDM_TRIG_LOW,4,2    ## @ATH9K_ANI_OFDM_TRIG_LOW
	.comm	_ATH9K_ANI_CCK_TRIG_HIGH,4,2    ## @ATH9K_ANI_CCK_TRIG_HIGH
	.comm	_ATH9K_ANI_CCK_TRIG_LOW,4,2     ## @ATH9K_ANI_CCK_TRIG_LOW
	.comm	_ATH9K_ANI_OFDM_TRIG_HIGH_OLD,4,2 ## @ATH9K_ANI_OFDM_TRIG_HIGH_OLD
	.comm	_ATH9K_ANI_OFDM_TRIG_LOW_OLD,4,2 ## @ATH9K_ANI_OFDM_TRIG_LOW_OLD
	.comm	_ATH9K_ANI_CCK_TRIG_HIGH_OLD,4,2 ## @ATH9K_ANI_CCK_TRIG_HIGH_OLD
	.comm	_ATH9K_ANI_CCK_TRIG_LOW_OLD,4,2 ## @ATH9K_ANI_CCK_TRIG_LOW_OLD
	.comm	_ATH9K_ANI_SPUR_IMMUNE_LVL,4,2  ## @ATH9K_ANI_SPUR_IMMUNE_LVL
	.comm	_ATH9K_ANI_FIRSTEP_LVL,4,2      ## @ATH9K_ANI_FIRSTEP_LVL
	.comm	_ATH9K_ANI_CCK_DEF_LEVEL,4,2    ## @ATH9K_ANI_CCK_DEF_LEVEL
	.comm	_ATH9K_ANI_OFDM_DEF_LEVEL,4,2   ## @ATH9K_ANI_OFDM_DEF_LEVEL
	.comm	_ATH9K_ANI_PERIOD,4,2           ## @ATH9K_ANI_PERIOD
	.comm	_ATH9K_ANI_POLLINTERVAL,4,2     ## @ATH9K_ANI_POLLINTERVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_ani_init              ; -- Begin function ath9k_hw_ani_init
	.p2align	2
_ath9k_hw_ani_init:                     ; @ath9k_hw_ani_init
	.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	x19, x0
	bl	_ath9k_hw_common
Lloh0:
	adrp	x8, _ANI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
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10]
	ldr	w11, [x11]
	stp	w10, w11, [x19, #12]
	stp	w8, w9, [x19, #4]
Lloh21:
	adrp	x8, _ATH9K_ANI_SPUR_IMMUNE_LVL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATH9K_ANI_SPUR_IMMUNE_LVL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _ATH9K_ANI_FIRSTEP_LVL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ATH9K_ANI_FIRSTEP_LVL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #44]
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cmp	x0, #0
	cset	w8, ne
	movi.2s	v0, #1
	stur	d0, [x19, #28]
Lloh27:
	adrp	x9, _ATH9K_ANI_CCK_DEF_LEVEL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ATH9K_ANI_CCK_DEF_LEVEL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _ATH9K_ANI_OFDM_DEF_LEVEL@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ATH9K_ANI_OFDM_DEF_LEVEL@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #36]
Lloh33:
	adrp	x9, _ATH9K_ANI_PERIOD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ATH9K_ANI_PERIOD@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh36:
	adrp	x8, _ATH9K_ANI_POLLINTERVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ATH9K_ANI_POLLINTERVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_ath9k_ani_restart
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath9k_enable_mib_counters
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ANI,4,2                        ; @ANI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialize ANI\n"

	.comm	_ATH9K_ANI_OFDM_TRIG_HIGH,4,2   ; @ATH9K_ANI_OFDM_TRIG_HIGH
	.comm	_ATH9K_ANI_OFDM_TRIG_LOW,4,2    ; @ATH9K_ANI_OFDM_TRIG_LOW
	.comm	_ATH9K_ANI_CCK_TRIG_HIGH,4,2    ; @ATH9K_ANI_CCK_TRIG_HIGH
	.comm	_ATH9K_ANI_CCK_TRIG_LOW,4,2     ; @ATH9K_ANI_CCK_TRIG_LOW
	.comm	_ATH9K_ANI_OFDM_TRIG_HIGH_OLD,4,2 ; @ATH9K_ANI_OFDM_TRIG_HIGH_OLD
	.comm	_ATH9K_ANI_OFDM_TRIG_LOW_OLD,4,2 ; @ATH9K_ANI_OFDM_TRIG_LOW_OLD
	.comm	_ATH9K_ANI_CCK_TRIG_HIGH_OLD,4,2 ; @ATH9K_ANI_CCK_TRIG_HIGH_OLD
	.comm	_ATH9K_ANI_CCK_TRIG_LOW_OLD,4,2 ; @ATH9K_ANI_CCK_TRIG_LOW_OLD
	.comm	_ATH9K_ANI_SPUR_IMMUNE_LVL,4,2  ; @ATH9K_ANI_SPUR_IMMUNE_LVL
	.comm	_ATH9K_ANI_FIRSTEP_LVL,4,2      ; @ATH9K_ANI_FIRSTEP_LVL
	.comm	_ATH9K_ANI_CCK_DEF_LEVEL,4,2    ; @ATH9K_ANI_CCK_DEF_LEVEL
	.comm	_ATH9K_ANI_OFDM_DEF_LEVEL,4,2   ; @ATH9K_ANI_OFDM_DEF_LEVEL
	.comm	_ATH9K_ANI_PERIOD,4,2           ; @ATH9K_ANI_PERIOD
	.comm	_ATH9K_ANI_POLLINTERVAL,4,2     ; @ATH9K_ANI_POLLINTERVAL
.subsections_via_symbols
