	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_dm_check_edca_turbo
_rtl8821ae_dm_check_edca_turbo:         ## @rtl8821ae_dm_check_edca_turbo
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_dm
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_COMP_TURBO@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r14), %ebx
	movl	(%r13), %r12d
	movq	_DM_REG_EDCA_BE_11N@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rtl_read_dword
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$256, 32(%r15)                  ## imm = 0x100
	jle	LBB0_2
## %bb.1:
	movl	$1, 16(%r15)
	movl	$1, %r8d
	jmp	LBB0_3
LBB0_2:
	movl	16(%r15), %r8d
LBB0_3:
	movl	$0, 32(%r15)
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	%rcx, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	subq	8(%rdx), %rdi
	movq	%rax, %rbx
	subq	(%rdx), %rbx
	movq	%rcx, 8(%rdx)
	movq	%rax, (%rdx)
	testl	%r8d, %r8d
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	cmpl	$0, 28(%r15)
	sete	%al
LBB0_6:
	movzbl	%al, %r12d
	movq	48(%r15), %rax
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %rcx
	movl	$6202411, %esi                  ## imm = 0x5EA42B
	cmpq	(%rcx), %rax
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.7:
	movq	56(%r15), %rax
	movq	_PEER_CISCO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_WIRELESS_MODE_N_24G@GOTPCREL(%rip), %rdx
	movl	$6202411, %edi                  ## imm = 0x5EA42B
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.9:
	movq	_edca_setting_dl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	_edca_setting_ul@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	jmp	LBB0_12
LBB0_11:
	movl	$6202411, %edi                  ## imm = 0x5EA42B
LBB0_12:
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movl	(%r13), %edx
	movl	28(%r15), %r9d
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r14), %esi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:
	movq	%r15, %rax
	addq	$20, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r15, %rdi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r14), %esi
	movl	(%r13), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_rtl8821ae_dm_edca_choose_traffic_idx
	cmpl	$0, 20(%r15)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	cmovel	%r12d, %ebx
	movq	_DM_REG_EDCA_BE_11N@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_dword
	movl	(%r14), %esi
	movl	(%r13), %edx
	leaq	L_.str.6(%rip), %rcx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$1, 24(%r15)
	movl	(%r14), %esi
	movl	(%r13), %edx
	movl	%ebx, (%rsp)
	leaq	L_.str.7(%rip), %rcx
	movq	%r15, %rdi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_17
LBB0_14:
	cmpl	$0, 24(%r15)
	je	LBB0_16
## %bb.15:
	movq	_AC0_BE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	40(%r15), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_AC_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-96(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rax)
LBB0_16:
	movl	$0, 24(%r15)
LBB0_17:
	movl	$0, 16(%r15)
	movups	(%r15), %xmm0
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_TURBO,4,2                 ## @COMP_TURBO
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtl8821ae_dm_check_edca_turbo=====>\n"

L_.str.1:                               ## @.str.1
	.asciz	"Original BE PARAM: 0x%x\n"

	.comm	_DM_REG_EDCA_BE_11N,4,2         ## @DM_REG_EDCA_BE_11N
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ## @HARDWARE_TYPE_RTL8812AE
	.comm	_PEER_CISCO,8,3                 ## @PEER_CISCO
	.comm	_WIRELESS_MODE_N_24G,8,3        ## @WIRELESS_MODE_N_24G
	.comm	_edca_setting_dl,8,3            ## @edca_setting_dl
	.comm	_edca_setting_ul,8,3            ## @edca_setting_ul
L_.str.2:                               ## @.str.2
	.asciz	"bIsAnyNonBEPkts : 0x%x  bDisableFrameBursting : 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"bEdcaTurboOn : 0x%x bBiasOnRx : 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"curTxOkCnt : 0x%llx\n"

L_.str.5:                               ## @.str.5
	.asciz	"curRxOkCnt : 0x%llx\n"

L_.str.6:                               ## @.str.6
	.asciz	"EDCA Turbo on: EDCA_BE:0x%x\n"

L_.str.7:                               ## @.str.7
	.asciz	"EDCA_BE_DL : 0x%x  EDCA_BE_UL : 0x%x  EDCA_BE : 0x%x\n"

	.comm	_AC0_BE,8,3                     ## @AC0_BE
	.comm	_HW_VAR_AC_PARAM,4,2            ## @HW_VAR_AC_PARAM
	.no_dead_strip	_rtl8821ae_dm_check_edca_turbo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8821ae_dm_check_edca_turbo
_rtl8821ae_dm_check_edca_turbo:         ; @rtl8821ae_dm_check_edca_turbo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x27, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_dm
	mov	x20, x0
Lloh0:
	adrp	x26, _COMP_TURBO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _COMP_TURBO@GOTPAGEOFF]
	ldr	w1, [x26]
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
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w23, [x26]
	ldr	w24, [x22]
Lloh6:
	adrp	x8, _DM_REG_EDCA_BE_11N@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DM_REG_EDCA_BE_11N@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_read_dword
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_RT_TRACE
	ldr	w8, [x19, #32]
	mov	x12, x22
	cmp	w8, #256
	b.le	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #16]
LBB0_3:
	mov	w22, #0
	str	wzr, [x19, #32]
	ldp	x24, x23, [x19]
	ldp	x25, x11, [x20]
	stp	x24, x23, [x20]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w9, [x19, #28]
	cmp	w9, #0
	cset	w22, eq
LBB0_5:
	mov	w28, #42027
	movk	w28, #94, lsl #16
	ldr	x9, [x19, #48]
Lloh11:
	adrp	x10, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	str	x11, [sp, #24]                  ; 8-byte Folded Spill
	b.eq	LBB0_9
; %bb.6:
	ldr	x9, [x19, #56]
Lloh14:
	adrp	x10, _PEER_CISCO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PEER_CISCO@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	x10, [x27]
Lloh17:
	adrp	x11, _WIRELESS_MODE_N_24G@GOTPAGE
Lloh18:
	ldr	x11, [x11, _WIRELESS_MODE_N_24G@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	mov	x13, x28
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.8:
Lloh20:
	adrp	x10, _edca_setting_dl@GOTPAGE
Lloh21:
	ldr	x10, [x10, _edca_setting_dl@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	lsl	x9, x9, #2
	ldr	w13, [x10, x9]
Lloh23:
	adrp	x10, _edca_setting_ul@GOTPAGE
Lloh24:
	ldr	x10, [x10, _edca_setting_ul@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	ldr	w28, [x10, x9]
	b	LBB0_10
LBB0_9:
	mov	x13, x28
LBB0_10:
	str	x13, [sp, #32]                  ; 8-byte Folded Spill
	ldr	w1, [x26]
	mov	x27, x12
	ldr	w2, [x12]
	ldr	w9, [x19, #28]
	stp	x8, x9, [sp]
Lloh26:
	adrp	x3, l_.str.2@PAGE
Lloh27:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x26]
	ldr	w2, [x27]
	stp	x22, xzr, [sp]
Lloh28:
	adrp	x3, l_.str.3@PAGE
Lloh29:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	cbz	w22, LBB0_12
; %bb.11:
	add	x22, x19, #20
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x23, x23, x8
	sub	x24, x24, x25
	ldr	w1, [x26]
	ldr	w2, [x27]
	str	x23, [sp]
Lloh30:
	adrp	x3, l_.str.4@PAGE
Lloh31:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x26]
	ldr	w2, [x27]
	str	x24, [sp]
Lloh32:
	adrp	x3, l_.str.5@PAGE
Lloh33:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	mov	x4, x22
	bl	_rtl8821ae_dm_edca_choose_traffic_idx
	ldr	w8, [x19, #20]
	cmp	w8, #0
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	csel	w21, w28, w22, eq
Lloh34:
	adrp	x8, _DM_REG_EDCA_BE_11N@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DM_REG_EDCA_BE_11N@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_rtl_write_dword
	ldr	w1, [x26]
	ldr	w2, [x27]
	str	x21, [sp]
Lloh37:
	adrp	x3, l_.str.6@PAGE
Lloh38:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w8, #1
	str	w8, [x19, #24]
	ldr	w1, [x26]
	ldr	w2, [x27]
	stp	x28, x21, [sp, #8]
	str	x22, [sp]
Lloh39:
	adrp	x3, l_.str.7@PAGE
Lloh40:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	b	LBB0_15
LBB0_12:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_14
; %bb.13:
Lloh41:
	adrp	x8, _AC0_BE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AC0_BE@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh44:
	adrp	x9, _HW_VAR_AC_PARAM@GOTPAGE
Lloh45:
	ldr	x9, [x9, _HW_VAR_AC_PARAM@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x9]
	add	x2, sp, #40
	mov	x0, x21
	blr	x8
LBB0_14:
	str	wzr, [x19, #24]
LBB0_15:
	str	wzr, [x19, #16]
	ldr	q0, [x19]
	str	q0, [x20]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_TURBO,4,2                 ; @COMP_TURBO
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtl8821ae_dm_check_edca_turbo=====>\n"

l_.str.1:                               ; @.str.1
	.asciz	"Original BE PARAM: 0x%x\n"

	.comm	_DM_REG_EDCA_BE_11N,4,2         ; @DM_REG_EDCA_BE_11N
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ; @HARDWARE_TYPE_RTL8812AE
	.comm	_PEER_CISCO,8,3                 ; @PEER_CISCO
	.comm	_WIRELESS_MODE_N_24G,8,3        ; @WIRELESS_MODE_N_24G
	.comm	_edca_setting_dl,8,3            ; @edca_setting_dl
	.comm	_edca_setting_ul,8,3            ; @edca_setting_ul
l_.str.2:                               ; @.str.2
	.asciz	"bIsAnyNonBEPkts : 0x%x  bDisableFrameBursting : 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"bEdcaTurboOn : 0x%x bBiasOnRx : 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"curTxOkCnt : 0x%llx\n"

l_.str.5:                               ; @.str.5
	.asciz	"curRxOkCnt : 0x%llx\n"

l_.str.6:                               ; @.str.6
	.asciz	"EDCA Turbo on: EDCA_BE:0x%x\n"

l_.str.7:                               ; @.str.7
	.asciz	"EDCA_BE_DL : 0x%x  EDCA_BE_UL : 0x%x  EDCA_BE : 0x%x\n"

	.comm	_AC0_BE,8,3                     ; @AC0_BE
	.comm	_HW_VAR_AC_PARAM,4,2            ; @HW_VAR_AC_PARAM
	.no_dead_strip	_rtl8821ae_dm_check_edca_turbo
.subsections_via_symbols
