	.file	"extr_ixgbe_ethtool.c_ixgbe_set_settings.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"setup link failed with code %d\n"
	.text
	.p2align 4
	.type	ixgbe_set_settings, @function
ixgbe_set_settings:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	netdev_priv@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR ixgbe_media_type_copper[rip]
	cmp	QWORD PTR 16[rbx], rax
	je	.L2
	cmp	QWORD PTR 32[rbx], 0
	je	.L3
.L2:
	mov	rax, QWORD PTR AUTONEG_DISABLE[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L11
	mov	eax, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR 8[rbp]
	not	eax
	test	eax, edx
	jne	.L11
	test	DWORD PTR ADVERTISED_10000baseT_Full[rip], edx
	mov	esi, 0
	mov	rbp, QWORD PTR 24[rbx]
	cmovne	rsi, QWORD PTR IXGBE_LINK_SPEED_10GB_FULL[rip]
	test	DWORD PTR ADVERTISED_1000baseT_Full[rip], edx
	je	.L8
	or	rsi, QWORD PTR IXGBE_LINK_SPEED_1GB_FULL[rip]
.L8:
	test	DWORD PTR ADVERTISED_100baseT_Full[rip], edx
	je	.L9
	or	rsi, QWORD PTR IXGBE_LINK_SPEED_100_FULL[rip]
.L9:
	cmp	rsi, rbp
	je	.L12
	mov	DWORD PTR [rbx], 1
	mov	edx, 1
	mov	rdi, rbx
	call	[QWORD PTR 8[rbx]]
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR probe[rip]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	e_info@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	edx, 1
	call	[QWORD PTR 8[rbx]]
	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
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	call	ethtool_cmd_speed@PLT
	mov	rcx, QWORD PTR AUTONEG_ENABLE[rip]
	cmp	QWORD PTR 0[rbp], rcx
	je	.L11
	mov	ecx, DWORD PTR ADVERTISED_10000baseT_Full[rip]
	cmp	DWORD PTR 8[rbp], ecx
	jne	.L11
	mov	rdx, QWORD PTR DUPLEX_FULL[rip]
	add	rax, QWORD PTR 16[rbp]
	add	rdx, QWORD PTR SPEED_10000[rip]
	cmp	rax, rdx
	je	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.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
.L12:
	.cfi_restore_state
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ixgbe_set_settings, .-ixgbe_set_settings
	.comm	probe,4,4
	.comm	ixgbe_media_type_copper,8,8
	.comm	SPEED_10000,8,8
	.comm	IXGBE_LINK_SPEED_1GB_FULL,8,8
	.comm	IXGBE_LINK_SPEED_10GB_FULL,8,8
	.comm	IXGBE_LINK_SPEED_100_FULL,8,8
	.comm	EINVAL,4,4
	.comm	DUPLEX_FULL,8,8
	.comm	AUTONEG_ENABLE,8,8
	.comm	AUTONEG_DISABLE,8,8
	.comm	ADVERTISED_100baseT_Full,4,4
	.comm	ADVERTISED_1000baseT_Full,4,4
	.comm	ADVERTISED_10000baseT_Full,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_ixgbe_ethtool.c_ixgbe_set_settings.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"setup link failed with code %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_set_settings, %function
ixgbe_set_settings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	bl	netdev_priv
	ldr	r3, .L27
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	beq	.L2
	ldr	r3, [r0, #16]
	cmp	r3, #0
	beq	.L3
.L2:
	ldr	r3, .L27+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #8]
	bics	r2, r3, r2
	bne	.L11
	ldr	r2, .L27+8
	ldr	r7, [r4, #12]
	ldr	r1, [r2]
	ands	r1, r3, r1
	ldrne	r2, .L27+12
	ldrne	r1, [r2]
	ldr	r2, .L27+16
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L27+20
	ldrne	r2, [r2]
	orrne	r1, r1, r2
	ldr	r2, .L27+24
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r3, .L27+28
	ldrne	r3, [r3]
	orrne	r1, r1, r3
	cmp	r1, r7
	beq	.L12
	mov	r6, #1
	mov	r0, r4
	mov	r2, r6
	ldr	r3, [r4, #4]
	str	r6, [r4]
	blx	r3
	subs	r5, r0, #0
	beq	.L1
	ldr	r3, .L27+32
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, .L27+36
	bl	e_info
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	ldr	r3, [r4, #4]
	blx	r3
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r5
	bl	ethtool_cmd_speed
	ldr	r3, .L27+40
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
	ldr	r3, .L27+8
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L11
	ldr	r3, .L27+44
	ldr	r2, .L27+48
	ldr	r1, [r5, #12]
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r0, r0, r1
	add	r3, r3, r2
	cmp	r0, r3
	beq	.L12
.L11:
	ldr	r3, .L27+52
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	.align	2
.L27:
	.word	ixgbe_media_type_copper
	.word	AUTONEG_DISABLE
	.word	ADVERTISED_10000baseT_Full
	.word	IXGBE_LINK_SPEED_10GB_FULL
	.word	ADVERTISED_1000baseT_Full
	.word	IXGBE_LINK_SPEED_1GB_FULL
	.word	ADVERTISED_100baseT_Full
	.word	IXGBE_LINK_SPEED_100_FULL
	.word	probe
	.word	.LC0
	.word	AUTONEG_ENABLE
	.word	SPEED_10000
	.word	DUPLEX_FULL
	.word	EINVAL
	.size	ixgbe_set_settings, .-ixgbe_set_settings
	.comm	probe,4,4
	.comm	ixgbe_media_type_copper,4,4
	.comm	SPEED_10000,4,4
	.comm	IXGBE_LINK_SPEED_1GB_FULL,4,4
	.comm	IXGBE_LINK_SPEED_10GB_FULL,4,4
	.comm	IXGBE_LINK_SPEED_100_FULL,4,4
	.comm	EINVAL,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	AUTONEG_ENABLE,4,4
	.comm	AUTONEG_DISABLE,4,4
	.comm	ADVERTISED_100baseT_Full,4,4
	.comm	ADVERTISED_1000baseT_Full,4,4
	.comm	ADVERTISED_10000baseT_Full,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
