	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ieee80211_sta_def_wmm_params
LCPI0_0:
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
LCPI0_1:
	.short	5                               ## 0x5
	.short	0                               ## 0x0
	.short	5                               ## 0x5
	.short	0                               ## 0x0
	.short	5                               ## 0x5
	.short	0                               ## 0x0
	.short	5                               ## 0x5
	.short	0                               ## 0x0
LCPI0_2:
	.long	111                             ## 0x6f
	.long	111                             ## 0x6f
	.long	111                             ## 0x6f
	.long	111                             ## 0x6f
LCPI0_3:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ieee80211_sta_def_wmm_params
	.p2align	4, 0x90
_ieee80211_sta_def_wmm_params:          ## @ieee80211_sta_def_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	cmpq	$8, %rsi
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_4:
	movq	%rsi, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rcx
	andq	$-2, %rcx
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm9            ## xmm9 = [127,127,127,127]
	movdqa	LCPI0_1(%rip), %xmm10           ## xmm10 = [5,0,5,0,5,0,5,0]
	movdqa	LCPI0_2(%rip), %xmm11           ## xmm11 = [111,111,111,111]
	movaps	LCPI0_3(%rip), %xmm8            ## xmm8 = [1,1,1,1]
	xorps	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm0
	movdqu	16(%rdx,%rdi,4), %xmm1
	movdqu	32(%rdx,%rdi,4), %xmm4
	movdqu	48(%rdx,%rdi,4), %xmm7
	pand	%xmm9, %xmm0
	pand	%xmm9, %xmm1
	pmaddwd	%xmm10, %xmm0
	pmaddwd	%xmm10, %xmm1
	movdqa	%xmm0, %xmm5
	pmaxud	%xmm11, %xmm5
	pcmpeqd	%xmm0, %xmm5
	movdqa	%xmm1, %xmm6
	pmaxud	%xmm11, %xmm6
	pcmpeqd	%xmm1, %xmm6
	pand	%xmm9, %xmm4
	pand	%xmm9, %xmm7
	pmaddwd	%xmm10, %xmm4
	pmaddwd	%xmm10, %xmm7
	movdqa	%xmm4, %xmm0
	pmaxud	%xmm11, %xmm0
	pcmpeqd	%xmm4, %xmm0
	por	%xmm5, %xmm0
	movdqa	%xmm7, %xmm1
	pmaxud	%xmm11, %xmm1
	pcmpeqd	%xmm7, %xmm1
	por	%xmm6, %xmm1
	blendvps	%xmm0, %xmm8, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm8, %xmm3
	addq	$16, %rdi
	addq	$-2, %rcx
	jne	LBB0_7
## %bb.8:
	testb	$1, %bl
	je	LBB0_10
LBB0_9:
	movdqu	(%rdx,%rdi,4), %xmm4
	movdqu	16(%rdx,%rdi,4), %xmm5
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [127,127,127,127]
	pand	%xmm0, %xmm4
	pand	%xmm0, %xmm5
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = [5,0,5,0,5,0,5,0]
	pmaddwd	%xmm0, %xmm4
	pmaddwd	%xmm0, %xmm5
	movdqa	LCPI0_2(%rip), %xmm1            ## xmm1 = [111,111,111,111]
	movdqa	%xmm4, %xmm0
	pmaxud	%xmm1, %xmm0
	pcmpeqd	%xmm4, %xmm0
	pmaxud	%xmm5, %xmm1
	pcmpeqd	%xmm5, %xmm1
	movaps	LCPI0_3(%rip), %xmm4            ## xmm4 = [1,1,1,1]
	blendvps	%xmm0, %xmm4, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm4, %xmm3
LBB0_10:
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm2, %xmm0
	blendvps	%xmm0, %xmm3, %xmm2
	xorl	%ebx, %ebx
	ptest	%xmm2, %xmm2
	setne	%bl
	cmpq	%rsi, %rax
	je	LBB0_13
LBB0_11:
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rax,4), %edi
	andl	$127, %edi
	leal	(%rdi,%rdi,4), %edi
	cmpl	$111, %edi
	cmovael	%ecx, %ebx
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	4(%r14), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_IEEE80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.16:
	movq	_IEEE80211_SDATA_OPERATING_GMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_18
LBB0_17:
	movq	_IEEE80211_SDATA_OPERATING_GMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_18:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ieee80211_set_wmm_default      ## TAILCALL
LBB0_5:
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	xorps	%xmm3, %xmm3
	testb	$1, %bl
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_BAND_2GHZ,8,3        ## @IEEE80211_BAND_2GHZ
	.comm	_IEEE80211_SDATA_OPERATING_GMODE,4,2 ## @IEEE80211_SDATA_OPERATING_GMODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sta_def_wmm_params   ; -- Begin function ieee80211_sta_def_wmm_params
	.p2align	2
_ieee80211_sta_def_wmm_params:          ; @ieee80211_sta_def_wmm_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	cmp	x1, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	w20, #0
	b	LBB0_7
LBB0_3:
	mov	w20, #0
	b	LBB0_9
LBB0_4:
	movi.2d	v0, #0000000000000000
	and	x8, x1, #0xfffffffffffffff0
	movi.4s	v1, #127
	add	x9, x2, #32
	movi.4s	v2, #5
	movi.4s	v3, #110
	movi.4s	v5, #1
	mov	x10, x8
	movi.2d	v7, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q16, q17, [x9, #-32]
	ldp	q18, q19, [x9], #64
	and.16b	v16, v16, v1
	and.16b	v17, v17, v1
	and.16b	v18, v18, v1
	and.16b	v19, v19, v1
	mul.4s	v16, v16, v2
	mul.4s	v17, v17, v2
	mul.4s	v18, v18, v2
	mul.4s	v19, v19, v2
	cmhi.4s	v16, v16, v3
	cmhi.4s	v17, v17, v3
	cmhi.4s	v18, v18, v3
	cmhi.4s	v19, v19, v3
	bit.16b	v0, v5, v16
	bit.16b	v7, v5, v17
	bit.16b	v6, v5, v18
	bit.16b	v4, v5, v19
	subs	x10, x10, #16
	b.ne	LBB0_5
; %bb.6:
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v7, v1
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v6, v1
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v4, v1
	cmtst.4s	v0, v0, v0
	xtn.4h	v0, v0
	umov.h	w9, v0[0]
	umov.h	w10, v0[1]
	and	w10, w10, #0x1
	bfi	w9, w10, #1, #1
	umov.h	w10, v0[2]
	and	w10, w10, #0x1
	bfi	w9, w10, #2, #1
	umov.h	w10, v0[3]
	bfi	w9, w10, #3, #29
	tst	w9, #0xf
	cset	w20, ne
	cmp	x8, x1
	b.eq	LBB0_9
LBB0_7:
	add	x9, x2, x8, lsl #2
	sub	x8, x1, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	and	w10, w10, #0x7f
	add	w10, w10, w10, lsl #2
	cmp	w10, #110
	csinc	w20, w20, wzr, ls
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	bl	_rcu_read_lock
	ldr	w0, [x19, #4]
	bl	_rcu_dereference
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IEEE80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w20, #0, #4, eq
	b.ne	LBB0_12
LBB0_11:
Lloh3:
	adrp	x8, _IEEE80211_SDATA_OPERATING_GMODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_SDATA_OPERATING_GMODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _IEEE80211_SDATA_OPERATING_GMODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_SDATA_OPERATING_GMODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_13:
	str	w8, [x19]
	bl	_rcu_read_unlock
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ieee80211_set_wmm_default
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_BAND_2GHZ,8,3        ; @IEEE80211_BAND_2GHZ
	.comm	_IEEE80211_SDATA_OPERATING_GMODE,4,2 ; @IEEE80211_SDATA_OPERATING_GMODE
.subsections_via_symbols
