	.file	"extr_ips.c_ips_flash_bios.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"(%s%d) flash bios failed - unable to erase flash"
	.align 8
.LC1:
	.string	"(%s%d) flash bios failed - unable to flash"
	.align 8
.LC2:
	.string	"(%s%d) flash bios failed - unable to verify flash"
	.text
	.p2align 4
	.type	ips_flash_bios, @function
ips_flash_bios:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR IPS_BIOS_IMAGE[rip]
	cmp	QWORD PTR 8[rsi], rax
	je	.L19
.L2:
	mov	QWORD PTR [rbx], 11
	mov	rdi, rbp
	call	ips_free_flash_copperhead@PLT
	mov	eax, DWORD PTR IPS_FAILURE[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsi]
	cmp	rax, QWORD PTR IPS_WRITE_BIOS[rip]
	je	.L20
	cmp	rax, QWORD PTR IPS_ERASE_BIOS[rip]
	jne	.L2
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	je	.L2
	call	rax
	mov	r8, rax
	mov	eax, DWORD PTR IPS_SUCCESS_IMM[rip]
	test	r8, r8
	je	.L1
.L17:
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR ips_name[rip]
	mov	edi, 1
	lea	rsi, .LC0[rip]
	call	DEBUG_VAR@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	QWORD PTR 24[rdi], 0
	je	.L2
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	je	.L2
	cmp	QWORD PTR 16[rdi], 0
	je	.L2
	call	rax
	test	rax, rax
	jne	.L17
	mov	rsi, QWORD PTR IPS_BIOS_HEADER[rip]
	mov	rdx, QWORD PTR 32[rbp]
	xor	ecx, ecx
	mov	rdi, rbp
	sub	rdx, rsi
	add	rsi, QWORD PTR 40[rbp]
	call	[QWORD PTR 24[rbp]]
	test	rax, rax
	jne	.L21
	mov	rsi, QWORD PTR IPS_BIOS_HEADER[rip]
	mov	rdx, QWORD PTR 32[rbp]
	xor	ecx, ecx
	mov	rdi, rbp
	sub	rdx, rsi
	add	rsi, QWORD PTR 40[rbp]
	call	[QWORD PTR 16[rbp]]
	test	rax, rax
	je	.L6
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR ips_name[rip]
	mov	edi, 1
	lea	rsi, .LC2[rip]
	call	DEBUG_VAR@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR ips_name[rip]
	mov	edi, 1
	lea	rsi, .LC1[rip]
	call	DEBUG_VAR@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	ips_free_flash_copperhead@PLT
	mov	eax, DWORD PTR IPS_SUCCESS_IMM[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ips_flash_bios, .-ips_flash_bios
	.comm	ips_name,4,4
	.comm	IPS_WRITE_BIOS,8,8
	.comm	IPS_SUCCESS_IMM,4,4
	.comm	IPS_FAILURE,4,4
	.comm	IPS_ERASE_BIOS,8,8
	.comm	IPS_BIOS_IMAGE,8,8
	.comm	IPS_BIOS_HEADER,8,8
	.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_ips.c_ips_flash_bios.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%s%d) flash bios failed - unable to erase flash\000"
	.align	2
.LC1:
	.ascii	"(%s%d) flash bios failed - unable to flash\000"
	.align	2
.LC2:
	.ascii	"(%s%d) flash bios failed - unable to verify flash\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ips_flash_bios, %function
ips_flash_bios:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L27
	ldr	r2, [r1, #8]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, r3
	mov	r4, r1
	mov	r5, r0
	beq	.L24
.L2:
	mov	r2, #11
	mov	r3, #0
	mov	r0, r5
	stm	r4, {r2, r3}
	bl	ips_free_flash_copperhead
	ldr	r3, .L27+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	ldr	r2, .L27+8
	ldr	r3, [r1, #12]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L25
	ldr	r2, .L27+12
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L2
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L2
	blx	r3
	cmp	r0, #0
	bne	.L22
	ldr	r3, .L27+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r3, [r0, #12]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r2, [r0, #8]
	cmp	r2, #0
	beq	.L2
	blx	r3
	subs	r3, r0, #0
	bne	.L22
	ldr	r6, .L27+20
	ldr	r0, [r5, #20]
	ldr	r1, [r6]
	ldr	r2, [r5, #16]
	ldr	r7, [r5, #12]
	sub	r2, r2, r1
	add	r1, r1, r0
	mov	r0, r5
	blx	r7
	subs	r3, r0, #0
	bne	.L26
	ldr	r1, [r6]
	ldr	r0, [r5, #20]
	ldr	r2, [r5, #16]
	ldr	r6, [r5, #8]
	sub	r2, r2, r1
	add	r1, r1, r0
	mov	r0, r5
	blx	r6
	cmp	r0, #0
	beq	.L6
	ldr	r2, .L27+24
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	r1, .L27+28
	mov	r0, #1
	bl	DEBUG_VAR
	b	.L2
.L26:
	ldr	r2, .L27+24
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	r1, .L27+32
	mov	r0, #1
	bl	DEBUG_VAR
	b	.L2
.L22:
	ldr	r2, .L27+24
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	r1, .L27+36
	mov	r0, #1
	bl	DEBUG_VAR
	b	.L2
.L6:
	mov	r0, r5
	bl	ips_free_flash_copperhead
	ldr	r3, .L27+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	.align	2
.L27:
	.word	IPS_BIOS_IMAGE
	.word	IPS_FAILURE
	.word	IPS_WRITE_BIOS
	.word	IPS_ERASE_BIOS
	.word	IPS_SUCCESS_IMM
	.word	IPS_BIOS_HEADER
	.word	ips_name
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	ips_flash_bios, .-ips_flash_bios
	.comm	ips_name,4,4
	.comm	IPS_WRITE_BIOS,4,4
	.comm	IPS_SUCCESS_IMM,4,4
	.comm	IPS_FAILURE,4,4
	.comm	IPS_ERASE_BIOS,4,4
	.comm	IPS_BIOS_IMAGE,4,4
	.comm	IPS_BIOS_HEADER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
