	.file	"extr_if_upgt.c_upgt_fw_copy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	upgt_fw_copy, @function
upgt_fw_copy:
.LFB0:
	.cfi_startproc
	endbr64
	test	edx, edx
	jle	.L7
	mov	ecx, 1
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	r10, r10d
	mov	BYTE PTR [r8], 125
	add	eax, 2
	mov	BYTE PTR [rsi+r10], 94
.L5:
	mov	r8d, ecx
	add	rcx, 1
	mov	r9d, r8d
	cmp	eax, r8d
	cmovge	r9d, eax
	cmp	r9d, edx
	jge	.L1
.L6:
	mov	r9d, DWORD PTR -4[rdi+rcx*4]
	movsx	r8, eax
	lea	r10d, 1[rax]
	add	r8, rsi
	cmp	r9d, 125
	je	.L3
	cmp	r9d, 126
	je	.L10
	mov	BYTE PTR [r8], r9b
	mov	eax, r10d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	movsx	r10, r10d
	mov	BYTE PTR [r8], 125
	add	eax, 2
	mov	BYTE PTR [rsi+r10], 93
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r8d, r8d
.L1:
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	upgt_fw_copy, .-upgt_fw_copy
	.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_if_upgt.c_upgt_fw_copy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	upgt_fw_copy, %function
upgt_fw_copy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	ble	.L7
	push	{r4, r5, r6, r7, r8, lr}
	mov	r3, #0
	mov	lr, r0
	mov	r8, #93
	mov	r0, r3
	mov	r7, #125
	mov	r6, #94
	sub	lr, lr, #4
	b	.L6
.L15:
	cmp	ip, #126
	movne	r3, r4
	strbne	ip, [r5]
	strbeq	r7, [r5]
	addeq	r3, r3, #2
	strbeq	r6, [r1, r4]
.L5:
	add	r0, r0, #1
	cmp	r3, r0
	movge	ip, r3
	movlt	ip, r0
	cmp	ip, r2
	popge	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	ip, [lr, #4]!
	add	r5, r1, r3
	cmp	ip, #125
	add	r4, r3, #1
	bne	.L15
	strb	ip, [r1, r3]
	strb	r8, [r1, r4]
	add	r3, r3, #2
	b	.L5
.L7:
	mov	r0, #0
	bx	lr
	.size	upgt_fw_copy, .-upgt_fw_copy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
