	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmm_ac_should_replace_ts
_wmm_ac_should_replace_ts:              ## @wmm_ac_should_replace_ts
	.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
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	leaq	-44(%rbp), %rdx
	callq	_wmm_ac_find_tsid
	xorl	%r14d, %r14d
	movl	$0, %ecx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	cmpl	%r12d, %eax
	jne	LBB0_2
## %bb.3:
	movl	-44(%rbp), %edi
	callq	_BIT
	movl	%eax, %ecx
LBB0_4:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)
	movq	_TS_DIR_IDX_COUNT@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movslq	%r12d, %rbx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%edi
	movl	%edi, -44(%rbp)
	cmpl	%eax, %edi
	jae	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%edi, %edx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	callq	_BIT
	orl	%eax, %r14d
	movl	-44(%rbp), %edi
	movl	(%r13), %eax
	jmp	LBB0_8
LBB0_9:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$128, %ecx
	je	LBB0_10
## %bb.11:
	cmpl	$130, %ecx
	je	LBB0_15
## %bb.12:
	movl	$-1, %eax
	cmpl	$129, %ecx
	jne	LBB0_16
## %bb.13:
	movq	_TS_DIR_IDX_DOWNLINK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_16
LBB0_10:
	movq	_TS_DIR_IDX_UPLINK@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_TS_DIR_IDX_BIDI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	andl	%eax, %r14d
LBB0_15:
	orl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r14d, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WMM AC: TSID %i already exists on different ac (%d)"

	.comm	_TS_DIR_IDX_COUNT,4,2           ## @TS_DIR_IDX_COUNT
	.comm	_TS_DIR_IDX_UPLINK,4,2          ## @TS_DIR_IDX_UPLINK
	.comm	_TS_DIR_IDX_BIDI,4,2            ## @TS_DIR_IDX_BIDI
	.comm	_TS_DIR_IDX_DOWNLINK,4,2        ## @TS_DIR_IDX_DOWNLINK
	.no_dead_strip	_wmm_ac_should_replace_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmm_ac_should_replace_ts
_wmm_ac_should_replace_ts:              ; @wmm_ac_should_replace_ts
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	add	x2, sp, #12
	bl	_wmm_ac_find_tsid
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x3, x0
	cmp	w0, w22
	b.ne	LBB0_9
; %bb.2:
	ldr	w0, [sp, #12]
	bl	_BIT
	mov	x19, x0
	b	LBB0_4
LBB0_3:
	mov	w19, #0
LBB0_4:
	str	wzr, [sp, #12]
Lloh0:
	adrp	x24, _TS_DIR_IDX_COUNT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TS_DIR_IDX_COUNT@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_10
; %bb.5:
	mov	w23, #0
	mov	w0, #0
	sxtw	x22, w22
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w0, w0, #1
	str	w0, [sp, #12]
	cmp	w0, w8
	b.hs	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x9, [x9, w0, uxtw #3]
	cbz	x9, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_BIT
	orr	w23, w0, w23
	ldr	w0, [sp, #12]
	ldr	w8, [x24]
	b	LBB0_6
LBB0_9:
Lloh2:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	b	LBB0_15
LBB0_10:
	mov	w23, #0
LBB0_11:
	cmp	w20, #128
	b.eq	LBB0_16
; %bb.12:
	cmp	w20, #130
	b.eq	LBB0_18
; %bb.13:
	cmp	w20, #129
	b.ne	LBB0_15
; %bb.14:
Lloh7:
	adrp	x8, _TS_DIR_IDX_DOWNLINK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TS_DIR_IDX_DOWNLINK@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	mov	w0, #-1
	b	LBB0_19
LBB0_16:
Lloh9:
	adrp	x8, _TS_DIR_IDX_UPLINK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TS_DIR_IDX_UPLINK@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
Lloh11:
	adrp	x8, _TS_DIR_IDX_BIDI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TS_DIR_IDX_BIDI@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w20
	and	w23, w8, w23
LBB0_18:
	orr	w0, w23, w19
LBB0_19:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WMM AC: TSID %i already exists on different ac (%d)"

	.comm	_TS_DIR_IDX_COUNT,4,2           ; @TS_DIR_IDX_COUNT
	.comm	_TS_DIR_IDX_UPLINK,4,2          ; @TS_DIR_IDX_UPLINK
	.comm	_TS_DIR_IDX_BIDI,4,2            ; @TS_DIR_IDX_BIDI
	.comm	_TS_DIR_IDX_DOWNLINK,4,2        ; @TS_DIR_IDX_DOWNLINK
	.no_dead_strip	_wmm_ac_should_replace_ts
.subsections_via_symbols
