	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9002_hw_adc_dccal_collect
_ar9002_hw_adc_dccal_collect:           ## @ar9002_hw_adc_dccal_collect
	.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	_AR5416_MAX_CHAINS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AR_PHY_CAL_MEAS_0
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REG_READ
	movq	24(%r14), %rcx
	addl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_AR_PHY_CAL_MEAS_1
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REG_READ
	movq	16(%r14), %rcx
	addl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_AR_PHY_CAL_MEAS_2
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REG_READ
	movq	8(%r14), %rcx
	addl	%eax, (%rcx,%rbx,4)
	movl	%ebx, %edi
	callq	_AR_PHY_CAL_MEAS_3
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REG_READ
	movq	(%r14), %rcx
	addl	%eax, (%rcx,%rbx,4)
	movq	%r14, %rdi
	callq	_ath9k_hw_common
	movq	_CALIBRATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	32(%r14), %ecx
	movq	24(%r14), %rdx
	movl	(%rdx,%rbx,4), %r9d
	movq	16(%r14), %rdx
	movl	(%rdx,%rbx,4), %r10d
	movq	(%r14), %rdx
	movq	8(%r14), %rdi
	movl	(%rdi,%rbx,4), %r11d
	movl	(%rdx,%rbx,4), %r13d
	subq	$8, %rsp
	movl	%eax, %edi
	movq	%r15, %rdx
	movl	%ebx, %r8d
	pushq	%r13
	pushq	%r11
	pushq	%r10
	callq	_ath_dbg
	addq	$32, %rsp
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5416_MAX_CHAINS,4,2          ## @AR5416_MAX_CHAINS
	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: Chn %d oddi=0x%08x; eveni=0x%08x; oddq=0x%08x; evenq=0x%08x;\n"

	.no_dead_strip	_ar9002_hw_adc_dccal_collect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9002_hw_adc_dccal_collect
_ar9002_hw_adc_dccal_collect:           ; @ar9002_hw_adc_dccal_collect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x22, _AR5416_MAX_CHAINS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR5416_MAX_CHAINS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh2:
	adrp	x23, _CALIBRATE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CALIBRATE@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AR_PHY_CAL_MEAS_0
	mov	x1, x0
	mov	x0, x19
	bl	_REG_READ
	ldr	x8, [x19, #24]
	lsl	x24, x20, #2
	ldr	w9, [x8, x24]
	add	w9, w9, w0
	str	w9, [x8, x24]
	mov	x0, x20
	bl	_AR_PHY_CAL_MEAS_1
	mov	x1, x0
	mov	x0, x19
	bl	_REG_READ
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x24]
	add	w9, w9, w0
	str	w9, [x8, x24]
	mov	x0, x20
	bl	_AR_PHY_CAL_MEAS_2
	mov	x1, x0
	mov	x0, x19
	bl	_REG_READ
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x24]
	add	w9, w9, w0
	str	w9, [x8, x24]
	mov	x0, x20
	bl	_AR_PHY_CAL_MEAS_3
	mov	x1, x0
	mov	x0, x19
	bl	_REG_READ
	ldr	x8, [x19]
	ldr	w9, [x8, x24]
	add	w9, w9, w0
	str	w9, [x8, x24]
	mov	x0, x19
	bl	_ath9k_hw_common
	ldr	w1, [x23]
	ldr	w3, [x19, #32]
	ldp	x9, x8, [x19, #16]
	ldr	w5, [x8, x24]
	ldr	w6, [x9, x24]
	ldp	x9, x8, [x19]
	ldr	w7, [x8, x24]
	ldr	w8, [x9, x24]
	str	w8, [sp]
	mov	x2, x21
	mov	x4, x20
	bl	_ath_dbg
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5416_MAX_CHAINS,4,2          ; @AR5416_MAX_CHAINS
	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: Chn %d oddi=0x%08x; eveni=0x%08x; oddq=0x%08x; evenq=0x%08x;\n"

	.no_dead_strip	_ar9002_hw_adc_dccal_collect
.subsections_via_symbols
