	.file	"extr_if_bwi.c_bwi_dma_txstats_alloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"can't allocate txstats data\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"can't create txstats ring DMA tag\n"
	.align 8
.LC2:
	.string	"can't allocate txstats ring DMA mem\n"
	.align 8
.LC3:
	.string	"can't load txstats ring DMA mem\n"
	.section	.rodata.str1.1
.LC4:
	.string	"can't create txstats DMA tag\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"can't allocate txstats DMA mem\n"
	.section	.rodata.str1.1
.LC6:
	.string	"can't load txstats DMA mem\n"
	.text
	.p2align 4
	.type	bwi_dma_txstats_alloc, @function
bwi_dma_txstats_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	mov	esi, DWORD PTR M_DEVBUF[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	mov	edx, DWORD PTR M_NOWAIT[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	or	edx, DWORD PTR M_ZERO[rip]
	mov	rbp, rdi
	mov	edi, 56
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	malloc@PLT
	test	rax, rax
	je	.L12
	mov	edi, DWORD PTR BWI_TXSTATS_NDESC[rip]
	mov	esi, DWORD PTR BWI_RING_ALIGN[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rbx, rax
	imul	edi, r12d
	call	roundup@PLT
	mov	ecx, DWORD PTR BUS_SPACE_MAXADDR[rip]
	mov	edi, DWORD PTR 4[rbp]
	xor	edx, edx
	mov	r13d, eax
	lea	rax, 40[rbx]
	mov	esi, DWORD PTR BWI_RING_ALIGN[rip]
	xor	r9d, r9d
	push	rax
	.cfi_def_cfa_offset 56
	mov	r8d, ecx
	push	0
	.cfi_def_cfa_offset 64
	push	0
	.cfi_def_cfa_offset 72
	push	0
	.cfi_def_cfa_offset 80
	push	r13
	.cfi_def_cfa_offset 88
	push	1
	.cfi_def_cfa_offset 96
	push	r13
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	call	bus_dma_tag_create@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 48
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	rdi, QWORD PTR 40[rbx]
	mov	edx, DWORD PTR BUS_DMA_WAITOK[rip]
	lea	rcx, 48[rbx]
	mov	rsi, rbx
	or	edx, DWORD PTR BUS_DMA_ZERO[rip]
	call	bus_dmamem_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR BUS_DMA_NOWAIT[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR 48[rbx]
	mov	ecx, r13d
	mov	rdi, QWORD PTR 40[rbx]
	mov	r8d, DWORD PTR bwi_dma_ring_addr[rip]
	lea	r9, 52[rbx]
	push	rax
	.cfi_def_cfa_offset 64
	mov	rdx, QWORD PTR [rbx]
	call	bus_dmamap_load@PLT
	pop	rcx
	.cfi_def_cfa_offset 56
	pop	rsi
	.cfi_def_cfa_offset 48
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR BWI_TXSTATS_NDESC[rip]
	mov	esi, DWORD PTR BWI_ALIGN[rip]
	lea	edi, 0[0+rax*4]
	call	roundup@PLT
	mov	ecx, DWORD PTR BUS_SPACE_MAXADDR[rip]
	mov	edi, DWORD PTR 4[rbp]
	xor	edx, edx
	mov	r13d, eax
	lea	rax, 24[rbx]
	mov	esi, DWORD PTR BWI_ALIGN[rip]
	xor	r9d, r9d
	push	rax
	.cfi_def_cfa_offset 56
	mov	r8d, ecx
	push	0
	.cfi_def_cfa_offset 64
	push	0
	.cfi_def_cfa_offset 72
	push	0
	.cfi_def_cfa_offset 80
	push	r13
	.cfi_def_cfa_offset 88
	push	1
	.cfi_def_cfa_offset 96
	push	r13
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	call	bus_dma_tag_create@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 48
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	mov	rdi, QWORD PTR 24[rbx]
	mov	edx, DWORD PTR BUS_DMA_WAITOK[rip]
	lea	rcx, 32[rbx]
	lea	rsi, 8[rbx]
	or	edx, DWORD PTR BUS_DMA_ZERO[rip]
	call	bus_dmamem_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR BUS_DMA_NOWAIT[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR 32[rbx]
	mov	ecx, r13d
	mov	rdx, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 24[rbx]
	lea	r9, 36[rbx]
	push	rax
	.cfi_def_cfa_offset 64
	mov	r8d, DWORD PTR bwi_dma_ring_addr[rip]
	call	bus_dmamap_load@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	r12d, r12d
	jne	.L18
	mov	DWORD PTR 16[rbx], r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC2[rip]
	call	device_printf@PLT
	mov	rdi, QWORD PTR 40[rbx]
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR 40[rbx], 0
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC4[rip]
	call	device_printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC3[rip]
	call	device_printf@PLT
	mov	edx, DWORD PTR 48[rbx]
	mov	rdi, QWORD PTR 40[rbx]
	mov	rsi, QWORD PTR [rbx]
	call	bus_dmamem_free@PLT
	mov	rdi, QWORD PTR 40[rbx]
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR 40[rbx], 0
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC5[rip]
	call	device_printf@PLT
	mov	rdi, QWORD PTR 24[rbx]
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR 24[rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC6[rip]
	call	device_printf@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 24[rbx]
	call	bus_dmamem_free@PLT
	mov	rdi, QWORD PTR 24[rbx]
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR 24[rbx], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bwi_dma_txstats_alloc, .-bwi_dma_txstats_alloc
	.comm	bwi_dma_ring_addr,4,4
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_DEVBUF,4,4
	.comm	ENOMEM,4,4
	.comm	BWI_TXSTATS_NDESC,4,4
	.comm	BWI_RING_ALIGN,4,4
	.comm	BWI_ALIGN,4,4
	.comm	BUS_SPACE_MAXADDR,4,4
	.comm	BUS_DMA_ZERO,4,4
	.comm	BUS_DMA_WAITOK,4,4
	.comm	BUS_DMA_NOWAIT,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_if_bwi.c_bwi_dma_txstats_alloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't allocate txstats data\012\000"
	.align	2
.LC1:
	.ascii	"can't create txstats ring DMA tag\012\000"
	.align	2
.LC2:
	.ascii	"can't allocate txstats ring DMA mem\012\000"
	.align	2
.LC3:
	.ascii	"can't load txstats ring DMA mem\012\000"
	.align	2
.LC4:
	.ascii	"can't create txstats DMA tag\012\000"
	.align	2
.LC5:
	.ascii	"can't allocate txstats DMA mem\012\000"
	.align	2
.LC6:
	.ascii	"can't load txstats DMA mem\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bwi_dma_txstats_alloc, %function
bwi_dma_txstats_alloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r1, .L19
	mov	r5, r2
	ldr	r2, .L19+4
	mov	r7, r0
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r1, .L19+8
	sub	sp, sp, #52
	orr	r2, r0, r2
	ldr	r1, [r1]
	mov	r0, #36
	str	ip, [sp, #44]
	bl	malloc
	subs	r4, r0, #0
	beq	.L12
	ldr	fp, .L19+12
	ldr	r2, .L19+16
	ldr	r0, [fp]
	ldr	r1, [r2]
	mul	r0, r5, r0
	str	r4, [r7, #8]
	bl	roundup
	mov	r8, r0
	mov	r6, #0
	mov	r9, #1
	ldr	r10, .L19+20
	ldr	r2, .L19+16
	ldr	r3, [r10]
	str	r8, [sp, #20]
	str	r8, [sp, #12]
	add	r0, r4, #24
	ldr	r1, [r2]
	str	r3, [sp]
	str	r6, [sp, #32]
	str	r6, [sp, #28]
	str	r6, [sp, #24]
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	str	r9, [sp, #16]
	str	r0, [sp, #36]
	mov	r2, r6
	ldr	r0, [r7, #4]
	bl	bus_dma_tag_create
	subs	r5, r0, #0
	bne	.L13
	ldr	r3, .L19+24
	ldr	r0, [r4, #24]
	ldr	r1, [r3]
	ldr	r3, .L19+28
	ldr	r2, [r3]
	add	r3, r4, #28
	orr	r2, r1, r2
	mov	r1, r4
	bl	bus_dmamem_alloc
	subs	r5, r0, #0
	bne	.L14
	ldr	r3, .L19+32
	ldr	r2, [r4]
	ldr	ip, [r3]
	ldr	r3, .L19+36
	ldr	r1, [r4, #28]
	ldr	lr, [r3]
	ldr	r0, [r4, #24]
	str	ip, [sp, #8]
	add	ip, r4, #32
	mov	r3, r8
	str	lr, [sp]
	str	ip, [sp, #4]
	bl	bus_dmamap_load
	subs	r5, r0, #0
	bne	.L15
	ldr	r0, [fp]
	ldr	fp, .L19+40
	lsl	r0, r0, #2
	ldr	r1, [fp]
	bl	roundup
	ldr	r3, [r10]
	str	r0, [sp, #20]
	str	r0, [sp, #12]
	add	r2, r4, #12
	ldr	r1, [fp]
	str	r5, [sp, #32]
	str	r5, [sp, #28]
	str	r5, [sp, #24]
	str	r9, [sp, #16]
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r2, [sp, #36]
	str	r3, [sp]
	mov	r2, r5
	mov	r8, r0
	ldr	r0, [r7, #4]
	bl	bus_dma_tag_create
	mov	r9, r5
	subs	r5, r0, #0
	bne	.L16
	ldr	r3, .L19+24
	ldr	r0, [r4, #12]
	ldr	r1, [r3]
	ldr	r3, .L19+28
	ldr	r2, [r3]
	add	r3, r4, #16
	orr	r2, r1, r2
	add	r1, r4, #4
	bl	bus_dmamem_alloc
	subs	r5, r0, #0
	bne	.L17
	ldr	r3, .L19+32
	add	ip, r4, #20
	ldr	r5, [r3]
	ldr	r3, .L19+36
	ldr	r2, [r4, #4]
	ldr	lr, [r3]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	mov	r3, r8
	str	r5, [sp, #8]
	str	lr, [sp]
	str	ip, [sp, #4]
	bl	bus_dmamap_load
	subs	r5, r0, #0
	bne	.L18
	ldr	r3, [sp, #44]
	str	r3, [r4, #8]
	b	.L1
.L13:
	ldr	r0, [r7]
	ldr	r1, .L19+44
	bl	device_printf
.L1:
	mov	r0, r5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r1, .L19+48
	ldr	r0, [r7]
	bl	device_printf
	ldr	r0, [r4, #24]
	bl	bus_dma_tag_destroy
	mov	r0, r5
	str	r6, [r4, #24]
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r0, [r7]
	ldr	r1, .L19+52
	bl	device_printf
	b	.L1
.L12:
	ldr	r0, [r7]
	ldr	r1, .L19+56
	bl	device_printf
	ldr	r3, .L19+60
	ldr	r5, [r3]
	mov	r0, r5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r0, [r7]
	ldr	r1, .L19+64
	bl	device_printf
	ldr	r2, [r4, #28]
	ldr	r1, [r4]
	ldr	r0, [r4, #24]
	bl	bus_dmamem_free
	ldr	r0, [r4, #24]
	bl	bus_dma_tag_destroy
	mov	r0, r5
	str	r6, [r4, #24]
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r1, .L19+68
	ldr	r0, [r7]
	bl	device_printf
	ldr	r0, [r4, #12]
	bl	bus_dma_tag_destroy
	str	r9, [r4, #12]
	b	.L1
.L18:
	ldr	r1, .L19+72
	ldr	r0, [r7]
	bl	device_printf
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #12]
	bl	bus_dmamem_free
	ldr	r0, [r4, #12]
	bl	bus_dma_tag_destroy
	str	r6, [r4, #12]
	b	.L1
.L20:
	.align	2
.L19:
	.word	M_NOWAIT
	.word	M_ZERO
	.word	M_DEVBUF
	.word	BWI_TXSTATS_NDESC
	.word	BWI_RING_ALIGN
	.word	BUS_SPACE_MAXADDR
	.word	BUS_DMA_WAITOK
	.word	BUS_DMA_ZERO
	.word	BUS_DMA_NOWAIT
	.word	bwi_dma_ring_addr
	.word	BWI_ALIGN
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	.LC0
	.word	ENOMEM
	.word	.LC3
	.word	.LC5
	.word	.LC6
	.size	bwi_dma_txstats_alloc, .-bwi_dma_txstats_alloc
	.comm	bwi_dma_ring_addr,4,4
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_DEVBUF,4,4
	.comm	ENOMEM,4,4
	.comm	BWI_TXSTATS_NDESC,4,4
	.comm	BWI_RING_ALIGN,4,4
	.comm	BWI_ALIGN,4,4
	.comm	BUS_SPACE_MAXADDR,4,4
	.comm	BUS_DMA_ZERO,4,4
	.comm	BUS_DMA_WAITOK,4,4
	.comm	BUS_DMA_NOWAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
