	.file	"extr_ipw2100.c_ipw2100_tx_initialize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enter\n"
.LC1:
	.string	"exit\n"
	.text
	.p2align 4
	.type	ipw2100_tx_initialize, @function
ipw2100_tx_initialize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	r13, 32[rbp]
	lea	r14, 28[rbp]
	call	IPW_DEBUG_INFO@PLT
	lea	rdi, 60[rbp]
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 56[rbp]
	call	INIT_STAT@PLT
	lea	rdi, 52[rbp]
	call	INIT_LIST_HEAD@PLT
	mov	rdi, r13
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 48[rbp]
	call	INIT_STAT@PLT
	mov	rdi, r14
	call	INIT_STAT@PLT
	mov	eax, DWORD PTR TX_PENDED_QUEUE_LENGTH[rip]
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 40[rbp]
	mov	r12, rbx
	sal	r12, 4
	add	rdi, r12
	mov	r8, QWORD PTR 8[rdi]
	test	r8, r8
	je	.L3
	mov	rdi, r8
	call	libipw_txb_free@PLT
	mov	rdi, QWORD PTR 40[rbp]
	add	rdi, r12
	mov	QWORD PTR 8[rdi], 0
.L3:
	mov	rsi, r13
	call	list_add_tail@PLT
	lea	esi, 1[rbx]
	add	rbx, 1
	cmp	DWORD PTR TX_PENDED_QUEUE_LENGTH[rip], ebx
	jg	.L4
.L2:
	mov	rdi, r14
	lea	r12, 24[rbp]
	call	SET_STAT@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	QWORD PTR 16[rbp], 0
	mov	rdi, r12
	mov	QWORD PTR 8[rbp], 0
	mov	DWORD PTR 0[rbp], eax
	call	INIT_STAT@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	call	SET_STAT@PLT
	mov	r9d, DWORD PTR IPW_MEM_HOST_SHARED_TX_QUEUE_WRITE_INDEX[rip]
	mov	rdi, rbp
	mov	r8d, DWORD PTR IPW_MEM_HOST_SHARED_TX_QUEUE_READ_INDEX[rip]
	mov	ecx, DWORD PTR IPW_MEM_HOST_SHARED_TX_QUEUE_BD_SIZE[rip]
	mov	edx, DWORD PTR IPW_MEM_HOST_SHARED_TX_QUEUE_BD_BASE[rip]
	mov	rsi, rbp
	call	bd_queue_initialize@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC1[rip]
	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
	jmp	IPW_DEBUG_INFO@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	esi, esi
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ipw2100_tx_initialize, .-ipw2100_tx_initialize
	.comm	TX_PENDED_QUEUE_LENGTH,4,4
	.comm	IPW_MEM_HOST_SHARED_TX_QUEUE_WRITE_INDEX,4,4
	.comm	IPW_MEM_HOST_SHARED_TX_QUEUE_READ_INDEX,4,4
	.comm	IPW_MEM_HOST_SHARED_TX_QUEUE_BD_SIZE,4,4
	.comm	IPW_MEM_HOST_SHARED_TX_QUEUE_BD_BASE,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_ipw2100.c_ipw2100_tx_initialize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enter\012\000"
	.align	2
.LC1:
	.ascii	"exit\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipw2100_tx_initialize, %function
ipw2100_tx_initialize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	sub	sp, sp, #8
	ldr	r0, .L12
	bl	IPW_DEBUG_INFO
	add	r0, r4, #44
	bl	INIT_LIST_HEAD
	add	r0, r4, #40
	bl	INIT_STAT
	add	r5, r4, #24
	add	r0, r4, #36
	bl	INIT_LIST_HEAD
	mov	r0, r5
	bl	INIT_LIST_HEAD
	ldr	r6, .L12+4
	add	r8, r4, #20
	add	r0, r4, #32
	bl	INIT_STAT
	mov	r0, r8
	bl	INIT_STAT
	ldr	r3, [r6]
	mov	r9, #0
	cmp	r3, #0
	ble	.L2
	mov	r7, r9
.L4:
	ldr	r0, [r4, #28]
	lsl	r10, r9, #3
	add	r0, r0, r9, lsl #3
	ldr	r3, [r0, #4]
	add	r9, r9, #1
	cmp	r3, #0
	beq	.L3
	mov	r0, r3
	bl	libipw_txb_free
	ldr	r0, [r4, #28]
	add	r0, r0, r10
	str	r7, [r0, #4]
.L3:
	mov	r1, r5
	bl	list_add_tail
	ldr	r3, [r6]
	cmp	r3, r9
	bgt	.L4
.L2:
	mov	r1, r9
	mov	r0, r8
	bl	SET_STAT
	mov	r3, #0
	ldr	r2, [r4, #4]
	add	r5, r4, #16
	str	r3, [r4, #12]
	str	r3, [r4, #8]
	str	r2, [r4]
	mov	r0, r5
	bl	INIT_STAT
	ldr	r1, [r4]
	mov	r0, r5
	bl	SET_STAT
	ldr	r2, .L12+8
	ldr	r3, .L12+12
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldr	r2, .L12+16
	ldr	r3, .L12+20
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r0, r4
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	bd_queue_initialize
	ldr	r0, .L12+24
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	IPW_DEBUG_INFO
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	TX_PENDED_QUEUE_LENGTH
	.word	IPW_MEM_HOST_SHARED_TX_QUEUE_WRITE_INDEX
	.word	IPW_MEM_HOST_SHARED_TX_QUEUE_READ_INDEX
	.word	IPW_MEM_HOST_SHARED_TX_QUEUE_BD_BASE
	.word	IPW_MEM_HOST_SHARED_TX_QUEUE_BD_SIZE
	.word	.LC1
	.size	ipw2100_tx_initialize, .-ipw2100_tx_initialize
	.comm	TX_PENDED_QUEUE_LENGTH,4,4
	.comm	IPW_MEM_HOST_SHARED_TX_QUEUE_WRITE_INDEX,4,4
	.comm	IPW_MEM_HOST_SHARED_TX_QUEUE_READ_INDEX,4,4
	.comm	IPW_MEM_HOST_SHARED_TX_QUEUE_BD_SIZE,4,4
	.comm	IPW_MEM_HOST_SHARED_TX_QUEUE_BD_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
