	.file	"extr_ael1002.c_xaui_direct_get_link_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xaui_direct_get_link_status, @function
xaui_direct_get_link_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rsi, rsi
	je	.L2
	mov	r15d, DWORD PTR 4[rdi]
	mov	rbx, rdi
	mov	edi, DWORD PTR A_XGM_SERDES_STAT0[rip]
	mov	r14, rsi
	mov	esi, r15d
	call	XGM_REG@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	t3_read_reg@PLT
	mov	edi, DWORD PTR A_XGM_SERDES_STAT1[rip]
	mov	esi, r15d
	mov	ebp, eax
	call	XGM_REG@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	t3_read_reg@PLT
	mov	edi, DWORD PTR A_XGM_SERDES_STAT2[rip]
	mov	esi, r15d
	or	ebp, eax
	call	XGM_REG@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	t3_read_reg@PLT
	mov	edi, DWORD PTR A_XGM_SERDES_STAT3[rip]
	mov	esi, r15d
	or	ebp, eax
	call	XGM_REG@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	t3_read_reg@PLT
	or	ebp, eax
	xor	eax, eax
	test	DWORD PTR F_LOWSIG0[rip], ebp
	sete	al
	mov	DWORD PTR [r14], eax
.L2:
	test	r13, r13
	je	.L3
	mov	eax, DWORD PTR SPEED_10000[rip]
	mov	DWORD PTR 0[r13], eax
.L3:
	test	r12, r12
	je	.L4
	mov	eax, DWORD PTR DUPLEX_FULL[rip]
	mov	DWORD PTR [r12], eax
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	xaui_direct_get_link_status, .-xaui_direct_get_link_status
	.comm	SPEED_10000,4,4
	.comm	F_LOWSIG0,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	A_XGM_SERDES_STAT3,4,4
	.comm	A_XGM_SERDES_STAT2,4,4
	.comm	A_XGM_SERDES_STAT1,4,4
	.comm	A_XGM_SERDES_STAT0,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_ael1002.c_xaui_direct_get_link_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xaui_direct_get_link_status, %function
xaui_direct_get_link_status:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r7, r1, #0
	mov	r9, r2
	mov	r8, r3
	beq	.L2
	mov	r4, r0
	ldr	r6, [r0, #4]
	ldr	r3, .L16
	mov	r1, r6
	ldr	r0, [r3]
	ldr	r5, [r4]
	bl	XGM_REG
	mov	r1, r0
	mov	r0, r5
	bl	t3_read_reg
	ldr	r3, .L16+4
	mov	r1, r6
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r10, [r4]
	bl	XGM_REG
	mov	r1, r0
	mov	r0, r10
	bl	t3_read_reg
	mov	r3, r0
	ldr	r2, .L16+8
	mov	r1, r6
	ldr	r0, [r2]
	orr	r5, r5, r3
	ldr	r10, [r4]
	bl	XGM_REG
	mov	r1, r0
	mov	r0, r10
	bl	t3_read_reg
	mov	r3, r0
	ldr	r2, .L16+12
	mov	r1, r6
	ldr	r0, [r2]
	ldr	r6, [r4]
	orr	r4, r5, r3
	bl	XGM_REG
	mov	r1, r0
	mov	r0, r6
	bl	t3_read_reg
	ldr	r3, .L16+16
	orr	r4, r4, r0
	ldr	r3, [r3]
	tst	r4, r3
	moveq	r3, #1
	movne	r3, #0
	str	r3, [r7]
.L2:
	cmp	r9, #0
	ldrne	r3, .L16+20
	mov	r0, #0
	ldrne	r3, [r3]
	strne	r3, [r9]
	cmp	r8, #0
	ldrne	r3, .L16+24
	ldrne	r3, [r3]
	strne	r3, [r8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	A_XGM_SERDES_STAT0
	.word	A_XGM_SERDES_STAT1
	.word	A_XGM_SERDES_STAT2
	.word	A_XGM_SERDES_STAT3
	.word	F_LOWSIG0
	.word	SPEED_10000
	.word	DUPLEX_FULL
	.size	xaui_direct_get_link_status, .-xaui_direct_get_link_status
	.comm	SPEED_10000,4,4
	.comm	F_LOWSIG0,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	A_XGM_SERDES_STAT3,4,4
	.comm	A_XGM_SERDES_STAT2,4,4
	.comm	A_XGM_SERDES_STAT1,4,4
	.comm	A_XGM_SERDES_STAT0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
