	.file	"extr_cagg.c_zfAggTxSend.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"aggLen="
.LC1:
	.string	"in queue complete worked!"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"aggLen not reached, but no more frame, j="
	.section	.rodata.str1.1
.LC3:
	.string	"0xC2:sent 1 aggr, aggr_count="
.LC4:
	.string	"0xC2:sent 1 aggr, aggr_size="
	.text
	.p2align 4
	.globl	zfAggTxSend
	.type	zfAggTxSend, @function
zfAggTxSend:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	zmw_get_wlan_dev@PLT
	xor	eax, eax
	call	zmw_declare_for_critical_section@PLT
	mov	rdi, r12
	call	zmw_enter_critical_section@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	rdi, r12
	call	zm_agg_qlen@PLT
	lea	esi, -2[rbx]
	mov	DWORD PTR 0[rbp], eax
	mov	rdi, rax
	call	zm_agg_min@PLT
	mov	edi, 16
	mov	esi, eax
	call	zm_agg_min@PLT
	mov	rdi, r12
	mov	r14d, eax
	call	zmw_leave_critical_section@PLT
	test	r14d, r14d
	jle	.L37
	cmp	r14d, 1
	je	.L39
	mov	rdi, r12
	call	zmw_enter_critical_section@PLT
	mov	rax, QWORD PTR wd[rip]
	cmp	DWORD PTR [rax], 1
	je	.L40
	mov	DWORD PTR [rax], 1
	mov	rdi, r12
	xor	ebx, ebx
	lea	r15d, -1[r14]
	call	zmw_leave_critical_section@PLT
	mov	edi, DWORD PTR ZM_LV_0[rip]
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	call	zm_msg1_agg@PLT
	mov	QWORD PTR 24[rbp], 0
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	r15d, ebx
	je	.L9
	mov	esi, DWORD PTR 0[rbp]
	test	esi, esi
	je	.L9
	mov	eax, DWORD PTR ZM_AGG_MIDDLE_MPDU[rip]
	mov	DWORD PTR 16[rsp], eax
.L8:
	mov	rsi, r13
	mov	rdi, r12
	call	zfwBufGetSize@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	add	QWORD PTR 24[rbp], rax
	xor	edx, edx
	mov	ecx, DWORD PTR ZM_EXTERNAL_ALLOC_BUF[rip]
	mov	rsi, r13
	xor	r8d, r8d
	mov	rdi, r12
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 8[rsp], 1
	push	rbp
	.cfi_def_cfa_offset 112
	lea	r9, 16[rsp]
	call	zfAggTxSendEth@PLT
	mov	rdi, r12
	call	zmw_enter_critical_section@PLT
	movsx	r13, DWORD PTR 4[rbp]
	mov	rdi, rbp
	mov	esi, r13d
	call	zm_agg_inQ@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	rax, rax
	jne	.L41
.L11:
	mov	rdi, r12
	call	zmw_leave_critical_section@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	zm_agg_inQ@PLT
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR wd[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L12
	mov	rdx, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR [rdx+r13*8]
	test	rsi, rsi
	je	.L12
	mov	rdi, r12
	call	rax
	lea	rdi, .LC1[rip]
	call	zm_debug_msg0@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	add	ebx, 1
	cmp	r14d, ebx
	je	.L42
.L15:
	mov	rsi, rbp
	mov	rdi, r12
	call	zfAggTxGetVtxq@PLT
	mov	rdi, r12
	mov	r13, rax
	call	zmw_enter_critical_section@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	rdi, r12
	call	zm_agg_qlen@PLT
	mov	rdi, r12
	mov	DWORD PTR 0[rbp], eax
	call	zmw_leave_critical_section@PLT
	test	r13, r13
	je	.L6
	test	ebx, ebx
	jne	.L7
	mov	eax, DWORD PTR ZM_AGG_FIRST_MPDU[rip]
	mov	DWORD PTR 16[rsp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r12
	call	zmw_leave_critical_section@PLT
	.p2align 4,,10
	.p2align 3
.L37:
	xor	r14d, r14d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L43
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ZM_AGG_LAST_MPDU[rip]
	mov	DWORD PTR 16[rsp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR 4[rbp]
	call	zm_agg_plus@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR ZM_LV_0[rip]
	mov	edx, ebx
	lea	rsi, .LC2[rip]
	call	zm_msg1_agg@PLT
	mov	rdi, r12
	call	zmw_enter_critical_section@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	rdi, r12
	mov	DWORD PTR [rax], 0
	call	zmw_leave_critical_section@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	rdi, r12
	call	zm_agg_qlen@PLT
	mov	DWORD PTR 0[rbp], eax
	test	ebx, ebx
	je	.L37
	mov	r14d, ebx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rsi, rbp
	mov	rdi, r12
	call	zfAggTxGetVtxq@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L1
	mov	ecx, DWORD PTR ZM_EXTERNAL_ALLOC_BUF[rip]
	xor	r8d, r8d
	xor	edx, edx
	mov	rdi, r12
	call	zfTxSendEth@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, r12
	call	zmw_enter_critical_section@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	rdi, r12
	mov	DWORD PTR [rax], 0
	call	zmw_leave_critical_section@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	rdi, r12
	call	zm_agg_qlen@PLT
	mov	DWORD PTR 0[rbp], eax
.L13:
	mov	eax, DWORD PTR aggr_count[rip]
	mov	edi, DWORD PTR ZM_LV_0[rip]
	lea	rsi, .LC3[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR aggr_count[rip], edx
	call	zm_msg1_agg@PLT
	mov	edi, DWORD PTR ZM_LV_0[rip]
	mov	edx, r14d
	lea	rsi, .LC4[rip]
	call	zm_msg1_agg@PLT
	jmp	.L1
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zfAggTxSend, .-zfAggTxSend
	.comm	wd,8,8
	.comm	aggr_count,4,4
	.comm	agg_tal,8,8
	.comm	ZM_LV_0,4,4
	.comm	ZM_EXTERNAL_ALLOC_BUF,4,4
	.comm	ZM_AGG_MIDDLE_MPDU,4,4
	.comm	ZM_AGG_LAST_MPDU,4,4
	.comm	ZM_AGG_FIRST_MPDU,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_cagg.c_zfAggTxSend.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"aggLen=\000"
	.align	2
.LC1:
	.ascii	"in queue complete worked!\000"
	.align	2
.LC2:
	.ascii	"aggLen not reached, but no more frame, j=\000"
	.align	2
.LC3:
	.ascii	"0xC2:sent 1 aggr, aggr_count=\000"
	.align	2
.LC4:
	.ascii	"0xC2:sent 1 aggr, aggr_size=\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zfAggTxSend
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfAggTxSend, %function
zfAggTxSend:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, r2
	ldr	r3, .L44
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r6, r1
	bl	zmw_get_wlan_dev
	bl	zmw_declare_for_critical_section
	mov	r0, r5
	bl	zmw_enter_critical_section
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	mov	r0, r5
	bl	zm_agg_qlen
	sub	r1, r6, #2
	str	r0, [r4]
	bl	zm_agg_min
	mov	r1, r0
	mov	r0, #16
	bl	zm_agg_min
	mov	r8, r0
	mov	r0, r5
	bl	zmw_leave_critical_section
	cmp	r8, #0
	ble	.L37
	cmp	r8, #1
	beq	.L39
	ldr	r10, .L44+4
	mov	r0, r5
	bl	zmw_enter_critical_section
	ldr	r3, [r10]
	ldr	r2, [r3]
	cmp	r2, #1
	beq	.L40
	mov	r2, #1
	mov	r0, r5
	str	r2, [r3]
	bl	zmw_leave_critical_section
	ldr	r3, .L44+8
	mov	r2, r8
	ldr	r0, [r3]
	ldr	r1, .L44+12
	bl	zm_msg1_agg
	mov	r3, #0
	mov	r6, r3
	str	r3, [r4, #20]
	sub	r3, r8, #1
	ldr	fp, .L44+16
	ldr	r9, .L44+20
	str	r3, [sp, #20]
	b	.L15
.L7:
	ldr	r3, [sp, #20]
	cmp	r3, r6
	beq	.L9
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L44+24
	ldr	r3, [r3]
	str	r3, [sp, #32]
.L8:
	mov	r1, r7
	mov	r0, r5
	bl	zfwBufGetSize
	mov	r2, #0
	mov	ip, #1
	ldr	r3, [r4, #20]
	mov	r1, r7
	add	r0, r3, r0
	add	r3, sp, #24
	str	r4, [sp, #8]
	str	r0, [r4, #20]
	stm	sp, {r2, r3}
	mov	r0, r5
	ldr	r3, [r9]
	str	r2, [sp, #28]
	str	ip, [sp, #24]
	bl	zfAggTxSendEth
	mov	r0, r5
	bl	zmw_enter_critical_section
	ldr	r7, [r4, #4]
	mov	r0, r4
	mov	r1, r7
	bl	zm_agg_inQ
	cmp	r0, #0
	bne	.L41
.L11:
	mov	r0, r5
	bl	zmw_leave_critical_section
	mov	r1, r7
	mov	r0, r4
	bl	zm_agg_inQ
	cmp	r0, #0
	beq	.L12
	ldr	r3, [r10]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L12
	ldr	r2, [r4, #16]
	ldr	r1, [r2, r7, lsl #2]
	cmp	r1, #0
	beq	.L12
	mov	r0, r5
	blx	r3
	ldr	r0, .L44+28
	bl	zm_debug_msg0
.L12:
	add	r6, r6, #1
	cmp	r8, r6
	beq	.L42
.L15:
	mov	r1, r4
	mov	r0, r5
	bl	zfAggTxGetVtxq
	mov	r7, r0
	mov	r0, r5
	bl	zmw_enter_critical_section
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	mov	r0, r5
	bl	zm_agg_qlen
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4]
	bl	zmw_leave_critical_section
	cmp	r7, #0
	beq	.L6
	cmp	r6, #0
	bne	.L7
	ldr	r3, .L44+32
	ldr	r3, [r3]
	str	r3, [sp, #32]
	b	.L8
.L40:
	mov	r0, r5
	bl	zmw_leave_critical_section
.L37:
	mov	r8, #0
.L1:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	mov	r0, r8
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, [fp]
	str	r3, [sp, #32]
	b	.L8
.L41:
	ldr	r0, [r4, #4]
	bl	zm_agg_plus
	b	.L11
.L6:
	ldr	r3, .L44+8
	mov	r2, r6
	ldr	r1, .L44+36
	ldr	r0, [r3]
	bl	zm_msg1_agg
	mov	r0, r5
	bl	zmw_enter_critical_section
	ldr	r3, [r10]
	mov	r0, r5
	str	r7, [r3]
	bl	zmw_leave_critical_section
	mov	r0, r5
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	zm_agg_qlen
	cmp	r6, #0
	str	r0, [r4]
	beq	.L37
	mov	r8, r6
	b	.L13
.L39:
	mov	r1, r4
	mov	r0, r5
	bl	zfAggTxGetVtxq
	subs	r1, r0, #0
	beq	.L1
	mov	r2, #0
	ldr	r3, .L44+20
	str	r2, [sp]
	mov	r0, r5
	ldr	r3, [r3]
	bl	zfTxSendEth
	b	.L1
.L42:
	mov	r0, r5
	bl	zmw_enter_critical_section
	mov	r2, #0
	ldr	r3, [r10]
	mov	r0, r5
	str	r2, [r3]
	bl	zmw_leave_critical_section
	mov	r0, r5
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	zm_agg_qlen
	str	r0, [r4]
.L13:
	ldr	r3, .L44+40
	ldr	r4, .L44+8
	ldr	r2, [r3]
	ldr	r1, .L44+44
	add	r2, r2, #1
	ldr	r0, [r4]
	str	r2, [r3]
	bl	zm_msg1_agg
	mov	r2, r8
	ldr	r0, [r4]
	ldr	r1, .L44+48
	bl	zm_msg1_agg
	b	.L1
.L43:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC5
	.word	wd
	.word	ZM_LV_0
	.word	.LC0
	.word	ZM_AGG_LAST_MPDU
	.word	ZM_EXTERNAL_ALLOC_BUF
	.word	ZM_AGG_MIDDLE_MPDU
	.word	.LC1
	.word	ZM_AGG_FIRST_MPDU
	.word	.LC2
	.word	aggr_count
	.word	.LC3
	.word	.LC4
	.size	zfAggTxSend, .-zfAggTxSend
	.comm	wd,4,4
	.comm	aggr_count,4,4
	.comm	agg_tal,4,4
	.comm	ZM_LV_0,4,4
	.comm	ZM_EXTERNAL_ALLOC_BUF,4,4
	.comm	ZM_AGG_MIDDLE_MPDU,4,4
	.comm	ZM_AGG_LAST_MPDU,4,4
	.comm	ZM_AGG_FIRST_MPDU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
