	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get80211wme
_get80211wme:                           ## @get80211wme
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r13d
	leaq	-56(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-44(%rbp), %edi
	movq	_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	%r14d, -56(%rbp)
	movl	%ebx, -52(%rbp)
	movq	_SIOCG80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movq	%r12, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-48(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_3
LBB0_1:
	movq	_IEEE80211_WMEPARAM_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	movq	_IEEE80211_WMEPARAM_BSS@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_warn
	movl	$-1, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_name,4,2                       ## @name
	.comm	_SIOCG80211,4,2                 ## @SIOCG80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot get WME parameter %d, ac %d%s"

	.comm	_IEEE80211_WMEPARAM_VAL,4,2     ## @IEEE80211_WMEPARAM_VAL
	.comm	_IEEE80211_WMEPARAM_BSS,4,2     ## @IEEE80211_WMEPARAM_BSS
L_.str.1:                               ## @.str.1
	.asciz	" (BSS)"

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_get80211wme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get80211wme
_get80211wme:                           ; @get80211wme
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x8, _name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _name@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strlcpy
	stp	w19, w20, [sp]
Lloh3:
	adrp	x8, _SIOCG80211@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIOCG80211@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x22
	bl	_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x21]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _IEEE80211_WMEPARAM_VAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_WMEPARAM_VAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w2, w8, w20
Lloh9:
	adrp	x8, _IEEE80211_WMEPARAM_BSS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_WMEPARAM_BSS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, l_.str.1@PAGE
Lloh13:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w20
	csel	x3, x10, x9, eq
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_name,4,2                       ; @name
	.comm	_SIOCG80211,4,2                 ; @SIOCG80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot get WME parameter %d, ac %d%s"

	.comm	_IEEE80211_WMEPARAM_VAL,4,2     ; @IEEE80211_WMEPARAM_VAL
	.comm	_IEEE80211_WMEPARAM_BSS,4,2     ; @IEEE80211_WMEPARAM_BSS
l_.str.1:                               ; @.str.1
	.asciz	" (BSS)"

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_get80211wme
.subsections_via_symbols
