	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_reset_calibration     ## -- Begin function ath9k_hw_reset_calibration
	.p2align	4, 0x90
_ath9k_hw_reset_calibration:            ## @ath9k_hw_reset_calibration
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ath9k_hw_setup_calibration
	movq	_CAL_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_AR5416_MAX_CHAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_20
## %bb.1:
	movq	32(%r14), %r10
	movq	24(%r14), %rdx
	movq	8(%r14), %rsi
	movq	16(%r14), %rdi
	cmpl	$4, %r8d
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
LBB0_16:
	movq	%rax, %rcx
	notq	%rcx
	testb	$1, %r8b
	je	LBB0_18
## %bb.17:
	movq	$0, (%r10,%rax,8)
	movq	$0, (%rdx,%rax,8)
	movq	$0, (%rdi,%rax,8)
	movq	$0, (%rsi,%rax,8)
	orq	$1, %rax
LBB0_18:
	addq	%r8, %rcx
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%r10,%rax,8)
	movq	$0, (%rdx,%rax,8)
	movq	$0, (%rdi,%rax,8)
	movq	$0, (%rsi,%rax,8)
	movq	$0, 8(%r10,%rax,8)
	movq	$0, 8(%rdx,%rax,8)
	movq	$0, 8(%rdi,%rax,8)
	movq	$0, 8(%rsi,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %r8
	jne	LBB0_19
	jmp	LBB0_20
LBB0_3:
	movq	%rdx, %rcx
	subq	%r10, %rcx
	xorl	%eax, %eax
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.4:
	movq	%rdi, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.5:
	movq	%rsi, %rcx
	subq	%r10, %rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.6:
	movq	%rdi, %rcx
	subq	%rdx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.7:
	movq	%rsi, %rcx
	subq	%rdx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.8:
	movq	%rsi, %rcx
	subq	%rdi, %rcx
	cmpq	$32, %rcx
	jb	LBB0_16
## %bb.9:
	movl	%r8d, %eax
	andl	$-4, %eax
	leaq	-4(%rax), %rcx
	movq	%rcx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.11:
	movq	%r9, %rcx
	andq	$-2, %rcx
	xorl	%ebx, %ebx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, (%r10,%rbx,8)
	movups	%xmm0, 16(%r10,%rbx,8)
	movups	%xmm0, (%rdx,%rbx,8)
	movups	%xmm0, 16(%rdx,%rbx,8)
	movups	%xmm0, (%rdi,%rbx,8)
	movups	%xmm0, 16(%rdi,%rbx,8)
	movups	%xmm0, (%rsi,%rbx,8)
	movups	%xmm0, 16(%rsi,%rbx,8)
	movups	%xmm0, 32(%r10,%rbx,8)
	movups	%xmm0, 48(%r10,%rbx,8)
	movups	%xmm0, 32(%rdx,%rbx,8)
	movups	%xmm0, 48(%rdx,%rbx,8)
	movups	%xmm0, 32(%rdi,%rbx,8)
	movups	%xmm0, 48(%rdi,%rbx,8)
	movups	%xmm0, 32(%rsi,%rbx,8)
	movups	%xmm0, 48(%rsi,%rbx,8)
	addq	$8, %rbx
	addq	$-2, %rcx
	jne	LBB0_12
## %bb.13:
	testb	$1, %r9b
	je	LBB0_15
LBB0_14:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r10,%rbx,8)
	movups	%xmm0, 16(%r10,%rbx,8)
	movups	%xmm0, (%rdx,%rbx,8)
	movups	%xmm0, 16(%rdx,%rbx,8)
	movups	%xmm0, (%rdi,%rbx,8)
	movups	%xmm0, 16(%rdi,%rbx,8)
	movups	%xmm0, (%rsi,%rbx,8)
	movups	%xmm0, 16(%rsi,%rbx,8)
LBB0_15:
	cmpq	%r8, %rax
	jne	LBB0_16
LBB0_20:
	movq	$0, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	testb	$1, %r9b
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_CAL_RUNNING,4,2                ## @CAL_RUNNING
	.comm	_AR5416_MAX_CHAINS,4,2          ## @AR5416_MAX_CHAINS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_reset_calibration     ; -- Begin function ath9k_hw_reset_calibration
	.p2align	2
_ath9k_hw_reset_calibration:            ; @ath9k_hw_reset_calibration
	.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, x1
	mov	x19, x0
	bl	_ath9k_hw_setup_calibration
Lloh0:
	adrp	x8, _CAL_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAL_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh3:
	adrp	x8, _AR5416_MAX_CHAINS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5416_MAX_CHAINS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	ldp	x10, x9, [x19, #24]
	ldp	x13, x11, [x19, #8]
	cmp	w8, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x12, #0
	b	LBB0_12
LBB0_3:
	mov	x12, #0
	sub	x14, x10, x9
	cmp	x14, #64
	b.lo	LBB0_12
; %bb.4:
	sub	x14, x11, x9
	cmp	x14, #64
	b.lo	LBB0_12
; %bb.5:
	sub	x14, x13, x9
	cmp	x14, #64
	b.lo	LBB0_12
; %bb.6:
	sub	x14, x11, x10
	cmp	x14, #64
	b.lo	LBB0_12
; %bb.7:
	sub	x14, x13, x10
	cmp	x14, #64
	b.lo	LBB0_12
; %bb.8:
	sub	x14, x13, x11
	cmp	x14, #64
	b.lo	LBB0_12
; %bb.9:
	and	x12, x8, #0xfffffff8
	add	x14, x13, #32
	add	x15, x9, #32
	add	x16, x11, #32
	add	x17, x10, #32
	movi.2d	v0, #0000000000000000
	mov	x0, x12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x15, #-32]
	stp	q0, q0, [x15], #64
	stp	q0, q0, [x17, #-32]
	stp	q0, q0, [x17], #64
	stp	q0, q0, [x16, #-32]
	stp	q0, q0, [x16], #64
	stp	q0, q0, [x14, #-32]
	stp	q0, q0, [x14], #64
	subs	x0, x0, #8
	b.ne	LBB0_10
; %bb.11:
	cmp	x12, x8
	b.eq	LBB0_14
LBB0_12:
	lsl	x14, x12, #3
	add	x13, x13, x14
	add	x11, x11, x14
	add	x10, x10, x14
	add	x9, x9, x14
	sub	x8, x8, x12
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9], #8
	str	xzr, [x10], #8
	str	xzr, [x11], #8
	str	xzr, [x13], #8
	subs	x8, x8, #1
	b.ne	LBB0_13
LBB0_14:
	str	xzr, [x19]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_CAL_RUNNING,4,2                ; @CAL_RUNNING
	.comm	_AR5416_MAX_CHAINS,4,2          ; @AR5416_MAX_CHAINS
.subsections_via_symbols
