// File: /workspace/github_c_makefile_star2_O1/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 $0x88, %rsp
movq %rsi, 0x18(%rsp)
movq (%rdx), %r12
movq %rdx, 0x48(%rsp)
movq 0x10(%rdx), %r13
cmpq %r13, %r12
jge 0xa68e3
movq %rdi, %r15
movq %rdi, 0x40(%rsp)
movq 0x18(%r15), %rdi
xorl %r8d, %r8d
movq 0x18(%rsp), %rax
cmpl $0x0, 0x4(%rax)
setne %r8b
movq %r12, %rsi
leaq 0x58(%rsp), %rdx
movl $0x4, %ecx
callq 0xf1d74
leaq 0x4(%r12), %rbx
movl 0x5c(%rsp), %eax
cmpl $0x44435351, %eax       # imm = 0x44435351
jle 0xa6584
cmpl $0x44435352, %eax       # imm = 0x44435352
je 0xa65a6
cmpl $0x4d655361, %eax       # imm = 0x4D655361
je 0xa65af
cmpl $0x50485554, %eax       # imm = 0x50485554
jne 0xa6707
leaq 0x8c5dd(%rip), %rcx     # 0x132b5f
jmp 0xa65b6
leaq 0x8c5bb(%rip), %rcx     # 0x132b46
cmpl $0x3842494d, %eax       # imm = 0x3842494D
je 0xa65b6
cmpl $0x41674867, %eax       # imm = 0x41674867
jne 0xa6707
leaq 0x8c5ac(%rip), %rcx     # 0x132b50
jmp 0xa65b6
leaq 0x8c5a8(%rip), %rcx     # 0x132b55
jmp 0xa65b6
leaq 0x8c5a4(%rip), %rcx     # 0x132b5a
movq %rcx, 0x50(%rsp)
movq 0x18(%r15), %rdi
movq 0x18(%rsp), %r14
movl 0x4(%r14), %edx
movq %rbx, %rsi
callq 0xef570
movq %rax, %rbp
movq %r15, %rbx
leaq 0x6(%r12), %r15
movq %rbx, %rdi
callq 0xf6870
movq %r15, 0x28(%rsp)
movq %r15, 0x20(%rsp)
movq %r13, 0x30(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, 0x38(%rsp)
movq %rax, %rdx
leaq 0x20(%rsp), %rcx
callq 0xa696e
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdx
movq %rdx, %rdi
subq %rax, %rdi
jle 0xa662e
movq 0x20(%rsp), %rcx
cmpq %rdx, %rcx
jg 0xa6630
subq %rax, %rcx
movq %rcx, %rdi
jmp 0xa6630
xorl %edi, %edi
callq 0xea7d5
movq %rax, %r14
leaq (%rax,%r15), %rsi
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x18(%rsp), %rax
movl 0x4(%rax), %edx
callq 0xef614
movq %rax, %rbx
movl 0x5c(%rsp), %eax
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
cmpl $0x50485554, %eax       # imm = 0x50485554
jne 0xa668a
movw %bp, (%rsp)
leaq 0x857ee(%rip), %rax     # 0x12be69
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
jmp 0xa6752
xorl %eax, %eax
leaq 0xdef3d(%rip), %rcx     # 0x1855d0
movq 0x38(%rsp), %rdi
cmpw %bp, (%rax,%rcx)
je 0xa66df
addq $0x18, %rax
cmpq $0x840, %rax            # imm = 0x840
jne 0xa6698
movw %bp, (%rsp)
leaq 0x857b4(%rip), %rax     # 0x12be69
movq %rax, 0x8(%rsp)
leal -0x7d0(%rbp), %eax
movzwl %ax, %eax
cmpl $0x3e6, %eax            # imm = 0x3E6
ja 0xa672a
leaq 0x8c544(%rip), %rax     # 0x132c15
movq %rax, 0x8(%rsp)
leaq 0x31f(%rip), %rax       # 0xa69fc
jmp 0xa674d
movups (%rax,%rcx), %xmm0
movaps %xmm0, (%rsp)
movq 0x10(%rax,%rcx), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0xa6752
leaq 0x85769(%rip), %rax     # 0x12be69
movq %rax, 0x8(%rsp)
jmp 0xa6752
movq %r15, %rdi
leaq 0x8c453(%rip), %rsi     # 0x132b64
leaq 0x60(%rsp), %rdx
movl %r12d, %ecx
xorl %eax, %eax
callq 0xe9b27
movb $0x1, %bpl
xorl %edi, %edi
jmp 0xa68af
leal -0xfa0(%rbp), %eax
movzwl %ax, %eax
cmpl $0x3e7, %eax            # imm = 0x3E7
ja 0xa6752
leaq 0x8c4e5(%rip), %rax     # 0x132c26
movq %rax, 0x8(%rsp)
leaq 0x2b4(%rip), %rax       # 0xa6a01
movq %rax, 0x10(%rsp)
addq %r15, %r14
addq $0x4, %r14
movq 0x8(%rsp), %r15
callq 0xf74bd
movq %rax, %r10
subq $0x8, %rsp
movq 0x48(%rsp), %rdi
leaq 0x8c420(%rip), %rsi     # 0x132b96
movq 0x58(%rsp), %rdx
movl %ebp, %ecx
movq %r15, %r8
movq %rdi, %r15
movl %r12d, %r9d
xorl %eax, %eax
pushq %rbx
pushq %r14
pushq %r10
callq 0xe9226
addq $0x20, %rsp
leaq (%rbx,%r14), %rdx
cmpq %r13, %rdx
jle 0xa67b3
movq %r15, %rdi
leaq 0x8c425(%rip), %rsi     # 0x132bce
movq %r13, %rcx
xorl %eax, %eax
callq 0xe9b27
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xa6809
testq %rbx, %rbx
movq %rbx, %rcx
movl $0x0, %edx
cmovleq %rdx, %rcx
addq %r14, %rcx
cmpq %r13, %rcx
cmovgeq %r13, %rcx
movq %r14, 0x28(%rsp)
movq %r14, 0x20(%rsp)
movq %rcx, 0x30(%rsp)
movq %r15, %rdi
movq 0x18(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rsp, %rcx
callq *%rax
jmp 0xa688d
movl 0x4(%rsp), %eax
testb $0x4, %al
jne 0xa6847
cmpl $0x2, (%r15)
jl 0xa688d
movq 0x18(%r15), %rsi
xorl %r10d, %r10d
testb $0x10, %al
sete %r10b
subq $0x8, %rsp
movl $0x100, %r8d            # imm = 0x100
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
xorl %r9d, %r9d
pushq %r10
callq 0xe975a
addq $0x10, %rsp
jmp 0xa688d
testq %rbx, %rbx
movq %rbx, %rax
movl $0x0, %ecx
cmovleq %rcx, %rax
addq %r14, %rax
cmpq %r13, %rax
cmovgeq %r13, %rax
movq %r14, 0x28(%rsp)
movq %r14, 0x20(%rsp)
movq %rax, 0x30(%rsp)
movq %r15, %rdi
movq 0x18(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movl $0x1, %ecx
leaq 0x9e348(%rip), %r8      # 0x144bd0
callq 0xa8173
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %rbx, %rdi
callq 0xea7d5
movq %rax, %rbx
addq %r14, %rbx
xorl %ebp, %ebp
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0xa68b9
callq 0xf6bb0
testb %bpl, %bpl
jne 0xa68e3
cmpq %r13, %rbx
cmovlq %rbx, %r13
subq %r12, %r13
movq %r13, %r12
movq 0x48(%rsp), %rax
addq (%rax), %r12
movq %r12, (%rax)
movq 0x10(%rax), %r13
cmpq %r13, %r12
jl 0xa652c
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq