	.file	"extr_net.c_most_nd_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"most_start_channel() failed\n"
	.text
	.p2align 4
	.type	most_nd_open, @function
most_nd_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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	netdev_priv@PLT
	lea	rdi, probe_disc_mt[rip]
	mov	rbx, rax
	call	mutex_lock@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, QWORD PTR 8[rbx]
	lea	rdx, comp[rip]
	call	most_start_channel@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	lea	rdx, comp[rip]
	call	most_start_channel@PLT
	test	rax, rax
	jne	.L12
	mov	rdi, rbp
	call	netif_carrier_off@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	is_valid_ether_addr@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L5
	call	netif_dormant_off@PLT
.L6:
	mov	rdi, rbp
	xor	r12d, r12d
	call	netif_wake_queue@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L3
	mov	edx, DWORD PTR on_netinfo[rip]
	mov	esi, DWORD PTR [rbx]
	call	rax
.L3:
	lea	rdi, probe_disc_mt[rip]
	call	mutex_unlock@PLT
	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
.L12:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	netdev_err@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, QWORD PTR 8[rbx]
	lea	rdx, comp[rip]
	call	most_stop_channel@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	netdev_err@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	call	netif_dormant_on@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	most_nd_open, .-most_nd_open
	.comm	probe_disc_mt,4,4
	.comm	on_netinfo,4,4
	.comm	comp,4,4
	.comm	EBUSY,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_net.c_most_nd_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"most_start_channel() failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	most_nd_open, %function
most_nd_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	netdev_priv
	mov	r4, r0
	ldr	r0, .L14
	bl	mutex_lock
	ldmib	r4, {r0, r1}
	ldr	r2, .L14+4
	bl	most_start_channel
	cmp	r0, #0
	bne	.L12
	ldr	r2, .L14+4
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	most_start_channel
	subs	r5, r0, #0
	mov	r0, r6
	bne	.L13
	bl	netif_carrier_off
	ldr	r0, [r6]
	bl	is_valid_ether_addr
	cmp	r0, #0
	mov	r0, r6
	beq	.L5
	bl	netif_dormant_off
.L6:
	mov	r0, r6
	bl	netif_wake_queue
	ldr	r0, [r4, #4]
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L3
	ldr	r2, .L14+8
	ldr	r1, [r4]
	ldr	r2, [r2]
	blx	r3
.L3:
	ldr	r0, .L14
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r1, .L14+12
	bl	netdev_err
	ldmib	r4, {r0, r1}
	ldr	r2, .L14+4
	bl	most_stop_channel
	ldr	r3, .L14+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L12:
	mov	r0, r6
	ldr	r1, .L14+12
	bl	netdev_err
	ldr	r3, .L14+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L5:
	bl	netif_dormant_on
	b	.L6
.L15:
	.align	2
.L14:
	.word	probe_disc_mt
	.word	comp
	.word	on_netinfo
	.word	.LC0
	.word	EBUSY
	.size	most_nd_open, .-most_nd_open
	.comm	probe_disc_mt,4,4
	.comm	on_netinfo,4,4
	.comm	comp,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
