	.file	"extr_xlr_net.c_xlr_gmac_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Initializing the gmac%d\n"
	.text
	.p2align 4
	.type	xlr_gmac_init, @function
xlr_gmac_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	esi, DWORD PTR 4[rdi]
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	mov	rdi, rbx
	call	xlr_port_disable@PLT
	mov	ecx, DWORD PTR O_DESC_PACK_CTRL__BYTEOFFSET[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, DWORD PTR BYTE_OFFSET[rip]
	mov	eax, DWORD PTR O_DESC_PACK_CTRL__MAXENTRY[rip]
	mov	esi, DWORD PTR R_DESC_PACK_CTRL[rip]
	sal	edx, cl
	mov	ecx, DWORD PTR O_DESC_PACK_CTRL__REGULARSIZE[rip]
	bts	edx, eax
	mov	eax, 1600
	sal	eax, cl
	or	edx, eax
	call	xlr_nae_wreg@PLT
	mov	rsi, r12
	mov	rdi, rbx
	call	xlr_setup_mdio@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbx
	mov	ebp, 1
	call	xlr_port_enable@PLT
	mov	esi, DWORD PTR R_MAC_CONFIG_2[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 29207
	call	xlr_nae_wreg@PLT
	mov	esi, DWORD PTR R_CORECONTROL[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 2
	call	xlr_nae_wreg@PLT
	mov	ecx, DWORD PTR O_INTMASK__MDINT[rip]
	mov	edx, ebp
	mov	edi, DWORD PTR [rbx]
	mov	eax, DWORD PTR O_INTMASK__TXILLEGAL[rip]
	mov	esi, DWORD PTR R_INTMASK[rip]
	sal	edx, cl
	bts	edx, eax
	mov	eax, DWORD PTR O_INTMASK__TXFETCHERROR[rip]
	bts	edx, eax
	mov	eax, DWORD PTR O_INTMASK__P2PSPILLECC[rip]
	bts	edx, eax
	mov	eax, DWORD PTR O_INTMASK__TAGFULL[rip]
	bts	edx, eax
	mov	eax, DWORD PTR O_INTMASK__UNDERRUN[rip]
	bts	edx, eax
	mov	eax, DWORD PTR O_INTMASK__ABORT[rip]
	bts	edx, eax
	call	xlr_nae_wreg@PLT
	mov	ecx, DWORD PTR O_STATCTRL__CLRCNT[rip]
	mov	edi, DWORD PTR [rbx]
	xor	edx, edx
	mov	esi, DWORD PTR R_STATCTRL[rip]
	sal	ebp, cl
	mov	ecx, ebp
	call	xlr_reg_update@PLT
	mov	esi, DWORD PTR R_STATCTRL[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, 4
	mov	edx, 4
	call	xlr_reg_update@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xlr_gmac_init, .-xlr_gmac_init
	.comm	R_STATCTRL,4,4
	.comm	R_MAC_CONFIG_2,4,4
	.comm	R_INTMASK,4,4
	.comm	R_DESC_PACK_CTRL,4,4
	.comm	R_CORECONTROL,4,4
	.comm	O_STATCTRL__CLRCNT,4,4
	.comm	O_INTMASK__UNDERRUN,4,4
	.comm	O_INTMASK__TXILLEGAL,4,4
	.comm	O_INTMASK__TXFETCHERROR,4,4
	.comm	O_INTMASK__TAGFULL,4,4
	.comm	O_INTMASK__P2PSPILLECC,4,4
	.comm	O_INTMASK__MDINT,4,4
	.comm	O_INTMASK__ABORT,4,4
	.comm	O_DESC_PACK_CTRL__REGULARSIZE,4,4
	.comm	O_DESC_PACK_CTRL__MAXENTRY,4,4
	.comm	O_DESC_PACK_CTRL__BYTEOFFSET,4,4
	.comm	BYTE_OFFSET,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_xlr_net.c_xlr_gmac_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Initializing the gmac%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xlr_gmac_init, %function
xlr_gmac_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, #1
	mov	r6, r1
	ldr	r0, .L5
	ldr	r1, [r4, #4]
	bl	pr_info
	mov	r0, r4
	bl	xlr_port_disable
	mov	r2, #1600
	ldr	r3, .L5+4
	ldr	r0, .L5+8
	ldr	r1, .L5+12
	ldr	r3, [r3]
	ldr	ip, [r0]
	ldr	r1, [r1]
	ldr	r0, .L5+16
	lsl	r3, r5, r3
	orr	r3, r3, ip, lsl r1
	ldr	r0, [r0]
	ldr	r1, .L5+20
	orr	r2, r3, r2, lsl r0
	ldr	r1, [r1]
	ldr	r0, [r4]
	bl	xlr_nae_wreg
	mov	r1, r6
	mov	r0, r4
	bl	xlr_setup_mdio
	subs	r6, r0, #0
	bne	.L1
	mov	r0, r4
	bl	xlr_port_enable
	ldr	r3, .L5+24
	ldr	r2, .L5+28
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	xlr_nae_wreg
	ldr	r3, .L5+32
	mov	r2, #2
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	xlr_nae_wreg
	ldr	r3, .L5+36
	ldr	r1, .L5+40
	ldr	r3, [r3]
	ldr	r2, .L5+44
	ldr	ip, [r1]
	ldr	r0, .L5+48
	ldr	r1, [r2]
	lsl	r3, r5, r3
	ldr	r2, .L5+52
	orr	r3, r3, r5, lsl ip
	ldr	ip, [r0]
	ldr	r0, .L5+56
	ldr	r2, [r2]
	orr	r3, r3, r5, lsl r1
	ldr	r1, .L5+60
	ldr	r0, [r0]
	orr	r3, r3, r5, lsl ip
	orr	r3, r3, r5, lsl r2
	ldr	r2, [r1]
	ldr	r1, .L5+64
	orr	r3, r3, r5, lsl r0
	orr	r2, r3, r5, lsl r2
	ldr	r1, [r1]
	ldr	r0, [r4]
	bl	xlr_nae_wreg
	ldr	r3, .L5+68
	ldr	r7, .L5+72
	ldr	r3, [r3]
	mov	r2, r6
	ldr	r1, [r7]
	lsl	r3, r5, r3
	ldr	r0, [r4]
	bl	xlr_reg_update
	mov	r3, #4
	ldr	r1, [r7]
	mov	r2, r3
	ldr	r0, [r4]
	bl	xlr_reg_update
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	O_DESC_PACK_CTRL__MAXENTRY
	.word	BYTE_OFFSET
	.word	O_DESC_PACK_CTRL__BYTEOFFSET
	.word	O_DESC_PACK_CTRL__REGULARSIZE
	.word	R_DESC_PACK_CTRL
	.word	R_MAC_CONFIG_2
	.word	29207
	.word	R_CORECONTROL
	.word	O_INTMASK__MDINT
	.word	O_INTMASK__TXILLEGAL
	.word	O_INTMASK__TXFETCHERROR
	.word	O_INTMASK__P2PSPILLECC
	.word	O_INTMASK__TAGFULL
	.word	O_INTMASK__UNDERRUN
	.word	O_INTMASK__ABORT
	.word	R_INTMASK
	.word	O_STATCTRL__CLRCNT
	.word	R_STATCTRL
	.size	xlr_gmac_init, .-xlr_gmac_init
	.comm	R_STATCTRL,4,4
	.comm	R_MAC_CONFIG_2,4,4
	.comm	R_INTMASK,4,4
	.comm	R_DESC_PACK_CTRL,4,4
	.comm	R_CORECONTROL,4,4
	.comm	O_STATCTRL__CLRCNT,4,4
	.comm	O_INTMASK__UNDERRUN,4,4
	.comm	O_INTMASK__TXILLEGAL,4,4
	.comm	O_INTMASK__TXFETCHERROR,4,4
	.comm	O_INTMASK__TAGFULL,4,4
	.comm	O_INTMASK__P2PSPILLECC,4,4
	.comm	O_INTMASK__MDINT,4,4
	.comm	O_INTMASK__ABORT,4,4
	.comm	O_DESC_PACK_CTRL__REGULARSIZE,4,4
	.comm	O_DESC_PACK_CTRL__MAXENTRY,4,4
	.comm	O_DESC_PACK_CTRL__BYTEOFFSET,4,4
	.comm	BYTE_OFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
