// File: /workspace/github_c_makefile_star2_O3/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, %rbp
movq %rsi, %r12
movq %rdi, %r15
leaq 0x70(%rsp), %r13
movq %rcx, (%r13)
leaq 0xad504(%rip), %rsi     # 0x1290d2
xorl %eax, %eax
callq 0xe8617
movq %rbx, 0x60(%rsp)
movq %r14, 0x58(%rsp)
addq %rbx, %r14
xorl %ecx, %ecx
movq %r12, 0x20(%rsp)
movq %r14, 0x50(%rsp)
movq %r15, 0x40(%rsp)
movq %rbp, 0x38(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x18(%r15), %rdi
movq %r13, %rsi
callq 0xeed31
movq 0x18(%rsp), %rcx
cmpq 0x18(%r12), %rcx
jge 0x7be2b
movq %rax, %rbx
movq %r15, %rdi
leaq 0xad4ba(%rip), %rsi     # 0x1290e0
movq 0x18(%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe87e4
movq 0x18(%rsp), %rcx
testq %rbx, %rbx
jle 0x7be2b
movq 0x60(%rsp), %rcx
subq %rbx, %rcx
addq 0x58(%rsp), %rbx
movq %rbx, (%rsp)
movq %r15, %rdi
leaq 0xad496(%rip), %rsi     # 0x1290f4
movq %rbx, %rdx
xorl %eax, %eax
callq 0xe87e4
movq 0x40(%r12), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jle 0x7be21
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rax
shrq $0x3f, %rax
addq %rcx, %rax
incq %rax
sarq %rax
movq 0x8(%r12), %rcx
movq %rax, 0x30(%rsp)
imulq %rax, %rcx
movq %rcx, 0x68(%rsp)
testq %rcx, %rcx
jle 0x7be21
movq 0x10(%rsp), %rax
imulq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
movq (%rsp), %rax
addq $0x2, %rax
cmpq %r14, %rax
jge 0x7be21
movq 0x18(%r15), %rdi
movq %rsp, %rsi
callq 0xeec86
cmpq $-0x1, %rax
je 0x7be21
movq %rax, %rbx
testq %rax, %rax
js 0x7bd47
movl $0x1, 0xc(%rbp)
addq %r13, %rbx
movq 0x18(%r15), %rdi
movq (%rsp), %rdx
movl $0x2, %ecx
leaq 0xe(%rsp), %r13
movq %r13, %rsi
callq 0xee8d4
addq $0x2, (%rsp)
movq %rbx, %rax
xorl %edx, %edx
divq 0x30(%rsp)
imulq 0x48(%r12), %rax
addq 0x10(%rsp), %rax
leaq (%rax,%rdx,2), %rsi
movq 0x20(%rbp), %rdi
movl $0x2, %ecx
movq %r13, %rdx
callq 0xf0c11
jmp 0x7be13
movq %r13, %rax
subq %rbx, %rax
addq $-0x2, %rax
movq %rax, 0x28(%rsp)
movq 0x18(%r15), %rdi
movq %rsp, %rsi
callq 0xeeb91
movq %rax, 0x48(%rsp)
testq %rax, %rax
jle 0x7be09
movl $0x1, 0xc(%rbp)
negq 0x48(%rsp)
notq %rbx
addq %r13, %rbx
xorl %r13d, %r13d
movq 0x20(%rsp), %r12
leaq 0xe(%rsp), %r14
movq 0x10(%rsp), %r15
movq 0x30(%rsp), %rbp
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
movq (%rsp), %rdx
movl $0x2, %ecx
movq %r14, %rsi
callq 0xee8d4
addq $0x2, (%rsp)
movq %rbx, %rax
xorl %edx, %edx
divq %rbp
imulq 0x48(%r12), %rax
addq %r15, %rax
leaq (%rax,%rdx,2), %rsi
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rdi
movl $0x2, %ecx
movq %r14, %rdx
callq 0xf0c11
decq %r13
incq %rbx
cmpq %r13, 0x48(%rsp)
jne 0x7bd99
movq 0x28(%rsp), %rbx
subq %r13, %rbx
movq 0x38(%rsp), %rbp
movq 0x40(%rsp), %r15
movq 0x50(%rsp), %r14
jmp 0x7be13
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %rbx
movq %rbx, %r13
cmpq 0x68(%rsp), %rbx
jl 0x7bcc0
leaq 0x70(%rsp), %r13
movq 0x18(%rsp), %rcx
incq %rcx
cmpq $0x8, %rcx
jne 0x7bbf8
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq