	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723be_dm_check_edca_turbo
_rtl8723be_dm_check_edca_turbo:         ## @rtl8723be_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	$24, %rsp
	.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
	movq	32(%rbx), %rcx
	movq	_PEER_RAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%r15b
	movq	_PEER_ATH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	cmpl	$0, 8(%rbx)
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	je	LBB0_2
## %bb.1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_2:
	cmpl	$0, 20(%rbx)
	sete	%dl
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
LBB0_3:
	movl	(%rbx), %r13d
	movl	4(%rbx), %r12d
	movq	_PEER_CISCO@GOTPCREL(%rip), %rdx
	movl	$7250987, %esi                  ## imm = 0x6EA42B
	cmpq	(%rdx), %rcx
	movb	%r15b, -42(%rbp)                ## 1-byte Spill
	jne	LBB0_4
## %bb.5:
	movq	(%rax), %rax
	movq	_WIRELESS_MODE_N_24G@GOTPCREL(%rip), %rdx
	movl	$7250987, %edi                  ## imm = 0x6EA42B
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_edca_setting_dl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rdi
	movq	_edca_setting_ul@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rsi
	jmp	LBB0_7
LBB0_4:
	movl	$7250987, %edi                  ## imm = 0x6EA42B
LBB0_7:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	subl	_rtl8723be_dm_check_edca_turbo.last_txok_cnt(%rip), %r13d
	subl	_rtl8723be_dm_check_edca_turbo.last_rxok_cnt(%rip), %r12d
	movq	%r14, %rdi
	callq	_rtl8723be_dm_is_edca_turbo_disable
	testq	%rax, %rax
	jne	LBB0_16
## %bb.8:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_13
## %bb.9:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	orb	%al, -42(%rbp)                  ## 1-byte Folded Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	shll	$2, %r12d
	cmpl	%r12d, %r13d
	setle	%al
	jmp	LBB0_12
LBB0_13:
	cmpl	$0, 16(%rbx)
	je	LBB0_15
## %bb.14:
	movq	_AC0_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_AC_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%rax)
LBB0_15:
	movl	$0, 16(%rbx)
	jmp	LBB0_16
LBB0_11:
	shll	$2, %r13d
	cmpl	%r13d, %r12d
	setg	%al
LBB0_12:
	movzbl	%al, %r14d
	testb	%r14b, %r14b
	cmovneq	%rcx, %r15
	movq	_REG_EDCA_BE_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_rtl_write_dword
	movl	%r14d, 12(%rbx)
	movl	$1, 16(%rbx)
LBB0_16:
	movl	$0, 8(%rbx)
	movl	(%rbx), %eax
	movl	%eax, _rtl8723be_dm_check_edca_turbo.last_txok_cnt(%rip)
	movl	4(%rbx), %eax
	movl	%eax, _rtl8723be_dm_check_edca_turbo.last_rxok_cnt(%rip)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rtl8723be_dm_check_edca_turbo.last_txok_cnt,4,2 ## @rtl8723be_dm_check_edca_turbo.last_txok_cnt
.zerofill __DATA,__bss,_rtl8723be_dm_check_edca_turbo.last_rxok_cnt,4,2 ## @rtl8723be_dm_check_edca_turbo.last_rxok_cnt
	.comm	_PEER_RAL,8,3                   ## @PEER_RAL
	.comm	_PEER_ATH,8,3                   ## @PEER_ATH
	.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
	.comm	_REG_EDCA_BE_PARAM,4,2          ## @REG_EDCA_BE_PARAM
	.comm	_AC0_BE,4,2                     ## @AC0_BE
	.comm	_HW_VAR_AC_PARAM,4,2            ## @HW_VAR_AC_PARAM
	.no_dead_strip	_rtl8723be_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 rtl8723be_dm_check_edca_turbo
_rtl8723be_dm_check_edca_turbo:         ; @rtl8723be_dm_check_edca_turbo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, [x19, #32]
Lloh0:
	adrp	x9, _PEER_RAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PEER_RAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _PEER_ATH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PEER_ATH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w10, eq
	ldr	w9, [x19, #8]
	str	w10, [sp, #4]                   ; 4-byte Folded Spill
	cbz	w9, LBB0_2
; %bb.1:
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	ldr	w9, [x19, #20]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [sp, #8]                    ; 4-byte Folded Spill
LBB0_3:
	adrp	x23, _rtl8723be_dm_check_edca_turbo.last_txok_cnt@PAGE
	adrp	x24, _rtl8723be_dm_check_edca_turbo.last_rxok_cnt@PAGE
	mov	w25, #42027
	movk	w25, #110, lsl #16
Lloh6:
	adrp	x9, _PEER_CISCO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PEER_CISCO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x0]
Lloh9:
	adrp	x10, _WIRELESS_MODE_N_24G@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WIRELESS_MODE_N_24G@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	mov	w26, #42027
	movk	w26, #110, lsl #16
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
Lloh12:
	adrp	x9, _edca_setting_dl@GOTPAGE
Lloh13:
	ldr	x9, [x9, _edca_setting_dl@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	lsl	x8, x8, #3
	ldr	x26, [x9, x8]
Lloh15:
	adrp	x9, _edca_setting_ul@GOTPAGE
Lloh16:
	ldr	x9, [x9, _edca_setting_ul@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x25, [x9, x8]
	b	LBB0_7
LBB0_6:
	mov	w26, #42027
	movk	w26, #110, lsl #16
LBB0_7:
	ldr	w27, [x23, _rtl8723be_dm_check_edca_turbo.last_txok_cnt@PAGEOFF]
	ldp	w21, w28, [x19]
	ldr	w22, [x24, _rtl8723be_dm_check_edca_turbo.last_rxok_cnt@PAGEOFF]
	mov	x0, x20
	bl	_rtl8723be_dm_is_edca_turbo_disable
	cbnz	x0, LBB0_14
; %bb.8:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_10
; %bb.9:
	sub	w8, w21, w27
	sub	w9, w28, w22
	cmp	w9, w8, lsl #2
	cset	w10, gt
	cmp	w8, w9, lsl #2
	cset	w8, le
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w9, #0
	csel	w20, w10, w8, eq
	cmp	w20, #0
	csel	x2, x26, x25, ne
Lloh18:
	adrp	x8, _REG_EDCA_BE_PARAM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_EDCA_BE_PARAM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_write_dword
	mov	w8, #1
	stp	w20, w8, [x19, #12]
	b	LBB0_13
LBB0_10:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _AC0_BE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AC0_BE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _HW_VAR_AC_PARAM@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HW_VAR_AC_PARAM@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x20
	blr	x8
LBB0_12:
	str	wzr, [x19, #16]
LBB0_13:
	adrp	x23, _rtl8723be_dm_check_edca_turbo.last_txok_cnt@PAGE
	adrp	x24, _rtl8723be_dm_check_edca_turbo.last_rxok_cnt@PAGE
LBB0_14:
	str	wzr, [x19, #8]
	ldp	w8, w9, [x19]
	str	w8, [x23, _rtl8723be_dm_check_edca_turbo.last_txok_cnt@PAGEOFF]
	str	w9, [x24, _rtl8723be_dm_check_edca_turbo.last_rxok_cnt@PAGEOFF]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rtl8723be_dm_check_edca_turbo.last_txok_cnt,4,2 ; @rtl8723be_dm_check_edca_turbo.last_txok_cnt
.zerofill __DATA,__bss,_rtl8723be_dm_check_edca_turbo.last_rxok_cnt,4,2 ; @rtl8723be_dm_check_edca_turbo.last_rxok_cnt
	.comm	_PEER_RAL,8,3                   ; @PEER_RAL
	.comm	_PEER_ATH,8,3                   ; @PEER_ATH
	.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
	.comm	_REG_EDCA_BE_PARAM,4,2          ; @REG_EDCA_BE_PARAM
	.comm	_AC0_BE,4,2                     ; @AC0_BE
	.comm	_HW_VAR_AC_PARAM,4,2            ; @HW_VAR_AC_PARAM
	.no_dead_strip	_rtl8723be_dm_check_edca_turbo
.subsections_via_symbols
