	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92d_phy_pathb_fill_iqk_matrix
__rtl92d_phy_pathb_fill_iqk_matrix:     ## @_rtl92d_phy_pathb_fill_iqk_matrix
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_rtl_priv
	movq	%rax, %r12
	movq	_FINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INIT_IQK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RTPRINT
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$255, %r15d
	je	LBB0_3
## %bb.2:
	movq	_ROFDM0_XBTXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_rtl_get_bbreg
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	shrl	$22, %r14d
	movq	%r12, %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %r12
	shlq	$6, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax,%r12), %eax
	movl	%eax, %r8d
	orl	$-1024, %r8d                    ## imm = 0xFC00
	testl	$512, %eax                      ## imm = 0x200
	cmovel	%eax, %r8d
	movl	%r8d, %ebx
	imull	%r14d, %ebx
	movl	%ebx, %r15d
	sarl	$8, %r15d
	movq	_FINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INIT_IQK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_RTPRINT
	movq	_ROFDM0_XBTXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	movl	%r15d, %ecx
	callq	_rtl_set_bbreg
	movq	_ROFDM0_ECCATHRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$28, %edi
	callq	_BIT
	shrl	$7, %ebx
	andl	$1, %ebx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r12, %r15
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_rtl_set_bbreg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax,%r12), %rax
	movl	$4294966272, %ecx               ## imm = 0xFFFFFC00
	orq	%rax, %rcx
	testl	$512, %eax                      ## imm = 0x200
	cmoveq	%rax, %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rdx
	leaq	3(%rcx), %r8
	cmpq	(%rdx), %rax
	cmovneq	%rcx, %r8
	imulq	%r8, %r14
	movq	%r14, %rbx
	sarq	$8, %rbx
	movq	_FINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INIT_IQK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_RTPRINT
	movq	_ROFDM0_XDTXAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %ecx
	shrl	$6, %ecx
	andl	$15, %ecx
	movq	%r13, %rdi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	callq	_rtl_set_bbreg
	movq	_ROFDM0_XBTXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$63, %ebx
	movq	%r13, %rdi
	movl	$4128768, %edx                  ## imm = 0x3F0000
	movl	%ebx, %ecx
	callq	_rtl_set_bbreg
	movq	_ROFDM0_ECCATHRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$30, %edi
	callq	_BIT
	shrl	$7, %r14d
	andl	$1, %r14d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_rtl_set_bbreg
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	48(%rbx,%r15), %ecx
	movq	_ROFDM0_XBRXIQIMBALANCE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	_rtl_set_bbreg
	movl	56(%rbx,%r15), %ecx
	andl	$63, %ecx
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$64512, %edx                    ## imm = 0xFC00
	callq	_rtl_set_bbreg
	movl	56(%rbx,%r15), %ecx
	shrl	$6, %ecx
	andl	$15, %ecx
	movq	_ROFDM0_AGCRSSITABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$61440, %edx                    ## imm = 0xF000
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_set_bbreg                  ## TAILCALL
	.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	"Path B IQ Calibration %s !\n"

L_.str.1:                               ## @.str.1
	.asciz	"Success"

L_.str.2:                               ## @.str.2
	.asciz	"Failed"

	.comm	_ROFDM0_XBTXIQIMBALANCE,4,2     ## @ROFDM0_XBTXIQIMBALANCE
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
L_.str.3:                               ## @.str.3
	.asciz	"X = 0x%x, tx1_a = 0x%x\n"

	.comm	_ROFDM0_ECCATHRESHOLD,4,2       ## @ROFDM0_ECCATHRESHOLD
	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
L_.str.4:                               ## @.str.4
	.asciz	"Y = 0x%lx, tx1_c = 0x%lx\n"

	.comm	_ROFDM0_XDTXAFE,4,2             ## @ROFDM0_XDTXAFE
	.comm	_ROFDM0_XBRXIQIMBALANCE,4,2     ## @ROFDM0_XBRXIQIMBALANCE
	.comm	_ROFDM0_AGCRSSITABLE,4,2        ## @ROFDM0_AGCRSSITABLE
	.no_dead_strip	__rtl92d_phy_pathb_fill_iqk_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92d_phy_pathb_fill_iqk_matrix
__rtl92d_phy_pathb_fill_iqk_matrix:     ; @_rtl92d_phy_pathb_fill_iqk_matrix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x21, x0
Lloh0:
	adrp	x25, _FINIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FINIT@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x26, _INIT_IQK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _INIT_IQK@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w24, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RTPRINT
	cbz	w24, LBB0_3
; %bb.1:
	cmp	w23, #255
	b.eq	LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _ROFDM0_XBTXIQIMBALANCE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ROFDM0_XBTXIQIMBALANCE@GOTPAGEOFF]
	ldr	w1, [x8]
	mov	x27, x8
Lloh12:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtl_get_bbreg
	lsr	w28, w0, #22
	sxtw	x8, w23
	add	x23, x22, x8, lsl #6
	ldr	w8, [x23, #32]
	orr	w9, w8, #0xfffffc00
	tst	w8, #0x200
	csel	w8, w8, w9, eq
	mul	w24, w8, w28
	asr	w22, w24, #8
	ldr	w1, [x25]
	ldr	w2, [x26]
	stp	x8, x22, [sp]
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_RTPRINT
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #1023
	mov	x3, x22
	bl	_rtl_set_bbreg
Lloh17:
	adrp	x27, _ROFDM0_ECCATHRESHOLD@GOTPAGE
Lloh18:
	ldr	x27, [x27, _ROFDM0_ECCATHRESHOLD@GOTPAGEOFF]
	ldr	w22, [x27]
	mov	w0, #28
	bl	_BIT
	mov	x2, x0
	ubfx	w3, w24, #7, #1
	mov	x0, x19
	mov	x1, x22
	bl	_rtl_set_bbreg
	ldr	x8, [x23, #40]
	orr	x9, x8, #0xfffffc00
	tst	x8, #0x200
	csel	x8, x8, x9, eq
	ldr	x9, [x21]
Lloh19:
	adrp	x10, _BAND_ON_5G@GOTPAGE
Lloh20:
	ldr	x10, [x10, _BAND_ON_5G@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	add	x11, x8, #3
	cmp	x9, x10
	csel	x8, x11, x8, eq
	mul	x22, x8, x28
	asr	x24, x22, #8
	ldr	w1, [x25]
	ldr	w2, [x26]
	stp	x8, x24, [sp]
Lloh22:
	adrp	x3, l_.str.4@PAGE
Lloh23:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_RTPRINT
Lloh24:
	adrp	x8, _ROFDM0_XDTXAFE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ROFDM0_XDTXAFE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ubfx	w3, w24, #6, #4
	mov	x0, x19
	mov	w2, #-268435456
	bl	_rtl_set_bbreg
Lloh27:
	adrp	x8, _ROFDM0_XBTXIQIMBALANCE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ROFDM0_XBTXIQIMBALANCE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	and	w3, w24, #0x3f
	mov	x0, x19
	mov	w2, #4128768
	bl	_rtl_set_bbreg
	ldr	w21, [x27]
	mov	w0, #30
	bl	_BIT
	mov	x2, x0
	ubfx	w3, w22, #7, #1
	mov	x0, x19
	mov	x1, x21
	bl	_rtl_set_bbreg
	cbz	w20, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	w3, [x23, #48]
Lloh30:
	adrp	x20, _ROFDM0_XBRXIQIMBALANCE@GOTPAGE
Lloh31:
	ldr	x20, [x20, _ROFDM0_XBRXIQIMBALANCE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1023
	bl	_rtl_set_bbreg
	ldr	w8, [x23, #56]
	and	w3, w8, #0x3f
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #64512
	bl	_rtl_set_bbreg
	ldr	w8, [x23, #56]
Lloh32:
	adrp	x9, _ROFDM0_AGCRSSITABLE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ROFDM0_AGCRSSITABLE@GOTPAGEOFF]
	ubfx	w3, w8, #6, #4
Lloh34:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #61440
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_rtl_set_bbreg
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.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	"Path B IQ Calibration %s !\n"

l_.str.1:                               ; @.str.1
	.asciz	"Success"

l_.str.2:                               ; @.str.2
	.asciz	"Failed"

	.comm	_ROFDM0_XBTXIQIMBALANCE,4,2     ; @ROFDM0_XBTXIQIMBALANCE
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
l_.str.3:                               ; @.str.3
	.asciz	"X = 0x%x, tx1_a = 0x%x\n"

	.comm	_ROFDM0_ECCATHRESHOLD,4,2       ; @ROFDM0_ECCATHRESHOLD
	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
l_.str.4:                               ; @.str.4
	.asciz	"Y = 0x%lx, tx1_c = 0x%lx\n"

	.comm	_ROFDM0_XDTXAFE,4,2             ; @ROFDM0_XDTXAFE
	.comm	_ROFDM0_XBRXIQIMBALANCE,4,2     ; @ROFDM0_XBRXIQIMBALANCE
	.comm	_ROFDM0_AGCRSSITABLE,4,2        ; @ROFDM0_AGCRSSITABLE
	.no_dead_strip	__rtl92d_phy_pathb_fill_iqk_matrix
.subsections_via_symbols
