	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92d_dm_dig
_rtl92d_dm_dig:                         ## @rtl92d_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movl	40(%rax), %r13d
	movq	_COMP_DIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rtl92d_early_mode_enabled
	movl	64(%rbx), %eax
	movl	%eax, 68(%rbx)
LBB0_2:
	cmpl	$0, 32(%rbx)
	je	LBB0_32
## %bb.3:
	movq	16(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.4:
	movl	(%r15), %esi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	24(%rbx), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.6:
	movq	_DIG_STA_DISCONNECT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_DIG_STA_CONNECT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movl	36(%rbx), %eax
	movq	_DM_DIG_FA_TH0@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.8:
	decl	%r13d
	jmp	LBB0_13
LBB0_9:
	movq	_DM_DIG_FA_TH1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_13
## %bb.10:
	movq	_DM_DIG_FA_TH2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_12
## %bb.11:
	incl	%r13d
	jmp	LBB0_13
LBB0_12:
	addl	$2, %r13d
LBB0_13:
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	44(%rbx), %r8d
	movl	48(%rbx), %r9d
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	52(%rbx), %r8d
	movl	56(%rbx), %r9d
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$10001, 36(%rbx)                ## imm = 0x2711
	jl	LBB0_18
## %bb.14:
	movl	(%r15), %esi
	movl	(%r12), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	40(%rbx), %ecx
	movl	44(%rbx), %edx
	leal	1(%rdx), %r8d
	movl	%r8d, 44(%rbx)
	movl	48(%rbx), %eax
	cmpl	%ecx, %eax
	jge	LBB0_16
## %bb.15:
	movl	%ecx, 48(%rbx)
	movl	$1, 44(%rbx)
	movl	$1, %r8d
	jmp	LBB0_27
LBB0_18:
	movl	52(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	decl	%eax
	movl	%eax, 52(%rbx)
	movl	44(%rbx), %r8d
	jmp	LBB0_27
LBB0_16:
	cmpl	$2, %edx
	jl	LBB0_27
## %bb.17:
	movq	_DM_DIG_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	1(%rax), %edx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %edx
	movl	%edx, 56(%rbx)
	movl	$3600, 52(%rbx)                 ## imm = 0xE10
	jmp	LBB0_27
LBB0_20:
	movl	44(%rbx), %r8d
	cmpl	$3, %r8d
	je	LBB0_25
## %bb.21:
	testl	%r8d, %r8d
	jne	LBB0_27
## %bb.22:
	movl	48(%rbx), %eax
	movq	_DM_DIG_FA_LOWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_23
## %bb.24:
	leal	-1(%rax), %ecx
	movl	%ecx, 48(%rbx)
	movl	%eax, 56(%rbx)
	jmp	LBB0_26
LBB0_25:
	movl	$0, 44(%rbx)
	jmp	LBB0_26
LBB0_23:
	movl	%ecx, 48(%rbx)
	movl	%ecx, 56(%rbx)
LBB0_26:
	xorl	%r8d, %r8d
LBB0_27:
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	48(%rbx), %r9d
	leaq	L_.str.5(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	52(%rbx), %r8d
	movl	56(%rbx), %r9d
	leaq	L_.str.6(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_DM_DIG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jg	LBB0_29
## %bb.28:
	movl	56(%rbx), %eax
	cmpl	%eax, %r13d
	cmovgl	%r13d, %eax
LBB0_29:
	movl	%eax, 40(%rbx)
	movq	%r14, %rdi
	callq	_rtl92d_dm_write_dig
	movq	(%rbx), %rax
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_31
## %bb.30:
	movq	%r14, %rdi
	callq	_rtl92d_dm_cck_packet_detection_thresh
LBB0_31:
	movl	(%r15), %esi
	movl	(%r12), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.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"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
L_.str.1:                               ## @.str.1
	.asciz	"progress\n"

	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_DIG_STA_CONNECT,4,2            ## @DIG_STA_CONNECT
	.comm	_DIG_STA_DISCONNECT,4,2         ## @DIG_STA_DISCONNECT
	.comm	_DM_DIG_FA_TH0,4,2              ## @DM_DIG_FA_TH0
	.comm	_DM_DIG_FA_TH1,4,2              ## @DM_DIG_FA_TH1
	.comm	_DM_DIG_FA_TH2,4,2              ## @DM_DIG_FA_TH2
L_.str.2:                               ## @.str.2
	.asciz	"dm_DIG() Before: large_fa_hit=%d, forbidden_igi=%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"dm_DIG() Before: Recover_cnt=%d, rx_gain_min=%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"dm_DIG(): Abnormally false alarm case\n"

	.comm	_DM_DIG_MAX,4,2                 ## @DM_DIG_MAX
	.comm	_DM_DIG_FA_LOWER,4,2            ## @DM_DIG_FA_LOWER
L_.str.5:                               ## @.str.5
	.asciz	"dm_DIG() After: large_fa_hit=%d, forbidden_igi=%x\n"

L_.str.6:                               ## @.str.6
	.asciz	"dm_DIG() After: recover_cnt=%d, rx_gain_min=%x\n"

	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
L_.str.7:                               ## @.str.7
	.asciz	"<<==\n"

	.no_dead_strip	_rtl92d_dm_dig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl92d_dm_dig
_rtl92d_dm_dig:                         ; @rtl92d_dm_dig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	ldr	w23, [x0, #40]
Lloh0:
	adrp	x21, _COMP_DIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _COMP_DIG@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rtl92d_early_mode_enabled
	ldr	w8, [x19, #64]
	str	w8, [x19, #68]
LBB0_2:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x8, [x19, #24]
Lloh11:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh13:
	adrp	x10, _DIG_STA_DISCONNECT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _DIG_STA_DISCONNECT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x11, _DIG_STA_CONNECT@GOTPAGE
Lloh17:
	ldr	x11, [x11, _DIG_STA_CONNECT@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, lt
	ldr	w8, [x8]
	str	w8, [x19, #60]
	ldr	w8, [x19, #36]
Lloh18:
	adrp	x9, _DM_DIG_FA_TH0@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DM_DIG_FA_TH0@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.5:
	sub	w23, w23, #1
	b	LBB0_11
LBB0_6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
Lloh21:
	adrp	x9, _DM_DIG_FA_TH1@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DM_DIG_FA_TH1@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_11
; %bb.8:
Lloh24:
	adrp	x9, _DM_DIG_FA_TH2@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DM_DIG_FA_TH2@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_10
; %bb.9:
	add	w23, w23, #1
	b	LBB0_11
LBB0_10:
	add	w23, w23, #2
LBB0_11:
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldp	w8, w9, [x19, #44]
	stp	x8, x9, [sp]
Lloh27:
	adrp	x3, l_.str.2@PAGE
Lloh28:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldp	w8, w9, [x19, #52]
	stp	x8, x9, [sp]
Lloh29:
	adrp	x3, l_.str.3@PAGE
Lloh30:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x19, #36]
	mov	w9, #10001
Lloh31:
	adrp	x24, _DM_DIG_MAX@GOTPAGE
Lloh32:
	ldr	x24, [x24, _DM_DIG_MAX@GOTPAGEOFF]
	cmp	w8, w9
	b.lt	LBB0_14
; %bb.12:
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh33:
	adrp	x3, l_.str.4@PAGE
Lloh34:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldp	w11, w9, [x19, #40]
	add	w8, w9, #1
	str	w8, [x19, #44]
	ldr	w10, [x19, #48]
	cmp	w10, w11
	b.ge	LBB0_16
; %bb.13:
	mov	w8, #1
	stp	w8, w11, [x19, #44]
	b	LBB0_24
LBB0_14:
	ldr	w8, [x19, #52]
	cbz	w8, LBB0_18
; %bb.15:
	sub	w8, w8, #1
	str	w8, [x19, #52]
	ldr	w8, [x19, #44]
	b	LBB0_24
LBB0_16:
	cmp	w9, #2
	b.lt	LBB0_24
; %bb.17:
	ldr	w9, [x24]
	cmp	w10, w9
	csinc	w9, w9, w10, ge
	mov	w10, #3600
	stp	w10, w9, [x19, #52]
	b	LBB0_24
LBB0_18:
	ldr	w8, [x19, #44]
	cmp	w8, #3
	b.eq	LBB0_22
; %bb.19:
	cbnz	w8, LBB0_24
; %bb.20:
	ldr	w9, [x19, #48]
Lloh35:
	adrp	x8, _DM_DIG_FA_LOWER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DM_DIG_FA_LOWER@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x8]
	cmp	w9, w10
	b.le	LBB0_23
; %bb.21:
	mov	w8, #0
	sub	w10, w9, #1
	str	w10, [x19, #48]
	str	w9, [x19, #56]
	b	LBB0_24
LBB0_22:
	mov	w8, #0
	str	wzr, [x19, #44]
	b	LBB0_24
LBB0_23:
	mov	w8, #0
	str	w10, [x19, #48]
	str	w10, [x19, #56]
LBB0_24:
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w9, [x19, #48]
	stp	x8, x9, [sp]
Lloh38:
	adrp	x3, l_.str.5@PAGE
Lloh39:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldp	w8, w9, [x19, #52]
	stp	x8, x9, [sp]
Lloh40:
	adrp	x3, l_.str.6@PAGE
Lloh41:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x24]
	cmp	w23, w8
	b.gt	LBB0_26
; %bb.25:
	ldr	w8, [x19, #56]
	cmp	w23, w8
	csel	w8, w23, w8, gt
LBB0_26:
	str	w8, [x19, #40]
	mov	x0, x20
	bl	_rtl92d_dm_write_dig
	ldr	x8, [x19]
Lloh42:
	adrp	x9, _BAND_ON_5G@GOTPAGE
Lloh43:
	ldr	x9, [x9, _BAND_ON_5G@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.27:
	mov	x0, x20
	bl	_rtl92d_dm_cck_packet_detection_thresh
LBB0_28:
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh45:
	adrp	x3, l_.str.7@PAGE
Lloh46:
	add	x3, x3, l_.str.7@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
	add	sp, sp, #80
	b	_RT_TRACE
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.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"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
l_.str.1:                               ; @.str.1
	.asciz	"progress\n"

	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_DIG_STA_CONNECT,4,2            ; @DIG_STA_CONNECT
	.comm	_DIG_STA_DISCONNECT,4,2         ; @DIG_STA_DISCONNECT
	.comm	_DM_DIG_FA_TH0,4,2              ; @DM_DIG_FA_TH0
	.comm	_DM_DIG_FA_TH1,4,2              ; @DM_DIG_FA_TH1
	.comm	_DM_DIG_FA_TH2,4,2              ; @DM_DIG_FA_TH2
l_.str.2:                               ; @.str.2
	.asciz	"dm_DIG() Before: large_fa_hit=%d, forbidden_igi=%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"dm_DIG() Before: Recover_cnt=%d, rx_gain_min=%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"dm_DIG(): Abnormally false alarm case\n"

	.comm	_DM_DIG_MAX,4,2                 ; @DM_DIG_MAX
	.comm	_DM_DIG_FA_LOWER,4,2            ; @DM_DIG_FA_LOWER
l_.str.5:                               ; @.str.5
	.asciz	"dm_DIG() After: large_fa_hit=%d, forbidden_igi=%x\n"

l_.str.6:                               ; @.str.6
	.asciz	"dm_DIG() After: recover_cnt=%d, rx_gain_min=%x\n"

	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
l_.str.7:                               ; @.str.7
	.asciz	"<<==\n"

	.no_dead_strip	_rtl92d_dm_dig
.subsections_via_symbols
