// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/psd.c
// Function: do_image_resource_blocks
static void do_image_resource_blocks(deark *c, lctx *d, zztype *zz)
{
	zztype czz;

	while(1) {
		if(zz->pos>=zz->endpos) break;
		zz_init(&czz, zz);
		if(!do_image_resource(c, d, &czz)) break;
		zz->pos += zz_used(&czz);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, 0x8(%rsp)
movq (%rdx), %r15
movq %rdx, 0x50(%rsp)
movq 0x10(%rdx), %rbp
cmpq %rbp, %r15
jge 0xa5f45
movq %rdi, %rbx
movq %rdi, 0x48(%rsp)
movq 0x18(%rbx), %rdi
xorl %r8d, %r8d
movq 0x8(%rsp), %rax
cmpl $0x0, 0x4(%rax)
setne %r8b
movq %r15, %rsi
leaq 0x68(%rsp), %rdx
movl $0x4, %ecx
callq 0xf1762
movl 0x6c(%rsp), %eax
cmpl $0x44435351, %eax       # imm = 0x44435351
jle 0xa5bfd
cmpl $0x44435352, %eax       # imm = 0x44435352
je 0xa5c28
cmpl $0x4d655361, %eax       # imm = 0x4D655361
je 0xa5c1f
cmpl $0x50485554, %eax       # imm = 0x50485554
jne 0xa5f57
leaq 0x8d35c(%rip), %rcx     # 0x132f57
jmp 0xa5c2f
leaq 0x8d33a(%rip), %rcx     # 0x132f3e
cmpl $0x3842494d, %eax       # imm = 0x3842494D
je 0xa5c2f
cmpl $0x41674867, %eax       # imm = 0x41674867
jne 0xa5f57
leaq 0x8d32b(%rip), %rcx     # 0x132f48
jmp 0xa5c2f
leaq 0x8d32c(%rip), %rcx     # 0x132f52
jmp 0xa5c2f
leaq 0x8d31e(%rip), %rcx     # 0x132f4d
movq %rcx, 0x58(%rsp)
leaq 0x4(%r15), %rsi
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %r12
movl 0x4(%r12), %edx
callq 0xeef43
movq %rax, %r13
movq %rbx, %r14
movq %r15, 0x60(%rsp)
leaq 0x6(%r15), %rbx
movq %r14, %rdi
callq 0xf6410
movq %rbx, 0x30(%rsp)
movq %rbx, 0x28(%rsp)
movq %rbp, 0x38(%rsp)
movq %r14, %rdi
movq %r12, %rsi
movq %rax, 0x40(%rsp)
movq %rax, %rdx
leaq 0x28(%rsp), %rcx
callq 0xa5fe3
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rdx
movq %rdx, %rdi
subq %rax, %rdi
jle 0xa5cad
movq 0x28(%rsp), %rcx
cmpq %rdx, %rcx
jg 0xa5caf
subq %rax, %rcx
movq %rcx, %rdi
jmp 0xa5caf
xorl %edi, %edi
callq 0xe9c7e
movq %rax, %r12
leaq (%rax,%rbx), %rsi
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x8(%rsp), %rax
movl 0x4(%rax), %edx
callq 0xeeff3
movq %rax, %r15
movl 0x6c(%rsp), %eax
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpl $0x50485554, %eax       # imm = 0x50485554
jne 0xa5d0c
movw %r13w, 0x10(%rsp)
leaq 0x86454(%rip), %r14     # 0x12c151
movq %r14, 0x18(%rsp)
movq 0x40(%rsp), %rdi
jmp 0xa5db8
xorl %eax, %eax
leaq 0x8643c(%rip), %rcx     # 0x12c151
leaq 0xdf8f4(%rip), %rdx     # 0x185610
movq 0x40(%rsp), %rdi
cmpw %r13w, (%rax,%rdx)
je 0xa5d65
addq $0x18, %rax
cmpq $0x840, %rax            # imm = 0x840
jne 0xa5d21
movw %r13w, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
leal -0x7d0(%r13), %eax
movzwl %ax, %eax
cmpl $0x3e6, %eax            # imm = 0x3E6
ja 0xa5d8c
leaq 0x8d2b6(%rip), %r14     # 0x13300d
movq %r14, 0x18(%rsp)
leaq 0x2f8(%rip), %rax       # 0xa605b
jmp 0xa5db3
movups (%rax,%rdx), %xmm0
movaps %xmm0, 0x10(%rsp)
movq 0x10(%rax,%rdx), %rax
movq %rax, 0x20(%rsp)
movq 0x18(%rsp), %r14
testq %r14, %r14
jne 0xa5db8
movq %rcx, 0x18(%rsp)
movq %rcx, %r14
jmp 0xa5db8
leal -0xfa0(%r13), %eax
movzwl %ax, %eax
movq %rcx, %r14
cmpl $0x3e7, %eax            # imm = 0x3E7
ja 0xa5db8
leaq 0x8d277(%rip), %r14     # 0x13301e
movq %r14, 0x18(%rsp)
leaq 0x2ad(%rip), %rax       # 0xa6060
movq %rax, 0x20(%rsp)
addq %rbx, %r12
addq $0x4, %r12
callq 0xf705c
movq %rax, %r10
subq $0x8, %rsp
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
leaq 0x8d1b4(%rip), %rsi     # 0x132f8e
movq 0x60(%rsp), %rdx
movl %r13d, %ecx
movq %r14, %r8
movq 0x68(%rsp), %r13
movl %r13d, %r9d
xorl %eax, %eax
pushq %r15
pushq %r12
pushq %r10
callq 0xe8617
addq $0x20, %rsp
leaq (%r15,%r12), %rdx
cmpq %rbp, %rdx
jle 0xa5e1b
movq %rbx, %rdi
leaq 0x8d1b5(%rip), %rsi     # 0x132fc6
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe8faa
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0xa5e73
testq %r15, %r15
movq %r15, %rcx
movl $0x0, %edx
cmovleq %rdx, %rcx
addq %r12, %rcx
cmpq %rbp, %rcx
cmovgeq %rbp, %rcx
movq %r12, 0x30(%rsp)
movq %r12, 0x28(%rsp)
movq %rcx, 0x38(%rsp)
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *%rax
jmp 0xa5ef6
movl 0x14(%rsp), %eax
testb $0x4, %al
jne 0xa5eb0
cmpl $0x2, (%rbx)
jl 0xa5ef6
movq 0x18(%rbx), %rsi
xorl %r10d, %r10d
testb $0x10, %al
sete %r10b
subq $0x8, %rsp
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %r9d, %r9d
pushq %r10
callq 0xe8bea
addq $0x10, %rsp
jmp 0xa5ef6
testq %r15, %r15
movq %r15, %rax
movl $0x0, %ecx
cmovleq %rcx, %rax
addq %r12, %rax
cmpq %rbp, %rax
cmovgeq %rbp, %rax
movq %r12, 0x30(%rsp)
movq %r12, 0x28(%rsp)
movq %rax, 0x38(%rsp)
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movl $0x1, %ecx
leaq 0x9f1bf(%rip), %r8      # 0x1450b0
callq 0xa7748
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %r15, %rdi
callq 0xe9c7e
movq %rax, %r14
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa5f1d
callq 0xf6753
addq %r12, %r14
cmpq %rbp, %r14
cmovgeq %rbp, %r14
subq %r13, %r14
movq 0x50(%rsp), %rax
addq (%rax), %r14
movq %r14, (%rax)
movq 0x10(%rax), %rbp
movq %r14, %r15
cmpq %rbp, %r14
jl 0xa5baa
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x70(%rsp), %rdx
leaq 0x8cff9(%rip), %rsi     # 0x132f5c
movq %rbx, %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0xe8faa
jmp 0xa5f45