	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723be_set_iqk_matrix
_rtl8723be_set_iqk_matrix:              ## @rtl8723be_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rax
	movq	%rdi, %r14
	cmpl	$42, %esi
	movl	$42, %ecx
	cmovll	%esi, %ecx
	movq	_ofdmswing_table@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	%ecx, %rcx
	movl	(%rsi,%rcx,4), %ecx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_6
## %bb.2:
	shrq	$22, %rcx
	movl	$4294966272, %r15d              ## imm = 0xFFFFFC00
	movl	%r8d, %ebx
	orl	%r15d, %ebx
	orl	%eax, %r15d
	testl	$512, %eax                      ## imm = 0x200
	cmovel	%eax, %r15d
	imull	%ecx, %r15d
	movl	%r15d, %edx
	shrl	$8, %edx
	andl	$1023, %edx                     ## imm = 0x3FF
	testl	$512, %r8d                      ## imm = 0x200
	cmovel	%r8d, %ebx
	imull	%ecx, %ebx
	shll	$22, %ecx
	movl	%ebx, %eax
	shll	$8, %eax
	andl	$4128768, %eax                  ## imm = 0x3F0000
	orl	%ecx, %eax
	orl	%edx, %eax
	movq	_ROFDM0_XATXIQIMBALANCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MASKDWORD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_rtl_set_bbreg
	movq	_ROFDM0_XCTXAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKH4BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shrl	$14, %ebx
	andl	$15, %ebx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_rtl_set_bbreg
	movq	_ROFDM0_ECCATHRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$24, %edi
	callq	_BIT
	shrl	$7, %r15d
	andl	$1, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	jmp	LBB0_5
LBB0_3:
	cmpl	$128, %edx
	jne	LBB0_6
## %bb.4:
	movq	_ROFDM0_XATXIQIMBALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_rtl_set_bbreg
	movq	_ROFDM0_XCTXAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKH4BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_rtl_set_bbreg
	movq	_ROFDM0_ECCATHRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$24, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_set_bbreg                  ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ofdmswing_table,8,3            ## @ofdmswing_table
	.comm	_ROFDM0_XATXIQIMBALANCE,4,2     ## @ROFDM0_XATXIQIMBALANCE
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
	.comm	_ROFDM0_XCTXAFE,4,2             ## @ROFDM0_XCTXAFE
	.comm	_MASKH4BITS,4,2                 ## @MASKH4BITS
	.comm	_ROFDM0_ECCATHRESHOLD,4,2       ## @ROFDM0_ECCATHRESHOLD
	.no_dead_strip	_rtl8723be_set_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_set_iqk_matrix
_rtl8723be_set_iqk_matrix:              ; @rtl8723be_set_iqk_matrix
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, #42
	cmp	w1, #42
	csel	w8, w1, w8, lt
Lloh0:
	adrp	x9, _ofdmswing_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ofdmswing_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, sxtw #2]
	cmp	w2, #128
	cbz	x3, LBB0_3
; %bb.1:
	b.ne	LBB0_6
; %bb.2:
	lsr	x8, x8, #22
	orr	x9, x4, #0xfffffc00
	tst	x4, #0x200
	csel	x9, x4, x9, eq
	orr	x10, x3, #0xfffffc00
	tst	x3, #0x200
	csel	x10, x3, x10, eq
	mul	w21, w10, w8
	mul	w20, w9, w8
	lsl	w9, w20, #8
	and	w3, w9, #0x3f0000
	bfi	w3, w8, #22, #10
	bfxil	w3, w21, #8, #10
Lloh3:
	adrp	x8, _ROFDM0_XATXIQIMBALANCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROFDM0_XATXIQIMBALANCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtl_set_bbreg
Lloh9:
	adrp	x8, _ROFDM0_XCTXAFE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ROFDM0_XCTXAFE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _MASKH4BITS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MASKH4BITS@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ubfx	w3, w20, #14, #4
	mov	x0, x19
	bl	_rtl_set_bbreg
Lloh15:
	adrp	x8, _ROFDM0_ECCATHRESHOLD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ROFDM0_ECCATHRESHOLD@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	w0, #24
	bl	_BIT
	mov	x2, x0
	ubfx	w3, w21, #7, #1
	mov	x0, x19
	mov	x1, x20
	b	LBB0_5
LBB0_3:
	b.ne	LBB0_6
; %bb.4:
Lloh18:
	adrp	x9, _ROFDM0_XATXIQIMBALANCE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ROFDM0_XATXIQIMBALANCE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
Lloh21:
	adrp	x9, _MASKDWORD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MASKDWORD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x3, x8
	bl	_rtl_set_bbreg
Lloh24:
	adrp	x8, _ROFDM0_XCTXAFE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ROFDM0_XCTXAFE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _MASKH4BITS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MASKH4BITS@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtl_set_bbreg
Lloh30:
	adrp	x8, _ROFDM0_ECCATHRESHOLD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ROFDM0_ECCATHRESHOLD@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
	mov	w0, #24
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rtl_set_bbreg
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ofdmswing_table,8,3            ; @ofdmswing_table
	.comm	_ROFDM0_XATXIQIMBALANCE,4,2     ; @ROFDM0_XATXIQIMBALANCE
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
	.comm	_ROFDM0_XCTXAFE,4,2             ; @ROFDM0_XCTXAFE
	.comm	_MASKH4BITS,4,2                 ; @MASKH4BITS
	.comm	_ROFDM0_ECCATHRESHOLD,4,2       ; @ROFDM0_ECCATHRESHOLD
	.no_dead_strip	_rtl8723be_set_iqk_matrix
.subsections_via_symbols
