	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_dm_check_edca_turbo
__rtl92s_dm_check_edca_turbo:           ## @_rtl92s_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	8(%rax), %rcx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.1:
	cmpl	$0, 12(%r14)
	jne	LBB0_3
## %bb.2:
	cmpl	$0, 20(%r14)
	je	LBB0_7
LBB0_3:
	cmpl	$0, 8(%r14)
	je	LBB0_6
## %bb.4:
	movq	_AC0_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_AC_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_5:
	movl	$0, 8(%r14)
LBB0_6:
	movl	$0, 12(%r14)
	movl	(%r14), %eax
	movl	%eax, __rtl92s_dm_check_edca_turbo.last_txok_cnt(%rip)
	movl	4(%r14), %eax
	movl	%eax, __rtl92s_dm_check_edca_turbo.last_rxok_cnt(%rip)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_edca_setting_ul@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rsi
	movl	(%rcx,%rsi,4), %r8d
	movq	_edca_setting_dl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rsi,4), %edx
	movq	_edca_setting_dl_gmode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rsi,4), %r9d
	movl	(%r14), %esi
	movl	4(%r14), %ebx
	subl	__rtl92s_dm_check_edca_turbo.last_txok_cnt(%rip), %esi
	subl	__rtl92s_dm_check_edca_turbo.last_rxok_cnt(%rip), %ebx
	movq	32(%r14), %rcx
	movq	_RF_1T2R@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_12
## %bb.8:
	shll	$2, %ebx
	movl	16(%r14), %ecx
	cmpl	%ebx, %esi
	jle	LBB0_14
LBB0_9:
	testl	%ecx, %ecx
	je	LBB0_10
LBB0_11:
	movq	_EDCAPARA_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r8d, %edx
	callq	_rtl_write_dword
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_12:
	shll	$2, %esi
	movl	16(%r14), %ecx
	cmpl	%esi, %ebx
	jle	LBB0_9
LBB0_14:
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.15:
	cmpl	$0, 8(%r14)
	jne	LBB0_18
LBB0_16:
	movq	16(%rax), %rax
	movq	_WIRELESS_MODE_G@GOTPCREL(%rip), %rcx
	movq	_WIRELESS_MODE_B@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	cmovel	%r9d, %edx
	cmpq	(%rcx), %rax
	movq	_EDCAPARA_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmovel	%r9d, %edx
	movq	%r14, %rdi
	callq	_rtl_write_dword
	movl	$1, %eax
LBB0_17:
	movl	%eax, 16(%r14)
LBB0_18:
	movl	$1, 8(%r14)
	jmp	LBB0_6
LBB0_10:
	cmpl	$0, 8(%r14)
	jne	LBB0_18
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,__rtl92s_dm_check_edca_turbo.last_txok_cnt,4,2 ## @_rtl92s_dm_check_edca_turbo.last_txok_cnt
.zerofill __DATA,__bss,__rtl92s_dm_check_edca_turbo.last_rxok_cnt,4,2 ## @_rtl92s_dm_check_edca_turbo.last_rxok_cnt
	.comm	_edca_setting_ul,8,3            ## @edca_setting_ul
	.comm	_edca_setting_dl,8,3            ## @edca_setting_dl
	.comm	_edca_setting_dl_gmode,8,3      ## @edca_setting_dl_gmode
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_RF_1T2R,8,3                    ## @RF_1T2R
	.comm	_EDCAPARA_BE,4,2                ## @EDCAPARA_BE
	.comm	_WIRELESS_MODE_G,8,3            ## @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_B,8,3            ## @WIRELESS_MODE_B
	.comm	_AC0_BE,4,2                     ## @AC0_BE
	.comm	_HW_VAR_AC_PARAM,4,2            ## @HW_VAR_AC_PARAM
	.no_dead_strip	__rtl92s_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 _rtl92s_dm_check_edca_turbo
__rtl92s_dm_check_edca_turbo:           ; @_rtl92s_dm_check_edca_turbo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	adrp	x21, __rtl92s_dm_check_edca_turbo.last_txok_cnt@PAGE
	adrp	x22, __rtl92s_dm_check_edca_turbo.last_rxok_cnt@PAGE
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_7
LBB0_3:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _AC0_BE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC0_BE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HW_VAR_AC_PARAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HW_VAR_AC_PARAM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x20
	blr	x8
LBB0_5:
	str	wzr, [x19, #8]
LBB0_6:
	str	wzr, [x19, #12]
	ldp	w8, w9, [x19]
	str	w8, [x21, __rtl92s_dm_check_edca_turbo.last_txok_cnt@PAGEOFF]
	str	w9, [x22, __rtl92s_dm_check_edca_turbo.last_rxok_cnt@PAGEOFF]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh9:
	adrp	x8, _edca_setting_ul@GOTPAGE
Lloh10:
	ldr	x8, [x8, _edca_setting_ul@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x0]
	lsl	x9, x9, #2
	ldr	w2, [x8, x9]
Lloh12:
	adrp	x8, _edca_setting_dl@GOTPAGE
Lloh13:
	ldr	x8, [x8, _edca_setting_dl@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
Lloh15:
	adrp	x10, _edca_setting_dl_gmode@GOTPAGE
Lloh16:
	ldr	x10, [x10, _edca_setting_dl_gmode@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	ldr	w9, [x10, x9]
	ldr	w10, [x21, __rtl92s_dm_check_edca_turbo.last_txok_cnt@PAGEOFF]
	ldp	w11, w12, [x19]
	sub	w10, w11, w10
	ldr	w11, [x22, __rtl92s_dm_check_edca_turbo.last_rxok_cnt@PAGEOFF]
	sub	w11, w12, w11
	ldr	x12, [x19, #32]
Lloh18:
	adrp	x13, _RF_1T2R@GOTPAGE
Lloh19:
	ldr	x13, [x13, _RF_1T2R@GOTPAGEOFF]
Lloh20:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_12
; %bb.8:
	ldr	w12, [x19, #16]
	cmp	w10, w11, lsl #2
	b.gt	LBB0_13
LBB0_9:
	cbz	w12, LBB0_11
; %bb.10:
	ldr	w10, [x19, #8]
	cbnz	w10, LBB0_17
LBB0_11:
	ldr	x10, [x0, #16]
Lloh21:
	adrp	x11, _WIRELESS_MODE_G@GOTPAGE
Lloh22:
	ldr	x11, [x11, _WIRELESS_MODE_G@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x11]
Lloh24:
	adrp	x12, _WIRELESS_MODE_B@GOTPAGE
Lloh25:
	ldr	x12, [x12, _WIRELESS_MODE_B@GOTPAGEOFF]
Lloh26:
	ldr	x12, [x12]
	cmp	x10, x12
	ccmp	x10, x11, #4, ne
Lloh27:
	adrp	x10, _EDCAPARA_BE@GOTPAGE
Lloh28:
	ldr	x10, [x10, _EDCAPARA_BE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x10]
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_rtl_write_dword
	mov	w8, #1
	b	LBB0_16
LBB0_12:
	ldr	w12, [x19, #16]
	cmp	w11, w10, lsl #2
	b.gt	LBB0_9
LBB0_13:
	cbnz	w12, LBB0_15
; %bb.14:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_17
LBB0_15:
Lloh30:
	adrp	x8, _EDCAPARA_BE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EDCAPARA_BE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_write_dword
	mov	w8, #0
LBB0_16:
	str	w8, [x19, #16]
LBB0_17:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,__rtl92s_dm_check_edca_turbo.last_txok_cnt,4,2 ; @_rtl92s_dm_check_edca_turbo.last_txok_cnt
.zerofill __DATA,__bss,__rtl92s_dm_check_edca_turbo.last_rxok_cnt,4,2 ; @_rtl92s_dm_check_edca_turbo.last_rxok_cnt
	.comm	_edca_setting_ul,8,3            ; @edca_setting_ul
	.comm	_edca_setting_dl,8,3            ; @edca_setting_dl
	.comm	_edca_setting_dl_gmode,8,3      ; @edca_setting_dl_gmode
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_RF_1T2R,8,3                    ; @RF_1T2R
	.comm	_EDCAPARA_BE,4,2                ; @EDCAPARA_BE
	.comm	_WIRELESS_MODE_G,8,3            ; @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_B,8,3            ; @WIRELESS_MODE_B
	.comm	_AC0_BE,4,2                     ; @AC0_BE
	.comm	_HW_VAR_AC_PARAM,4,2            ; @HW_VAR_AC_PARAM
	.no_dead_strip	__rtl92s_dm_check_edca_turbo
.subsections_via_symbols
