	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723be_phy_path_b_fill_iqk_matrix
__rtl8723be_phy_path_b_fill_iqk_matrix: ## @_rtl8723be_phy_path_b_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
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movl	%ecx, %ebx
	cmpl	$255, %ecx
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	_ROFDM0_XBTXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	_rtl_get_bbreg
	movl	%eax, %r13d
	shrl	$22, %r13d
	movslq	%ebx, %r14
	shlq	$6, %r14
	movl	32(%r15,%r14), %eax
	movl	%eax, %ebx
	orl	$-1024, %ebx                    ## imm = 0xFC00
	testl	$512, %eax                      ## imm = 0x200
	cmovel	%eax, %ebx
	imull	%r13d, %ebx
	movl	%ebx, %ecx
	sarl	$8, %ecx
	movq	_ROFDM0_XBTXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	_rtl_set_bbreg
	movq	_ROFDM0_ECCATHRESHOLD@GOTPCREL(%rip), %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r15d
	movl	$27, %edi
	callq	_BIT
	shrl	$7, %ebx
	andl	$1, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_rtl_set_bbreg
	movq	40(%r15,%r14), %rax
	movl	$4294966272, %ecx               ## imm = 0xFFFFFC00
	orq	%rax, %rcx
	testl	$512, %eax                      ## imm = 0x200
	cmoveq	%rax, %rcx
	imulq	%rcx, %r13
	movq	%r13, %rbx
	shrq	$8, %rbx
	movq	_ROFDM0_XDTXAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %ecx
	shrl	$6, %ecx
	andl	$15, %ecx
	movq	%r12, %rdi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	callq	_rtl_set_bbreg
	movq	_ROFDM0_XBTXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$63, %ebx
	movq	%r12, %rdi
	movl	$4128768, %edx                  ## imm = 0x3F0000
	movl	%ebx, %ecx
	callq	_rtl_set_bbreg
	movq	_ROFDM0_ECCATHRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$25, %edi
	callq	_BIT
	shrl	$7, %r13d
	andl	$1, %r13d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r13d, %ecx
	callq	_rtl_set_bbreg
	cmpl	$0, -44(%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:
	movl	48(%r15,%r14), %ecx
	movq	_ROFDM0_XBRXIQIMBALANCE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	_rtl_set_bbreg
	movl	56(%r15,%r14), %ecx
	andl	$63, %ecx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$64512, %edx                    ## imm = 0xFC00
	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	_ROFDM0_XBTXIQIMBALANCE,4,2     ## @ROFDM0_XBTXIQIMBALANCE
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
	.comm	_ROFDM0_ECCATHRESHOLD,4,2       ## @ROFDM0_ECCATHRESHOLD
	.comm	_ROFDM0_XDTXAFE,4,2             ## @ROFDM0_XDTXAFE
	.comm	_ROFDM0_XBRXIQIMBALANCE,4,2     ## @ROFDM0_XBRXIQIMBALANCE
	.no_dead_strip	__rtl8723be_phy_path_b_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 _rtl8723be_phy_path_b_fill_iqk_matrix
__rtl8723be_phy_path_b_fill_iqk_matrix: ; @_rtl8723be_phy_path_b_fill_iqk_matrix
	.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
	cbz	w1, LBB0_3
; %bb.1:
	mov	x22, x3
	cmp	w3, #255
	b.eq	LBB0_3
; %bb.2:
	mov	x20, x4
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x23, _ROFDM0_XBTXIQIMBALANCE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ROFDM0_XBTXIQIMBALANCE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_rtl_get_bbreg
	lsr	w24, w0, #22
	sxtw	x8, w22
	add	x22, x21, x8, lsl #6
	ldr	w8, [x22, #32]
	orr	w9, w8, #0xfffffc00
	tst	w8, #0x200
	csel	w8, w8, w9, eq
	mul	w25, w8, w24
	asr	w3, w25, #8
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1023
	bl	_rtl_set_bbreg
Lloh5:
	adrp	x26, _ROFDM0_ECCATHRESHOLD@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ROFDM0_ECCATHRESHOLD@GOTPAGEOFF]
	ldr	w21, [x26]
	mov	w0, #27
	bl	_BIT
	mov	x2, x0
	ubfx	w3, w25, #7, #1
	mov	x0, x19
	mov	x1, x21
	bl	_rtl_set_bbreg
	ldr	x8, [x22, #40]
	orr	x9, x8, #0xfffffc00
	tst	x8, #0x200
	csel	x8, x8, x9, eq
	mul	x24, x8, x24
	lsr	x8, x24, #8
Lloh7:
	adrp	x9, _ROFDM0_XDTXAFE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ROFDM0_XDTXAFE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	ubfx	w3, w8, #6, #4
	mov	x0, x19
	mov	w2, #-268435456
	bl	_rtl_set_bbreg
	ldr	w1, [x23]
	ubfx	x3, x24, #8, #6
	mov	x0, x19
	mov	w2, #4128768
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_rtl_set_bbreg
	ldr	w21, [x26]
	mov	w0, #25
	bl	_BIT
	mov	x2, x0
	ubfx	w3, w24, #7, #1
	mov	x0, x19
	mov	x1, x21
	bl	_rtl_set_bbreg
	cbz	w20, LBB0_4
LBB0_3:
	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
LBB0_4:
	ldr	w3, [x22, #48]
Lloh10:
	adrp	x20, _ROFDM0_XBRXIQIMBALANCE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _ROFDM0_XBRXIQIMBALANCE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1023
	bl	_rtl_set_bbreg
	ldr	w8, [x22, #56]
	and	w3, w8, #0x3f
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #64512
	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
	b	_rtl_set_bbreg
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ROFDM0_XBTXIQIMBALANCE,4,2     ; @ROFDM0_XBTXIQIMBALANCE
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
	.comm	_ROFDM0_ECCATHRESHOLD,4,2       ; @ROFDM0_ECCATHRESHOLD
	.comm	_ROFDM0_XDTXAFE,4,2             ; @ROFDM0_XDTXAFE
	.comm	_ROFDM0_XBRXIQIMBALANCE,4,2     ; @ROFDM0_XBRXIQIMBALANCE
	.no_dead_strip	__rtl8723be_phy_path_b_fill_iqk_matrix
.subsections_via_symbols
