	.file	"extr_ef10.c_efx_ef10_init_nic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"not permitted to restore PIO buffers\n"
	.align 8
.LC1:
	.string	"failed to restore PIO buffers (%d)\n"
	.text
	.p2align 4
	.type	efx_ef10_init_nic, @function
efx_ef10_init_nic:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 24[rdi]
	mov	esi, DWORD PTR [rbx]
	test	esi, esi
	jne	.L17
	mov	ecx, DWORD PTR 4[rbx]
	test	ecx, ecx
	jne	.L18
.L4:
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	jne	.L19
.L5:
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 0[rbp]
	xor	ecx, ecx
	xor	esi, esi
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L19:
	.cfi_restore_state
	mov	rsi, QWORD PTR 16[rbx]
	test	rsi, rsi
	je	.L5
	mov	rdi, rbp
	call	efx_ef10_alloc_piobufs@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L6:
	mov	eax, r12d
	add	eax, DWORD PTR EPERM[rip]
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR drv[rip]
	jne	.L21
.L9:
	lea	rcx, .LC0[rip]
	mov	rdi, rbp
	call	netif_dbg@PLT
.L8:
	mov	DWORD PTR 8[rbx], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	call	efx_ef10_init_datapath_caps@PLT
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR 4[rbx]
	mov	DWORD PTR [rbx], 0
	test	ecx, ecx
	je	.L4
.L18:
	mov	esi, DWORD PTR 24[rbx]
	mov	rdi, rbp
	mov	edx, esi
	call	efx_ef10_alloc_vis@PLT
	test	eax, eax
	jne	.L1
	mov	DWORD PTR 4[rbx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	efx_ef10_link_piobufs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	mov	eax, DWORD PTR EPERM[rip]
	test	eax, eax
	jne	.L8
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR drv[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r8d, r12d
	lea	rcx, .LC1[rip]
	mov	rdi, rbp
	call	netif_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	efx_ef10_free_piobufs@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	efx_ef10_init_nic, .-efx_ef10_init_nic
	.comm	drv,4,4
	.comm	EPERM,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_ef10.c_efx_ef10_init_nic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"not permitted to restore PIO buffers\012\000"
	.align	2
.LC1:
	.ascii	"failed to restore PIO buffers (%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_ef10_init_nic, %function
efx_ef10_init_nic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #12]
	mov	r4, r0
	ldr	r3, [r5]
	sub	sp, sp, #8
	cmp	r3, #0
	bne	.L26
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L27
.L4:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L28
.L5:
	mov	r3, #0
	ldr	r2, [r4, #4]
	mov	r1, r3
	ldr	r5, [r2]
	mov	r0, r4
	ldr	r2, [r4]
	blx	r5
	mov	r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L28:
	ldr	r1, [r5, #12]
	cmp	r1, #0
	beq	.L5
	mov	r0, r4
	bl	efx_ef10_alloc_piobufs
	subs	r6, r0, #0
	beq	.L29
.L6:
	ldr	r3, .L32
	ldr	r2, .L32+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	cmn	r6, r3
	ldr	r2, [r4, #8]
	bne	.L30
.L9:
	mov	r0, r4
	ldr	r3, .L32+8
	bl	netif_dbg
.L8:
	mov	r3, #0
	str	r3, [r5, #8]
	b	.L5
.L26:
	bl	efx_ef10_init_datapath_caps
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r5, #4]
	str	r0, [r5]
	cmp	r3, #0
	beq	.L4
.L27:
	ldr	r2, [r5, #16]
	mov	r0, r4
	mov	r1, r2
	bl	efx_ef10_alloc_vis
	cmp	r0, #0
	bne	.L1
	str	r0, [r5, #4]
	b	.L4
.L29:
	mov	r0, r4
	bl	efx_ef10_link_piobufs
	subs	r6, r0, #0
	bne	.L31
	ldr	r3, .L32
	ldr	r3, [r3]
	cmp	r3, #0
	ldreq	r3, .L32+4
	ldreq	r2, [r4, #8]
	ldreq	r1, [r3]
	bne	.L8
	b	.L9
.L30:
	mov	r0, r4
	ldr	r3, .L32+12
	str	r6, [sp]
	bl	netif_err
	b	.L8
.L31:
	mov	r0, r4
	bl	efx_ef10_free_piobufs
	b	.L6
.L33:
	.align	2
.L32:
	.word	EPERM
	.word	drv
	.word	.LC0
	.word	.LC1
	.size	efx_ef10_init_nic, .-efx_ef10_init_nic
	.comm	drv,4,4
	.comm	EPERM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
