	.file	"extr_lan78xx.c_lan78xx_update_flowcontrol.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enabled"
.LC1:
	.string	"disabled"
.LC2:
	.string	"rx pause %s, tx pause %s"
	.text
	.p2align 4
	.type	lan78xx_update_flowcontrol, @function
lan78xx_update_flowcontrol:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmp	QWORD PTR 16[rdi], 0
	mov	rbp, rdi
	jne	.L20
	mov	eax, DWORD PTR [rdi]
.L3:
	xor	r12d, r12d
	mov	ecx, eax
	and	ecx, DWORD PTR FLOW_CTRL_TX[rip]
	je	.L4
	mov	r12d, DWORD PTR FLOW_CR_TX_FCEN_[rip]
	or	r12d, 65535
.L4:
	and	eax, DWORD PTR FLOW_CTRL_RX[rip]
	je	.L5
	or	r12d, DWORD PTR FLOW_CR_RX_FCEN_[rip]
.L5:
	mov	rdx, QWORD PTR 8[rbp]
	mov	r13d, 2071
	mov	rdx, QWORD PTR [rdx]
	cmp	rdx, QWORD PTR USB_SPEED_SUPER[rip]
	je	.L6
	cmp	rdx, QWORD PTR USB_SPEED_HIGH[rip]
	mov	r13d, 0
	mov	edx, 529
	cmove	r13d, edx
.L6:
	lea	rdx, .LC1[rip]
	test	ecx, ecx
	mov	r10d, DWORD PTR 4[rbp]
	mov	rdi, rbp
	lea	r8, .LC0[rip]
	mov	r9, rdx
	mov	esi, DWORD PTR link[rip]
	lea	rcx, .LC2[rip]
	cmovne	r9, r8
	test	eax, eax
	cmove	r8, rdx
	mov	edx, r10d
	call	netif_dbg@PLT
	mov	esi, DWORD PTR FCT_FLOW[rip]
	mov	edx, r13d
	mov	rdi, rbp
	call	lan78xx_write_reg@PLT
	mov	esi, DWORD PTR FLOW[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	lan78xx_write_reg@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	esi, ecx
	mov	edi, edx
	call	mii_resolve_flowctrl_fdx@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	lan78xx_update_flowcontrol, .-lan78xx_update_flowcontrol
	.comm	link,4,4
	.comm	USB_SPEED_SUPER,8,8
	.comm	USB_SPEED_HIGH,8,8
	.comm	FLOW_CTRL_TX,4,4
	.comm	FLOW_CTRL_RX,4,4
	.comm	FLOW_CR_TX_FCEN_,4,4
	.comm	FLOW_CR_RX_FCEN_,4,4
	.comm	FLOW,4,4
	.comm	FCT_FLOW,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_lan78xx.c_lan78xx_update_flowcontrol.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"disabled\000"
	.align	2
.LC1:
	.ascii	"enabled\000"
	.align	2
.LC2:
	.ascii	"rx pause %s, tx pause %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lan78xx_update_flowcontrol, %function
lan78xx_update_flowcontrol:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r1, [r0, #12]
	mov	r4, r0
	cmp	r1, #0
	ldreq	r0, [r0]
	sub	sp, sp, #12
	bne	.L19
.L3:
	ldr	r3, .L22
	ldr	r2, .L22+4
	ldr	r3, [r3]
	ldr	r5, [r2]
	ands	ip, r0, r3
	ldrne	r3, .L22+8
	ldr	r1, .L22+12
	ldrne	r6, [r3]
	ldr	r2, .L22+16
	mvnne	r6, r6, lsr #16
	ldr	r3, [r4, #8]
	mvnne	r6, r6, lsl #16
	moveq	r6, ip
	ands	r5, r0, r5
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	beq	.L5
	ldr	lr, .L22+20
	cmp	r0, r3
	ldr	r0, [lr]
	orr	r6, r6, r0
	beq	.L20
	ldr	lr, .L22+24
	ldr	r0, .L22+28
	ldr	r5, [lr]
	ldr	lr, .L22+32
	cmp	r5, r3
	moveq	r5, r0
	movne	r5, #0
	b	.L8
.L5:
	cmp	r0, r3
	beq	.L21
	ldr	lr, .L22+24
	ldr	r0, .L22+28
	ldr	r7, [lr]
	ldr	lr, .L22+36
	cmp	r7, r3
	moveq	r5, r0
.L8:
	ldr	r0, .L22+36
	cmp	ip, #0
	ldr	r3, .L22+32
	moveq	r3, r0
	str	lr, [sp]
	str	r3, [sp, #4]
	mov	r0, r4
	ldr	r3, .L22+40
	bl	netif_dbg
	ldr	r3, .L22+44
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r4
	bl	lan78xx_write_reg
	ldr	r3, .L22+48
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r3]
	bl	lan78xx_write_reg
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L19:
	mov	r1, r3
	mov	r0, r2
	bl	mii_resolve_flowctrl_fdx
	b	.L3
.L21:
	ldr	r5, .L22+52
	ldr	lr, .L22+36
	b	.L8
.L20:
	ldr	r5, .L22+52
	ldr	lr, .L22+32
	b	.L8
.L23:
	.align	2
.L22:
	.word	FLOW_CTRL_TX
	.word	FLOW_CTRL_RX
	.word	FLOW_CR_TX_FCEN_
	.word	USB_SPEED_SUPER
	.word	link
	.word	FLOW_CR_RX_FCEN_
	.word	USB_SPEED_HIGH
	.word	529
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	FCT_FLOW
	.word	FLOW
	.word	2071
	.size	lan78xx_update_flowcontrol, .-lan78xx_update_flowcontrol
	.comm	link,4,4
	.comm	USB_SPEED_SUPER,4,4
	.comm	USB_SPEED_HIGH,4,4
	.comm	FLOW_CTRL_TX,4,4
	.comm	FLOW_CTRL_RX,4,4
	.comm	FLOW_CR_TX_FCEN_,4,4
	.comm	FLOW_CR_RX_FCEN_,4,4
	.comm	FLOW,4,4
	.comm	FCT_FLOW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
