	.file	"extr_ice_ethtool.c_ice_set_pauseparam.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Changing flow control parameters only supported for PF VSI\n"
	.align 8
.LC1:
	.string	"To change autoneg please use: ethtool -s <dev> autoneg <on|off>\n"
	.align 8
.LC2:
	.string	"Autoneg did not complete so changing settings may not result in an actual change.\n"
	.align 8
.LC3:
	.string	"Priority flow control enabled. Cannot set link flow control.\n"
	.align 8
.LC4:
	.string	"Set fc failed on the get_phy_capabilities call with err %d aq_err %d\n"
	.align 8
.LC5:
	.string	"Set fc failed on the set_phy_config call with err %d aq_err %d\n"
	.align 8
.LC6:
	.string	"Set fc failed on the get_link_info call with err %d aq_err %d\n"
	.text
	.p2align 4
	.type	ice_set_pauseparam, @function
ice_set_pauseparam:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	lea	rsi, .LC0[rip]
	mov	r14, QWORD PTR [rax]
	mov	rax, QWORD PTR ICE_VSI_PF[rip]
	cmp	QWORD PTR [r14], rax
	jne	.L25
	mov	r13, QWORD PTR 8[r14]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	mov	rbx, QWORD PTR 16[r14]
	mov	eax, DWORD PTR 16[r13]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR ICE_AQ_LINK_UP[rip]
	mov	DWORD PTR 4[rsp], eax
	call	kzalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L27
	mov	edx, DWORD PTR ICE_AQC_REPORT_SW_CFG[rip]
	xor	r8d, r8d
	xor	esi, esi
	mov	rcx, rax
	mov	rdi, r13
	call	ice_aq_get_phy_caps@PLT
	test	eax, eax
	jne	.L28
	mov	eax, DWORD PTR [r15]
	mov	rdx, QWORD PTR AUTONEG_ENABLE[rip]
	mov	rdi, r15
	test	DWORD PTR ICE_AQC_PHY_AN_MODE[rip], eax
	cmove	rdx, QWORD PTR AUTONEG_DISABLE[rip]
	mov	QWORD PTR 8[rsp], rdx
	call	kfree@PLT
	mov	rdx, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	cmp	QWORD PTR [r12], rdx
	je	.L29
.L25:
	mov	rdi, rbp
	xor	eax, eax
	call	netdev_info@PLT
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR __ICE_DOWN[rip]
	call	test_bit@PLT
	test	eax, eax
	jne	.L9
	mov	eax, DWORD PTR 20[r13]
	test	DWORD PTR ICE_AQ_AN_COMPLETED[rip], eax
	je	.L31
.L9:
	cmp	QWORD PTR 8[r13], 0
	jne	.L32
	cmp	QWORD PTR 16[r12], 0
	mov	rax, QWORD PTR 8[r12]
	jne	.L33
	test	rax, rax
	je	.L14
	mov	eax, DWORD PTR ICE_FC_TX_PAUSE[rip]
	mov	DWORD PTR 0[r13], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, r15
	call	kfree@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	test	rax, rax
	jne	.L34
	mov	eax, DWORD PTR ICE_FC_RX_PAUSE[rip]
	mov	DWORD PTR 0[r13], eax
.L13:
	xor	esi, esi
	mov	rdi, r14
	call	ice_print_link_msg@PLT
	mov	rdi, rbp
	call	netif_carrier_off@PLT
	mov	rdi, rbp
	call	netif_tx_stop_all_queues@PLT
	mov	edx, DWORD PTR [rsp]
	lea	rsi, 20[rsp]
	mov	rdi, r13
	and	edx, DWORD PTR 4[rsp]
	call	ice_set_fc@PLT
	mov	r12d, DWORD PTR 20[rsp]
	mov	edx, eax
	test	DWORD PTR ICE_SET_FC_AQ_FAIL_GET[rip], r12d
	jne	.L35
	test	DWORD PTR ICE_SET_FC_AQ_FAIL_SET[rip], r12d
	jne	.L36
	and	r12d, DWORD PTR ICE_SET_FC_AQ_FAIL_UPDATE[rip]
	jne	.L37
.L16:
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR __ICE_DOWN[rip]
	call	test_bit@PLT
	test	eax, eax
	jne	.L1
	mov	edi, 75
	call	msleep@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR __ICE_DOWN[rip]
	call	test_bit@PLT
	test	eax, eax
	je	.L38
	mov	rdi, r14
	call	ice_down@PLT
	mov	rdi, r14
	call	ice_up@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	eax, DWORD PTR ICE_FC_FULL[rip]
	mov	DWORD PTR 0[r13], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	netdev_info@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR ICE_FC_NONE[rip]
	mov	DWORD PTR 0[r13], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rsi, .LC3[rip]
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L35:
	mov	ecx, DWORD PTR 4[rbx]
	lea	rsi, .LC4[rip]
.L24:
	mov	rdi, rbp
	xor	eax, eax
	call	netdev_info@PLT
	mov	r12d, DWORD PTR EAGAIN[rip]
	neg	r12d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	mov	ecx, DWORD PTR 4[rbx]
	lea	rsi, .LC5[rip]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L37:
	mov	ecx, DWORD PTR 4[rbx]
	lea	rsi, .LC6[rip]
	jmp	.L24
.L38:
	mov	rdi, rbp
	call	ice_nway_reset@PLT
	mov	r12d, eax
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ice_set_pauseparam, .-ice_set_pauseparam
	.comm	__ICE_DOWN,4,4
	.comm	ICE_VSI_PF,8,8
	.comm	ICE_SET_FC_AQ_FAIL_UPDATE,4,4
	.comm	ICE_SET_FC_AQ_FAIL_SET,4,4
	.comm	ICE_SET_FC_AQ_FAIL_GET,4,4
	.comm	ICE_FC_TX_PAUSE,4,4
	.comm	ICE_FC_RX_PAUSE,4,4
	.comm	ICE_FC_NONE,4,4
	.comm	ICE_FC_FULL,4,4
	.comm	ICE_AQ_LINK_UP,4,4
	.comm	ICE_AQ_AN_COMPLETED,4,4
	.comm	ICE_AQC_REPORT_SW_CFG,4,4
	.comm	ICE_AQC_PHY_AN_MODE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.comm	AUTONEG_ENABLE,8,8
	.comm	AUTONEG_DISABLE,8,8
	.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_ice_ethtool.c_ice_set_pauseparam.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Changing flow control parameters only supported for"
	.ascii	" PF VSI\012\000"
	.align	2
.LC1:
	.ascii	"To change autoneg please use: ethtool -s <dev> auto"
	.ascii	"neg <on|off>\012\000"
	.align	2
.LC2:
	.ascii	"Autoneg did not complete so changing settings may n"
	.ascii	"ot result in an actual change.\012\000"
	.align	2
.LC3:
	.ascii	"Priority flow control enabled. Cannot set link flow"
	.ascii	" control.\012\000"
	.align	2
.LC4:
	.ascii	"Set fc failed on the get_phy_capabilities call with"
	.ascii	" err %d aq_err %d\012\000"
	.align	2
.LC5:
	.ascii	"Set fc failed on the set_phy_config call with err %"
	.ascii	"d aq_err %d\012\000"
	.align	2
.LC6:
	.ascii	"Set fc failed on the get_link_info call with err %d"
	.ascii	" aq_err %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ice_set_pauseparam, %function
ice_set_pauseparam:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L37
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r1
	mov	r5, r0
	bl	netdev_priv
	ldr	r3, .L37+4
	ldr	r6, [r0]
	ldr	r3, [r3]
	ldr	r2, [r6]
	cmp	r2, r3
	beq	.L2
	mov	r0, r5
	ldr	r1, .L37+8
	bl	netdev_info
	ldr	r3, .L37+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r2, .L37+16
	ldr	r9, [r6, #4]
	ldr	r3, .L37+20
	mov	r0, #4
	ldr	r1, [r2]
	ldr	fp, [r9, #8]
	ldr	r10, [r3]
	ldr	r7, [r6, #8]
	bl	kzalloc
	subs	r8, r0, #0
	beq	.L27
	mov	r1, #0
	ldr	r2, .L37+24
	str	r1, [sp]
	mov	r3, r8
	mov	r0, r9
	ldr	r2, [r2]
	bl	ice_aq_get_phy_caps
	cmp	r0, #0
	bne	.L28
	ldr	r2, .L37+28
	ldr	r1, [r8]
	ldr	r2, [r2]
	mov	r0, r8
	tst	r1, r2
	ldrne	r2, .L37+32
	ldreq	r2, .L37+36
	ldr	r3, [r2]
	str	r3, [sp, #12]
	bl	kfree
	ldr	r3, [r4]
	ldr	r2, [sp, #12]
	cmp	r3, r2
	bne	.L29
	ldr	r8, .L37+40
	ldr	r1, [r7]
	ldr	r0, [r8]
	bl	test_bit
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L37+44
	ldr	r2, [r9, #12]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L30
.L9:
	ldr	r3, [r9, #4]
	cmp	r3, #0
	bne	.L31
	ldmib	r4, {r2, r3}
	cmp	r3, #0
	bne	.L32
	cmp	r2, #0
	ldrne	r3, .L37+48
	ldreq	r3, .L37+52
	ldr	r3, [r3]
	str	r3, [r9]
.L13:
	mov	r1, #0
	mov	r0, r6
	bl	ice_print_link_msg
	mov	r0, r5
	bl	netif_carrier_off
	mov	r0, r5
	bl	netif_tx_stop_all_queues
	and	r2, fp, r10
	mov	r0, r9
	add	r1, sp, #16
	bl	ice_set_fc
	ldr	r3, .L37+56
	ldr	r4, [sp, #16]
	ldr	r3, [r3]
	mov	r2, r0
	tst	r4, r3
	bne	.L33
	ldr	r3, .L37+60
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L34
	ldr	r3, .L37+64
	ldr	r0, [r3]
	ands	r4, r4, r0
	bne	.L35
.L16:
	ldr	r1, [r7]
	ldr	r0, [r8]
	bl	test_bit
	cmp	r0, #0
	bne	.L1
	mov	r0, #75
	bl	msleep
	ldr	r1, [r7]
	ldr	r0, [r8]
	bl	test_bit
	cmp	r0, #0
	beq	.L36
	mov	r0, r6
	bl	ice_down
	mov	r0, r6
	bl	ice_up
	b	.L1
.L27:
	ldr	r3, .L37+68
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L29:
	mov	r0, r5
	ldr	r1, .L37+72
	bl	netdev_info
	ldr	r3, .L37+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L28:
	mov	r0, r8
	bl	kfree
	ldr	r3, .L37+76
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L32:
	cmp	r2, #0
	ldrne	r3, .L37+80
	ldreq	r3, .L37+84
	ldr	r3, [r3]
	str	r3, [r9]
	b	.L13
.L30:
	mov	r0, r5
	ldr	r1, .L37+88
	bl	netdev_info
	b	.L9
.L34:
	ldr	r3, [r7, #4]
	ldr	r1, .L37+92
.L24:
	mov	r0, r5
	bl	netdev_info
	ldr	r3, .L37+96
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L16
.L31:
	mov	r0, r5
	ldr	r1, .L37+100
	bl	netdev_info
	ldr	r3, .L37+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L33:
	ldr	r3, [r7, #4]
	ldr	r1, .L37+104
	b	.L24
.L35:
	ldr	r3, [r7, #4]
	ldr	r1, .L37+108
	b	.L24
.L36:
	mov	r0, r5
	bl	ice_nway_reset
	mov	r4, r0
	b	.L1
.L26:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	.LC7
	.word	ICE_VSI_PF
	.word	.LC0
	.word	EOPNOTSUPP
	.word	GFP_KERNEL
	.word	ICE_AQ_LINK_UP
	.word	ICE_AQC_REPORT_SW_CFG
	.word	ICE_AQC_PHY_AN_MODE
	.word	AUTONEG_ENABLE
	.word	AUTONEG_DISABLE
	.word	__ICE_DOWN
	.word	ICE_AQ_AN_COMPLETED
	.word	ICE_FC_TX_PAUSE
	.word	ICE_FC_NONE
	.word	ICE_SET_FC_AQ_FAIL_GET
	.word	ICE_SET_FC_AQ_FAIL_SET
	.word	ICE_SET_FC_AQ_FAIL_UPDATE
	.word	ENOMEM
	.word	.LC1
	.word	EIO
	.word	ICE_FC_FULL
	.word	ICE_FC_RX_PAUSE
	.word	.LC2
	.word	.LC5
	.word	EAGAIN
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.size	ice_set_pauseparam, .-ice_set_pauseparam
	.comm	__ICE_DOWN,4,4
	.comm	ICE_VSI_PF,4,4
	.comm	ICE_SET_FC_AQ_FAIL_UPDATE,4,4
	.comm	ICE_SET_FC_AQ_FAIL_SET,4,4
	.comm	ICE_SET_FC_AQ_FAIL_GET,4,4
	.comm	ICE_FC_TX_PAUSE,4,4
	.comm	ICE_FC_RX_PAUSE,4,4
	.comm	ICE_FC_NONE,4,4
	.comm	ICE_FC_FULL,4,4
	.comm	ICE_AQ_LINK_UP,4,4
	.comm	ICE_AQ_AN_COMPLETED,4,4
	.comm	ICE_AQC_REPORT_SW_CFG,4,4
	.comm	ICE_AQC_PHY_AN_MODE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.comm	AUTONEG_ENABLE,4,4
	.comm	AUTONEG_DISABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
