	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_do_iqk
_rtw8822c_do_iqk:                       ## @rtw8822c_do_iqk
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$1, -32(%rbp)
	leaq	-32(%rbp), %rsi
	callq	_rtw_fw_do_iqk
	xorl	%ebx, %ebx
	movq	_REG_RPT_CIP@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_rtw_read8
	cmpl	$170, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$20, %edi
	callq	_msleep
	incl	%ebx
	cmpl	$300, %ebx                      ## imm = 0x12C
	jne	LBB0_1
## %bb.3:
	movl	$300, %ebx                      ## imm = 0x12C
LBB0_4:
	movq	_REG_IQKSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rtw_write8
	movq	_RTW_DBG_RFK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_rtw_dbg
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RPT_CIP,4,2                ## @REG_RPT_CIP
	.comm	_REG_IQKSTAT,4,2                ## @REG_IQKSTAT
	.comm	_RTW_DBG_RFK,4,2                ## @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iqk counter=%d\n"

	.no_dead_strip	_rtw8822c_do_iqk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_do_iqk
_rtw8822c_do_iqk:                       ; @rtw8822c_do_iqk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w8, #1
	str	x8, [sp, #8]
	add	x1, sp, #8
	bl	_rtw_fw_do_iqk
	mov	w20, #0
Lloh0:
	adrp	x21, _REG_RPT_CIP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_RPT_CIP@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtw_read8
	cmp	w0, #170
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #20
	bl	_msleep
	add	w20, w20, #1
	cmp	w20, #300
	b.ne	LBB0_1
LBB0_3:
Lloh2:
	adrp	x8, _REG_IQKSTAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_IQKSTAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtw_write8
Lloh5:
	adrp	x8, _RTW_DBG_RFK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTW_DBG_RFK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_rtw_dbg
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RPT_CIP,4,2                ; @REG_RPT_CIP
	.comm	_REG_IQKSTAT,4,2                ; @REG_IQKSTAT
	.comm	_RTW_DBG_RFK,4,2                ; @RTW_DBG_RFK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iqk counter=%d\n"

	.no_dead_strip	_rtw8822c_do_iqk
.subsections_via_symbols
