	.file	"extr_xgene_enet_sgmac.c_xgene_enet_cle_bypass.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xgene_enet_cle_bypass, @function
xgene_enet_cle_bypass:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR [rdi]
	mov	rax, QWORD PTR XGENE_ENET1[rip]
	imul	r12d, DWORD PTR MAC_OFFSET[rip]
	cmp	QWORD PTR 8[rdi], rax
	je	.L6
	mov	esi, DWORD PTR XCLE_BYPASS_REG0_ADDR[rip]
	mov	r13d, DWORD PTR XCLE_BYPASS_REG1_ADDR[rip]
.L3:
	mov	edx, DWORD PTR CFG_CLE_BYPASS_EN0[rip]
	add	esi, r12d
	mov	rdi, rbp
	call	xgene_enet_wr_csr@PLT
	mov	edi, r15d
	call	xgene_enet_get_fpsel@PLT
	mov	edi, r14d
	mov	r15d, eax
	call	xgene_enet_get_fpsel@PLT
	mov	edi, ebx
	mov	r14d, eax
	call	CFG_CLE_DSTQID0@PLT
	mov	edi, r15d
	mov	ebx, eax
	call	CFG_CLE_FPSEL0@PLT
	mov	edi, r14d
	or	ebx, eax
	call	CFG_CLE_NXTFPSEL0@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	esi, 0[r13+r12]
	mov	rdi, rbp
	or	ebx, eax
	mov	edx, ebx
	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
	jmp	xgene_enet_wr_csr@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR CLE_BYPASS_REG0_0_ADDR[rip]
	mov	r13d, DWORD PTR CLE_BYPASS_REG1_0_ADDR[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	xgene_enet_cle_bypass, .-xgene_enet_cle_bypass
	.comm	XGENE_ENET1,8,8
	.comm	XCLE_BYPASS_REG1_ADDR,4,4
	.comm	XCLE_BYPASS_REG0_ADDR,4,4
	.comm	MAC_OFFSET,4,4
	.comm	CLE_BYPASS_REG1_0_ADDR,4,4
	.comm	CLE_BYPASS_REG0_0_ADDR,4,4
	.comm	CFG_CLE_BYPASS_EN0,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_xgene_enet_sgmac.c_xgene_enet_cle_bypass.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgene_enet_cle_bypass, %function
xgene_enet_cle_bypass:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r8, r2
	ldr	ip, .L6
	ldr	r0, .L6+4
	ldr	lr, [r4, #4]
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r6, [r4]
	cmp	lr, ip
	ldreq	r2, .L6+8
	ldrne	r2, .L6+12
	mov	r7, r3
	mul	r6, r0, r6
	ldreq	r3, .L6+16
	ldrne	r3, .L6+20
	mov	r5, r1
	ldr	r9, [r3]
	ldr	r1, [r2]
	ldr	r3, .L6+24
	add	r1, r1, r6
	ldr	r2, [r3]
	mov	r0, r4
	bl	xgene_enet_wr_csr
	mov	r0, r8
	bl	xgene_enet_get_fpsel
	mov	r8, r0
	mov	r0, r7
	bl	xgene_enet_get_fpsel
	mov	r7, r0
	mov	r0, r5
	bl	CFG_CLE_DSTQID0
	mov	r5, r0
	mov	r0, r8
	bl	CFG_CLE_FPSEL0
	mov	r2, r0
	mov	r0, r7
	orr	r5, r5, r2
	bl	CFG_CLE_NXTFPSEL0
	add	r1, r9, r6
	orr	r2, r5, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	xgene_enet_wr_csr
.L7:
	.align	2
.L6:
	.word	XGENE_ENET1
	.word	MAC_OFFSET
	.word	CLE_BYPASS_REG0_0_ADDR
	.word	XCLE_BYPASS_REG0_ADDR
	.word	CLE_BYPASS_REG1_0_ADDR
	.word	XCLE_BYPASS_REG1_ADDR
	.word	CFG_CLE_BYPASS_EN0
	.size	xgene_enet_cle_bypass, .-xgene_enet_cle_bypass
	.comm	XGENE_ENET1,4,4
	.comm	XCLE_BYPASS_REG1_ADDR,4,4
	.comm	XCLE_BYPASS_REG0_ADDR,4,4
	.comm	MAC_OFFSET,4,4
	.comm	CLE_BYPASS_REG1_0_ADDR,4,4
	.comm	CLE_BYPASS_REG0_0_ADDR,4,4
	.comm	CFG_CLE_BYPASS_EN0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
