	.file	"extr_wmm_ac.c_wmm_ac_should_replace_ts.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"WMM AC: TSID %i already exists on different ac (%d)"
	.text
	.p2align 4
	.type	wmm_ac_should_replace_ts, @function
wmm_ac_should_replace_ts:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movsx	r12, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	call	wmm_ac_find_tsid@PLT
	test	eax, eax
	js	.L11
	cmp	eax, r12d
	jne	.L21
	mov	edi, DWORD PTR 4[rsp]
	call	BIT@PLT
	mov	ebp, eax
.L2:
	mov	r14d, DWORD PTR TS_DIR_IDX_COUNT[rip]
	mov	DWORD PTR 4[rsp], 0
	test	r14d, r14d
	je	.L5
	sal	r12, 3
	xor	r14d, r14d
	xor	edi, edi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 4[rsp]
	lea	edi, 1[rax]
	cmp	edi, DWORD PTR TS_DIR_IDX_COUNT[rip]
	mov	DWORD PTR 4[rsp], edi
	jnb	.L5
.L7:
	mov	rdx, QWORD PTR 0[r13]
	mov	eax, edi
	mov	rdx, QWORD PTR [rdx+r12]
	cmp	QWORD PTR [rdx+rax*8], 0
	je	.L6
	call	BIT@PLT
	or	r14d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	ebx, 129
	je	.L8
	mov	eax, ebp
	or	eax, r14d
	cmp	ebx, 130
	je	.L1
	mov	edi, DWORD PTR TS_DIR_IDX_UPLINK[rip]
	mov	eax, -1
	cmp	ebx, 128
	je	.L19
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR TS_DIR_IDX_DOWNLINK[rip]
.L19:
	call	BIT@PLT
	mov	edi, DWORD PTR TS_DIR_IDX_BIDI[rip]
	mov	ebx, eax
	call	BIT@PLT
	or	eax, ebx
	and	r14d, eax
	mov	eax, r14d
	or	eax, ebp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	xor	ebp, ebp
	jmp	.L2
.L21:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, eax
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wmm_ac_should_replace_ts, .-wmm_ac_should_replace_ts
	.comm	TS_DIR_IDX_UPLINK,4,4
	.comm	TS_DIR_IDX_DOWNLINK,4,4
	.comm	TS_DIR_IDX_COUNT,4,4
	.comm	TS_DIR_IDX_BIDI,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_wmm_ac.c_wmm_ac_should_replace_ts.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WMM AC: TSID %i already exists on different ac (%d)"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wmm_ac_should_replace_ts, %function
wmm_ac_should_replace_ts:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r3
	sub	sp, sp, #12
	ldr	r3, .L26
	mov	r4, r2
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	mov	r6, r1
	bl	wmm_ac_find_tsid
	cmp	r0, #0
	blt	.L11
	cmp	r0, r4
	bne	.L24
	ldr	r0, [sp]
	bl	BIT
	mov	r6, r0
.L2:
	mov	r3, #0
	ldr	r8, .L26+4
	str	r3, [sp]
	ldr	r9, [r8]
	cmp	r9, r3
	beq	.L5
	mov	r9, r3
	mov	r0, r3
	lsl	r4, r4, #2
	b	.L7
.L6:
	ldr	r0, [sp]
	ldr	r1, [r8]
	add	r0, r0, #1
	cmp	r0, r1
	str	r0, [sp]
	bcs	.L5
.L7:
	ldr	r3, [r7]
	ldr	r1, [r3, r4]
	ldr	r1, [r1, r0, lsl #2]
	cmp	r1, #0
	beq	.L6
	bl	BIT
	orr	r9, r9, r0
	b	.L6
.L5:
	cmp	r5, #129
	beq	.L8
	cmp	r5, #130
	beq	.L22
	cmp	r5, #128
	ldreq	r3, .L26+8
	beq	.L21
	mvn	r0, #0
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	ldr	r3, .L26+12
.L21:
	ldr	r0, [r3]
	bl	BIT
	ldr	r3, .L26+16
	mov	r4, r0
	ldr	r0, [r3]
	bl	BIT
	orr	r0, r4, r0
	and	r9, r9, r0
.L22:
	orr	r0, r9, r6
	b	.L1
.L11:
	mov	r6, #0
	b	.L2
.L24:
	ldr	r1, .L26+20
	mov	r3, r0
	mov	r2, r6
	ldr	r0, [r1]
	ldr	r1, .L26+24
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC1
	.word	TS_DIR_IDX_COUNT
	.word	TS_DIR_IDX_UPLINK
	.word	TS_DIR_IDX_DOWNLINK
	.word	TS_DIR_IDX_BIDI
	.word	MSG_DEBUG
	.word	.LC0
	.size	wmm_ac_should_replace_ts, .-wmm_ac_should_replace_ts
	.comm	TS_DIR_IDX_UPLINK,4,4
	.comm	TS_DIR_IDX_DOWNLINK,4,4
	.comm	TS_DIR_IDX_COUNT,4,4
	.comm	TS_DIR_IDX_BIDI,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
