	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_get_pll_sqsum_dvc       ## -- Begin function ar9003_get_pll_sqsum_dvc
	.p2align	4, 0x90
_ar9003_get_pll_sqsum_dvc:              ## @ar9003_get_pll_sqsum_dvc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PLL3@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PLL3_DO_MEAS_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_REG_CLR_BIT
	movl	$100, %edi
	callq	_udelay
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_REG_SET_BIT
	movq	_PLL4@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movq	_PLL4_MEAS_DONE@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	jne	LBB0_5
## %bb.1:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_udelay
	xorl	%edi, %edi
	cmpl	$100, %r14d
	setae	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	testl	%eax, (%r13)
	je	LBB0_3
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath_err
LBB0_5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movq	_SQSUM_DVC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sarl	$3, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL3,4,2                       ## @PLL3
	.comm	_PLL3_DO_MEAS_MASK,4,2          ## @PLL3_DO_MEAS_MASK
	.comm	_PLL4,4,2                       ## @PLL4
	.comm	_PLL4_MEAS_DONE,4,2             ## @PLL4_MEAS_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL4 measurement not done\n"

	.comm	_SQSUM_DVC_MASK,4,2             ## @SQSUM_DVC_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_get_pll_sqsum_dvc       ; -- Begin function ar9003_get_pll_sqsum_dvc
	.p2align	2
_ar9003_get_pll_sqsum_dvc:              ; @ar9003_get_pll_sqsum_dvc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_ath9k_hw_common
	mov	x20, x0
Lloh0:
	adrp	x21, _PLL3@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PLL3@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _PLL3_DO_MEAS_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PLL3_DO_MEAS_MASK@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_REG_CLR_BIT
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_REG_SET_BIT
Lloh4:
	adrp	x22, _PLL4@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PLL4@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
Lloh6:
	adrp	x23, _PLL4_MEAS_DONE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PLL4_MEAS_DONE@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.1:
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_udelay
	cmp	w24, #99
	cset	w0, hi
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_err
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_READ
Lloh10:
	adrp	x8, _SQSUM_DVC_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQSUM_DVC_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
	asr	w0, w8, #3
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL3,4,2                       ; @PLL3
	.comm	_PLL3_DO_MEAS_MASK,4,2          ; @PLL3_DO_MEAS_MASK
	.comm	_PLL4,4,2                       ; @PLL4
	.comm	_PLL4_MEAS_DONE,4,2             ; @PLL4_MEAS_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL4 measurement not done\n"

	.comm	_SQSUM_DVC_MASK,4,2             ; @SQSUM_DVC_MASK
.subsections_via_symbols
