	.file	"extr_spectrum.c_mlxsw_sp_port_set_pauseparam.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PFC already enabled on port\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"PAUSE frames autonegotiation isn't supported\n"
	.align 8
.LC2:
	.string	"Failed to configure port's headroom\n"
	.align 8
.LC3:
	.string	"Failed to set PAUSE parameters\n"
	.text
	.p2align 4
	.type	mlxsw_sp_port_set_pauseparam, @function
mlxsw_sp_port_set_pauseparam:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	cmp	QWORD PTR [rbx], 0
	mov	edx, 1
	mov	rbp, rax
	jne	.L2
	xor	edx, edx
	cmp	QWORD PTR 8[rbx], 0
	setne	dl
.L2:
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L3
	cmp	QWORD PTR [rax], 0
	jne	.L15
.L3:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L16
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	call	mlxsw_sp_port_headroom_set@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
	mov	rsi, rbx
	mov	rdi, rbp
	call	mlxsw_sp_port_pause_set@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 0[rbp], rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	call	netdev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC2[rip]
	call	netdev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L15:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	call	netdev_err@PLT
	mov	rdi, rbp
	call	mlxsw_sp_port_is_pause_en@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	mov	edx, eax
	call	mlxsw_sp_port_headroom_set@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_port_set_pauseparam, .-mlxsw_sp_port_set_pauseparam
	.comm	EINVAL,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_spectrum.c_mlxsw_sp_port_set_pauseparam.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PFC already enabled on port\012\000"
	.align	2
.LC1:
	.ascii	"PAUSE frames autonegotiation isn't supported\012\000"
	.align	2
.LC2:
	.ascii	"Failed to configure port's headroom\012\000"
	.align	2
.LC3:
	.ascii	"Failed to set PAUSE parameters\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_port_set_pauseparam, %function
mlxsw_sp_port_set_pauseparam:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r7, r0
	bl	netdev_priv
	ldr	r3, [r4]
	mov	r6, r0
	cmp	r3, #0
	movne	r2, #1
	bne	.L2
	ldr	r2, [r4, #4]
	subs	r2, r2, #0
	movne	r2, #1
.L2:
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
.L3:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L18
	mov	r0, r6
	ldr	r1, [r7]
	bl	mlxsw_sp_port_headroom_set
	subs	r5, r0, #0
	bne	.L19
	mov	r1, r4
	mov	r0, r6
	bl	mlxsw_sp_port_pause_set
	subs	r5, r0, #0
	bne	.L20
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
	str	r2, [r6, #4]
	str	r3, [r6]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r7
	ldr	r1, .L21
	bl	netdev_err
	ldr	r3, .L21+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r0, r7
	ldr	r1, .L21+8
	bl	netdev_err
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r7
	ldr	r1, .L21+12
	bl	netdev_err
	ldr	r3, .L21+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r1, .L21+16
	mov	r0, r7
	bl	netdev_err
	mov	r0, r6
	bl	mlxsw_sp_port_is_pause_en
	ldr	r1, [r7]
	mov	r2, r0
	mov	r0, r6
	bl	mlxsw_sp_port_headroom_set
	b	.L1
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	EINVAL
	.word	.LC2
	.word	.LC0
	.word	.LC3
	.size	mlxsw_sp_port_set_pauseparam, .-mlxsw_sp_port_set_pauseparam
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
