	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92ee_dm_dig
_rtl92ee_dm_dig:                        ## @rtl92ee_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
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	cmpq	$0, 8(%rax)
	jne	LBB0_45
## %bb.1:
	movq	%rax, %r15
	movl	24(%rbx), %r9d
	movq	(%rax), %rcx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %r8
	movl	32(%rbx), %eax
	cmpq	(%r8), %rcx
	jge	LBB0_2
## %bb.8:
	testl	%eax, %eax
	setne	%al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DM_DIG_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_DM_DIG_MAX_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$90, 40(%rbx)
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %r13
	movq	%r15, %r14
	movq	%r9, %r15
	callq	_RT_TRACE
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movq	%r15, %r9
	movq	%r14, %r15
	movq	%r13, %r14
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %r8
	xorl	%r11d, %r11d
	movl	%r10d, %r13d
	jmp	LBB0_9
LBB0_2:
	testl	%eax, %eax
	sete	%r11b
	movq	_DM_DIG_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_DM_DIG_MAX_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	36(%rbx), %eax
	cmpl	$81, %eax
	jl	LBB0_4
## %bb.3:
	movl	$90, 40(%rbx)
	jmp	LBB0_7
LBB0_4:
	leal	10(%rax), %edx
	cmpl	%r10d, %edx
	jge	LBB0_6
## %bb.5:
	movl	%r10d, 40(%rbx)
	jmp	LBB0_7
LBB0_6:
	movl	%edx, 40(%rbx)
LBB0_7:
	cmpl	%r12d, %eax
	movl	%r12d, %r13d
	cmovll	%eax, %r13d
	cmpl	%r10d, %eax
	cmovll	%r10d, %r13d
	cmpq	$0, 16(%rbx)
	cmovel	%r10d, %r13d
	xorl	%ecx, %ecx
LBB0_9:
	movl	(%rbx), %eax
	cmpl	$10001, %eax                    ## imm = 0x2711
	jl	LBB0_16
## %bb.10:
	movl	44(%rbx), %esi
	cmpl	$3, %esi
	jne	LBB0_11
## %bb.14:
	movl	48(%rbx), %edx
	cmpl	%r9d, %edx
	jl	LBB0_15
	jmp	LBB0_13
LBB0_16:
	movl	56(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_18
## %bb.17:
	decl	%edx
	movl	%edx, 56(%rbx)
	jmp	LBB0_23
LBB0_11:
	leal	1(%rsi), %edx
	movl	%edx, 44(%rbx)
	movl	48(%rbx), %edx
	cmpl	%r9d, %edx
	jge	LBB0_12
LBB0_15:
	movl	%r9d, 48(%rbx)
	movl	$1, 44(%rbx)
	jmp	LBB0_23
LBB0_18:
	cmpl	$2, 44(%rbx)
	jg	LBB0_22
## %bb.19:
	movl	48(%rbx), %edx
	cmpl	%r13d, %edx
	jle	LBB0_20
## %bb.21:
	leal	-1(%rdx), %esi
	movl	%esi, 48(%rbx)
	movl	%edx, 52(%rbx)
	jmp	LBB0_23
LBB0_12:
	cmpl	$2, %esi
	jl	LBB0_23
LBB0_13:
	movl	40(%rbx), %esi
	leal	1(%rdx), %edi
	cmpl	%esi, %edx
	cmovgel	%esi, %edi
	movl	%edi, 52(%rbx)
	movl	$3600, 56(%rbx)                 ## imm = 0xE10
	jmp	LBB0_23
LBB0_22:
	movl	$0, 44(%rbx)
	jmp	LBB0_23
LBB0_20:
	movl	%r13d, 48(%rbx)
	movl	%r13d, 52(%rbx)
LBB0_23:
	movl	8(%rbx), %edx
	cmpl	$5, %edx
	jge	LBB0_24
## %bb.25:
	movl	%r10d, 52(%rbx)
	jmp	LBB0_26
LBB0_24:
	movl	52(%rbx), %r10d
LBB0_26:
	movl	40(%rbx), %esi
	cmpl	%esi, %r10d
	jle	LBB0_28
## %bb.27:
	movl	%esi, 52(%rbx)
	movl	%esi, %r10d
LBB0_28:
	movq	(%r15), %rdi
	cmpq	(%r8), %rdi
	jge	LBB0_29
## %bb.37:
	movl	%r10d, %r12d
	testb	%cl, %cl
	jne	LBB0_44
## %bb.38:
	cmpl	$10001, %eax                    ## imm = 0x2711
	jl	LBB0_40
## %bb.39:
	addl	$4, %r9d
	movl	%r9d, %r12d
	jmp	LBB0_44
LBB0_29:
	testb	%r11b, %r11b
	je	LBB0_31
## %bb.30:
	movl	36(%rbx), %eax
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	movl	$0, 44(%rbx)
	jmp	LBB0_44
LBB0_31:
	movq	_DM_DIG_FA_TH2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_33
## %bb.32:
	addl	$4, %r9d
	movq	_DM_DIG_FA_TH1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_36
LBB0_40:
	cmpl	$8001, %eax                     ## imm = 0x1F41
	jl	LBB0_42
## %bb.41:
	addl	$2, %r9d
	movl	%r9d, %r12d
	jmp	LBB0_44
LBB0_33:
	movq	_DM_DIG_FA_TH1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_35
## %bb.34:
	addl	$2, %r9d
	jmp	LBB0_36
LBB0_42:
	leal	-2(%r9), %r12d
	cmpl	$500, %eax                      ## imm = 0x1F4
	jmp	LBB0_43
LBB0_35:
	movq	_DM_DIG_FA_TH0@GOTPCREL(%rip), %r8
	leal	-2(%r9), %edi
	cmpl	(%r8), %eax
	cmovgel	%r9d, %edi
	movl	%edi, %r9d
LBB0_36:
	cmpl	%ecx, %eax
	movl	%r9d, %r12d
	cmovll	%r10d, %r12d
	cmpl	$5, %edx
LBB0_43:
	cmovgel	%r9d, %r12d
LBB0_44:
	cmpl	%esi, %r12d
	cmovll	%r12d, %esi
	cmpl	%r10d, %esi
	cmovlel	%r10d, %esi
	movq	%r14, %rdi
	callq	_rtl92ee_dm_write_dig
	movq	(%r15), %rax
	xorl	%ecx, %ecx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setge	%cl
	movl	%ecx, 32(%rbx)
	movl	%r13d, 28(%rbx)
LBB0_45:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_DM_DIG_MIN,4,2                 ## @DM_DIG_MIN
	.comm	_DM_DIG_MAX_AP,4,2              ## @DM_DIG_MAX_AP
	.comm	_COMP_DIG,4,2                   ## @COMP_DIG
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no link\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
	.no_dead_strip	_rtl92ee_dm_dig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl92ee_dm_dig
_rtl92ee_dm_dig:                        ; @rtl92ee_dm_dig
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_39
; %bb.1:
	mov	x21, x0
	ldr	w24, [x19, #24]
	ldr	x11, [x0]
Lloh0:
	adrp	x22, _MAC80211_LINKED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC80211_LINKED@GOTPAGEOFF]
	ldr	x12, [x22]
	ldr	w9, [x19, #32]
Lloh2:
	adrp	x10, _DM_DIG_MIN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DM_DIG_MIN@GOTPAGEOFF]
Lloh4:
	adrp	x8, _DM_DIG_MAX_AP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DM_DIG_MAX_AP@GOTPAGEOFF]
	cmp	x11, x12
	b.ge	LBB0_3
; %bb.2:
	cmp	w9, #0
	cset	w27, ne
	ldr	w23, [x10]
	ldr	w26, [x8]
	mov	w8, #90
	str	w8, [x19, #40]
Lloh6:
	adrp	x8, _COMP_DIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMP_DIG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w9, #0
	mov	x25, x23
	b	LBB0_9
LBB0_3:
	cmp	w9, #0
	cset	w9, eq
	ldr	w23, [x10]
	ldr	w26, [x8]
	ldr	w8, [x19, #36]
	cmp	w8, #81
	b.lt	LBB0_5
; %bb.4:
	mov	w10, #90
	b	LBB0_7
LBB0_5:
	add	w10, w8, #10
	cmp	w10, w23
	b.ge	LBB0_7
; %bb.6:
	str	w23, [x19, #40]
	b	LBB0_8
LBB0_7:
	str	w10, [x19, #40]
LBB0_8:
	mov	w27, #0
	ldr	x10, [x19, #16]
	cmp	w8, w26
	csel	w11, w8, w26, lt
	cmp	w8, w23
	ccmp	x10, #0, #4, ge
	csel	w25, w23, w11, eq
LBB0_9:
	ldr	w8, [x19]
	mov	w10, #10001
	cmp	w8, w10
	b.lt	LBB0_12
; %bb.10:
	ldr	w11, [x19, #44]
	cmp	w11, #3
	b.ne	LBB0_14
; %bb.11:
	ldr	w10, [x19, #48]
	cmp	w10, w24
	b.lt	LBB0_15
	b	LBB0_20
LBB0_12:
	ldr	w10, [x19, #56]
	cbz	w10, LBB0_16
; %bb.13:
	sub	w10, w10, #1
	str	w10, [x19, #56]
	b	LBB0_23
LBB0_14:
	add	w10, w11, #1
	str	w10, [x19, #44]
	ldr	w10, [x19, #48]
	cmp	w10, w24
	b.ge	LBB0_19
LBB0_15:
	mov	w10, #1
	stp	w10, w24, [x19, #44]
	b	LBB0_23
LBB0_16:
	ldr	w10, [x19, #44]
	cmp	w10, #2
	b.gt	LBB0_21
; %bb.17:
	ldr	w10, [x19, #48]
	cmp	w10, w25
	b.le	LBB0_22
; %bb.18:
	sub	w11, w10, #1
	stp	w11, w10, [x19, #48]
	b	LBB0_23
LBB0_19:
	cmp	w11, #2
	b.lt	LBB0_23
LBB0_20:
	ldr	w11, [x19, #40]
	cmp	w10, w11
	csinc	w10, w11, w10, ge
	mov	w11, #3600
	stp	w10, w11, [x19, #52]
	b	LBB0_23
LBB0_21:
	str	wzr, [x19, #44]
	b	LBB0_23
LBB0_22:
	stp	w25, w25, [x19, #48]
LBB0_23:
	ldr	w11, [x19, #8]
	cmp	w11, #5
	b.ge	LBB0_25
; %bb.24:
	str	w23, [x19, #52]
	b	LBB0_26
LBB0_25:
	ldr	w23, [x19, #52]
LBB0_26:
	ldr	w10, [x19, #40]
	cmp	w23, w10
	b.le	LBB0_28
; %bb.27:
	str	w10, [x19, #52]
	mov	x23, x10
LBB0_28:
	ldr	x12, [x21]
	ldr	x13, [x22]
	cmp	x12, x13
	b.ge	LBB0_30
; %bb.29:
	mov	w9, #10001
	mov	w11, #8001
	sub	w12, w24, #2
	cmp	w8, #500
	csel	w12, w12, w24, lt
	add	w13, w24, #2
	cmp	w8, w11
	csel	w11, w12, w13, lt
	add	w12, w24, #4
	cmp	w8, w9
	csel	w8, w11, w12, lt
	tst	w27, #0x1
	csel	w8, w23, w8, ne
	b	LBB0_38
LBB0_30:
	cbz	w9, LBB0_32
; %bb.31:
	ldr	w8, [x19, #36]
	cmp	w8, w26
	csel	w8, w8, w26, lt
	str	wzr, [x19, #44]
	b	LBB0_38
LBB0_32:
Lloh14:
	adrp	x9, _DM_DIG_FA_TH2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DM_DIG_FA_TH2@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_34
; %bb.33:
	add	w12, w24, #4
Lloh17:
	adrp	x9, _DM_DIG_FA_TH1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DM_DIG_FA_TH1@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	b	LBB0_37
LBB0_34:
Lloh20:
	adrp	x9, _DM_DIG_FA_TH1@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DM_DIG_FA_TH1@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_36
; %bb.35:
	add	w12, w24, #2
	b	LBB0_37
LBB0_36:
Lloh23:
	adrp	x12, _DM_DIG_FA_TH0@GOTPAGE
Lloh24:
	ldr	x12, [x12, _DM_DIG_FA_TH0@GOTPAGEOFF]
Lloh25:
	ldr	w12, [x12]
	sub	w13, w24, #2
	cmp	w8, w12
	csel	w12, w13, w24, lt
LBB0_37:
	cmp	w8, w9
	ccmp	w11, #5, #0, lt
	csel	w8, w23, w12, lt
LBB0_38:
	cmp	w8, w10
	csel	w8, w8, w10, lt
	cmp	w8, w23
	csel	w1, w8, w23, gt
	mov	x0, x20
	bl	_rtl92ee_dm_write_dig
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w8, ge
	stp	w25, w8, [x19, #28]
LBB0_39:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_DM_DIG_MIN,4,2                 ; @DM_DIG_MIN
	.comm	_DM_DIG_MAX_AP,4,2              ; @DM_DIG_MAX_AP
	.comm	_COMP_DIG,4,2                   ; @COMP_DIG
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no link\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
	.no_dead_strip	_rtl92ee_dm_dig
.subsections_via_symbols
