	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_sta_wmm_params
_ieee80211_sta_wmm_params:              ## @ieee80211_sta_wmm_params
	.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	%rdx, %r15
	movq	8(%rdi), %rdx
	xorl	%eax, %eax
	cmpl	$0, (%rdx)
	je	LBB0_30
## %bb.1:
	cmpq	$8, %rcx
	jb	LBB0_30
## %bb.2:
	testq	%r15, %r15
	je	LBB0_30
## %bb.3:
	movq	%rdi, %rbx
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, (%rdi)
	jl	LBB0_30
## %bb.4:
	cmpl	$1, 20(%r15)
	jne	LBB0_30
## %bb.5:
	movq	%rsi, %r13
	movq	_IEEE80211_STA_UAPSD_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	testl	%edx, 16(%rsi)
	je	LBB0_7
## %bb.6:
	movl	20(%r13), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
LBB0_7:
	movl	24(%r15), %edx
	andl	$15, %edx
	cmpl	24(%r13), %edx
	je	LBB0_30
## %bb.8:
	movl	%edx, 24(%r13)
	movq	%rcx, %r14
	addq	$-8, %r14
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	$0, (%r13)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	$4, %r14
	jb	LBB0_29
## %bb.9:
	addq	$32, %r15
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$-4, %rax
	addq	$8, %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$3, %rax
	jbe	LBB0_29
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r12d
	movl	%r12d, %r14d
	shrl	$5, %r14d
	andl	$3, %r14d
	shrl	$4, %r12d
	andl	$1, %r12d
	cmpl	$3, %r14d
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$2, %r14d
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$1, %r14d
	jne	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$3, -48(%rbp)                   ## 4-byte Folded Spill
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_BK@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	testl	%r12d, %r12d
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_VI@GOTPCREL(%rip), %rax
	movq	-104(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	testl	%r12d, %r12d
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_VO@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$2, -48(%rbp)                   ## 4-byte Folded Spill
	testl	%r12d, %r12d
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_BE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$5, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$4, %edi
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_VI@GOTPCREL(%rip), %rbx
	jmp	LBB0_25
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %edi
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_BK@GOTPCREL(%rip), %rbx
	jmp	LBB0_25
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$7, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$6, %edi
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_VO@GOTPCREL(%rip), %rbx
	jmp	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$3, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edi, %edi
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_BE@GOTPCREL(%rip), %rbx
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_BIT
	movl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_BIT
	orl	%r13d, %eax
	movq	-104(%rbp), %r13                ## 8-byte Reload
	orl	%eax, (%r13)
	movq	%rbx, %rax
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ebx, %ebx
	movl	(%rax), %eax
	andl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	setne	%bl
	movl	(%r15), %eax
	andl	$15, %eax
	movl	%eax, -96(%rbp)
	movl	4(%r15), %edi
	shrl	$4, %edi
	andl	$15, %edi
	callq	_ecw2cw
	movq	%rax, -80(%rbp)
	movl	4(%r15), %edi
	andl	$15, %edi
	callq	_ecw2cw
	movq	%rax, -72(%rbp)
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_get_unaligned_le16
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -84(%rbp)
	movl	%r12d, -92(%rbp)
	movl	%ebx, -88(%rbp)
	movl	-96(%rbp), %r9d
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%edx, %r14d
	movl	%r12d, %r8d
	pushq	%rbx
	pushq	%rax
	pushq	-80(%rbp)
	pushq	-72(%rbp)
	callq	_mlme_dbg
	addq	$32, %rsp
	movq	8(%r13), %rax
	movl	%r14d, %ecx
	shlq	$5, %rcx
	movups	-96(%rbp), %xmm0
	movups	-80(%rbp), %xmm1
	movups	%xmm0, (%rax,%rcx)
	movups	%xmm1, 16(%rax,%rcx)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	leaq	-96(%rbp), %rcx
	callq	_drv_conf_tx
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_sdata_err
	jmp	LBB0_28
LBB0_29:
	movl	$1, 4(%r13)
	movl	$1, %eax
LBB0_30:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NUM_ACS,8,3          ## @IEEE80211_NUM_ACS
	.comm	_IEEE80211_STA_UAPSD_ENABLED,4,2 ## @IEEE80211_STA_UAPSD_ENABLED
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_BK,4,2 ## @IEEE80211_WMM_IE_STA_QOSINFO_AC_BK
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_VI,4,2 ## @IEEE80211_WMM_IE_STA_QOSINFO_AC_VI
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_VO,4,2 ## @IEEE80211_WMM_IE_STA_QOSINFO_AC_VO
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_BE,4,2 ## @IEEE80211_WMM_IE_STA_QOSINFO_AC_BE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WMM queue=%d aci=%d acm=%d aifs=%d cWmin=%d cWmax=%d txop=%d uapsd=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set TX queue parameters for queue %d\n"

	.no_dead_strip	_ieee80211_sta_wmm_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_sta_wmm_params
_ieee80211_sta_wmm_params:              ; @ieee80211_sta_wmm_params
	.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
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	w0, #0
	subs	x28, x3, #8
	b.lo	LBB0_10
; %bb.2:
	mov	x21, x2
	cbz	x2, LBB0_10
; %bb.3:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_NUM_ACS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_NUM_ACS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.4:
	ldr	w8, [x21, #20]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.5:
	mov	x19, x1
	ldr	w8, [x1, #16]
Lloh3:
	adrp	x9, _IEEE80211_STA_UAPSD_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_STA_UAPSD_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w27, [x19, #20]
	b	LBB0_8
LBB0_7:
	mov	w27, #0
LBB0_8:
	ldr	w8, [x21, #24]
	and	w8, w8, #0xf
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.ne	LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
	str	w8, [x19, #24]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	wzr, [x19]
	cmp	x28, #4
	b.lo	LBB0_32
; %bb.12:
	add	x21, x21, #32
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	x28, x28, #4
	add	x21, x26, #8
	cmp	x28, #3
	b.ls	LBB0_32
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ubfx	w24, w8, #5, #2
	ubfx	w25, w8, #4, #1
	cmp	w24, #3
	b.eq	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w24, #2
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w24, #1
	b.ne	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w23, #3
	cbnz	w25, LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh6:
	adrp	x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_BK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_BK@GOTPAGEOFF]
	b	LBB0_30
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w23, #1
	cbnz	w25, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh8:
	adrp	x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_VI@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_VI@GOTPAGEOFF]
	b	LBB0_30
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w23, #0
	cbnz	w25, LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh10:
	adrp	x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_VO@GOTPAGE
Lloh11:
	ldr	x22, [x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_VO@GOTPAGEOFF]
	b	LBB0_30
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w23, #2
	cbnz	w25, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh12:
	adrp	x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_BE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_BE@GOTPAGEOFF]
	b	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w26, #5
	mov	w0, #4
Lloh14:
	adrp	x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_VI@GOTPAGE
Lloh15:
	ldr	x22, [x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_VI@GOTPAGEOFF]
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w26, #2
	mov	w0, #1
Lloh16:
	adrp	x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_BK@GOTPAGE
Lloh17:
	ldr	x22, [x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_BK@GOTPAGEOFF]
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w26, #7
	mov	w0, #6
Lloh18:
	adrp	x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_VO@GOTPAGE
Lloh19:
	ldr	x22, [x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_VO@GOTPAGEOFF]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #0
	mov	w26, #3
Lloh20:
	adrp	x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_BE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _IEEE80211_WMM_IE_STA_QOSINFO_AC_BE@GOTPAGEOFF]
LBB0_29:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_BIT
	mov	x27, x0
	mov	x0, x26
	bl	_BIT
	orr	w8, w0, w27
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
LBB0_30:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x22]
	tst	w8, w27
	cset	w22, ne
	ldp	w8, w9, [x21]
	and	w8, w8, #0xf
	str	w8, [sp, #16]
	ubfx	w0, w9, #4, #4
	bl	_ecw2cw
	str	x0, [sp, #32]
	ldr	w8, [x21, #4]
	and	w0, w8, #0xf
	bl	_ecw2cw
	str	x0, [sp, #40]
	add	x26, x21, #8
	mov	x0, x26
	bl	_get_unaligned_le16
	stp	w22, w0, [sp, #24]
	str	w25, [sp, #20]
	ldr	w5, [sp, #16]
	ldp	x7, x6, [sp, #32]
	stp	w0, w22, [sp]
	mov	x0, x19
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	bl	_mlme_dbg
	ldr	x8, [x19, #8]
	mov	w9, w23
	ldp	q1, q0, [sp, #16]
	add	x8, x8, x9, lsl #5
	stp	q1, q0, [x8]
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_drv_conf_tx
	cbz	x0, LBB0_13
; %bb.31:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_sdata_err
	b	LBB0_13
LBB0_32:
	mov	w0, #1
	str	w0, [x19, #4]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NUM_ACS,8,3          ; @IEEE80211_NUM_ACS
	.comm	_IEEE80211_STA_UAPSD_ENABLED,4,2 ; @IEEE80211_STA_UAPSD_ENABLED
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_BK,4,2 ; @IEEE80211_WMM_IE_STA_QOSINFO_AC_BK
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_VI,4,2 ; @IEEE80211_WMM_IE_STA_QOSINFO_AC_VI
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_VO,4,2 ; @IEEE80211_WMM_IE_STA_QOSINFO_AC_VO
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_BE,4,2 ; @IEEE80211_WMM_IE_STA_QOSINFO_AC_BE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WMM queue=%d aci=%d acm=%d aifs=%d cWmin=%d cWmax=%d txop=%d uapsd=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set TX queue parameters for queue %d\n"

	.no_dead_strip	_ieee80211_sta_wmm_params
.subsections_via_symbols
