	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_wme_initparams_locked
_ieee80211_wme_initparams_locked:       ## @ieee80211_wme_initparams_locked
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	%r13, %rdi
	callq	_IEEE80211_LOCK_ASSERT
	movq	_IEEE80211_C_WME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_17
## %bb.1:
	cmpl	$1, 4(%r13)
	jg	LBB0_17
## %bb.2:
	movq	$0, 48(%r13)
	movq	8(%r13), %rdi
	movq	_IEEE80211_CHAN_ANYC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_3
## %bb.4:
	movq	_IEEE80211_MODE_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	callq	_ieee80211_chan2mode
LBB0_5:
	movq	_WME_NUM_AC@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_16
## %bb.6:
	movl	%eax, %eax
	xorl	%r14d, %r14d
	shlq	$2, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_phyParamForAC_VI@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r8
	movq	_bssPhyParamForAC_VI@GOTPCREL(%rip), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rcx), %r15
	addq	%rax, %r15
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	40(%r13), %rcx
	addq	%r14, %rcx
	movq	16(%r13), %rax
	movq	_IEEE80211_M_HOSTAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	cmovneq	%r15, %r8
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_setwmeparams
	movq	32(%r13), %rcx
	addq	%r14, %rcx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movq	%r15, %r8
	callq	_setwmeparams
	incq	%rbx
	movq	_WME_NUM_AC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$128, %ebx
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %ebx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$130, %ebx
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_phyParamForAC_BK@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	addq	-48(%rbp), %r8                  ## 8-byte Folded Reload
	movq	%r8, %r15
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_phyParamForAC_VO@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r8
	movq	_bssPhyParamForAC_VO@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_phyParamForAC_BE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r8
	movq	_bssPhyParamForAC_BE@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	_HIGH_PRI_SWITCH_THRESH@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	imull	(%rcx), %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movl	%eax, 24(%r13)
	movq	_WME_F_AGGRMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 28(%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_wme_updateparams     ## TAILCALL
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_C_WME,4,2            ## @IEEE80211_C_WME
	.comm	_IEEE80211_CHAN_ANYC,8,3        ## @IEEE80211_CHAN_ANYC
	.comm	_IEEE80211_MODE_AUTO,4,2        ## @IEEE80211_MODE_AUTO
	.comm	_WME_NUM_AC,4,2                 ## @WME_NUM_AC
	.comm	_phyParamForAC_BK,8,3           ## @phyParamForAC_BK
	.comm	_phyParamForAC_VI,8,3           ## @phyParamForAC_VI
	.comm	_bssPhyParamForAC_VI,8,3        ## @bssPhyParamForAC_VI
	.comm	_phyParamForAC_VO,8,3           ## @phyParamForAC_VO
	.comm	_bssPhyParamForAC_VO,8,3        ## @bssPhyParamForAC_VO
	.comm	_phyParamForAC_BE,8,3           ## @phyParamForAC_BE
	.comm	_bssPhyParamForAC_BE,8,3        ## @bssPhyParamForAC_BE
	.comm	_IEEE80211_M_HOSTAP,8,3         ## @IEEE80211_M_HOSTAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chan"

L_.str.1:                               ## @.str.1
	.asciz	"bss "

	.comm	_HIGH_PRI_SWITCH_THRESH,4,2     ## @HIGH_PRI_SWITCH_THRESH
	.comm	_WME_F_AGGRMODE,4,2             ## @WME_F_AGGRMODE
	.no_dead_strip	_ieee80211_wme_initparams_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_wme_initparams_locked
_ieee80211_wme_initparams_locked:       ; @ieee80211_wme_initparams_locked
	.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	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_IEEE80211_LOCK_ASSERT
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_C_WME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_C_WME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.gt	LBB0_18
; %bb.2:
	str	xzr, [x20, #48]
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x8, _IEEE80211_CHAN_ANYC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_CHAN_ANYC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _IEEE80211_MODE_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_MODE_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	bl	_ieee80211_chan2mode
LBB0_5:
Lloh9:
	adrp	x25, _WME_NUM_AC@GOTPAGE
Lloh10:
	ldr	x25, [x25, _WME_NUM_AC@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x26, #0
	mov	x21, #0
	mov	w8, w0
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	lsl	x28, x8, #2
Lloh11:
	adrp	x27, _IEEE80211_M_HOSTAP@GOTPAGE
Lloh12:
	ldr	x27, [x27, _IEEE80211_M_HOSTAP@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str@PAGE
Lloh14:
	add	x22, x22, l_.str@PAGEOFF
Lloh15:
	adrp	x23, l_.str.1@PAGE
Lloh16:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh17:
	adrp	x8, _phyParamForAC_VI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _phyParamForAC_VI@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x8, x8, x28
Lloh20:
	adrp	x9, _bssPhyParamForAC_VI@GOTPAGE
Lloh21:
	ldr	x9, [x9, _bssPhyParamForAC_VI@GOTPAGEOFF]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x9]
	add	x24, x9, x28
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x20, #40]
	add	x3, x9, x26
	ldr	x9, [x20, #16]
	ldr	x10, [x27]
	cmp	x9, x10
	csel	x4, x8, x24, eq
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_setwmeparams
	ldr	x8, [x20, #32]
	add	x3, x8, x26
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x4, x24
	bl	_setwmeparams
	add	x21, x21, #1
	ldrsw	x8, [x25]
	add	x26, x26, #4
	cmp	x21, x8
	b.ge	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	w21, #128
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w21, #129
	b.eq	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w21, #130
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh22:
	adrp	x8, _phyParamForAC_BK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _phyParamForAC_BK@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	mov	x24, x8
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh25:
	adrp	x8, _phyParamForAC_VO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _phyParamForAC_VO@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x8, x8, x28
Lloh28:
	adrp	x9, _bssPhyParamForAC_VO@GOTPAGE
Lloh29:
	ldr	x9, [x9, _bssPhyParamForAC_VO@GOTPAGEOFF]
	b	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh30:
	adrp	x8, _phyParamForAC_BE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _phyParamForAC_BE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	add	x8, x8, x28
Lloh33:
	adrp	x9, _bssPhyParamForAC_BE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _bssPhyParamForAC_BE@GOTPAGEOFF]
	b	LBB0_8
LBB0_16:
	ldr	x8, [x19]
	cbz	x8, LBB0_18
; %bb.17:
Lloh35:
	adrp	x9, _HIGH_PRI_SWITCH_THRESH@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HIGH_PRI_SWITCH_THRESH@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	ldr	w8, [x8]
	mul	w8, w8, w9
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
Lloh38:
	adrp	x9, _WME_F_AGGRMODE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _WME_F_AGGRMODE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	ldr	w10, [x20, #28]
	bic	w9, w10, w9
	stp	w8, w9, [x20, #24]
	mov	x0, x19
	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
	b	_ieee80211_wme_updateparams
LBB0_18:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_C_WME,4,2            ; @IEEE80211_C_WME
	.comm	_IEEE80211_CHAN_ANYC,8,3        ; @IEEE80211_CHAN_ANYC
	.comm	_IEEE80211_MODE_AUTO,4,2        ; @IEEE80211_MODE_AUTO
	.comm	_WME_NUM_AC,4,2                 ; @WME_NUM_AC
	.comm	_phyParamForAC_BK,8,3           ; @phyParamForAC_BK
	.comm	_phyParamForAC_VI,8,3           ; @phyParamForAC_VI
	.comm	_bssPhyParamForAC_VI,8,3        ; @bssPhyParamForAC_VI
	.comm	_phyParamForAC_VO,8,3           ; @phyParamForAC_VO
	.comm	_bssPhyParamForAC_VO,8,3        ; @bssPhyParamForAC_VO
	.comm	_phyParamForAC_BE,8,3           ; @phyParamForAC_BE
	.comm	_bssPhyParamForAC_BE,8,3        ; @bssPhyParamForAC_BE
	.comm	_IEEE80211_M_HOSTAP,8,3         ; @IEEE80211_M_HOSTAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chan"

l_.str.1:                               ; @.str.1
	.asciz	"bss "

	.comm	_HIGH_PRI_SWITCH_THRESH,4,2     ; @HIGH_PRI_SWITCH_THRESH
	.comm	_WME_F_AGGRMODE,4,2             ; @WME_F_AGGRMODE
	.no_dead_strip	_ieee80211_wme_initparams_locked
.subsections_via_symbols
