	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_ioctl_setwmeparam
_ieee80211_ioctl_setwmeparam:           ## @ieee80211_ioctl_setwmeparam
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rdx
	movq	_IEEE80211_C_WME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	je	LBB0_1
## %bb.2:
	movl	(%rsi), %r10d
	movq	_IEEE80211_WMEPARAM_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IEEE80211_WMEPARAM_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r10d, %eax
	movq	_WME_NUM_AC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_4
## %bb.3:
	movq	_WME_AC_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movslq	%eax, %r9
	leaq	(%r9,%r9,2), %rax
	shlq	$3, %rax
	testl	%r10d, %r8d
	je	LBB0_6
## %bb.5:
	addq	40(%rdx), %rax
	leaq	32(%rdx), %r11
	jmp	LBB0_7
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_6:
	addq	24(%rdx), %rax
	leaq	16(%rdx), %r11
LBB0_7:
	movl	4(%rsi), %ebx
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_24
## %bb.8:
	movq	_WME_F_AGGRMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rdx), %ecx
	movq	(%r11), %r11
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rbx,4), %rbx
	addq	%rdx, %rbx
	jmpq	*%rbx
LBB0_18:
	movl	8(%rsi), %esi
	leaq	(%r9,%r9,2), %rdx
	movl	%esi, 8(%r11,%rdx,8)
	testl	%r10d, %r8d
	je	LBB0_20
## %bb.19:
	testl	%ecx, %ecx
	jne	LBB0_24
LBB0_20:
	movl	%esi, 8(%rax)
	jmp	LBB0_24
LBB0_9:
	movl	8(%rsi), %esi
	leaq	(%r9,%r9,2), %rdx
	movl	%esi, 20(%r11,%rdx,8)
	testl	%r10d, %r8d
	je	LBB0_11
## %bb.10:
	testl	%ecx, %ecx
	jne	LBB0_24
LBB0_11:
	movl	%esi, 20(%rax)
	jmp	LBB0_24
LBB0_12:
	movl	8(%rsi), %esi
	leaq	(%r9,%r9,2), %rdx
	movl	%esi, 16(%r11,%rdx,8)
	testl	%r10d, %r8d
	je	LBB0_14
## %bb.13:
	testl	%ecx, %ecx
	jne	LBB0_24
LBB0_14:
	movl	%esi, 16(%rax)
	jmp	LBB0_24
LBB0_15:
	movl	8(%rsi), %esi
	leaq	(%r9,%r9,2), %rdx
	movl	%esi, 12(%r11,%rdx,8)
	testl	%r10d, %r8d
	je	LBB0_17
## %bb.16:
	testl	%ecx, %ecx
	jne	LBB0_24
LBB0_17:
	movl	%esi, 12(%rax)
	jmp	LBB0_24
LBB0_21:
	movl	8(%rsi), %esi
	leaq	(%r9,%r9,2), %rdx
	movl	%esi, 4(%r11,%rdx,8)
	testl	%ecx, %ecx
	jne	LBB0_24
## %bb.22:
	movl	%esi, 4(%rax)
	jmp	LBB0_24
LBB0_23:
	xorl	%ecx, %ecx
	cmpl	$0, 8(%rsi)
	sete	%cl
	movl	%ecx, (%rax)
	leaq	(%r9,%r9,2), %rax
	movl	%ecx, (%r11,%rax,8)
LBB0_24:
	callq	_ieee80211_wme_updateparams
	xorl	%eax, %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_21
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_IEEE80211_C_WME,4,2            ## @IEEE80211_C_WME
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IEEE80211_WMEPARAM_BSS,4,2     ## @IEEE80211_WMEPARAM_BSS
	.comm	_IEEE80211_WMEPARAM_VAL,4,2     ## @IEEE80211_WMEPARAM_VAL
	.comm	_WME_F_AGGRMODE,4,2             ## @WME_F_AGGRMODE
	.comm	_WME_NUM_AC,4,2                 ## @WME_NUM_AC
	.comm	_WME_AC_BE,4,2                  ## @WME_AC_BE
	.no_dead_strip	_ieee80211_ioctl_setwmeparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_ioctl_setwmeparam
_ieee80211_ioctl_setwmeparam:           ; @ieee80211_ioctl_setwmeparam
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x11, [x0]
	ldr	w8, [x11]
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_3
; %bb.1:
	ldr	w9, [x1]
Lloh3:
	adrp	x8, _IEEE80211_WMEPARAM_BSS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_WMEPARAM_BSS@GOTPAGEOFF]
Lloh5:
	adrp	x10, _IEEE80211_WMEPARAM_VAL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IEEE80211_WMEPARAM_VAL@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x8]
Lloh8:
	ldr	w8, [x10]
	and	w8, w8, w9
Lloh9:
	adrp	x10, _WME_NUM_AC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WME_NUM_AC@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x13, _WME_AC_BE@GOTPAGE
Lloh13:
	ldr	x13, [x13, _WME_AC_BE@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	cmp	w8, w10
	csel	w8, w8, w13, lt
	and	w9, w12, w9
	cbz	w9, LBB0_4
; %bb.2:
	ldr	x12, [x11, #40]
	sxtw	x10, w8
	mov	w13, #24
	smaddl	x8, w8, w13, x12
	add	x12, x11, #32
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x12, [x11, #24]
	mov	x10, x8
	sxtw	x10, w10
	mov	w13, #24
	smaddl	x8, w8, w13, x12
	add	x12, x11, #16
LBB0_5:
	ldr	w13, [x1, #4]
	sub	w13, w13, #128
	cmp	w13, #5
	b.hi	LBB0_22
; %bb.6:
Lloh18:
	adrp	x14, _WME_F_AGGRMODE@GOTPAGE
Lloh19:
	ldr	x14, [x14, _WME_F_AGGRMODE@GOTPAGEOFF]
	ldr	w11, [x11, #8]
Lloh20:
	ldr	w14, [x14]
	and	w11, w14, w11
	ldr	x12, [x12]
Lloh21:
	adrp	x14, lJTI0_0@PAGE
Lloh22:
	add	x14, x14, lJTI0_0@PAGEOFF
	adr	x15, LBB0_7
	ldrb	w16, [x14, x13]
	add	x15, x15, x16, lsl #2
	br	x15
LBB0_7:
	ldr	w13, [x1, #8]
	mov	w14, #24
	madd	x10, x10, x14, x12
	str	w13, [x10, #8]
	cbz	w9, LBB0_9
; %bb.8:
	cbnz	w11, LBB0_22
LBB0_9:
	str	w13, [x8, #8]
	b	LBB0_22
LBB0_10:
	ldr	w13, [x1, #8]
	mov	w14, #24
	madd	x10, x10, x14, x12
	str	w13, [x10, #20]
	cbz	w9, LBB0_12
; %bb.11:
	cbnz	w11, LBB0_22
LBB0_12:
	str	w13, [x8, #20]
	b	LBB0_22
LBB0_13:
	ldr	w13, [x1, #8]
	mov	w14, #24
	madd	x10, x10, x14, x12
	str	w13, [x10, #16]
	cbz	w9, LBB0_15
; %bb.14:
	cbnz	w11, LBB0_22
LBB0_15:
	str	w13, [x8, #16]
	b	LBB0_22
LBB0_16:
	ldr	w13, [x1, #8]
	mov	w14, #24
	madd	x10, x10, x14, x12
	str	w13, [x10, #12]
	cbz	w9, LBB0_18
; %bb.17:
	cbnz	w11, LBB0_22
LBB0_18:
	str	w13, [x8, #12]
	b	LBB0_22
LBB0_19:
	ldr	w9, [x1, #8]
	mov	w13, #24
	madd	x10, x10, x13, x12
	str	w9, [x10, #4]
	cbnz	w11, LBB0_22
; %bb.20:
	str	w9, [x8, #4]
	b	LBB0_22
LBB0_21:
	ldr	w9, [x1, #8]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x8]
	mov	w8, #24
	mul	x8, x10, x8
	str	w9, [x12, x8]
LBB0_22:
	bl	_ieee80211_wme_updateparams
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_19-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
                                        ; -- End function
	.comm	_IEEE80211_C_WME,4,2            ; @IEEE80211_C_WME
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IEEE80211_WMEPARAM_BSS,4,2     ; @IEEE80211_WMEPARAM_BSS
	.comm	_IEEE80211_WMEPARAM_VAL,4,2     ; @IEEE80211_WMEPARAM_VAL
	.comm	_WME_F_AGGRMODE,4,2             ; @WME_F_AGGRMODE
	.comm	_WME_NUM_AC,4,2                 ; @WME_NUM_AC
	.comm	_WME_AC_BE,4,2                  ; @WME_AC_BE
	.no_dead_strip	_ieee80211_ioctl_setwmeparam
.subsections_via_symbols
