	.file	"extr_mxl111sf.c_mxl1x1sf_get_chip_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"UNKNOWN MxL1X1"
.LC1:
	.string	"MxL101SF"
.LC2:
	.string	"MxL111SF"
.LC3:
	.string	"v6"
.LC4:
	.string	"v8_100"
.LC5:
	.string	"v8_200"
.LC6:
	.string	"UNKNOWN REVISION"
.LC7:
	.string	"%s detected, %s (0x%x)"
	.text
	.p2align 4
	.type	mxl1x1sf_get_chip_info, @function
mxl1x1sf_get_chip_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	edx, edx
	je	.L2
	mov	eax, DWORD PTR 4[rdi]
	xor	r12d, r12d
	test	eax, eax
	jne	.L1
.L2:
	mov	esi, DWORD PTR CHIP_ID_REG[rip]
	mov	rdi, rbx
	mov	rdx, rsp
	call	mxl111sf_read_reg@PLT
	mov	edi, eax
	mov	r12d, eax
	call	mxl_fail@PLT
	test	rax, rax
	je	.L18
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR [rsp]
	mov	esi, DWORD PTR TOP_CHIP_REV_ID_REG[rip]
	mov	rdi, rbx
	lea	rdx, 4[rsp]
	mov	DWORD PTR [rbx], eax
	call	mxl111sf_read_reg@PLT
	mov	edi, eax
	mov	r12d, eax
	call	mxl_fail@PLT
	test	rax, rax
	jne	.L1
	mov	ecx, DWORD PTR 4[rsp]
	mov	eax, DWORD PTR [rsp]
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 4[rbx], ecx
	cmp	eax, 97
	je	.L4
	cmp	eax, 99
	lea	rsi, .LC0[rip]
	lea	rax, .LC2[rip]
	cmove	rsi, rax
.L4:
	cmp	ecx, 24
	je	.L5
	cmp	ecx, 54
	je	.L6
	cmp	ecx, 8
	je	.L20
	mov	DWORD PTR 8[rbx], 0
	lea	rdx, .LC6[rip]
.L9:
	lea	rdi, .LC7[rip]
	call	pr_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR MXL111SF_V6[rip]
	lea	rdx, .LC3[rip]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR MXL111SF_V8_100[rip]
	lea	rdx, .LC4[rip]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR MXL111SF_V8_200[rip]
	lea	rdx, .LC5[rip]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L9
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mxl1x1sf_get_chip_info, .-mxl1x1sf_get_chip_info
	.comm	TOP_CHIP_REV_ID_REG,4,4
	.comm	MXL111SF_V8_200,4,4
	.comm	MXL111SF_V8_100,4,4
	.comm	MXL111SF_V6,4,4
	.comm	CHIP_ID_REG,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_mxl111sf.c_mxl1x1sf_get_chip_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"UNKNOWN MxL1X1\000"
	.align	2
.LC1:
	.ascii	"MxL101SF\000"
	.align	2
.LC2:
	.ascii	"MxL111SF\000"
	.align	2
.LC3:
	.ascii	"v6\000"
	.align	2
.LC4:
	.ascii	"v8_100\000"
	.align	2
.LC5:
	.ascii	"v8_200\000"
	.align	2
.LC6:
	.ascii	"UNKNOWN REVISION\000"
	.align	2
.LC7:
	.ascii	"%s detected, %s (0x%x)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxl1x1sf_get_chip_info, %function
mxl1x1sf_get_chip_info:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, [r0]
	ldr	r2, .L23
	sub	sp, sp, #20
	cmp	r3, #0
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	beq	.L2
	ldr	r3, [r0, #4]
	cmp	r3, #0
	movne	r5, #0
	bne	.L1
.L2:
	ldr	r3, .L23+4
	add	r2, sp, #4
	ldr	r1, [r3]
	mov	r0, r4
	bl	mxl111sf_read_reg
	mov	r5, r0
	bl	mxl_fail
	cmp	r0, #0
	beq	.L20
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L20:
	ldr	r2, [sp, #4]
	ldr	r3, .L23+8
	str	r2, [r4]
	ldr	r1, [r3]
	add	r2, sp, #8
	mov	r0, r4
	bl	mxl111sf_read_reg
	mov	r5, r0
	bl	mxl_fail
	cmp	r0, #0
	bne	.L1
	ldmib	sp, {r2, r3}
	cmp	r2, #97
	str	r3, [r4, #4]
	beq	.L12
	ldr	r0, .L23+12
	cmp	r2, #99
	ldr	r1, .L23+16
	moveq	r1, r0
.L4:
	cmp	r3, #24
	beq	.L5
	cmp	r3, #54
	beq	.L6
	cmp	r3, #8
	beq	.L22
	mov	r0, #0
	ldr	r2, .L23+20
	str	r0, [r4, #8]
.L9:
	ldr	r0, .L23+24
	bl	pr_info
	b	.L1
.L12:
	ldr	r1, .L23+28
	b	.L4
.L6:
	ldr	r0, .L23+32
	ldr	r2, .L23+36
	ldr	r0, [r0]
	str	r0, [r4, #8]
	b	.L9
.L22:
	ldr	r0, .L23+40
	ldr	r2, .L23+44
	ldr	r0, [r0]
	str	r0, [r4, #8]
	b	.L9
.L5:
	ldr	r0, .L23+48
	ldr	r2, .L23+52
	ldr	r0, [r0]
	str	r0, [r4, #8]
	b	.L9
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC8
	.word	CHIP_ID_REG
	.word	TOP_CHIP_REV_ID_REG
	.word	.LC2
	.word	.LC0
	.word	.LC6
	.word	.LC7
	.word	.LC1
	.word	MXL111SF_V6
	.word	.LC3
	.word	MXL111SF_V8_100
	.word	.LC4
	.word	MXL111SF_V8_200
	.word	.LC5
	.size	mxl1x1sf_get_chip_info, .-mxl1x1sf_get_chip_info
	.comm	TOP_CHIP_REV_ID_REG,4,4
	.comm	MXL111SF_V8_200,4,4
	.comm	MXL111SF_V8_100,4,4
	.comm	MXL111SF_V6,4,4
	.comm	CHIP_ID_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
