	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_dac_cal_iq_sample
_rtw8822c_dac_cal_iq_sample:            ## @rtw8822c_dac_cal_iq_sample
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_DACK_SN_8822C@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$11708, %esi                    ## imm = 0x2DBC
	movl	$4194303, %edx                  ## imm = 0x3FFFFF
	callq	_rtw_read32_mask
	movl	%eax, %ecx
	shrl	$12, %ecx
	andl	$1023, %ecx                     ## imm = 0x3FF
	movslq	%r12d, %r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%r14,4)
	andl	$1023, %eax                     ## imm = 0x3FF
	movl	%eax, (%r15,%r14,4)
	movl	(%rdx,%r14,4), %esi
	movq	%r13, %rdi
	callq	_rtw8822c_dac_iq_check
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%r14,4), %esi
	movq	%r13, %rdi
	callq	_rtw8822c_dac_iq_check
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	movl	%r14d, %r12d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DACK_SN_8822C@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	cmpl	$9999, %ebx                     ## imm = 0x270F
	movl	%eax, %ebx
	jb	LBB0_2
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DACK_SN_8822C,4,2              ## @DACK_SN_8822C
	.no_dead_strip	_rtw8822c_dac_cal_iq_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_dac_cal_iq_sample
_rtw8822c_dac_cal_iq_sample:            ; @rtw8822c_dac_cal_iq_sample
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x22, _DACK_SN_8822C@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DACK_SN_8822C@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w24, #0
	mov	w23, #0
	mov	w25, #9999
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	cmp	w23, w8
	ccmp	w24, w25, #2, lt
	add	w24, w24, #1
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #11708
	mov	w2, #4194303
	bl	_rtw_read32_mask
	ubfx	w8, w0, #12, #10
	sbfiz	x9, x23, #2, #32
	str	w8, [x20, x9]
	and	w8, w0, #0x3ff
	str	w8, [x19, x9]
	ldr	w1, [x20, x9]
	mov	x0, x21
	bl	_rtw8822c_dac_iq_check
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w23
	ldr	w1, [x19, x8, lsl #2]
	mov	x0, x21
	bl	_rtw8822c_dac_iq_check
	cmp	x0, #0
	cinc	w23, w23, ne
	b	LBB0_2
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DACK_SN_8822C,4,2              ; @DACK_SN_8822C
	.no_dead_strip	_rtw8822c_dac_cal_iq_sample
.subsections_via_symbols
