	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_edcf_setparams
_brcms_c_edcf_setparams:                ## @brcms_c_edcf_setparams
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	leaq	_brcms_c_edcf_setparams.default_edcf_acparams(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	8(%r15), %edx
	movl	%ebx, %r12d
	movq	_EDCF_ACI_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_EDCF_ACI_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %ebx
	movl	%edx, -56(%rbp)
	movl	%eax, -80(%rbp)
	movq	_EDCF_ECWMIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	4(%r15), %edi
	callq	_EDCF_ECW2CW
	movq	%rax, -64(%rbp)
	movq	_EDCF_ECWMAX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	4(%r15), %edi
	movq	_EDCF_ECWMAX_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %edi
	callq	_EDCF_ECW2CW
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %ebx
	leaq	-80(%rbp), %rdx
	movl	%r12d, %ecx
	callq	_brcms_c_wme_setparams
	incl	%r13d
	addq	$24, %r15
	cmpl	(%r14), %r13d
	jl	LBB0_2
LBB0_3:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	%r12, %rbx
	movq	%r12, %rdi
	callq	_brcms_c_suspend_mac_and_wait
	movq	%r12, %rdi
	callq	_brcms_c_enable_mac
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @brcms_c_edcf_setparams.default_edcf_acparams
_brcms_c_edcf_setparams.default_edcf_acparams:
	.long	139                             ## 0x8b
	.long	138                             ## 0x8a
	.long	137                             ## 0x89
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	136                             ## 0x88
	.long	135                             ## 0x87
	.long	134                             ## 0x86
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	133                             ## 0x85
	.long	132                             ## 0x84
	.long	131                             ## 0x83
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_EDCF_ACI_MASK,4,2              ## @EDCF_ACI_MASK
	.comm	_EDCF_ACI_SHIFT,4,2             ## @EDCF_ACI_SHIFT
	.comm	_EDCF_ECWMIN_MASK,4,2           ## @EDCF_ECWMIN_MASK
	.comm	_EDCF_ECWMAX_MASK,4,2           ## @EDCF_ECWMAX_MASK
	.comm	_EDCF_ECWMAX_SHIFT,4,2          ## @EDCF_ECWMAX_SHIFT
	.no_dead_strip	_brcms_c_edcf_setparams
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_edcf_setparams
_brcms_c_edcf_setparams:                ; @brcms_c_edcf_setparams
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _IEEE80211_NUM_ACS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IEEE80211_NUM_ACS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w23, #0
Lloh2:
	adrp	x25, _EDCF_ACI_SHIFT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EDCF_ACI_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _brcms_c_edcf_setparams.default_edcf_acparams@PAGE
Lloh5:
	add	x26, x26, _brcms_c_edcf_setparams.default_edcf_acparams@PAGEOFF
Lloh6:
	adrp	x27, _EDCF_ECWMIN_MASK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _EDCF_ECWMIN_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x28, _EDCF_ECWMAX_MASK@GOTPAGE
Lloh9:
	ldr	x28, [x28, _EDCF_ECWMAX_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x22, _EDCF_ECWMAX_SHIFT@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EDCF_ECWMAX_SHIFT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh12:
	adrp	x8, _EDCF_ACI_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EDCF_ACI_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldp	w9, w10, [x26]
	and	w8, w8, w9
	ldr	w11, [x25]
	asr	w21, w8, w11
	ldr	w8, [x26, #8]
	str	w8, [sp, #24]
	str	w9, [sp]
	ldr	w8, [x27]
	and	w0, w8, w10
	bl	_EDCF_ECW2CW
	str	x0, [sp, #16]
	ldr	w8, [x26, #4]
	ldr	w9, [x28]
	and	w8, w9, w8
	ldr	w9, [x22]
	asr	w0, w8, w9
	bl	_EDCF_ECW2CW
	str	x0, [sp, #8]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_brcms_c_wme_setparams
	add	w23, w23, #1
	ldr	w8, [x24]
	add	x26, x26, #24
	cmp	w23, w8
	b.lt	LBB0_2
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_brcms_c_suspend_mac_and_wait
	mov	x0, x19
	bl	_brcms_c_enable_mac
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @brcms_c_edcf_setparams.default_edcf_acparams
_brcms_c_edcf_setparams.default_edcf_acparams:
	.long	139                             ; 0x8b
	.long	138                             ; 0x8a
	.long	137                             ; 0x89
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	136                             ; 0x88
	.long	135                             ; 0x87
	.long	134                             ; 0x86
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	133                             ; 0x85
	.long	132                             ; 0x84
	.long	131                             ; 0x83
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_EDCF_ACI_MASK,4,2              ; @EDCF_ACI_MASK
	.comm	_EDCF_ACI_SHIFT,4,2             ; @EDCF_ACI_SHIFT
	.comm	_EDCF_ECWMIN_MASK,4,2           ; @EDCF_ECWMIN_MASK
	.comm	_EDCF_ECWMAX_MASK,4,2           ; @EDCF_ECWMAX_MASK
	.comm	_EDCF_ECWMAX_SHIFT,4,2          ; @EDCF_ECWMAX_SHIFT
	.no_dead_strip	_brcms_c_edcf_setparams
.subsections_via_symbols
