	.file	"extr_i2ellis.c_iiDownloadAll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iiDownloadAll, @function
iiDownloadAll:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR II_STATE_READY[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L8
	mov	eax, DWORD PTR II_DOWN_BADSTATE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
.L2:
	test	ebx, ebx
	jle	.L13
	mov	edx, r13d
	mov	rdi, rbp
	lea	r12d, 1[rsi]
	sub	ebx, DWORD PTR LOADWARE_BLOCK_SIZE[rip]
	call	iiDownloadBlock@PLT
	cmp	eax, 128
	je	.L4
	cmp	eax, 129
	je	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	test	ebx, ebx
	cmovg	eax, DWORD PTR II_DOWN_OVER[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR II_DOWN_UNDER[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	iiDownloadAll, .-iiDownloadAll
	.comm	LOADWARE_BLOCK_SIZE,8,8
	.comm	II_STATE_READY,8,8
	.comm	II_DOWN_UNDER,4,4
	.comm	II_DOWN_OVER,4,4
	.comm	II_DOWN_BADSTATE,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_i2ellis.c_iiDownloadAll.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iiDownloadAll, %function
iiDownloadAll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, .L13
	ldr	ip, [r5]
	ldr	r0, [r0]
	cmp	ip, r0
	bne	.L8
	mov	r6, r2
	mov	r4, r3
	ldr	r8, .L13+4
.L2:
	cmp	r4, #0
	add	r7, r1, #1
	ble	.L12
	ldr	r3, [r8]
	mov	r2, r6
	mov	r0, r5
	sub	r4, r4, r3
	bl	iiDownloadBlock
	cmp	r0, #128
	beq	.L4
	cmp	r0, #129
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r1, r7
	b	.L2
.L8:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	cmp	r4, #0
	ldrgt	r3, .L13+12
	ldrgt	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	II_STATE_READY
	.word	LOADWARE_BLOCK_SIZE
	.word	II_DOWN_BADSTATE
	.word	II_DOWN_OVER
	.word	II_DOWN_UNDER
	.size	iiDownloadAll, .-iiDownloadAll
	.comm	LOADWARE_BLOCK_SIZE,4,4
	.comm	II_STATE_READY,4,4
	.comm	II_DOWN_UNDER,4,4
	.comm	II_DOWN_OVER,4,4
	.comm	II_DOWN_BADSTATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
