	.file	"extr_qla3xxx.c_ql_is_full_dup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ql_is_full_dup, @function
ql_is_full_dup:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR [rdi], 129
	lea	rdx, 4[rsp]
	je	.L9
	mov	esi, DWORD PTR AUX_CONTROL_STATUS[rip]
	call	ql_mii_read_reg@PLT
	test	eax, eax
	js	.L5
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR PHY_AUX_DUPLEX_STAT[rip], eax
	setne	al
	movzx	eax, al
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, 26
	call	ql_mii_read_reg@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR 4[rsp]
	and	eax, 4224
	cmp	eax, 4224
	sete	al
	movzx	eax, al
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ql_is_full_dup, .-ql_is_full_dup
	.comm	PHY_AUX_DUPLEX_STAT,4,4
	.comm	AUX_CONTROL_STATUS,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_qla3xxx.c_ql_is_full_dup.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_is_full_dup, %function
ql_is_full_dup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, [r0]
	ldr	r2, .L11
	sub	sp, sp, #12
	cmp	r3, #129
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	beq	.L9
	ldr	r3, .L11+4
	mov	r2, sp
	ldr	r1, [r3]
	bl	ql_mii_read_reg
	cmp	r0, #0
	blt	.L5
	ldr	r3, .L11+8
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r0, #1
	moveq	r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L5:
	mov	r0, #0
	b	.L1
.L9:
	mov	r2, sp
	mov	r1, #26
	bl	ql_mii_read_reg
	cmp	r0, #0
	bne	.L5
	ldr	r0, [sp]
	and	r0, r0, #4224
	sub	r0, r0, #4224
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	AUX_CONTROL_STATUS
	.word	PHY_AUX_DUPLEX_STAT
	.size	ql_is_full_dup, .-ql_is_full_dup
	.comm	PHY_AUX_DUPLEX_STAT,4,4
	.comm	AUX_CONTROL_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
