	.file	"extr_bond_main.c_bond_check_dev_link.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bond_check_dev_link, @function
bond_check_dev_link:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR 16[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	edx, edx
	je	.L2
	cmp	QWORD PTR [r12], 0
	jne	.L31
.L24:
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L8
	mov	rdi, rbp
	call	rax
	test	rax, rax
	jne	.L27
.L7:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	QWORD PTR 0[r13], 0
	je	.L9
	mov	edx, DWORD PTR IFNAMSIZ[rip]
	mov	esi, DWORD PTR 0[rbp]
	lea	r12, 4[rsp]
	mov	edi, DWORD PTR 4[rsp]
	call	strncpy@PLT
	mov	rdi, r12
	call	if_mii@PLT
	mov	edx, DWORD PTR SIOCGMIIPHY[rip]
	mov	rsi, r12
	mov	rdi, rbp
	mov	r13, rax
	call	IOCTL@PLT
	test	rax, rax
	je	.L32
.L9:
	test	ebx, ebx
	jne	.L11
.L27:
	mov	eax, DWORD PTR BMSR_LSTATUS[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L33
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rsi
	call	netif_running@PLT
	test	eax, eax
	je	.L7
	cmp	QWORD PTR [r12], 0
	je	.L24
.L31:
	mov	rdi, rbp
	call	netif_carrier_ok@PLT
	test	rax, rax
	jne	.L27
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	eax, DWORD PTR MII_BMSR[rip]
	mov	edx, DWORD PTR SIOCGMIIREG[rip]
	mov	rsi, r12
	mov	rdi, rbp
	mov	DWORD PTR 4[r13], eax
	call	IOCTL@PLT
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR 0[r13]
	and	eax, DWORD PTR BMSR_LSTATUS[rip]
	jmp	.L1
.L11:
	mov	eax, -1
	jmp	.L1
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bond_check_dev_link, .-bond_check_dev_link
	.comm	SIOCGMIIREG,4,4
	.comm	SIOCGMIIPHY,4,4
	.comm	MII_BMSR,4,4
	.comm	IFNAMSIZ,4,4
	.comm	BMSR_LSTATUS,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_bond_main.c_bond_check_dev_link.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bond_check_dev_link, %function
bond_check_dev_link:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L36
	sub	sp, sp, #12
	subs	r6, r2, #0
	mov	r4, r1
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r7, [r1, #8]
	beq	.L2
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L33
.L27:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	mov	r0, r4
	blx	r3
	cmp	r0, #0
	bne	.L30
.L7:
	mov	r0, #0
	b	.L1
.L8:
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L36+4
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r0, [sp]
	bl	strncpy
	mov	r0, sp
	bl	if_mii
	ldr	r2, .L36+8
	mov	r5, r0
	mov	r1, sp
	mov	r0, r4
	ldr	r2, [r2]
	bl	IOCTL
	cmp	r0, #0
	beq	.L34
.L9:
	cmp	r6, #0
	bne	.L11
.L30:
	ldr	r3, .L36+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r1
	bl	netif_running
	cmp	r0, #0
	beq	.L7
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L27
.L33:
	mov	r0, r4
	bl	netif_carrier_ok
	cmp	r0, #0
	beq	.L7
	b	.L30
.L34:
	ldr	r2, .L36+16
	ldr	r3, .L36+20
	ldr	r2, [r2]
	mov	r1, sp
	str	r2, [r5, #4]
	mov	r0, r4
	ldr	r2, [r3]
	bl	IOCTL
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L36+12
	ldr	r0, [r5]
	ldr	r3, [r3]
	and	r0, r0, r3
	b	.L1
.L11:
	mvn	r0, #0
	b	.L1
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	IFNAMSIZ
	.word	SIOCGMIIPHY
	.word	BMSR_LSTATUS
	.word	MII_BMSR
	.word	SIOCGMIIREG
	.size	bond_check_dev_link, .-bond_check_dev_link
	.comm	SIOCGMIIREG,4,4
	.comm	SIOCGMIIPHY,4,4
	.comm	MII_BMSR,4,4
	.comm	IFNAMSIZ,4,4
	.comm	BMSR_LSTATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
