	.file	"extr_gianfar_ethtool.c_gfar_sringparam.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Ring sizes must be a power of 2\n"
	.text
	.p2align 4
	.type	gfar_sringparam, @function
gfar_sringparam:
.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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	netdev_priv@PLT
	mov	rdi, QWORD PTR [rbx]
	cmp	rdi, QWORD PTR GFAR_RX_MAX_RING_SIZE[rip]
	jle	.L2
.L21:
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	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
.L2:
	.cfi_restore_state
	mov	r14, rax
	call	is_power_of_2@PLT
	test	eax, eax
	je	.L6
	mov	rdi, QWORD PTR 8[rbx]
	cmp	rdi, QWORD PTR GFAR_TX_MAX_RING_SIZE[rip]
	jg	.L21
	call	is_power_of_2@PLT
	test	eax, eax
	je	.L6
	lea	r13, 8[r14]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	call	cpu_relax@PLT
.L7:
	mov	edi, DWORD PTR GFAR_RESETTING[rip]
	mov	rsi, r13
	call	test_and_set_bit_lock@PLT
	test	rax, rax
	jne	.L8
	mov	r12d, DWORD PTR 0[rbp]
	and	r12d, DWORD PTR IFF_UP[rip]
	jne	.L9
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	jle	.L23
.L10:
	mov	rdx, QWORD PTR 24[r14]
	lea	ecx, -1[rax]
	mov	rsi, QWORD PTR [rbx]
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L24:
	add	rax, 8
.L14:
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rdx], rsi
	mov	rdx, rax
	cmp	rcx, rax
	jne	.L24
.L15:
	mov	eax, DWORD PTR 4[r14]
	test	eax, eax
	jle	.L13
.L11:
	mov	rdx, QWORD PTR 16[r14]
	lea	ecx, -1[rax]
	mov	rsi, QWORD PTR 8[rbx]
	lea	rax, 8[rdx]
	lea	rcx, [rax+rcx*8]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L25:
	add	rax, 8
.L17:
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rdx], rsi
	mov	rdx, rax
	cmp	rax, rcx
	jne	.L25
.L13:
	test	r12d, r12d
	jne	.L26
.L12:
	mov	edi, DWORD PTR GFAR_RESETTING[rip]
	mov	rsi, r13
	call	clear_bit_unlock@PLT
	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
.L6:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	netdev_err@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	stop_gfar@PLT
	mov	eax, DWORD PTR [r14]
	mov	r12d, DWORD PTR 0[rbp]
	and	r12d, DWORD PTR IFF_UP[rip]
	test	eax, eax
	jg	.L10
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, rbp
	call	startup_gfar@PLT
	mov	r12d, eax
	jmp	.L12
.L23:
	mov	eax, DWORD PTR 4[r14]
	test	eax, eax
	jg	.L11
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	gfar_sringparam, .-gfar_sringparam
	.comm	IFF_UP,4,4
	.comm	GFAR_TX_MAX_RING_SIZE,8,8
	.comm	GFAR_RX_MAX_RING_SIZE,8,8
	.comm	GFAR_RESETTING,4,4
	.comm	EINVAL,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_gianfar_ethtool.c_gfar_sringparam.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Ring sizes must be a power of 2\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfar_sringparam, %function
gfar_sringparam:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r6, r0
	bl	netdev_priv
	ldr	r2, .L25
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	ble	.L2
.L21:
	ldr	r3, .L25+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r9, r0
	mov	r0, r3
	bl	is_power_of_2
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L25+8
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	bgt	.L21
	bl	is_power_of_2
	cmp	r0, #0
	beq	.L6
	ldr	r7, .L25+12
	add	r8, r9, #8
	b	.L7
.L8:
	bl	cpu_relax
.L7:
	mov	r1, r8
	ldr	r0, [r7]
	bl	test_and_set_bit_lock
	cmp	r0, #0
	bne	.L8
	ldr	r10, .L25+16
	ldr	r5, [r6]
	ldr	r0, [r10]
	ands	r5, r5, r0
	bne	.L9
	ldr	r1, [r9]
	cmp	r1, #0
	ble	.L23
.L10:
	ldr	r3, [r9, #16]
	ldr	r0, [r4]
	sub	r3, r3, #4
	add	r1, r3, r1, lsl #2
.L14:
	ldr	r2, [r3, #4]!
	cmp	r1, r3
	str	r0, [r2]
	bne	.L14
.L15:
	ldr	r1, [r9, #4]
	cmp	r1, #0
	ble	.L13
.L11:
	ldr	r3, [r9, #12]
	ldr	r0, [r4, #4]
	sub	r3, r3, #4
	add	r1, r3, r1, lsl #2
.L17:
	ldr	r2, [r3, #4]!
	cmp	r1, r3
	str	r0, [r2]
	bne	.L17
.L13:
	cmp	r5, #0
	bne	.L24
.L12:
	mov	r1, r8
	ldr	r0, [r7]
	bl	clear_bit_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, r6
	ldr	r1, .L25+20
	bl	netdev_err
	b	.L21
.L9:
	mov	r0, r6
	bl	stop_gfar
	ldr	r1, [r9]
	ldr	r3, [r10]
	ldr	r5, [r6]
	cmp	r1, #0
	and	r5, r5, r3
	bgt	.L10
	b	.L15
.L24:
	mov	r0, r6
	bl	startup_gfar
	mov	r5, r0
	b	.L12
.L23:
	ldr	r1, [r9, #4]
	cmp	r1, #0
	bgt	.L11
	b	.L12
.L26:
	.align	2
.L25:
	.word	GFAR_RX_MAX_RING_SIZE
	.word	EINVAL
	.word	GFAR_TX_MAX_RING_SIZE
	.word	GFAR_RESETTING
	.word	IFF_UP
	.word	.LC0
	.size	gfar_sringparam, .-gfar_sringparam
	.comm	IFF_UP,4,4
	.comm	GFAR_TX_MAX_RING_SIZE,4,4
	.comm	GFAR_RX_MAX_RING_SIZE,4,4
	.comm	GFAR_RESETTING,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
