	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rtl8723be_phy_iq_calibrate
LCPI0_0:
	.long	256                             ## 0x100
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rtl8723be_phy_iq_calibrate
	.p2align	4, 0x90
_rtl8723be_phy_iq_calibrate:            ## @rtl8723be_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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_rtl_priv
	movq	%rax, %r12
	movq	_ROFDM0_XARXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -352(%rbp)
	movq	_ROFDM0_XBRXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -348(%rbp)
	movq	_ROFDM0_ECCATHRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -344(%rbp)
	movq	_ROFDM0_AGCRSSITABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -340(%rbp)
	movq	_ROFDM0_XATXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -336(%rbp)
	movq	_ROFDM0_XBTXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -332(%rbp)
	movq	_ROFDM0_XCTXAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -328(%rbp)
	movq	_ROFDM0_XDTXAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -324(%rbp)
	movq	_ROFDM0_RXIQEXTANTA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -320(%rbp)
	cmpl	$0, 8(%r12)
	jne	LBB0_37
## %bb.1:
	movq	%r12, %rdi
	callq	_spin_lock
	movl	$1, 8(%r12)
	movq	%r12, %rdi
	callq	_spin_unlock
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movl	48(%r12), %edx
	leaq	-352(%rbp), %rsi
	movq	%r14, %rdi
	movl	$9, %ecx
	callq	_rtl8723_phy_reload_adda_registers
	jmp	LBB0_36
LBB0_3:
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	callq	_rtl_get_bbreg
	movl	%eax, -360(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -304(%rbp)
	movaps	%xmm0, -288(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	leaq	-304(%rbp), %rbx
	xorl	%r15d, %r15d
	movl	$1, -356(%rbp)                  ## 4-byte Folded Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	__rtl8723be_phy_iq_calibrate
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	__rtl8723be_phy_iq_calibrate
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	__rtl8723be_phy_simularity_compare
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	leaq	-304(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	movl	$1, %ecx
	callq	__rtl8723be_phy_iq_calibrate
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	__rtl8723be_phy_simularity_compare
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	leaq	-304(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$2, %ecx
	callq	__rtl8723be_phy_simularity_compare
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	-112(%rbp), %rax
	movq	-96(%rbp), %rcx
	movq	-104(%rbp), %rdx
	addq	%rax, %rdx
	addq	%rcx, %rdx
	addq	-88(%rbp), %rdx
	movq	-80(%rbp), %rbx
	addq	%rbx, %rdx
	addq	-72(%rbp), %rdx
	movq	-64(%rbp), %r13
	addq	%r13, %rdx
	movl	$3, %r15d
	addq	-56(%rbp), %rdx
	jne	LBB0_8
## %bb.7:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [256,0,0,0]
	movups	%xmm0, 16(%r12)
	movups	%xmm0, 32(%r12)
	movl	$0, -356(%rbp)                  ## 4-byte Folded Spill
	movl	$255, %r15d
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, %edx
	shlq	$6, %rdx
	movq	-304(%rbp,%rdx), %rax
	movq	%rax, 16(%r12)
	movq	-296(%rbp,%rdx), %rcx
	movq	%rcx, 24(%r12)
	movq	-288(%rbp,%rdx), %rcx
	movq	-272(%rbp,%rdx), %rbx
	movq	%rbx, 32(%r12)
	movq	-264(%rbp,%rdx), %rsi
	movq	%rsi, 40(%r12)
	movq	-256(%rbp,%rdx), %r13
LBB0_9:
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	xorl	%r8d, %r8d
	testq	%rcx, %rcx
	sete	%r8b
	leaq	-304(%rbp), %rdx
	movq	%r14, %rdi
	movl	-356(%rbp), %esi                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_rtl8723_phy_path_a_fill_iqk_matrix
LBB0_11:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	xorl	%r8d, %r8d
	testq	%r13, %r13
	sete	%r8b
	leaq	-304(%rbp), %rdx
	movq	%r14, %rdi
	movl	-356(%rbp), %esi                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	__rtl8723be_phy_path_b_fill_iqk_matrix
LBB0_13:
	movl	64(%r12), %edi
	callq	__get_right_chnl_place_for_iqk
	cmpl	$3, %r15d
	ja	LBB0_35
## %bb.14:
	movq	_IQK_MATRIX_REG_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.15:
	movl	%r15d, %r8d
	movq	56(%r12), %r9
	movslq	%eax, %r11
	movq	%r11, %rax
	shlq	$4, %rax
	movq	(%r9,%rax), %rax
	movq	(%rax), %rsi
	cmpl	$4, %ebx
	jb	LBB0_16
## %bb.18:
	movq	%r8, %r10
	shlq	$6, %r10
	leaq	-304(%rbp), %r13
	movq	%rsi, %rcx
	subq	%r10, %rcx
	subq	%r13, %rcx
	cmpq	$32, %rcx
	jae	LBB0_20
LBB0_16:
	xorl	%edx, %edx
LBB0_28:
	movq	%rdx, %r10
	notq	%r10
	addq	%rbx, %r10
	movq	%rbx, %rcx
	andq	$3, %rcx
	je	LBB0_31
## %bb.29:
	movq	%r8, %rdi
	shlq	$6, %rdi
	addq	%rbp, %rdi
	addq	$-304, %rdi                     ## imm = 0xFED0
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rax
	movq	%rax, (%rsi,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_30
LBB0_31:
	cmpq	$3, %r10
	jb	LBB0_34
## %bb.32:
	shlq	$6, %r8
	leaq	(%r8,%rbp), %rax
	addq	$-280, %rax                     ## imm = 0xFEE8
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	-24(%rax,%rdx,8), %rcx
	movq	%rcx, (%rsi,%rdx,8)
	movq	-16(%rax,%rdx,8), %rcx
	movq	%rcx, 8(%rsi,%rdx,8)
	movq	-8(%rax,%rdx,8), %rcx
	movq	%rcx, 16(%rsi,%rdx,8)
	movq	(%rax,%rdx,8), %rcx
	movq	%rcx, 24(%rsi,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rbx
	jne	LBB0_33
	jmp	LBB0_34
LBB0_17:
	movq	56(%r12), %r9
	movslq	%eax, %r11
LBB0_34:
	shlq	$4, %r11
	movl	$1, 8(%r9,%r11)
LBB0_35:
	movl	48(%r12), %edx
	leaq	-352(%rbp), %rsi
	movq	%r14, %rdi
	movl	$9, %ecx
	callq	_rtl8723_save_adda_registers
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	movl	-360(%rbp), %ecx                ## 4-byte Reload
	callq	_rtl_set_bbreg
LBB0_36:
	movq	%r12, %rdi
	callq	_spin_lock
	movl	$0, 8(%r12)
	movq	%r12, %rdi
	callq	_spin_unlock
LBB0_37:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.38:
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%ebx, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rax
	movq	%rax, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r15d
	andl	$3, %r15d
	cmpq	$12, %rax
	jae	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_22:
	andq	$-4, %rdi
	leaq	(%r10,%r13), %rcx
	addq	$112, %rcx
	xorl	%eax, %eax
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movaps	-112(%rcx,%rax,8), %xmm0
	movaps	-96(%rcx,%rax,8), %xmm1
	movups	%xmm0, (%rsi,%rax,8)
	movups	%xmm1, 16(%rsi,%rax,8)
	movaps	-80(%rcx,%rax,8), %xmm0
	movaps	-64(%rcx,%rax,8), %xmm1
	movups	%xmm0, 32(%rsi,%rax,8)
	movups	%xmm1, 48(%rsi,%rax,8)
	movaps	-48(%rcx,%rax,8), %xmm0
	movaps	-32(%rcx,%rax,8), %xmm1
	movups	%xmm0, 64(%rsi,%rax,8)
	movups	%xmm1, 80(%rsi,%rax,8)
	movaps	-16(%rcx,%rax,8), %xmm0
	movaps	(%rcx,%rax,8), %xmm1
	movups	%xmm0, 96(%rsi,%rax,8)
	movups	%xmm1, 112(%rsi,%rax,8)
	addq	$16, %rax
	addq	$-4, %rdi
	jne	LBB0_23
LBB0_24:
	testq	%r15, %r15
	je	LBB0_27
## %bb.25:
	leaq	(%rsi,%rax,8), %rcx
	addq	$16, %rcx
	leaq	(%r10,%rbp), %rdi
	addq	$-304, %rdi                     ## imm = 0xFED0
	leaq	(%rdi,%rax,8), %rax
	addq	$16, %rax
	shlq	$5, %r15
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movaps	-16(%rax,%rdi), %xmm0
	movaps	(%rax,%rdi), %xmm1
	movups	%xmm0, -16(%rcx,%rdi)
	movups	%xmm1, (%rcx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r15
	jne	LBB0_26
LBB0_27:
	cmpq	%rbx, %rdx
	je	LBB0_34
	jmp	LBB0_28
LBB0_39:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ROFDM0_XARXIQIMBALANCE,4,2     ## @ROFDM0_XARXIQIMBALANCE
	.comm	_ROFDM0_XBRXIQIMBALANCE,4,2     ## @ROFDM0_XBRXIQIMBALANCE
	.comm	_ROFDM0_ECCATHRESHOLD,4,2       ## @ROFDM0_ECCATHRESHOLD
	.comm	_ROFDM0_AGCRSSITABLE,4,2        ## @ROFDM0_AGCRSSITABLE
	.comm	_ROFDM0_XATXIQIMBALANCE,4,2     ## @ROFDM0_XATXIQIMBALANCE
	.comm	_ROFDM0_XBTXIQIMBALANCE,4,2     ## @ROFDM0_XBTXIQIMBALANCE
	.comm	_ROFDM0_XCTXAFE,4,2             ## @ROFDM0_XCTXAFE
	.comm	_ROFDM0_XDTXAFE,4,2             ## @ROFDM0_XDTXAFE
	.comm	_ROFDM0_RXIQEXTANTA,4,2         ## @ROFDM0_RXIQEXTANTA
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
	.comm	_IQK_MATRIX_REG_NUM,4,2         ## @IQK_MATRIX_REG_NUM
.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 rtl8723be_phy_iq_calibrate
lCPI0_0:
	.quad	256                             ; 0x100
	.quad	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rtl8723be_phy_iq_calibrate
	.p2align	2
_rtl8723be_phy_iq_calibrate:            ; @rtl8723be_phy_iq_calibrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #336]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #352]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #368]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #384]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #400]            ; 16-byte Folded Spill
	add	x29, sp, #400
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_rtl_priv
Lloh3:
	adrp	x8, _ROFDM0_XARXIQIMBALANCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROFDM0_XARXIQIMBALANCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ROFDM0_XBRXIQIMBALANCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ROFDM0_XBRXIQIMBALANCE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #12]
Lloh9:
	adrp	x8, _ROFDM0_ECCATHRESHOLD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ROFDM0_ECCATHRESHOLD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ROFDM0_AGCRSSITABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ROFDM0_AGCRSSITABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #20]
Lloh15:
	adrp	x8, _ROFDM0_XATXIQIMBALANCE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ROFDM0_XATXIQIMBALANCE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _ROFDM0_XBTXIQIMBALANCE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ROFDM0_XBTXIQIMBALANCE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _ROFDM0_XCTXAFE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ROFDM0_XCTXAFE@GOTPAGEOFF]
	stp	w8, w9, [sp, #28]
Lloh23:
	ldr	w8, [x10]
Lloh24:
	adrp	x9, _ROFDM0_XDTXAFE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ROFDM0_XDTXAFE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #36]
Lloh27:
	adrp	x8, _ROFDM0_RXIQEXTANTA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ROFDM0_RXIQEXTANTA@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_25
; %bb.1:
	mov	x19, x0
	bl	_spin_lock
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock
	cbz	w21, LBB0_3
; %bb.2:
	ldr	w2, [x19, #48]
	add	x1, sp, #12
	mov	x0, x20
	mov	w3, #9
	bl	_rtl8723_phy_reload_adda_registers
	b	LBB0_24
LBB0_3:
	add	x23, sp, #48
Lloh30:
	adrp	x24, _MASKDWORD@GOTPAGE
Lloh31:
	ldr	x24, [x24, _MASKDWORD@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #2376
	bl	_rtl_get_bbreg
	mov	x21, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [x23, #96]
	stp	q0, q0, [x23, #128]
	stp	q0, q0, [x23, #160]
	stp	q0, q0, [x23, #192]
	stp	q0, q0, [x23, #224]
	add	x25, sp, #48
	add	x1, sp, #48
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	bl	__rtl8723be_phy_iq_calibrate
	add	x1, sp, #48
	mov	x0, x20
	mov	w2, #1
	mov	w3, #1
	bl	__rtl8723be_phy_iq_calibrate
	add	x1, sp, #48
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	bl	__rtl8723be_phy_simularity_compare
	mov	w22, #0
	cbnz	w0, LBB0_9
; %bb.4:
	add	x1, sp, #48
	mov	x0, x20
	mov	w2, #2
	mov	w3, #1
	bl	__rtl8723be_phy_iq_calibrate
	add	x1, sp, #48
	mov	x0, x20
	mov	w2, #0
	mov	w3, #2
	bl	__rtl8723be_phy_simularity_compare
	mov	w22, #0
	cbnz	w0, LBB0_9
; %bb.5:
	mov	w22, #1
	add	x1, sp, #48
	mov	x0, x20
	mov	w2, #1
	mov	w3, #2
	bl	__rtl8723be_phy_simularity_compare
	cbnz	w0, LBB0_9
; %bb.6:
	ldp	x8, x10, [x23, #192]
	ldp	x9, x11, [x23, #208]
	add	x10, x10, x8
	add	x10, x9, x10
	ldp	x26, x12, [x23, #224]
	add	x10, x11, x10
	add	x10, x26, x10
	ldp	x27, x11, [x23, #240]
	add	x10, x12, x10
	add	x10, x27, x10
	cmn	x11, x10
	b.ne	LBB0_8
; %bb.7:
	mov	w23, #0
Lloh32:
	adrp	x10, lCPI0_0@PAGE
Lloh33:
	ldr	q0, [x10, lCPI0_0@PAGEOFF]
	stp	q0, q0, [x19, #16]
	mov	w22, #255
	b	LBB0_10
LBB0_8:
	mov	w22, #3
LBB0_9:
	mov	w8, w22
	add	x10, x25, x8, lsl #6
	ldr	x8, [x10]
	str	x8, [x19, #16]
	ldr	x9, [x10, #8]
	str	x9, [x19, #24]
	ldr	x9, [x10, #16]
	ldr	x26, [x10, #32]
	str	x26, [x19, #32]
	ldr	x11, [x10, #40]
	str	x11, [x19, #40]
	ldr	x27, [x10, #48]
	mov	w23, #1
LBB0_10:
	cbz	x8, LBB0_12
; %bb.11:
	cmp	x9, #0
	cset	w4, eq
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x23
	mov	x3, x22
	bl	_rtl8723_phy_path_a_fill_iqk_matrix
LBB0_12:
	cbz	x26, LBB0_14
; %bb.13:
	cmp	x27, #0
	cset	w4, eq
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x23
	mov	x3, x22
	bl	__rtl8723be_phy_path_b_fill_iqk_matrix
LBB0_14:
	ldr	w0, [x19, #64]
	bl	__get_right_chnl_place_for_iqk
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w22, #3
	b.hi	LBB0_23
; %bb.15:
Lloh34:
	adrp	x8, _IQK_MATRIX_REG_NUM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IQK_MATRIX_REG_NUM@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x8]
	cmp	w10, #0
	b.le	LBB0_21
; %bb.16:
	mov	w11, w22
	ldr	x8, [x19, #56]
	sxtw	x9, w0
	sbfiz	x12, x0, #4, #32
	ldr	x12, [x8, x12]
	ldr	x12, [x12]
	cmp	w10, #8
	b.lo	LBB0_18
; %bb.17:
	add	x13, sp, #48
	add	x15, x13, x11, lsl #6
	sub	x13, x12, x15
	cmp	x13, #64
	b.hs	LBB0_27
LBB0_18:
	mov	x13, #0
LBB0_19:
	lsl	x14, x13, #3
	add	x12, x12, x14
	add	x15, sp, #48
	add	x11, x15, x11, lsl #6
	add	x11, x11, x14
	sub	x10, x10, x13
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11], #8
	str	x13, [x12], #8
	subs	x10, x10, #1
	b.ne	LBB0_20
	b	LBB0_22
LBB0_21:
	ldr	x8, [x19, #56]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	sxtw	x9, w0
LBB0_22:
	add	x8, x8, x9, lsl #4
	mov	w9, #1
	str	w9, [x8, #8]
LBB0_23:
	ldr	w2, [x19, #48]
	add	x1, sp, #12
	mov	x0, x20
	mov	w3, #9
	bl	_rtl8723_save_adda_registers
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #2376
	mov	x3, x21
	bl	_rtl_set_bbreg
LBB0_24:
	mov	x0, x19
	bl	_spin_lock
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock
LBB0_25:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.26:
	ldp	x29, x30, [sp, #400]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #384]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #368]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #352]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_27:
	and	x13, x10, #0xfffffff8
	add	x14, x12, #32
	add	x15, x15, #32
	mov	x16, x13
LBB0_28:                                ; =>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_28
; %bb.29:
	cmp	x13, x10
	b.eq	LBB0_22
	b	LBB0_19
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdr	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ROFDM0_XARXIQIMBALANCE,4,2     ; @ROFDM0_XARXIQIMBALANCE
	.comm	_ROFDM0_XBRXIQIMBALANCE,4,2     ; @ROFDM0_XBRXIQIMBALANCE
	.comm	_ROFDM0_ECCATHRESHOLD,4,2       ; @ROFDM0_ECCATHRESHOLD
	.comm	_ROFDM0_AGCRSSITABLE,4,2        ; @ROFDM0_AGCRSSITABLE
	.comm	_ROFDM0_XATXIQIMBALANCE,4,2     ; @ROFDM0_XATXIQIMBALANCE
	.comm	_ROFDM0_XBTXIQIMBALANCE,4,2     ; @ROFDM0_XBTXIQIMBALANCE
	.comm	_ROFDM0_XCTXAFE,4,2             ; @ROFDM0_XCTXAFE
	.comm	_ROFDM0_XDTXAFE,4,2             ; @ROFDM0_XDTXAFE
	.comm	_ROFDM0_RXIQEXTANTA,4,2         ; @ROFDM0_RXIQEXTANTA
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
	.comm	_IQK_MATRIX_REG_NUM,4,2         ; @IQK_MATRIX_REG_NUM
.subsections_via_symbols
