	.file	"extr_phylink.c_phylink_ethtool_set_pauseparam.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	phylink_ethtool_set_pauseparam
	.type	phylink_ethtool_set_pauseparam, @function
phylink_ethtool_set_pauseparam:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ASSERT_RTNL@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR Pause[rip]
	call	phylink_test@PLT
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR Asym_Pause[rip]
	call	phylink_test@PLT
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	neg	r12d
	test	eax, eax
	je	.L1
.L2:
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR Asym_Pause[rip]
	call	phylink_test@PLT
	test	eax, eax
	je	.L26
	mov	edx, DWORD PTR MLO_PAUSE_AN[rip]
	mov	eax, DWORD PTR MLO_PAUSE_TXRX_MASK[rip]
	mov	rcx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	or	eax, edx
	not	eax
	and	eax, DWORD PTR 16[rbp]
	cmp	QWORD PTR 16[rbx], 0
	mov	DWORD PTR 16[rbp], eax
	jne	.L13
.L7:
	test	rcx, rcx
	je	.L8
	mov	eax, DWORD PTR MLO_PAUSE_RX[rip]
	or	DWORD PTR 16[rbp], eax
.L8:
	test	rsi, rsi
	je	.L9
	mov	eax, DWORD PTR MLO_PAUSE_TX[rip]
	or	DWORD PTR 16[rbp], eax
.L9:
	mov	edi, DWORD PTR PHYLINK_DISABLE_STOPPED[rip]
	lea	rsi, 8[rbp]
	call	test_bit@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR 0[rbp]
	lea	r13, 16[rbp]
	cmp	eax, 129
	je	.L10
	cmp	eax, 130
	je	.L11
	cmp	eax, 128
	je	.L27
.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
.L26:
	.cfi_restore_state
	cmp	QWORD PTR 16[rbx], 0
	mov	rcx, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	jne	.L5
	cmp	rcx, rsi
	je	.L6
	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
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR MLO_PAUSE_AN[rip]
	mov	eax, DWORD PTR MLO_PAUSE_TXRX_MASK[rip]
	or	eax, edx
	not	eax
	and	eax, DWORD PTR 16[rbp]
.L13:
	or	eax, edx
	mov	DWORD PTR 16[rbp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L27:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	test	edi, edi
	jne	.L28
.L12:
	mov	rdi, rbp
	call	phylink_run_resolve@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR MLO_PAUSE_AN[rip]
	or	eax, DWORD PTR MLO_PAUSE_TXRX_MASK[rip]
	not	eax
	and	DWORD PTR 16[rbp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r13
	mov	rdi, rbp
	call	phylink_resolve_flow@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	phylink_mac_config@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	mov	rsi, r13
	call	phylink_mac_config@PLT
	mov	rdi, rbp
	call	phylink_mac_an_restart@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	call	netif_carrier_off@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	phylink_ethtool_set_pauseparam, .-phylink_ethtool_set_pauseparam
	.comm	Pause,4,4
	.comm	PHYLINK_DISABLE_STOPPED,4,4
	.comm	MLO_PAUSE_TXRX_MASK,4,4
	.comm	MLO_PAUSE_TX,4,4
	.comm	MLO_PAUSE_RX,4,4
	.comm	MLO_PAUSE_AN,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	Asym_Pause,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_phylink.c_phylink_ethtool_set_pauseparam.c"
	.text
	.align	2
	.global	phylink_ethtool_set_pauseparam
	.syntax unified
	.arm
	.fpu softvfp
	.type	phylink_ethtool_set_pauseparam, %function
phylink_ethtool_set_pauseparam:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	bl	ASSERT_RTNL
	ldr	r3, .L35
	ldr	r0, [r4, #12]
	ldr	r1, [r3]
	bl	phylink_test
	cmp	r0, #0
	ldr	r6, .L35+4
	bne	.L2
	ldr	r0, [r4, #12]
	ldr	r1, [r6]
	bl	phylink_test
	cmp	r0, #0
	beq	.L31
.L2:
	ldr	r1, [r6]
	ldr	r0, [r4, #12]
	bl	phylink_test
	cmp	r0, #0
	beq	.L32
	ldr	r2, .L35+8
	ldr	r3, .L35+12
	ldr	ip, [r2]
	ldr	r2, [r3]
	ldr	r1, [r5, #8]
	ldr	r3, [r4, #16]
	orr	r2, ip, r2
	bic	r3, r3, r2
	cmp	r1, #0
	ldr	r0, [r5, #4]
	ldr	r1, [r5]
	str	r3, [r4, #16]
	bne	.L13
.L7:
	cmp	r1, #0
	ldrne	r2, .L35+16
	ldrne	r3, [r4, #16]
	ldrne	r2, [r2]
	add	r1, r4, #8
	orrne	r3, r3, r2
	strne	r3, [r4, #16]
	cmp	r0, #0
	ldrne	r2, .L35+20
	ldrne	r3, [r4, #16]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r4, #16]
	ldr	r3, .L35+24
	ldr	r0, [r3]
	bl	test_bit
	subs	r5, r0, #0
	movne	r5, #0
	bne	.L1
	mov	r6, r4
	ldr	r3, [r6], #16
	cmp	r3, #129
	beq	.L10
	cmp	r3, #130
	beq	.L11
	cmp	r3, #128
	beq	.L33
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L32:
	ldr	r3, [r5, #8]
	ldr	r1, [r5]
	cmp	r3, #0
	ldr	r0, [r5, #4]
	bne	.L5
	cmp	r1, r0
	beq	.L6
	ldr	r3, .L35+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r2, .L35+8
	ldr	r3, .L35+12
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4, #16]
	orr	r3, ip, r3
	bic	r3, r2, r3
.L13:
	orr	r3, ip, r3
	str	r3, [r4, #16]
	b	.L7
.L31:
	ldr	r3, .L35+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L35+12
	ldr	r2, .L35+8
	ldr	ip, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #16]
	orr	r2, r2, ip
	bic	r3, r3, r2
	str	r3, [r4, #16]
	b	.L7
.L33:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	bne	.L34
.L12:
	mov	r0, r4
	bl	phylink_run_resolve
	b	.L1
.L11:
	mov	r1, r6
	mov	r0, r4
	bl	phylink_resolve_flow
	mov	r1, r6
	mov	r0, r4
	bl	phylink_mac_config
	b	.L1
.L10:
	mov	r1, r6
	mov	r0, r4
	bl	phylink_mac_config
	mov	r0, r4
	bl	phylink_mac_an_restart
	b	.L1
.L34:
	bl	netif_carrier_off
	b	.L12
.L36:
	.align	2
.L35:
	.word	Pause
	.word	Asym_Pause
	.word	MLO_PAUSE_AN
	.word	MLO_PAUSE_TXRX_MASK
	.word	MLO_PAUSE_RX
	.word	MLO_PAUSE_TX
	.word	PHYLINK_DISABLE_STOPPED
	.word	EINVAL
	.word	EOPNOTSUPP
	.size	phylink_ethtool_set_pauseparam, .-phylink_ethtool_set_pauseparam
	.comm	Pause,4,4
	.comm	PHYLINK_DISABLE_STOPPED,4,4
	.comm	MLO_PAUSE_TXRX_MASK,4,4
	.comm	MLO_PAUSE_TX,4,4
	.comm	MLO_PAUSE_RX,4,4
	.comm	MLO_PAUSE_AN,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	Asym_Pause,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
