	.file	"extr_lan743x_main.c_lan743x_netdev_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error opening LAN743x\n"
	.text
	.p2align 4
	.type	lan743x_netdev_open, @function
lan743x_netdev_open:
.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
	call	netdev_priv@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	lan743x_intr_open@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L21
.L2:
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR ifup[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, rbp
	call	netif_warn@PLT
.L1:
	mov	eax, r12d
	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
.L21:
	.cfi_restore_state
	mov	rdi, rbp
	call	lan743x_mac_open@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	rdi, rbp
	call	lan743x_phy_open@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L22
.L4:
	mov	rdi, rbp
	call	lan743x_mac_close@PLT
.L3:
	mov	rdi, rbp
	call	lan743x_intr_close@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	lan743x_ptp_open@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rdi, rbp
	call	lan743x_rfe_open@PLT
	mov	edx, DWORD PTR LAN743X_USED_RX_CHANNELS[rip]
	test	edx, edx
	jle	.L6
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	add	rbx, 1
	cmp	DWORD PTR LAN743X_USED_RX_CHANNELS[rip], ebx
	jle	.L6
.L8:
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, [rax+rbx*8]
	call	lan743x_rx_open@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L23
.L7:
	mov	eax, DWORD PTR LAN743X_USED_RX_CHANNELS[rip]
	test	eax, eax
	jle	.L10
	xor	ebx, ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	add	rbx, 1
	cmp	DWORD PTR LAN743X_USED_RX_CHANNELS[rip], ebx
	jle	.L10
.L12:
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, [rax+rbx*8]
	cmp	QWORD PTR [rdi], 0
	je	.L11
	call	lan743x_rx_close@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	lan743x_ptp_close@PLT
.L5:
	mov	rdi, rbp
	call	lan743x_phy_close@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 16[rbp]
	call	lan743x_tx_open@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	lan743x_netdev_open, .-lan743x_netdev_open
	.comm	ifup,4,4
	.comm	LAN743X_USED_RX_CHANNELS,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_lan743x_main.c_lan743x_netdev_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error opening LAN743x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lan743x_netdev_open, %function
lan743x_netdev_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	netdev_priv
	mov	r5, r0
	bl	lan743x_intr_open
	subs	r4, r0, #0
	beq	.L21
.L2:
	ldr	r2, .L24
	mov	r0, r5
	ldr	r1, [r2]
	ldr	r3, .L24+4
	ldr	r2, [r5]
	bl	netif_warn
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r0, r5
	bl	lan743x_mac_open
	subs	r4, r0, #0
	bne	.L3
	mov	r0, r5
	bl	lan743x_phy_open
	subs	r4, r0, #0
	beq	.L22
.L4:
	mov	r0, r5
	bl	lan743x_mac_close
.L3:
	mov	r0, r5
	bl	lan743x_intr_close
	b	.L2
.L22:
	mov	r0, r5
	bl	lan743x_ptp_open
	subs	r4, r0, #0
	bne	.L5
	ldr	r8, .L24+8
	mov	r0, r5
	bl	lan743x_rfe_open
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L6
	mov	r7, r4
	b	.L8
.L23:
	ldr	r3, [r8]
	cmp	r3, r7
	ble	.L6
.L8:
	ldr	r0, [r5, #4]
	add	r0, r0, r7, lsl #2
	bl	lan743x_rx_open
	subs	r6, r0, #0
	add	r7, r7, #1
	beq	.L23
.L7:
	ldr	r3, [r8]
	cmp	r3, #0
	bgt	.L12
	b	.L10
.L11:
	ldr	r3, [r8]
	cmp	r3, r4
	ble	.L10
.L12:
	ldr	r0, [r5, #4]
	ldr	r3, [r0, r4, lsl #2]
	add	r0, r0, r4, lsl #2
	cmp	r3, #0
	add	r4, r4, #1
	beq	.L11
	bl	lan743x_rx_close
	b	.L11
.L10:
	mov	r0, r5
	mov	r4, r6
	bl	lan743x_ptp_close
.L5:
	mov	r0, r5
	bl	lan743x_phy_close
	b	.L4
.L6:
	ldr	r0, [r5, #8]
	bl	lan743x_tx_open
	subs	r6, r0, #0
	moveq	r4, r6
	beq	.L1
	b	.L7
.L25:
	.align	2
.L24:
	.word	ifup
	.word	.LC0
	.word	LAN743X_USED_RX_CHANNELS
	.size	lan743x_netdev_open, .-lan743x_netdev_open
	.comm	ifup,4,4
	.comm	LAN743X_USED_RX_CHANNELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
