	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmm_ac_init
_wmm_ac_init:                           ## @wmm_ac_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %r14
	movl	$-1, %r15d
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.3:
	movq	%rcx, %r12
	movq	_WMM_PARAMS_UAPSD_QUEUES_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.4:
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_os_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_wmm_ac_process_param_elem
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_WMM_AC_NUM@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %r14d
	movq	%rbx, %rdi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%r14d, %eax
	setne	%cl
	movq	(%r13), %rax
	movl	%ecx, (%rax,%rbx,4)
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WMM AC: Already initialized"

	.comm	_WMM_PARAMS_UAPSD_QUEUES_INFO,4,2 ## @WMM_PARAMS_UAPSD_QUEUES_INFO
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"WMM AC: U-APSD queues=0x%x"

	.comm	_WMM_AC_NUM,8,3                 ## @WMM_AC_NUM
	.no_dead_strip	_wmm_ac_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmm_ac_init
_wmm_ac_init:                           ; @wmm_ac_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x22, x1
	cbz	x1, LBB0_2
; %bb.5:
	mov	x19, x3
	ldr	w8, [x3]
Lloh5:
	adrp	x9, _WMM_PARAMS_UAPSD_QUEUES_INFO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WMM_PARAMS_UAPSD_QUEUES_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.6:
	mov	x21, x2
	mov	x20, x0
	ldr	w0, [x0, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_os_memset
	stp	xzr, xzr, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_wmm_ac_process_param_elem
	cbz	x0, LBB0_2
; %bb.7:
	mov	x21, x0
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh13:
	adrp	x23, _WMM_AC_NUM@GOTPAGE
Lloh14:
	ldr	x23, [x23, _WMM_AC_NUM@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x19, #4]
	mov	x0, x22
	bl	_BIT
	tst	w0, w24
	cset	w8, ne
	ldr	x9, [x21]
	str	w8, [x9, x22, lsl #2]
	add	x22, x22, #1
	ldr	x8, [x23]
	cmp	x22, x8
	b.lo	LBB0_9
LBB0_10:
	mov	w0, #0
	str	x21, [x20]
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WMM AC: Already initialized"

	.comm	_WMM_PARAMS_UAPSD_QUEUES_INFO,4,2 ; @WMM_PARAMS_UAPSD_QUEUES_INFO
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"WMM AC: U-APSD queues=0x%x"

	.comm	_WMM_AC_NUM,8,3                 ; @WMM_AC_NUM
	.no_dead_strip	_wmm_ac_init
.subsections_via_symbols
