	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl88e_set_iqk_matrix
_rtl88e_set_iqk_matrix:                 ## @rtl88e_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
	movq	_ofdmswing_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rsi,4), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	shrq	$22, %rcx
	movl	$4294966272, %ebx               ## imm = 0xFFFFFC00
	movq	%rax, %r15
	orq	%rbx, %r15
	testl	$512, %eax                      ## imm = 0x200
	cmoveq	%rax, %r15
	imulq	%rcx, %r15
	movl	%r15d, %eax
	shrl	$8, %eax
	andl	$1023, %eax                     ## imm = 0x3FF
	orq	%r8, %rbx
	testl	$512, %r8d                      ## imm = 0x200
	cmoveq	%r8, %rbx
	imulq	%rcx, %rbx
	movq	%rbx, %rsi
	shrq	$8, %rsi
	cmpq	$128, %rdx
	je	LBB0_5
## %bb.2:
	cmpq	$129, %rdx
	jne	LBB0_12
## %bb.3:
	shll	$22, %ecx
	andl	$63, %esi
	shll	$16, %esi
	orl	%ecx, %esi
	orl	%esi, %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
	jmp	LBB0_4
LBB0_6:
	cmpq	$128, %rdx
	je	LBB0_11
## %bb.7:
	cmpq	$129, %rdx
	jne	LBB0_12
## %bb.8:
	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
	jmp	LBB0_9
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	shll	$22, %ecx
	andl	$63, %esi
	shll	$16, %esi
	orl	%ecx, %esi
	orl	%esi, %eax
	movq	_ROFDM0_XBTXIQIMBALANCE@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_XDTXAFE@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	$28, %edi
LBB0_4:
	callq	_BIT
	shrl	$7, %r15d
	andl	$1, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	jmp	LBB0_10
LBB0_11:
	movq	_ROFDM0_XBTXIQIMBALANCE@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_XDTXAFE@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	$28, %edi
LBB0_9:
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_set_bbreg                  ## TAILCALL
	.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
	.comm	_ROFDM0_XBTXIQIMBALANCE,4,2     ## @ROFDM0_XBTXIQIMBALANCE
	.comm	_ROFDM0_XDTXAFE,4,2             ## @ROFDM0_XDTXAFE
	.no_dead_strip	_rtl88e_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 rtl88e_set_iqk_matrix
_rtl88e_set_iqk_matrix:                 ; @rtl88e_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	x8, x3
	mov	x19, x0
Lloh0:
	adrp	x9, _ofdmswing_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ofdmswing_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w3, [x9, x1, lsl #2]
	cbz	x8, LBB0_4
; %bb.1:
	lsr	x9, x3, #22
	orr	x10, x8, #0xfffffc00
	tst	x8, #0x200
	csel	x8, x8, x10, eq
	mul	x21, x8, x9
	ubfx	x8, x21, #8, #10
	orr	x10, x4, #0xfffffc00
	tst	x4, #0x200
	csel	x10, x4, x10, eq
	mul	x20, x10, x9
	lsr	x10, x20, #8
	cmp	x2, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	x2, #129
	b.ne	LBB0_7
; %bb.3:
	lsl	w9, w9, #22
	bfi	w9, w10, #16, #6
	orr	w3, w9, w8
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
	b	LBB0_9
LBB0_4:
	cmp	x2, #128
	b.eq	LBB0_10
; %bb.5:
	cmp	x2, #129
	b.ne	LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _ROFDM0_XATXIQIMBALANCE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ROFDM0_XATXIQIMBALANCE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	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
	b	LBB0_11
LBB0_7:
	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
LBB0_8:
	lsl	w9, w9, #22
	bfi	w9, w10, #16, #6
	orr	w3, w9, w8
Lloh33:
	adrp	x8, _ROFDM0_XBTXIQIMBALANCE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ROFDM0_XBTXIQIMBALANCE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtl_set_bbreg
Lloh39:
	adrp	x8, _ROFDM0_XDTXAFE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ROFDM0_XDTXAFE@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _MASKH4BITS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MASKH4BITS@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	ubfx	w3, w20, #14, #4
	mov	x0, x19
	bl	_rtl_set_bbreg
Lloh45:
	adrp	x8, _ROFDM0_ECCATHRESHOLD@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ROFDM0_ECCATHRESHOLD@GOTPAGEOFF]
Lloh47:
	ldr	w20, [x8]
	mov	w0, #28
LBB0_9:
	bl	_BIT
	mov	x2, x0
	ubfx	w3, w21, #7, #1
	mov	x0, x19
	mov	x1, x20
	b	LBB0_12
LBB0_10:
Lloh48:
	adrp	x8, _ROFDM0_XBTXIQIMBALANCE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ROFDM0_XBTXIQIMBALANCE@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_rtl_set_bbreg
Lloh54:
	adrp	x8, _ROFDM0_XDTXAFE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ROFDM0_XDTXAFE@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _MASKH4BITS@GOTPAGE
Lloh58:
	ldr	x8, [x8, _MASKH4BITS@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtl_set_bbreg
Lloh60:
	adrp	x8, _ROFDM0_ECCATHRESHOLD@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ROFDM0_ECCATHRESHOLD@GOTPAGEOFF]
Lloh62:
	ldr	w20, [x8]
	mov	w0, #28
LBB0_11:
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
LBB0_12:
	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
	.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
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.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
	.comm	_ROFDM0_XBTXIQIMBALANCE,4,2     ; @ROFDM0_XBTXIQIMBALANCE
	.comm	_ROFDM0_XDTXAFE,4,2             ; @ROFDM0_XDTXAFE
	.no_dead_strip	_rtl88e_set_iqk_matrix
.subsections_via_symbols
