// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/ilbm.c
// Function: decompress_delta_op3
static void decompress_delta_op3(deark *c, lctx *d, struct imgbody_info *ibi,
	struct frame_ctx *frctx, i64 pos1, i64 len)
{
	i64 i;
	i64 pos = pos1;
	i64 planedata_offs[8];

	de_dbg(c, "[delta3 data]");

	for(i=0; i<8; i++) {
		planedata_offs[i] = de_getu32be_p(&pos);
		if(i<ibi->planes_total) {
			de_dbg2(c, "plane[%d] offs: %"I64_FMT, (int)i, planedata_offs[i]);
			if(planedata_offs[i]>0) {
				decompress_plane_delta_op3(c, d, ibi, frctx, i,
					pos1+planedata_offs[i], len-planedata_offs[i]);
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, 0x28(%rsp)
movq %rsi, %r13
movq %rdi, %rbp
leaq 0x70(%rsp), %rax
movq %rcx, (%rax)
leaq 0xacf0e(%rip), %rsi     # 0x128ea2
xorl %eax, %eax
callq 0xe9226
movq %rbx, 0x60(%rsp)
movq %r14, 0x58(%rsp)
addq %rbx, %r14
leaq 0x6(%rsp), %r12
xorl %edx, %edx
movq %r13, 0x30(%rsp)
movq %r14, 0x10(%rsp)
movq %rbp, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x18(%rbp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xef34e
movq 0x18(%rsp), %rdx
cmpq 0x18(%r13), %rdx
jge 0x7c21e
movq %rax, %rbx
movq %rbp, %rdi
leaq 0xacec3(%rip), %rsi     # 0x128eb0
movq %rax, %rcx
xorl %eax, %eax
callq 0xe93cf
movq 0x18(%rsp), %rdx
testq %rbx, %rbx
jle 0x7c21e
movq 0x60(%rsp), %rcx
subq %rbx, %rcx
addq 0x58(%rsp), %rbx
movq %rbx, 0x8(%rsp)
movq %rbp, %rdi
leaq 0xacea3(%rip), %rsi     # 0x128ec4
movq %rbx, %rdx
xorl %eax, %eax
callq 0xe93cf
movq 0x40(%r13), %rcx
testq %rcx, %rcx
jle 0x7c219
leaq 0x1(%rcx), %rax
shrq $0x3f, %rax
leaq (%rcx,%rax), %rdx
incq %rdx
sarq %rdx
movq 0x8(%r13), %r15
imulq %rdx, %r15
imulq 0x18(%rsp), %rcx
xorl %ebx, %ebx
movq %r15, 0x38(%rsp)
movq %rcx, 0x50(%rsp)
movq %rdx, 0x40(%rsp)
cmpq %r15, %rbx
jge 0x7c11d
movq 0x8(%rsp), %rax
addq $0x2, %rax
cmpq %r14, %rax
jge 0x7c11d
movq 0x18(%rbp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef295
cmpq $-0x1, %rax
je 0x7c122
movq %rax, %r14
testq %rax, %rax
js 0x7c13d
movq %r13, %rbp
movq 0x28(%rsp), %r13
movl $0x1, 0xc(%r13)
addq %r14, %rbx
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x8(%rsp), %rdx
movl $0x2, %ecx
movq %r12, %rsi
callq 0xeeee8
addq $0x2, 0x8(%rsp)
movq %rbx, %rax
xorl %edx, %edx
movq 0x40(%rsp), %r14
divq %r14
imulq 0x48(%rbp), %rax
movq 0x50(%rsp), %r15
addq %r15, %rax
leaq (%rax,%rdx,2), %rsi
movq 0x20(%r13), %rdi
movq %rbp, %r13
movq 0x20(%rsp), %rbp
movl $0x2, %ecx
movq %r12, %rdx
callq 0xf11f9
movq 0x38(%rsp), %r15
movb $0x1, %r12b
jmp 0x7c125
xorl %r12d, %r12d
jmp 0x7c12a
xorl %r12d, %r12d
movq 0x10(%rsp), %r14
testb %r12b, %r12b
leaq 0x6(%rsp), %r12
jne 0x7c069
jmp 0x7c219
movq %rbx, %r13
subq %r14, %r13
addq $-0x2, %r13
movq 0x18(%rbp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef193
movb $0x1, %r12b
movq %rax, 0x48(%rsp)
testq %rax, %rax
jle 0x7c20c
movq %r13, 0x68(%rsp)
movq 0x28(%rsp), %rax
movl $0x1, 0xc(%rax)
negq 0x48(%rsp)
notq %r14
addq %rbx, %r14
xorl %ebx, %ebx
movq 0x30(%rsp), %r13
leaq 0x6(%rsp), %rbp
movq 0x40(%rsp), %r15
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x8(%rsp), %rdx
movl $0x2, %ecx
movq %rbp, %rsi
callq 0xeeee8
addq $0x2, 0x8(%rsp)
movq %r14, %rax
xorl %edx, %edx
divq %r15
imulq 0x48(%r13), %rax
addq 0x50(%rsp), %rax
leaq (%rax,%rdx,2), %rsi
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rdi
movl $0x2, %ecx
movq %rbp, %rdx
callq 0xf11f9
decq %rbx
incq %r14
cmpq %rbx, 0x48(%rsp)
jne 0x7c193
movq 0x68(%rsp), %rax
subq %rbx, %rax
movq %rax, %rbx
movq 0x20(%rsp), %rbp
movq 0x10(%rsp), %r14
movq 0x38(%rsp), %r15
jmp 0x7c12a
movq %r13, %rbx
movq 0x30(%rsp), %r13
jmp 0x7c125
movq 0x18(%rsp), %rdx
incq %rdx
cmpq $0x8, %rdx
jne 0x7bfbe
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq