	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmm_ac_save_tspecs             ## -- Begin function wmm_ac_save_tspecs
	.p2align	4, 0x90
_wmm_ac_save_tspecs:                    ## @wmm_ac_save_tspecs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpl	$0, 24(%r12)
	je	LBB0_15
## %bb.1:
	movq	%r12, %rdi
	callq	_wmm_ac_get_tspecs_count
	movl	(%r15), %edi
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, %rdi
	callq	_wmm_ac_clear_saved_tspecs
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_os_calloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	_WMM_AC_NUM@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.6:
	movq	_TS_DIR_IDX_COUNT@GOTPCREL(%rip), %r9
	movl	(%r9), %edi
	xorl	%r10d, %r10d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r8), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r10
	movslq	%ecx, %rdx
	cmpq	%rdx, %r10
	jge	LBB0_14
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%edi, %edi
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%r10,8), %rcx
	xorl	%edx, %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%rdx
	movslq	%edi, %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	(%rsi), %esi
	movslq	(%r12), %rdi
	leal	1(%rdi), %ebx
	movl	%ebx, (%r12)
	movl	%esi, (%rax,%rdi,4)
	movl	(%r9), %edi
	jmp	LBB0_11
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%r15), %edi
	movl	(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_16:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WMM AC: Save last configured tspecs"

L_.str.1:                               ## @.str.1
	.asciz	"WMM AC: No configured TSPECs"

L_.str.2:                               ## @.str.2
	.asciz	"WMM AC: Saving tspecs"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"WMM AC: Failed to save tspecs!"

	.comm	_WMM_AC_NUM,4,2                 ## @WMM_AC_NUM
	.comm	_TS_DIR_IDX_COUNT,4,2           ## @TS_DIR_IDX_COUNT
L_.str.4:                               ## @.str.4
	.asciz	"WMM AC: Successfully saved %d TSPECs"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmm_ac_save_tspecs             ; -- Begin function wmm_ac_save_tspecs
	.p2align	2
_wmm_ac_save_tspecs:                    ; @wmm_ac_save_tspecs
	.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	x19, x0
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x0, x19
	bl	_wmm_ac_get_tspecs_count
	mov	x20, x0
	ldr	w0, [x21]
	cbz	w20, LBB0_14
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_wmm_ac_clear_saved_tspecs
	mov	x0, x20
	mov	w1, #4
	bl	_os_calloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.3:
Lloh6:
	adrp	x8, _WMM_AC_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMM_AC_NUM@GOTPAGEOFF]
	ldr	w12, [x8]
	cmp	w12, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x9, #0
Lloh8:
	adrp	x10, _TS_DIR_IDX_COUNT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TS_DIR_IDX_COUNT@GOTPAGEOFF]
	ldr	w11, [x10]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w12, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	cmp	x9, w12, sxtw
	b.ge	LBB0_12
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w11, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x12, #0
	ldr	x13, [x19, #8]
	ldr	x13, [x13, x9, lsl #3]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x12, x12, #1
	cmp	x12, w11, sxtw
	b.ge	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x13, x12, lsl #3]
	cbz	x14, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w11, [x14]
	ldrsw	x14, [x19]
	add	w15, w14, #1
	str	w15, [x19]
	str	w11, [x0, x14, lsl #2]
	ldr	w11, [x10]
	b	LBB0_9
LBB0_12:
	ldr	w0, [x21]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_13:
	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
LBB0_14:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh14:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	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
	b	_wpa_printf
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WMM AC: Save last configured tspecs"

l_.str.1:                               ; @.str.1
	.asciz	"WMM AC: No configured TSPECs"

l_.str.2:                               ; @.str.2
	.asciz	"WMM AC: Saving tspecs"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"WMM AC: Failed to save tspecs!"

	.comm	_WMM_AC_NUM,4,2                 ; @WMM_AC_NUM
	.comm	_TS_DIR_IDX_COUNT,4,2           ; @TS_DIR_IDX_COUNT
l_.str.4:                               ; @.str.4
	.asciz	"WMM AC: Successfully saved %d TSPECs"

.subsections_via_symbols
