	.file	"extr_prpmc2800.c_prpmc2800_get_bip.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error: Can't open i2c device\n\r"
	.align 8
.LC1:
	.string	"Error: Couldn't read eeprom2\n\r"
	.align 8
.LC2:
	.string	"Error: Unsupported board or corrupted VPD:\n\r"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"  0x%x 0x%x 0x%x 0x%x 0x%x\n\r"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Using device tree defaults...\n\r"
	.text
	.p2align 4
	.type	prpmc2800_get_bip, @function
prpmc2800_get_bip:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	mv64x60_i2c_open@PLT
	test	rax, rax
	jne	.L11
.L2:
	mov	r12, rsp
	xor	esi, esi
	mov	edx, 20
	mov	rdi, r12
	call	memset@PLT
	mov	edi, DWORD PTR EEPROM2_ADDR[rip]
	mov	r8d, 20
	mov	rsi, r12
	mov	ecx, 2
	mov	edx, 8158
	call	mv64x60_i2c_read@PLT
	test	eax, eax
	js	.L12
.L3:
	xor	eax, eax
	call	mv64x60_i2c_close@PLT
	mov	rdi, r12
	call	prpmc2800_get_board_info@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	fatal@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC1[rip]
	call	fatal@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	mov	r9d, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 8[rsp]
	xor	eax, eax
	mov	r8d, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 4[rsp]
	lea	rdi, .LC3[rip]
	mov	esi, DWORD PTR [rsp]
	call	printf@PLT
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	prpmc2800_get_bip, .-prpmc2800_get_bip
	.comm	EEPROM2_ADDR,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_prpmc2800.c_prpmc2800_get_bip.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error: Can't open i2c device\012\015\000"
	.align	2
.LC1:
	.ascii	"Error: Couldn't read eeprom2\012\015\000"
	.align	2
.LC2:
	.ascii	"Error: Unsupported board or corrupted VPD:\012\015\000"
	.align	2
.LC3:
	.ascii	"  0x%x 0x%x 0x%x 0x%x 0x%x\012\015\000"
	.align	2
.LC4:
	.ascii	"Using device tree defaults...\012\015\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prpmc2800_get_bip, %function
prpmc2800_get_bip:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L15
	sub	sp, sp, #32
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	mv64x60_i2c_open
	cmp	r0, #0
	bne	.L11
.L2:
	mov	r2, #20
	mov	ip, #0
	ldr	r3, .L15+4
	str	r2, [sp]
	ldr	r0, [r3]
	ldr	r2, .L15+8
	mov	r3, #2
	add	r1, sp, #8
	str	ip, [sp, #8]
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	bl	mv64x60_i2c_read
	cmp	r0, #0
	blt	.L12
.L3:
	bl	mv64x60_i2c_close
	add	r0, sp, #8
	bl	prpmc2800_get_board_info
	subs	r4, r0, #0
	beq	.L13
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, pc}
.L11:
	ldr	r0, .L15+12
	bl	fatal
	b	.L2
.L12:
	ldr	r0, .L15+16
	bl	fatal
	b	.L3
.L13:
	ldr	r0, .L15+20
	bl	printf
	ldr	r2, [sp, #24]
	ldr	r3, [sp, #20]
	str	r2, [sp, #4]
	str	r3, [sp]
	add	r1, sp, #8
	ldm	r1, {r1, r2, r3}
	ldr	r0, .L15+24
	bl	printf
	ldr	r0, .L15+28
	bl	printf
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	EEPROM2_ADDR
	.word	8158
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	prpmc2800_get_bip, .-prpmc2800_get_bip
	.comm	EEPROM2_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
