	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_iqk_restore_rf
__rtl8821ae_iqk_restore_rf:             ## @_rtl8821ae_iqk_restore_rf
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$31, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	$2092, %esi                     ## imm = 0x82C
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtl_set_bbreg
	movq	_RF_REG_NUM@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,8), %rdx
	movq	_RFREG_OFFSET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rbx,%r14,8), %r8
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r13d, %r12d
	movq	%r15, %r13
	movq	%rax, %r15
	callq	_rtl_set_rfreg
	movq	%r15, %rax
	movq	%r13, %r15
	movl	%r12d, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	incq	%r14
	cmpq	(%rax), %r14
	jb	LBB0_2
LBB0_3:
	cmpl	$128, %r13d
	jne	LBB0_4
## %bb.5:
	movq	_COMP_IQK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_REG_NUM,8,3                 ## @RF_REG_NUM
	.comm	_RFREG_OFFSET_MASK,4,2          ## @RFREG_OFFSET_MASK
	.comm	_COMP_IQK,4,2                   ## @COMP_IQK
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RestoreRF Path A Success!!!!\n"

	.no_dead_strip	__rtl8821ae_iqk_restore_rf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_iqk_restore_rf
__rtl8821ae_iqk_restore_rf:             ; @_rtl8821ae_iqk_restore_rf
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	w0, #31
	bl	_BIT
	mov	x2, x0
	mov	x0, x23
	mov	w1, #2092
	mov	w3, #0
	bl	_rtl_set_bbreg
Lloh0:
	adrp	x24, _RF_REG_NUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RF_REG_NUM@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x25, #0
Lloh2:
	adrp	x26, _RFREG_OFFSET_MASK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RFREG_OFFSET_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x25, #3
	ldr	x2, [x22, x8]
	ldr	w3, [x26]
	ldr	x4, [x20, x8]
	mov	x0, x23
	mov	x1, x21
	bl	_rtl_set_rfreg
	add	x25, x25, #1
	ldr	x8, [x24]
	cmp	x25, x8
	b.lo	LBB0_2
LBB0_3:
	cmp	w21, #128
	b.ne	LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _COMP_IQK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COMP_IQK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	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	_RT_TRACE
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_REG_NUM,8,3                 ; @RF_REG_NUM
	.comm	_RFREG_OFFSET_MASK,4,2          ; @RFREG_OFFSET_MASK
	.comm	_COMP_IQK,4,2                   ; @COMP_IQK
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RestoreRF Path A Success!!!!\n"

	.no_dead_strip	__rtl8821ae_iqk_restore_rf
.subsections_via_symbols
