	.file	"extr_if_nfe.c_nfe_alloc_jrx_ring.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"disabling jumbo frame support\n"
	.align 8
.LC1:
	.string	"could not create jumbo ring DMA tag\n"
	.align 8
.LC2:
	.string	"could not create jumbo Rx buffer DMA tag\n"
	.align 8
.LC3:
	.string	"could not allocate DMA'able memory for jumbo Rx ring\n"
	.align 8
.LC4:
	.string	"could not load DMA'able memory for jumbo Rx ring\n"
	.align 8
.LC5:
	.string	"could not create jumbo Rx DMA spare map\n"
	.align 8
.LC6:
	.string	"could not create jumbo Rx DMA map\n"
	.align 8
.LC7:
	.string	"disabling jumbo frame support due to resource shortage\n"
	.text
	.p2align 4
	.type	nfe_alloc_jrx_ring, @function
nfe_alloc_jrx_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR NFE_JUMBO_SUP[rip], eax
	je	.L1
	cmp	QWORD PTR jumbo_disable[rip], 0
	mov	rbx, rdi
	jne	.L26
	mov	rdx, QWORD PTR 40[rsi]
	mov	edi, DWORD PTR 24[rdi]
	mov	rbp, rsi
	mov	QWORD PTR 48[rsi], 0
	test	DWORD PTR NFE_40BIT_ADDR[rip], eax
	mov	eax, DWORD PTR NFE_JUMBO_RX_RING_COUNT[rip]
	mov	QWORD PTR 56[rsi], 0
	cmove	rdx, QWORD PTR 32[rsi]
	mov	ecx, DWORD PTR BUS_SPACE_MAXADDR[rip]
	xor	r9d, r9d
	sal	eax, 2
	mov	QWORD PTR 16[rsp], rdx
	lea	rdx, 28[rsi]
	mov	esi, DWORD PTR NFE_RING_ALIGN[rip]
	mov	r8d, ecx
	push	rdx
	.cfi_def_cfa_offset 72
	xor	edx, edx
	push	0
	.cfi_def_cfa_offset 80
	push	0
	.cfi_def_cfa_offset 88
	push	0
	.cfi_def_cfa_offset 96
	push	rax
	.cfi_def_cfa_offset 104
	push	1
	.cfi_def_cfa_offset 112
	push	rax
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	call	bus_dma_tag_create@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L27
	mov	eax, DWORD PTR MJUM9BYTES[rip]
	mov	edi, DWORD PTR 24[rbx]
	push	rbp
	.cfi_def_cfa_offset 72
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR BUS_SPACE_MAXADDR[rip]
	xor	edx, edx
	mov	esi, 1
	push	0
	.cfi_def_cfa_offset 88
	push	0
	.cfi_def_cfa_offset 96
	mov	r8d, ecx
	push	rax
	.cfi_def_cfa_offset 104
	push	1
	.cfi_def_cfa_offset 112
	push	rax
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	call	bus_dma_tag_create@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L28
	mov	edi, DWORD PTR 28[rbp]
	mov	edx, DWORD PTR BUS_DMA_WAITOK[rip]
	lea	rcx, 24[rbp]
	lea	rsi, 16[rsp]
	or	edx, DWORD PTR BUS_DMA_COHERENT[rip]
	or	edx, DWORD PTR BUS_DMA_ZERO[rip]
	call	bus_dmamem_alloc@PLT
	test	eax, eax
	jne	.L29
	mov	rdx, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR NFE_40BIT_ADDR[rip], eax
	je	.L10
	mov	QWORD PTR 40[rbp], rdx
.L11:
	mov	QWORD PTR 8[rsp], 0
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	esi, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR 28[rbp]
	mov	eax, DWORD PTR NFE_JUMBO_RX_RING_COUNT[rip]
	push	0
	.cfi_def_cfa_offset 80
	mov	r8d, DWORD PTR nfe_dma_map_segs[rip]
	lea	ecx, 0[0+rax*4]
	lea	r9, 24[rsp]
	call	bus_dmamap_load@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 0[rbp]
	xor	esi, esi
	lea	rdx, 8[rbp]
	mov	QWORD PTR 16[rbp], rax
	call	bus_dmamap_create@PLT
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR NFE_JUMBO_RX_RING_COUNT[rip]
	xor	r12d, r12d
	test	eax, eax
	jg	.L14
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	add	r12, 1
	cmp	DWORD PTR NFE_JUMBO_RX_RING_COUNT[rip], r12d
	jle	.L1
.L14:
	mov	rdx, r12
	mov	edi, DWORD PTR 0[rbp]
	xor	esi, esi
	sal	rdx, 4
	add	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR [rdx], 0
	mov	QWORD PTR 8[rdx], 0
	call	bus_dmamap_create@PLT
	test	eax, eax
	je	.L15
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC6[rip]
	call	device_printf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
.L7:
	mov	rsi, rbp
	mov	rdi, rbx
	call	nfe_free_jrx_ring@PLT
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC7[rip]
	call	device_printf@PLT
	mov	DWORD PTR 4[rbx], 1
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rdi]
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	mov	DWORD PTR 4[rbx], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC2[rip]
	call	device_printf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	QWORD PTR 32[rbp], rdx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC4[rip]
	call	device_printf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC3[rip]
	call	device_printf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC5[rip]
	call	device_printf@PLT
	jmp	.L7
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nfe_alloc_jrx_ring, .-nfe_alloc_jrx_ring
	.comm	nfe_dma_map_segs,4,4
	.comm	jumbo_disable,8,8
	.comm	NFE_RING_ALIGN,4,4
	.comm	NFE_JUMBO_SUP,4,4
	.comm	NFE_JUMBO_RX_RING_COUNT,4,4
	.comm	NFE_40BIT_ADDR,4,4
	.comm	MJUM9BYTES,4,4
	.comm	BUS_SPACE_MAXADDR,4,4
	.comm	BUS_DMA_ZERO,4,4
	.comm	BUS_DMA_WAITOK,4,4
	.comm	BUS_DMA_COHERENT,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_nfe.c_nfe_alloc_jrx_ring.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"disabling jumbo frame support\012\000"
	.align	2
.LC1:
	.ascii	"could not create jumbo ring DMA tag\012\000"
	.align	2
.LC2:
	.ascii	"could not create jumbo Rx buffer DMA tag\012\000"
	.align	2
.LC3:
	.ascii	"could not allocate DMA'able memory for jumbo Rx rin"
	.ascii	"g\012\000"
	.align	2
.LC4:
	.ascii	"could not load DMA'able memory for jumbo Rx ring\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"could not create jumbo Rx DMA spare map\012\000"
	.align	2
.LC6:
	.ascii	"could not create jumbo Rx DMA map\012\000"
	.align	2
.LC7:
	.ascii	"disabling jumbo frame support due to resource short"
	.ascii	"age\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfe_alloc_jrx_ring, %function
nfe_alloc_jrx_ring:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r2, .L31
	ldr	r3, [r0]
	ldr	r2, [r2]
	sub	sp, sp, #60
	tst	r3, r2
	ldr	r2, .L31+4
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	beq	.L1
	ldr	r2, .L31+8
	mov	r5, r0
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L25
	mov	r4, r1
	ldr	r9, .L31+12
	mov	r6, #1
	ldr	r0, [r9]
	ldr	r1, [r1, #20]
	tst	r3, r0
	ldr	ip, [r4, #24]
	moveq	ip, r1
	ldr	r7, .L31+16
	ldr	r8, .L31+20
	ldr	r1, [r7]
	ldr	r3, [r8]
	lsl	r1, r1, #2
	ldr	lr, .L31+24
	str	r2, [r4, #28]
	str	r2, [r4, #32]
	add	r0, r4, #16
	str	r2, [sp, #32]
	str	r2, [sp, #28]
	str	r2, [sp, #24]
	str	r2, [sp, #8]
	str	r2, [sp, #4]
	str	r1, [sp, #20]
	str	r1, [sp, #12]
	str	r3, [sp]
	str	r6, [sp, #16]
	ldr	r1, [lr]
	str	r0, [sp, #36]
	ldr	r0, [r5, #16]
	str	ip, [sp, #48]
	bl	bus_dma_tag_create
	subs	r2, r0, #0
	bne	.L26
	ldr	r1, .L31+28
	ldr	r3, [r8]
	ldr	r0, [r1]
	str	r3, [sp]
	str	r4, [sp, #36]
	str	r2, [sp, #32]
	str	r2, [sp, #28]
	str	r2, [sp, #24]
	str	r6, [sp, #16]
	str	r2, [sp, #8]
	str	r2, [sp, #4]
	str	r0, [sp, #20]
	str	r0, [sp, #12]
	mov	r1, r6
	ldr	r0, [r5, #16]
	bl	bus_dma_tag_create
	cmp	r0, #0
	bne	.L27
	ldr	r3, .L31+32
	ldr	r1, .L31+36
	ldr	r2, .L31+40
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r2, r3, r2
	ldr	r0, [r4, #16]
	add	r3, r4, #12
	add	r1, sp, #48
	bl	bus_dmamem_alloc
	cmp	r0, #0
	bne	.L28
	mov	ip, #0
	ldr	r1, [r5]
	ldr	r3, [r9]
	ldr	r2, [sp, #48]
	tst	r1, r3
	ldr	r1, .L31+44
	ldr	r3, [r7]
	ldr	r0, [r1]
	add	r1, sp, #44
	strne	r2, [r4, #24]
	streq	r2, [r4, #20]
	str	r0, [sp]
	str	ip, [sp, #8]
	str	r1, [sp, #4]
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #16]
	lsl	r3, r3, #2
	str	ip, [sp, #44]
	bl	bus_dmamap_load
	subs	r1, r0, #0
	bne	.L29
	mov	r2, r4
	ldr	r3, [sp, #44]
	ldr	r0, [r2], #4
	str	r3, [r4, #8]
	bl	bus_dmamap_create
	subs	r6, r0, #0
	bne	.L13
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L1
	mov	r8, r6
	b	.L14
.L15:
	ldr	r3, [r7]
	add	r6, r6, #1
	cmp	r3, r6
	ble	.L1
.L14:
	ldr	r3, [r5, #12]
	mov	r1, #0
	add	r2, r3, r6, lsl #3
	str	r8, [r3, r6, lsl #3]
	ldr	r0, [r4]
	str	r8, [r2, #4]
	bl	bus_dmamap_create
	cmp	r0, #0
	beq	.L15
	ldr	r1, .L31+48
	ldr	r0, [r5, #8]
	bl	device_printf
	b	.L7
.L26:
	ldr	r1, .L31+52
	ldr	r0, [r5, #8]
	bl	device_printf
.L7:
	mov	r1, r4
	mov	r0, r5
	bl	nfe_free_jrx_ring
	ldr	r1, .L31+56
	ldr	r0, [r5, #8]
	bl	device_printf
	mov	r3, #1
	str	r3, [r5, #4]
.L1:
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L25:
	ldr	r1, .L31+60
	ldr	r0, [r0, #8]
	bl	device_printf
	mov	r3, #1
	str	r3, [r5, #4]
	b	.L1
.L27:
	ldr	r1, .L31+64
	ldr	r0, [r5, #8]
	bl	device_printf
	b	.L7
.L29:
	ldr	r1, .L31+68
	ldr	r0, [r5, #8]
	bl	device_printf
	b	.L7
.L28:
	ldr	r1, .L31+72
	ldr	r0, [r5, #8]
	bl	device_printf
	b	.L7
.L13:
	ldr	r1, .L31+76
	ldr	r0, [r5, #8]
	bl	device_printf
	b	.L7
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	NFE_JUMBO_SUP
	.word	.LC8
	.word	jumbo_disable
	.word	NFE_40BIT_ADDR
	.word	NFE_JUMBO_RX_RING_COUNT
	.word	BUS_SPACE_MAXADDR
	.word	NFE_RING_ALIGN
	.word	MJUM9BYTES
	.word	BUS_DMA_WAITOK
	.word	BUS_DMA_COHERENT
	.word	BUS_DMA_ZERO
	.word	nfe_dma_map_segs
	.word	.LC6
	.word	.LC1
	.word	.LC7
	.word	.LC0
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.word	.LC5
	.size	nfe_alloc_jrx_ring, .-nfe_alloc_jrx_ring
	.comm	nfe_dma_map_segs,4,4
	.comm	jumbo_disable,4,4
	.comm	NFE_RING_ALIGN,4,4
	.comm	NFE_JUMBO_SUP,4,4
	.comm	NFE_JUMBO_RX_RING_COUNT,4,4
	.comm	NFE_40BIT_ADDR,4,4
	.comm	MJUM9BYTES,4,4
	.comm	BUS_SPACE_MAXADDR,4,4
	.comm	BUS_DMA_ZERO,4,4
	.comm	BUS_DMA_WAITOK,4,4
	.comm	BUS_DMA_COHERENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
