	.file	"extr_tg3.c_tg3_read_dash_ver.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NCSI"
.LC1:
	.string	"SMASH"
.LC2:
	.string	"DASH"
.LC3:
	.string	" %s v%d.%d.%d.%d"
	.text
	.p2align 4
	.type	tg3_read_dash_ver, @function
tg3_read_dash_ver:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR TG3_APE_FW_VERSION[rip]
	lea	r12, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	tg3_ape_read32@PLT
	mov	esi, DWORD PTR APE_HAS_NCSI[rip]
	mov	rdi, rbp
	mov	ebx, eax
	call	tg3_flag@PLT
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR TG3PCI_DEVICE_TIGON3_5725[rip]
	lea	r12, .LC1[rip]
	cmp	QWORD PTR [rax], rdx
	lea	rax, .LC2[rip]
	cmovne	r12, rax
.L2:
	mov	rdi, QWORD PTR 0[rbp]
	call	strlen@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR TG3_VER_SIZE[rip]
	cdqe
	mov	r9d, DWORD PTR APE_FW_VERSION_MINMSK[rip]
	mov	r8d, DWORD PTR APE_FW_VERSION_MAJMSK[rip]
	lea	rdi, [rdx+rax*4]
	sub	rsi, rax
	mov	eax, DWORD PTR APE_FW_VERSION_BLDMSK[rip]
	mov	ecx, DWORD PTR APE_FW_VERSION_REVSFT[rip]
	and	r9d, ebx
	and	r8d, ebx
	lea	rdx, .LC3[rip]
	and	eax, ebx
	and	ebx, DWORD PTR APE_FW_VERSION_REVMSK[rip]
	sar	ebx, cl
	mov	ecx, DWORD PTR APE_FW_VERSION_MINSFT[rip]
	push	rax
	.cfi_def_cfa_offset 40
	push	rbx
	.cfi_def_cfa_offset 48
	sar	r9d, cl
	mov	ecx, DWORD PTR APE_FW_VERSION_MAJSFT[rip]
	sar	r8d, cl
	mov	rcx, r12
	call	snprintf@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
	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	tg3_read_dash_ver, .-tg3_read_dash_ver
	.comm	TG3_VER_SIZE,8,8
	.comm	TG3_APE_FW_VERSION,4,4
	.comm	TG3PCI_DEVICE_TIGON3_5725,8,8
	.comm	APE_HAS_NCSI,4,4
	.comm	APE_FW_VERSION_REVSFT,4,4
	.comm	APE_FW_VERSION_REVMSK,4,4
	.comm	APE_FW_VERSION_MINSFT,4,4
	.comm	APE_FW_VERSION_MINMSK,4,4
	.comm	APE_FW_VERSION_MAJSFT,4,4
	.comm	APE_FW_VERSION_MAJMSK,4,4
	.comm	APE_FW_VERSION_BLDMSK,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_tg3.c_tg3_read_dash_ver.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NCSI\000"
	.align	2
.LC1:
	.ascii	"SMASH\000"
	.align	2
.LC2:
	.ascii	"DASH\000"
	.align	2
.LC3:
	.ascii	" %s v%d.%d.%d.%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tg3_read_dash_ver, %function
tg3_read_dash_ver:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L7
	sub	sp, sp, #20
	ldr	r1, [r3]
	mov	r5, r0
	bl	tg3_ape_read32
	ldr	r3, .L7+4
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	tg3_flag
	cmp	r0, #0
	bne	.L3
	ldr	r2, [r5, #4]
	ldr	r3, .L7+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L7+12
	cmp	r1, r2
	ldr	r6, .L7+16
	movne	r6, r3
.L2:
	ldr	r7, [r5]
	mov	r0, r7
	bl	strlen
	mov	r1, r0
	ldr	ip, .L7+20
	ldr	r2, .L7+24
	ldr	r3, .L7+28
	ldr	lr, [ip]
	ldr	ip, [r2]
	ldr	r2, [r3]
	ldr	r3, .L7+32
	and	lr, lr, r4
	ldr	r3, [r3]
	ldr	r0, .L7+36
	asr	lr, lr, r3
	ldr	r3, .L7+40
	ldr	r5, [r0]
	add	r0, r7, r1, lsl #2
	ldr	r7, [r3]
	ldr	r3, .L7+44
	and	ip, ip, r4
	asr	ip, ip, r7
	ldr	r7, [r3]
	ldr	r3, .L7+48
	and	r2, r2, r4
	asr	r2, r2, r7
	ldr	r7, [r3]
	sub	r1, r5, r1
	and	r4, r4, r7
	stm	sp, {r2, ip, lr}
	mov	r3, r6
	ldr	r2, .L7+52
	str	r4, [sp, #12]
	bl	snprintf
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r6, .L7+56
	b	.L2
.L8:
	.align	2
.L7:
	.word	TG3_APE_FW_VERSION
	.word	APE_HAS_NCSI
	.word	TG3PCI_DEVICE_TIGON3_5725
	.word	.LC2
	.word	.LC1
	.word	APE_FW_VERSION_REVMSK
	.word	APE_FW_VERSION_MINMSK
	.word	APE_FW_VERSION_MAJMSK
	.word	APE_FW_VERSION_REVSFT
	.word	TG3_VER_SIZE
	.word	APE_FW_VERSION_MINSFT
	.word	APE_FW_VERSION_MAJSFT
	.word	APE_FW_VERSION_BLDMSK
	.word	.LC3
	.word	.LC0
	.size	tg3_read_dash_ver, .-tg3_read_dash_ver
	.comm	TG3_VER_SIZE,4,4
	.comm	TG3_APE_FW_VERSION,4,4
	.comm	TG3PCI_DEVICE_TIGON3_5725,4,4
	.comm	APE_HAS_NCSI,4,4
	.comm	APE_FW_VERSION_REVSFT,4,4
	.comm	APE_FW_VERSION_REVMSK,4,4
	.comm	APE_FW_VERSION_MINSFT,4,4
	.comm	APE_FW_VERSION_MINMSK,4,4
	.comm	APE_FW_VERSION_MAJSFT,4,4
	.comm	APE_FW_VERSION_MAJMSK,4,4
	.comm	APE_FW_VERSION_BLDMSK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
