	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rtl92d_phy_iq_calibrate
LCPI0_0:
	.long	256                             ## 0x100
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rtl92d_phy_iq_calibrate
	.p2align	4, 0x90
_rtl92d_phy_iq_calibrate:               ## @rtl92d_phy_iq_calibrate
	.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	$328, %rsp                      ## imm = 0x148
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	$0, -336(%rbp)
	movq	_FINIT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_INIT_IQK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movslq	56(%rax), %r8
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_RTPRINT
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -304(%rbp)
	movdqa	%xmm0, -288(%rbp)
	movdqa	%xmm0, -272(%rbp)
	movdqa	%xmm0, -256(%rbp)
	movdqa	%xmm0, -240(%rbp)
	movdqa	%xmm0, -224(%rbp)
	movdqa	%xmm0, -208(%rbp)
	movdqa	%xmm0, -192(%rbp)
	movdqa	%xmm0, -176(%rbp)
	movdqa	%xmm0, -160(%rbp)
	movdqa	%xmm0, -144(%rbp)
	movdqa	%xmm0, -128(%rbp)
	movdqa	%xmm0, -112(%rbp)
	movdqa	%xmm0, -96(%rbp)
	movdqa	%xmm0, -80(%rbp)
	movdqa	%xmm0, -64(%rbp)
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	(%rbx), %r8
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RTPRINT
	leaq	-336(%rbp), %rsi
	movq	%r15, %rdi
	callq	_rtl92d_acquire_cckandrw_pagea_ctl
	movq	(%rbx), %rax
	movq	_BAND_ON_5G@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-304(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	__rtl92d_phy_iq_calibrate_5g_normal
	jmp	LBB0_7
LBB0_2:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movl	8(%rbx), %edi
	callq	_IS_92D_SINGLEPHY
	leaq	-304(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, %ecx
	jmp	LBB0_6
LBB0_5:
	xorl	%ecx, %ecx
LBB0_6:
	callq	__rtl92d_phy_iq_calibrate
LBB0_7:
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-304(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	__rtl92d_phy_iq_calibrate_5g_normal
	jmp	LBB0_14
LBB0_9:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.10:
	movl	8(%rbx), %edi
	callq	_IS_92D_SINGLEPHY
	leaq	-304(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	$1, %ecx
	jmp	LBB0_13
LBB0_12:
	xorl	%ecx, %ecx
LBB0_13:
	callq	__rtl92d_phy_iq_calibrate
LBB0_14:
	leaq	-304(%rbp), %rsi
	movl	$0, -308(%rbp)                  ## 4-byte Folded Spill
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	__rtl92d_phy_simularity_compare
	testl	%eax, %eax
	jne	LBB0_25
## %bb.15:
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_17
## %bb.16:
	leaq	-304(%rbp), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	__rtl92d_phy_iq_calibrate_5g_normal
	jmp	LBB0_22
LBB0_17:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.18:
	movl	8(%rbx), %edi
	callq	_IS_92D_SINGLEPHY
	leaq	-304(%rbp), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	$1, %ecx
	jmp	LBB0_21
LBB0_20:
	xorl	%ecx, %ecx
LBB0_21:
	callq	__rtl92d_phy_iq_calibrate
LBB0_22:
	leaq	-304(%rbp), %rsi
	movl	$0, -308(%rbp)                  ## 4-byte Folded Spill
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	__rtl92d_phy_simularity_compare
	testl	%eax, %eax
	jne	LBB0_25
## %bb.23:
	leaq	-304(%rbp), %rsi
	movl	$1, -308(%rbp)                  ## 4-byte Folded Spill
	movq	%r15, %rdi
	movl	$1, %edx
	movl	$2, %ecx
	callq	__rtl92d_phy_simularity_compare
	testl	%eax, %eax
	jne	LBB0_25
## %bb.24:
	movdqu	-88(%rbp), %xmm0
	movdqu	-72(%rbp), %xmm1
	paddq	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rax
	addq	-96(%rbp), %rax
	addq	-104(%rbp), %rax
	addq	-112(%rbp), %rax
	addq	-56(%rbp), %rax
	movl	$255, %eax
	movl	$3, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -308(%rbp)                ## 4-byte Spill
LBB0_25:
	leaq	-336(%rbp), %rsi
	movq	%r15, -360(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_rtl92d_release_cckandrw_pagea_ctl
	movq	-304(%rbp), %r8
	movq	-296(%rbp), %r9
	movaps	-288(%rbp), %xmm0
	movaps	-272(%rbp), %xmm1
	movaps	-256(%rbp), %xmm2
	movl	(%r12), %esi
	movl	(%r13), %edx
	subq	$48, %rsp
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %r14
	movl	$0, -320(%rbp)                  ## 4-byte Folded Spill
	movq	%r13, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_RTPRINT
	addq	$48, %rsp
	movq	-240(%rbp), %r8
	movq	-232(%rbp), %r9
	movaps	-224(%rbp), %xmm0
	movaps	-208(%rbp), %xmm1
	movaps	-192(%rbp), %xmm2
	movl	(%r12), %esi
	movl	(%rbx), %edx
	subq	$48, %rsp
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_RTPRINT
	addq	$48, %rsp
	movq	-176(%rbp), %r8
	movq	-168(%rbp), %r9
	movaps	-160(%rbp), %xmm0
	movaps	-144(%rbp), %xmm1
	movaps	-128(%rbp), %xmm2
	movl	(%r12), %esi
	movl	(%rbx), %edx
	subq	$48, %rsp
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_RTPRINT
	addq	$48, %rsp
	movq	-112(%rbp), %r15
	movq	-104(%rbp), %r9
	movq	-96(%rbp), %r14
	movq	%r12, %rax
	movq	-80(%rbp), %r12
	movq	-64(%rbp), %rbx
	movl	(%rax), %esi
	movq	_INIT_IQK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %r8
	xorl	%eax, %eax
	pushq	-56(%rbp)
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	pushq	%rbx
	pushq	-72(%rbp)
	pushq	%r12
	pushq	-88(%rbp)
	pushq	%r14
	callq	_RTPRINT
	addq	$48, %rsp
	movl	-308(%rbp), %eax                ## 4-byte Reload
	cmpl	$255, %eax
	jne	LBB0_27
## %bb.26:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [256,0,0,0]
	movups	%xmm0, 32(%r13)
	movups	%xmm0, 16(%r13)
	jmp	LBB0_28
LBB0_27:
	movl	%eax, %r8d
	movq	%r8, %rax
	shlq	$6, %rax
	movq	-304(%rbp,%rax), %r15
	movq	%r15, 16(%r13)
	movq	-296(%rbp,%rax), %rcx
	movq	%rcx, -328(%rbp)                ## 8-byte Spill
	movq	%rcx, 24(%r13)
	movq	-288(%rbp,%rax), %r14
	movq	-280(%rbp,%rax), %rcx
	movq	%rcx, -320(%rbp)                ## 8-byte Spill
	movq	-272(%rbp,%rax), %r12
	movq	%r12, 32(%r13)
	movq	-264(%rbp,%rax), %rcx
	movq	%rcx, -352(%rbp)                ## 8-byte Spill
	movq	%rcx, 40(%r13)
	movq	-256(%rbp,%rax), %rbx
	movq	-248(%rbp,%rax), %rax
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	movq	_FINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INIT_IQK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_RTPRINT
	movq	_FINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INIT_IQK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %r8
	movq	-328(%rbp), %r9                 ## 8-byte Reload
	xorl	%eax, %eax
	pushq	-344(%rbp)                      ## 8-byte Folded Reload
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	pushq	%rbx
	pushq	-352(%rbp)                      ## 8-byte Folded Reload
	pushq	%r12
	pushq	-320(%rbp)                      ## 8-byte Folded Reload
	pushq	%r14
	callq	_RTPRINT
	addq	$48, %rsp
	movl	$1, -320(%rbp)                  ## 4-byte Folded Spill
LBB0_28:
	testq	%r15, %r15
	movq	-360(%rbp), %r15                ## 8-byte Reload
	movl	-308(%rbp), %ebx                ## 4-byte Reload
	je	LBB0_30
## %bb.29:
	xorl	%r8d, %r8d
	testq	%r14, %r14
	sete	%r8b
	leaq	-304(%rbp), %rdx
	movq	%r15, %rdi
	movl	-320(%rbp), %esi                ## 4-byte Reload
	movl	%ebx, %ecx
	callq	__rtl92d_phy_patha_fill_iqk_matrix
LBB0_30:
	movl	8(%r13), %edi
	callq	_IS_92D_SINGLEPHY
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:
	testq	%r12, %r12
	je	LBB0_33
## %bb.32:
	xorl	%r8d, %r8d
	cmpq	$0, -328(%rbp)                  ## 8-byte Folded Reload
	sete	%r8b
	leaq	-304(%rbp), %rdx
	movq	%r15, %rdi
	movl	-320(%rbp), %esi                ## 4-byte Reload
	movl	%ebx, %ecx
	callq	__rtl92d_phy_pathb_fill_iqk_matrix
LBB0_33:
	cmpl	$255, %ebx
	je	LBB0_55
## %bb.34:
	movl	56(%r13), %edi
	callq	_rtl92d_get_rightchnlplace_for_iqk
	movq	_IQK_MATRIX_REG_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	testl	%r15d, %r15d
	jle	LBB0_37
## %bb.35:
	movl	-308(%rbp), %r8d                ## 4-byte Reload
	movq	48(%r13), %r9
	movslq	%eax, %r11
	movq	%r11, %rcx
	shlq	$4, %rcx
	movq	(%r9,%rcx), %rcx
	movq	(%rcx), %rdi
	cmpl	$4, %r15d
	jb	LBB0_36
## %bb.38:
	movq	%r8, %r10
	shlq	$6, %r10
	leaq	-304(%rbp), %rbx
	movq	%rdi, %rdx
	subq	%r10, %rdx
	subq	%rbx, %rdx
	cmpq	$32, %rdx
	jae	LBB0_40
LBB0_36:
	xorl	%esi, %esi
LBB0_48:
	movq	%rsi, %r10
	notq	%r10
	addq	%r15, %r10
	movq	%r15, %rdx
	andq	$3, %rdx
	je	LBB0_51
## %bb.49:
	movq	%r8, %rbx
	shlq	$6, %rbx
	addq	%rbp, %rbx
	addq	$-304, %rbx                     ## imm = 0xFED0
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rsi,8), %rcx
	movq	%rcx, (%rdi,%rsi,8)
	incq	%rsi
	decq	%rdx
	jne	LBB0_50
LBB0_51:
	cmpq	$3, %r10
	jb	LBB0_54
## %bb.52:
	shlq	$6, %r8
	leaq	(%r8,%rbp), %rcx
	addq	$-280, %rcx                     ## imm = 0xFEE8
	.p2align	4, 0x90
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movq	-24(%rcx,%rsi,8), %rdx
	movq	%rdx, (%rdi,%rsi,8)
	movq	-16(%rcx,%rsi,8), %rdx
	movq	%rdx, 8(%rdi,%rsi,8)
	movq	-8(%rcx,%rsi,8), %rdx
	movq	%rdx, 16(%rdi,%rsi,8)
	movq	(%rcx,%rsi,8), %rdx
	movq	%rdx, 24(%rdi,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %r15
	jne	LBB0_53
	jmp	LBB0_54
LBB0_37:
	movq	48(%r13), %r9
	movslq	%eax, %r11
LBB0_54:
	shlq	$4, %r11
	movl	$1, 8(%r9,%r11)
	movq	_COMP_SCAN@GOTPCREL(%rip), %rcx
	movq	_COMP_MLME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r13, %rdi
	movl	%eax, %r8d
	callq	_RT_TRACE
LBB0_55:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_57
## %bb.56:
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	movl	%r15d, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rdx
	movq	%rdx, %rcx
	shrq	$2, %rcx
	incq	%rcx
	movl	%ecx, %r14d
	andl	$3, %r14d
	cmpq	$12, %rdx
	jae	LBB0_42
## %bb.41:
	xorl	%edx, %edx
	jmp	LBB0_44
LBB0_42:
	andq	$-4, %rcx
	addq	%r10, %rbx
	addq	$112, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movaps	-112(%rbx,%rdx,8), %xmm0
	movaps	-96(%rbx,%rdx,8), %xmm1
	movups	%xmm0, (%rdi,%rdx,8)
	movups	%xmm1, 16(%rdi,%rdx,8)
	movaps	-80(%rbx,%rdx,8), %xmm0
	movaps	-64(%rbx,%rdx,8), %xmm1
	movups	%xmm0, 32(%rdi,%rdx,8)
	movups	%xmm1, 48(%rdi,%rdx,8)
	movaps	-48(%rbx,%rdx,8), %xmm0
	movaps	-32(%rbx,%rdx,8), %xmm1
	movups	%xmm0, 64(%rdi,%rdx,8)
	movups	%xmm1, 80(%rdi,%rdx,8)
	movaps	-16(%rbx,%rdx,8), %xmm0
	movaps	(%rbx,%rdx,8), %xmm1
	movups	%xmm0, 96(%rdi,%rdx,8)
	movups	%xmm1, 112(%rdi,%rdx,8)
	addq	$16, %rdx
	addq	$-4, %rcx
	jne	LBB0_43
LBB0_44:
	testq	%r14, %r14
	je	LBB0_47
## %bb.45:
	leaq	(%rdi,%rdx,8), %rcx
	addq	$16, %rcx
	leaq	(%r10,%rbp), %rbx
	addq	$-304, %rbx                     ## imm = 0xFED0
	leaq	(%rbx,%rdx,8), %rdx
	addq	$16, %rdx
	shlq	$5, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movaps	-16(%rdx,%rbx), %xmm0
	movaps	(%rdx,%rbx), %xmm1
	movups	%xmm0, -16(%rcx,%rbx)
	movups	%xmm1, (%rcx,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_46
LBB0_47:
	cmpq	%r15, %rsi
	je	LBB0_54
	jmp	LBB0_48
LBB0_57:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FINIT,4,2                      ## @FINIT
	.comm	_INIT_IQK,4,2                   ## @INIT_IQK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IQK:Start!!!channel %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"IQK !!!currentband %d\n"

	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
L_.str.2:                               ## @.str.2
	.asciz	"IQK: rege94=%lx rege9c=%lx regea4=%lx regeac=%lx regeb4=%lx regebc=%lx regec4=%lx regecc=%lx\n"

L_.str.3:                               ## @.str.3
	.asciz	"IQK: final_candidate is %x\n"

	.comm	_IQK_MATRIX_REG_NUM,4,2         ## @IQK_MATRIX_REG_NUM
	.comm	_COMP_SCAN,4,2                  ## @COMP_SCAN
	.comm	_COMP_MLME,4,2                  ## @COMP_MLME
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.4:                               ## @.str.4
	.asciz	"IQK OK indexforchannel %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function rtl92d_phy_iq_calibrate
lCPI0_0:
	.quad	256                             ; 0x100
	.quad	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rtl92d_phy_iq_calibrate
	.p2align	2
_rtl92d_phy_iq_calibrate:               ; @rtl92d_phy_iq_calibrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x28, x27, [sp, #368]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #384]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #400]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	add	x22, sp, #80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
	bl	_rtl_priv
	mov	x19, x0
Lloh3:
	adrp	x24, _FINIT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FINIT@GOTPAGEOFF]
	str	xzr, [sp, #72]
	ldr	w1, [x24]
Lloh5:
	adrp	x21, _INIT_IQK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _INIT_IQK@GOTPAGEOFF]
	ldr	w2, [x21]
	ldrsw	x4, [x0, #56]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RTPRINT
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [x22, #128]
	stp	q0, q0, [x22, #160]
	stp	q0, q0, [x22, #192]
	stp	q0, q0, [x22, #224]
	ldr	w1, [x24]
	ldr	w2, [x21]
	ldr	x4, [x19]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RTPRINT
	add	x1, sp, #72
	mov	x0, x20
	bl	_rtl92d_acquire_cckandrw_pagea_ctl
	ldr	x8, [x19]
Lloh11:
	adrp	x26, _BAND_ON_5G@GOTPAGE
Lloh12:
	ldr	x26, [x26, _BAND_ON_5G@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh13:
	adrp	x23, _BAND_ON_2_4G@GOTPAGE
Lloh14:
	ldr	x23, [x23, _BAND_ON_2_4G@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x1, sp, #80
	mov	x0, x20
	mov	w2, #0
	bl	__rtl92d_phy_iq_calibrate_5g_normal
	b	LBB0_7
LBB0_2:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_IS_92D_SINGLEPHY
	add	x1, sp, #80
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
LBB0_6:
	bl	__rtl92d_phy_iq_calibrate
LBB0_7:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	add	x1, sp, #80
	mov	x0, x20
	mov	w2, #1
	bl	__rtl92d_phy_iq_calibrate_5g_normal
	b	LBB0_14
LBB0_9:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	ldr	w0, [x19, #8]
	bl	_IS_92D_SINGLEPHY
	add	x1, sp, #80
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	w2, #1
	mov	w3, #1
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
LBB0_13:
	bl	__rtl92d_phy_iq_calibrate
LBB0_14:
	add	x1, sp, #80
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	bl	__rtl92d_phy_simularity_compare
	mov	w25, #0
	cbnz	w0, LBB0_25
; %bb.15:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	add	x1, sp, #80
	mov	x0, x20
	mov	w2, #2
	bl	__rtl92d_phy_iq_calibrate_5g_normal
	b	LBB0_22
LBB0_17:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.18:
	ldr	w0, [x19, #8]
	bl	_IS_92D_SINGLEPHY
	add	x1, sp, #80
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x20
	mov	w2, #2
	mov	w3, #1
	b	LBB0_21
LBB0_20:
	mov	x0, x20
	mov	w2, #2
	mov	w3, #0
LBB0_21:
	bl	__rtl92d_phy_iq_calibrate
LBB0_22:
	add	x1, sp, #80
	mov	x0, x20
	mov	w2, #0
	mov	w3, #2
	bl	__rtl92d_phy_simularity_compare
	mov	w25, #0
	cbnz	w0, LBB0_25
; %bb.23:
	mov	w25, #1
	add	x1, sp, #80
	mov	x0, x20
	mov	w2, #1
	mov	w3, #2
	bl	__rtl92d_phy_simularity_compare
	cbnz	w0, LBB0_25
; %bb.24:
	ldp	x8, x9, [sp, #272]
	ldp	x10, x11, [sp, #288]
	add	x8, x9, x8
	add	x8, x10, x8
	ldp	x9, x10, [sp, #304]
	add	x8, x11, x8
	add	x8, x9, x8
	ldp	x9, x11, [sp, #320]
	add	x8, x10, x8
	add	x8, x9, x8
	cmn	x11, x8
	mov	w8, #3
	mov	w9, #255
	csel	w25, w9, w8, eq
LBB0_25:
	add	x1, sp, #72
	mov	x0, x20
	bl	_rtl92d_release_cckandrw_pagea_ctl
	ldr	x4, [sp, #80]
	ldur	q0, [sp, #88]
	ldur	q1, [sp, #104]
	ldur	q2, [sp, #120]
	ldr	x8, [sp, #136]
	ldr	w1, [x24]
	ldr	w2, [x21]
	str	x8, [sp, #48]
	stp	q1, q2, [sp, #16]
Lloh15:
	adrp	x23, l_.str.2@PAGE
Lloh16:
	add	x23, x23, l_.str.2@PAGEOFF
	str	q0, [sp]
	mov	x0, x19
	mov	x3, x23
	bl	_RTPRINT
	ldr	x4, [sp, #144]
	ldur	q0, [sp, #152]
	ldur	q1, [sp, #168]
	ldur	q2, [sp, #184]
	ldr	x8, [sp, #200]
	ldr	w1, [x24]
	ldr	w2, [x21]
	str	x8, [sp, #48]
	stp	q1, q2, [sp, #16]
	str	q0, [sp]
	mov	x0, x19
	mov	x3, x23
	bl	_RTPRINT
	ldur	q0, [x22, #136]
	ldur	q1, [x22, #152]
	ldur	q2, [x22, #168]
	ldr	x4, [sp, #208]
	ldr	x8, [sp, #264]
	ldr	w1, [x24]
	ldr	w2, [x21]
	str	x8, [sp, #48]
	stp	q1, q2, [sp, #16]
	str	q0, [sp]
	mov	x0, x19
	mov	x3, x23
	bl	_RTPRINT
	ldp	x22, x8, [sp, #272]
	ldp	x28, x9, [sp, #288]
	ldp	x26, x10, [sp, #304]
	ldp	x27, x11, [sp, #320]
	ldr	w1, [x24]
	ldr	w2, [x21]
	stp	x27, x11, [sp, #40]
	stp	x26, x10, [sp, #24]
	stp	x28, x9, [sp, #8]
	str	x8, [sp]
	mov	x0, x19
	mov	x3, x23
	mov	x4, x22
	bl	_RTPRINT
	cmp	w25, #255
	b.ne	LBB0_27
; %bb.26:
	mov	w23, #0
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stp	q0, q0, [x19, #16]
	cbnz	x22, LBB0_28
	b	LBB0_29
LBB0_27:
	mov	w4, w25
	add	x8, sp, #80
	add	x8, x8, x4, lsl #6
	ldr	x22, [x8]
	str	x22, [x19, #16]
	ldr	x23, [x8, #8]
	str	x23, [x19, #24]
	ldp	x28, x9, [x8, #16]
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x26, [x8, #32]
	str	x26, [x19, #32]
	str	w25, [sp, #68]                  ; 4-byte Folded Spill
	ldr	x25, [x8, #40]
	str	x25, [x19, #40]
	mov	x9, x21
	mov	x21, x24
	mov	x24, x20
	ldp	x27, x20, [x8, #48]
	ldr	w1, [x21]
	ldr	w2, [x9]
Lloh19:
	adrp	x3, l_.str.3@PAGE
Lloh20:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RTPRINT
	ldr	w1, [x21]
Lloh21:
	adrp	x8, _INIT_IQK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INIT_IQK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	stp	x27, x20, [sp, #40]
	mov	x20, x24
	stp	x26, x25, [sp, #24]
	ldr	w25, [sp, #68]                  ; 4-byte Folded Reload
Lloh24:
	adrp	x3, l_.str.2@PAGE
Lloh25:
	add	x3, x3, l_.str.2@PAGEOFF
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	stp	x28, x8, [sp, #8]
	str	x23, [sp]
	mov	x0, x19
	mov	x4, x22
	bl	_RTPRINT
	mov	w23, #1
	cbz	x22, LBB0_29
LBB0_28:
	cmp	x28, #0
	cset	w4, eq
	add	x2, sp, #80
	mov	x0, x20
	mov	x1, x23
	mov	x3, x25
	bl	__rtl92d_phy_patha_fill_iqk_matrix
LBB0_29:
	ldr	w0, [x19, #8]
	bl	_IS_92D_SINGLEPHY
	cbz	x0, LBB0_32
; %bb.30:
	cbz	x26, LBB0_32
; %bb.31:
	cmp	x27, #0
	cset	w4, eq
	add	x2, sp, #80
	mov	x0, x20
	mov	x1, x23
	mov	x3, x25
	bl	__rtl92d_phy_pathb_fill_iqk_matrix
LBB0_32:
	cmp	w25, #255
	b.eq	LBB0_41
; %bb.33:
	ldr	w0, [x19, #56]
	bl	_rtl92d_get_rightchnlplace_for_iqk
	mov	x4, x0
Lloh26:
	adrp	x8, _IQK_MATRIX_REG_NUM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IQK_MATRIX_REG_NUM@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x8]
	cmp	w10, #0
	b.le	LBB0_39
; %bb.34:
	mov	w11, w25
	ldr	x8, [x19, #48]
	sxtw	x9, w4
	sbfiz	x12, x4, #4, #32
	ldr	x12, [x8, x12]
	ldr	x12, [x12]
	cmp	w10, #8
	b.lo	LBB0_36
; %bb.35:
	add	x13, sp, #80
	add	x15, x13, x11, lsl #6
	sub	x13, x12, x15
	cmp	x13, #64
	b.hs	LBB0_43
LBB0_36:
	mov	x13, #0
LBB0_37:
	lsl	x14, x13, #3
	add	x12, x12, x14
	add	x15, sp, #80
	add	x11, x15, x11, lsl #6
	add	x11, x11, x14
	sub	x10, x10, x13
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11], #8
	str	x13, [x12], #8
	subs	x10, x10, #1
	b.ne	LBB0_38
	b	LBB0_40
LBB0_39:
	ldr	x8, [x19, #48]
	mov	x9, x4
	sxtw	x9, w9
LBB0_40:
	add	x8, x8, x9, lsl #4
	mov	w9, #1
	str	w9, [x8, #8]
Lloh29:
	adrp	x8, _COMP_SCAN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _COMP_SCAN@GOTPAGEOFF]
Lloh31:
	adrp	x9, _COMP_MLME@GOTPAGE
Lloh32:
	ldr	x9, [x9, _COMP_MLME@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh35:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x3, l_.str.4@PAGE
Lloh39:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_RT_TRACE
LBB0_41:
	ldur	x8, [x29, #-104]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.42:
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #400]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #384]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #368]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
LBB0_43:
	and	x13, x10, #0xfffffff8
	add	x14, x12, #32
	add	x15, x15, #32
	mov	x16, x13
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x15, #-32]
	ldp	q2, q3, [x15], #64
	stp	q0, q1, [x14, #-32]
	stp	q2, q3, [x14], #64
	subs	x16, x16, #8
	b.ne	LBB0_44
; %bb.45:
	cmp	x13, x10
	b.eq	LBB0_40
	b	LBB0_37
LBB0_46:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_FINIT,4,2                      ; @FINIT
	.comm	_INIT_IQK,4,2                   ; @INIT_IQK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IQK:Start!!!channel %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"IQK !!!currentband %d\n"

	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
l_.str.2:                               ; @.str.2
	.asciz	"IQK: rege94=%lx rege9c=%lx regea4=%lx regeac=%lx regeb4=%lx regebc=%lx regec4=%lx regecc=%lx\n"

l_.str.3:                               ; @.str.3
	.asciz	"IQK: final_candidate is %x\n"

	.comm	_IQK_MATRIX_REG_NUM,4,2         ; @IQK_MATRIX_REG_NUM
	.comm	_COMP_SCAN,4,2                  ; @COMP_SCAN
	.comm	_COMP_MLME,4,2                  ; @COMP_MLME
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.4:                               ; @.str.4
	.asciz	"IQK OK indexforchannel %d\n"

.subsections_via_symbols
