	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_dm_dig
_rtl8821ae_dm_dig:                      ## @rtl8821ae_dm_dig
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_COMP_DIG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movl	(%r13), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %r14
	movq	(%rbx), %rcx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	movl	32(%r15), %eax
	cmpq	(%rdx), %rcx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jge	LBB0_6
## %bb.3:
	testl	%eax, %eax
	setne	%al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	_HARDWARE_TYPE_RTL8821AE@GOTPCREL(%rip), %rcx
	movl	$28, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_DM_DIG_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	movq	_DM_DIG_MAX_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$90, 40(%r15)
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	%r12d, %ecx
	jmp	LBB0_15
LBB0_6:
	testl	%eax, %eax
	sete	%sil
	movq	(%rdi), %rax
	movq	_HARDWARE_TYPE_RTL8821AE@GOTPCREL(%rip), %rcx
	movl	36(%r15), %r8d
	leal	20(%r8), %edx
	leal	10(%r8), %r9d
	cmpq	(%rcx), %rax
	movq	_DM_DIG_MIN@GOTPCREL(%rip), %rax
	movl	$28, %r12d
	cmovnel	(%rax), %r12d
	movq	_DM_DIG_MAX_AP@GOTPCREL(%rip), %rax
	cmovnel	%edx, %r9d
	cmpl	$91, %r9d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	jl	LBB0_8
## %bb.7:
	movl	$90, 40(%r15)
	movl	$90, %r9d
	jmp	LBB0_11
LBB0_8:
	cmpl	%r12d, %r9d
	jge	LBB0_10
## %bb.9:
	movl	%r12d, 40(%r15)
	movl	%r12d, %r9d
	jmp	LBB0_11
LBB0_10:
	movl	%r9d, 40(%r15)
LBB0_11:
	movl	(%rax), %r13d
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpq	$0, 16(%r15)
	je	LBB0_13
## %bb.12:
	movl	36(%r15), %eax
	cmpl	%r13d, %eax
	movl	%r13d, %ebx
	cmovll	%eax, %ebx
	cmpl	%r12d, %eax
	cmovll	%r12d, %ebx
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rcx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	%ebx, %ecx
	jmp	LBB0_14
LBB0_13:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	%r12d, %ecx
LBB0_14:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	cmpl	$10001, (%r15)                  ## imm = 0x2711
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	jl	LBB0_18
## %bb.16:
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	44(%r15), %ecx
	cmpl	$3, %ecx
	jne	LBB0_20
## %bb.17:
	movl	48(%r15), %eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_21
	jmp	LBB0_26
LBB0_18:
	movl	56(%r15), %eax
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	decl	%eax
	movl	%eax, 56(%r15)
	jmp	LBB0_30
LBB0_20:
	leal	1(%rcx), %eax
	movl	%eax, 44(%r15)
	movl	48(%r15), %eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_25
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 48(%r15)
	movl	$1, 44(%r15)
	jmp	LBB0_30
LBB0_22:
	cmpl	$2, 44(%r15)
	jg	LBB0_27
## %bb.23:
	movl	48(%r15), %eax
	cmpl	%ecx, %eax
	jle	LBB0_28
## %bb.24:
	leal	-1(%rax), %ecx
	movl	%ecx, 48(%r15)
	movl	%eax, 52(%r15)
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rcx
	jmp	LBB0_29
LBB0_25:
	cmpl	$2, %ecx
	jl	LBB0_30
LBB0_26:
	movl	40(%r15), %ecx
	leal	1(%rax), %edx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %edx
	movl	%edx, 52(%r15)
	movl	$3600, 56(%r15)                 ## imm = 0xE10
	jmp	LBB0_30
LBB0_27:
	movl	$0, 44(%r15)
	jmp	LBB0_30
LBB0_28:
	movl	%ecx, 48(%r15)
	movl	%ecx, 52(%r15)
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rcx
LBB0_29:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_30:
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	44(%r15), %r8d
	leaq	L_.str.8(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$10, 8(%r15)
	jge	LBB0_32
## %bb.31:
	movl	%r12d, 52(%r15)
	jmp	LBB0_33
LBB0_32:
	movl	52(%r15), %r12d
LBB0_33:
	movl	40(%r15), %eax
	cmpl	%eax, %r12d
	jle	LBB0_35
## %bb.34:
	movl	%eax, 52(%r15)
LBB0_35:
	movq	%rbx, %r14
	movq	(%rbx), %rax
	movq	_COMP_DIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_38
## %bb.36:
	leaq	L_.str.12(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_40
## %bb.37:
	movl	52(%r15), %r13d
	leaq	L_.str.13(%rip), %rcx
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_38:
	leaq	L_.str.9(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_42
## %bb.39:
	movl	36(%r15), %eax
	cmpl	%r13d, %eax
	cmovll	%eax, %r13d
	leaq	L_.str.10(%rip), %rcx
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_40:
	movl	(%r15), %eax
	cmpl	$2001, %eax                     ## imm = 0x7D1
	jl	LBB0_44
## %bb.41:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addl	$4, %edx
	jmp	LBB0_49
LBB0_42:
	movl	(%r15), %eax
	movq	_DM_DIG_FA_TH2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_46
## %bb.43:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addl	$4, %edx
	movq	_DM_DIG_FA_TH1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%edx, %r13d
	jmp	LBB0_51
LBB0_44:
	cmpl	$601, %eax                      ## imm = 0x259
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jl	LBB0_48
## %bb.45:
	addl	$2, %edx
	jmp	LBB0_49
LBB0_46:
	movq	_DM_DIG_FA_TH1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_50
## %bb.47:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addl	$2, %edx
	movl	%edx, %r13d
	jmp	LBB0_51
LBB0_48:
	leal	-2(%rdx), %ecx
	cmpl	$300, %eax                      ## imm = 0x12C
	cmovgel	%edx, %ecx
	movl	%ecx, %edx
LBB0_49:
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	cmpl	$62, %edx
	movl	$62, %r13d
	cmovll	%edx, %r13d
	leaq	L_.str.14(%rip), %rcx
	jmp	LBB0_54
LBB0_50:
	movq	_DM_DIG_FA_TH0@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leal	-2(%rsi), %r13d
	cmpl	(%rdx), %eax
	cmovgel	%esi, %r13d
LBB0_51:
	cmpl	$9, 8(%r15)
	jg	LBB0_55
## %bb.52:
	cmpl	%ecx, %eax
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	jge	LBB0_56
## %bb.53:
	movl	52(%r15), %r13d
	leaq	L_.str.11(%rip), %rcx
LBB0_54:
	movl	(%rbx), %esi
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_55:
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
LBB0_56:
	movl	(%rbx), %esi
	movl	(%rax), %edx
	leaq	L_.str.15(%rip), %rcx
	movq	%r15, %rdi
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	40(%r15), %r8d
	movl	52(%r15), %r9d
	cmpl	%r8d, %r13d
	cmovgel	%r8d, %r13d
	cmpl	%r9d, %r13d
	cmovlel	%r9d, %r13d
	movl	(%rbx), %esi
	movl	(%r12), %edx
	leaq	L_.str.16(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movl	(%r15), %r8d
	leaq	L_.str.17(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%rbx), %esi
	movl	(%r12), %edx
	leaq	L_.str.18(%rip), %rcx
	movq	%r15, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_rtl8821ae_dm_write_dig
	movq	(%r14), %rax
	xorl	%ecx, %ecx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setge	%cl
	movl	%ecx, 32(%r15)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%r15)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_DIG,4,2                   ## @COMP_DIG
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Return: In Scan Progress\n"

	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ## @HARDWARE_TYPE_RTL8821AE
	.comm	_DM_DIG_MIN,4,2                 ## @DM_DIG_MIN
	.comm	_DM_DIG_MAX_AP,4,2              ## @DM_DIG_MAX_AP
L_.str.2:                               ## @.str.2
	.asciz	"dm_digtable->rssi_val_min=0x%x,dm_digtable->rx_gain_max = 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"bOneEntryOnly=TRUE, dig_min_0=0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"No Link\n"

L_.str.5:                               ## @.str.5
	.asciz	"Abnormally false alarm case.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Normal Case: At Lower Bound\n"

L_.str.7:                               ## @.str.7
	.asciz	"Normal Case: Approach Lower Bound\n"

L_.str.8:                               ## @.str.8
	.asciz	"pDM_DigTable->LargeFAHit=%d\n"

L_.str.9:                               ## @.str.9
	.asciz	"DIG AfterLink\n"

L_.str.10:                              ## @.str.10
	.asciz	"First Connect\n"

	.comm	_DM_DIG_FA_TH2,4,2              ## @DM_DIG_FA_TH2
	.comm	_DM_DIG_FA_TH1,4,2              ## @DM_DIG_FA_TH1
	.comm	_DM_DIG_FA_TH0,4,2              ## @DM_DIG_FA_TH0
L_.str.11:                              ## @.str.11
	.asciz	"Beacon is less than 10 and FA is less than 768, IGI GOES TO 0x1E!!!!!!!!!!!!\n"

L_.str.12:                              ## @.str.12
	.asciz	"DIG BeforeLink\n"

L_.str.13:                              ## @.str.13
	.asciz	"First DisConnect\n"

L_.str.14:                              ## @.str.14
	.asciz	"England DIG\n"

L_.str.15:                              ## @.str.15
	.asciz	"DIG End Adjust IGI\n"

L_.str.16:                              ## @.str.16
	.asciz	"rx_gain_max=0x%x, rx_gain_min=0x%x\n"

L_.str.17:                              ## @.str.17
	.asciz	"TotalFA=%d\n"

L_.str.18:                              ## @.str.18
	.asciz	"CurIGValue=0x%x\n"

	.no_dead_strip	_rtl8821ae_dm_dig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8821ae_dm_dig
_rtl8821ae_dm_dig:                      ; @rtl8821ae_dm_dig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	ldr	w27, [x19, #24]
Lloh0:
	adrp	x23, _COMP_DIG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _COMP_DIG@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_RT_TRACE
LBB0_2:
	ldr	x12, [x21]
Lloh8:
	adrp	x8, _MAC80211_LINKED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC80211_LINKED@GOTPAGEOFF]
Lloh10:
	ldr	x13, [x8]
Lloh11:
	adrp	x10, _HARDWARE_TYPE_RTL8821AE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HARDWARE_TYPE_RTL8821AE@GOTPAGEOFF]
	ldr	w11, [x19, #32]
Lloh13:
	adrp	x9, _DM_DIG_MIN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DM_DIG_MIN@GOTPAGEOFF]
Lloh15:
	adrp	x8, _DM_DIG_MAX_AP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DM_DIG_MAX_AP@GOTPAGEOFF]
	cmp	x12, x13
	b.ge	LBB0_4
; %bb.3:
	cmp	w11, #0
	cset	w28, ne
	ldr	x11, [x22]
	ldr	x10, [x10]
	ldr	w9, [x9]
	cmp	x11, x10
	mov	w10, #28
	csel	w25, w10, w9, eq
	ldr	w22, [x8]
	mov	w8, #90
	str	w8, [x19, #40]
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh17:
	adrp	x3, l_.str.4@PAGE
Lloh18:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w26, #0
	b	LBB0_12
LBB0_4:
	cmp	w11, #0
	cset	w26, eq
	ldr	x11, [x22]
	ldr	x10, [x10]
	ldr	w9, [x9]
	cmp	x11, x10
	mov	w10, #28
	csel	w25, w10, w9, eq
	ldr	w22, [x8]
	mov	w8, #20
	mov	w9, #10
	csel	w9, w9, w8, eq
	ldr	w8, [x19, #36]
	add	w9, w8, w9
	cmp	w9, #91
	b.lt	LBB0_6
; %bb.5:
	mov	w9, #90
	b	LBB0_8
LBB0_6:
	cmp	w9, w25
	b.ge	LBB0_8
; %bb.7:
	str	w25, [x19, #40]
	mov	x9, x25
	b	LBB0_9
LBB0_8:
	str	w9, [x19, #40]
LBB0_9:
	ldr	w1, [x23]
	ldr	w2, [x24]
	stp	x8, x9, [sp]
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w8, [x19, #36]
	cmp	w8, w22
	csel	w9, w8, w22, lt
	cmp	w8, w25
	csel	w8, w25, w9, lt
	ldr	w1, [x23]
	ldr	w2, [x24]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	str	x8, [sp]
Lloh21:
	adrp	x3, l_.str.3@PAGE
Lloh22:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w28, #0
	b	LBB0_13
LBB0_11:
	mov	w28, #0
LBB0_12:
	mov	x8, x25
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_13:
	ldr	w8, [x19]
	mov	w9, #10001
	cmp	w8, w9
	b.lt	LBB0_16
; %bb.14:
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh23:
	adrp	x3, l_.str.5@PAGE
Lloh24:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w9, [x19, #44]
	cmp	w9, #3
	b.ne	LBB0_18
; %bb.15:
	ldr	w8, [x19, #48]
	cmp	w8, w27
	b.lt	LBB0_19
	b	LBB0_24
LBB0_16:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_20
; %bb.17:
	sub	w8, w8, #1
	str	w8, [x19, #56]
	b	LBB0_28
LBB0_18:
	add	w8, w9, #1
	str	w8, [x19, #44]
	ldr	w8, [x19, #48]
	cmp	w8, w27
	b.ge	LBB0_23
LBB0_19:
	mov	w8, #1
	stp	w8, w27, [x19, #44]
	b	LBB0_28
LBB0_20:
	ldr	w8, [x19, #44]
	cmp	w8, #2
	b.gt	LBB0_25
; %bb.21:
	ldr	w8, [x19, #48]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w8, w9
	b.le	LBB0_26
; %bb.22:
	sub	w9, w8, #1
	stp	w9, w8, [x19, #48]
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh25:
	adrp	x3, l_.str.7@PAGE
Lloh26:
	add	x3, x3, l_.str.7@PAGEOFF
	b	LBB0_27
LBB0_23:
	cmp	w9, #2
	b.lt	LBB0_28
LBB0_24:
	ldr	w9, [x19, #40]
	cmp	w8, w9
	csinc	w8, w9, w8, ge
	mov	w9, #3600
	stp	w8, w9, [x19, #52]
	b	LBB0_28
LBB0_25:
	str	wzr, [x19, #44]
	b	LBB0_28
LBB0_26:
	stp	w9, w9, [x19, #48]
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh27:
	adrp	x3, l_.str.6@PAGE
Lloh28:
	add	x3, x3, l_.str.6@PAGEOFF
LBB0_27:
	mov	x0, x19
	bl	_RT_TRACE
LBB0_28:
	ldr	w1, [x23]
	ldr	w2, [x24]
	ldr	w8, [x19, #44]
	str	x8, [sp]
Lloh29:
	adrp	x3, l_.str.8@PAGE
Lloh30:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x19, #8]
	cmp	w8, #10
	b.ge	LBB0_30
; %bb.29:
	str	w25, [x19, #52]
	b	LBB0_31
LBB0_30:
	ldr	w25, [x19, #52]
LBB0_31:
	ldr	w8, [x19, #40]
	cmp	w25, w8
	b.le	LBB0_33
; %bb.32:
	str	w8, [x19, #52]
LBB0_33:
	ldr	x8, [x21]
Lloh31:
	adrp	x25, _MAC80211_LINKED@GOTPAGE
Lloh32:
	ldr	x25, [x25, _MAC80211_LINKED@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	w1, [x23]
	ldr	w2, [x24]
	cmp	x8, x9
	b.ge	LBB0_36
; %bb.34:
Lloh33:
	adrp	x3, l_.str.12@PAGE
Lloh34:
	add	x3, x3, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	cbz	w28, LBB0_38
; %bb.35:
	ldr	w22, [x19, #52]
Lloh35:
	adrp	x3, l_.str.13@PAGE
Lloh36:
	add	x3, x3, l_.str.13@PAGEOFF
	b	LBB0_52
LBB0_36:
Lloh37:
	adrp	x3, l_.str.9@PAGE
Lloh38:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	cbz	w26, LBB0_40
; %bb.37:
	ldr	w8, [x19, #36]
	cmp	w8, w22
	csel	w22, w8, w22, lt
Lloh39:
	adrp	x3, l_.str.10@PAGE
Lloh40:
	add	x3, x3, l_.str.10@PAGEOFF
	b	LBB0_52
LBB0_38:
	ldr	w8, [x19]
	cmp	w8, #2001
	b.lt	LBB0_42
; %bb.39:
	add	w8, w27, #4
	b	LBB0_47
LBB0_40:
	ldr	w8, [x19]
Lloh41:
	adrp	x9, _DM_DIG_FA_TH2@GOTPAGE
Lloh42:
	ldr	x9, [x9, _DM_DIG_FA_TH2@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_44
; %bb.41:
	add	w22, w27, #4
Lloh44:
	adrp	x9, _DM_DIG_FA_TH1@GOTPAGE
Lloh45:
	ldr	x9, [x9, _DM_DIG_FA_TH1@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	b	LBB0_49
LBB0_42:
	cmp	w8, #601
	b.lt	LBB0_46
; %bb.43:
	add	w8, w27, #2
	b	LBB0_47
LBB0_44:
Lloh47:
	adrp	x9, _DM_DIG_FA_TH1@GOTPAGE
Lloh48:
	ldr	x9, [x9, _DM_DIG_FA_TH1@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_48
; %bb.45:
	add	w22, w27, #2
	b	LBB0_49
LBB0_46:
	sub	w9, w27, #2
	cmp	w8, #300
	csel	w8, w9, w27, lt
LBB0_47:
	mov	w9, #62
	cmp	w8, #62
	csel	w22, w8, w9, lt
Lloh50:
	adrp	x3, l_.str.14@PAGE
Lloh51:
	add	x3, x3, l_.str.14@PAGEOFF
	b	LBB0_52
LBB0_48:
Lloh52:
	adrp	x10, _DM_DIG_FA_TH0@GOTPAGE
Lloh53:
	ldr	x10, [x10, _DM_DIG_FA_TH0@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	sub	w11, w27, #2
	cmp	w8, w10
	csel	w22, w11, w27, lt
LBB0_49:
	ldr	w10, [x19, #8]
	cmp	w10, #9
	b.gt	LBB0_53
; %bb.50:
	cmp	w8, w9
	b.ge	LBB0_53
; %bb.51:
	ldr	w22, [x19, #52]
Lloh55:
	adrp	x3, l_.str.11@PAGE
Lloh56:
	add	x3, x3, l_.str.11@PAGEOFF
LBB0_52:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_RT_TRACE
LBB0_53:
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh57:
	adrp	x3, l_.str.15@PAGE
Lloh58:
	add	x3, x3, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x19, #40]
	cmp	w22, w8
	csel	w9, w22, w8, lt
	ldr	w10, [x19, #52]
	cmp	w9, w10
	csel	w22, w9, w10, gt
	ldr	w1, [x23]
	ldr	w2, [x24]
	stp	x8, x10, [sp]
Lloh59:
	adrp	x3, l_.str.16@PAGE
Lloh60:
	add	x3, x3, l_.str.16@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x23]
	ldr	w2, [x24]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh61:
	adrp	x3, l_.str.17@PAGE
Lloh62:
	add	x3, x3, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x23]
	ldr	w2, [x24]
	str	x22, [sp]
Lloh63:
	adrp	x3, l_.str.18@PAGE
Lloh64:
	add	x3, x3, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x20
	mov	x1, x22
	bl	_rtl8821ae_dm_write_dig
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w9, ge
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	w8, w9, [x19, #28]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_DIG,4,2                   ; @COMP_DIG
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Return: In Scan Progress\n"

	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ; @HARDWARE_TYPE_RTL8821AE
	.comm	_DM_DIG_MIN,4,2                 ; @DM_DIG_MIN
	.comm	_DM_DIG_MAX_AP,4,2              ; @DM_DIG_MAX_AP
l_.str.2:                               ; @.str.2
	.asciz	"dm_digtable->rssi_val_min=0x%x,dm_digtable->rx_gain_max = 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"bOneEntryOnly=TRUE, dig_min_0=0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"No Link\n"

l_.str.5:                               ; @.str.5
	.asciz	"Abnormally false alarm case.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Normal Case: At Lower Bound\n"

l_.str.7:                               ; @.str.7
	.asciz	"Normal Case: Approach Lower Bound\n"

l_.str.8:                               ; @.str.8
	.asciz	"pDM_DigTable->LargeFAHit=%d\n"

l_.str.9:                               ; @.str.9
	.asciz	"DIG AfterLink\n"

l_.str.10:                              ; @.str.10
	.asciz	"First Connect\n"

	.comm	_DM_DIG_FA_TH2,4,2              ; @DM_DIG_FA_TH2
	.comm	_DM_DIG_FA_TH1,4,2              ; @DM_DIG_FA_TH1
	.comm	_DM_DIG_FA_TH0,4,2              ; @DM_DIG_FA_TH0
l_.str.11:                              ; @.str.11
	.asciz	"Beacon is less than 10 and FA is less than 768, IGI GOES TO 0x1E!!!!!!!!!!!!\n"

l_.str.12:                              ; @.str.12
	.asciz	"DIG BeforeLink\n"

l_.str.13:                              ; @.str.13
	.asciz	"First DisConnect\n"

l_.str.14:                              ; @.str.14
	.asciz	"England DIG\n"

l_.str.15:                              ; @.str.15
	.asciz	"DIG End Adjust IGI\n"

l_.str.16:                              ; @.str.16
	.asciz	"rx_gain_max=0x%x, rx_gain_min=0x%x\n"

l_.str.17:                              ; @.str.17
	.asciz	"TotalFA=%d\n"

l_.str.18:                              ; @.str.18
	.asciz	"CurIGValue=0x%x\n"

	.no_dead_strip	_rtl8821ae_dm_dig
.subsections_via_symbols
