// File: /workspace/github_c_makefile_star2_O2/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 %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdx), %rax
leaq 0x30(%rsp), %r13
movq %rsi, 0x48(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x10(%r14), %rcx
cmpq %rcx, %rax
jge 0x9fdff
movq %rax, 0x38(%rsp)
movq %rax, 0x30(%rsp)
movq %rcx, 0x40(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
leaq 0x68(%rsp), %rcx
callq 0x9fe82
movl 0x6c(%rsp), %eax
leaq 0x861cb(%rip), %rcx     # 0x125c66
cmpl $0x3842494d, %eax       # imm = 0x3842494D
je 0x9fae4
cmpl $0x50485554, %eax       # imm = 0x50485554
je 0x9facb
cmpl $0x44435352, %eax       # imm = 0x44435352
je 0x9fadd
cmpl $0x4d655361, %eax       # imm = 0x4D655361
je 0x9fad4
cmpl $0x41674867, %eax       # imm = 0x41674867
jne 0x9fde5
leaq 0x861a7(%rip), %rcx     # 0x125c70
jmp 0x9fae4
leaq 0x861ad(%rip), %rcx     # 0x125c7f
jmp 0x9fae4
leaq 0x8619f(%rip), %rcx     # 0x125c7a
jmp 0x9fae4
leaq 0x86191(%rip), %rcx     # 0x125c75
movq %rcx, 0x60(%rsp)
movq 0x18(%rbx), %rdi
movl 0x4(%r12), %edx
movq %r13, %rsi
callq 0x9feb0
movq %rax, %r15
movq %rbx, %rdi
callq 0xeac74
movq %rax, %rdx
movq 0x30(%rsp), %r14
movq 0x40(%rsp), %rax
movq %r14, 0x20(%rsp)
movq %r14, 0x18(%rsp)
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %rdx, 0x50(%rsp)
leaq 0x18(%rsp), %rcx
callq 0x9fec2
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
movq %rdx, %rdi
subq %rax, %rdi
jle 0x9fb5a
movq 0x18(%rsp), %rcx
cmpq %rdx, %rcx
jg 0x9fb5c
subq %rax, %rcx
movq %rcx, %rdi
jmp 0x9fb5c
xorl %edi, %edi
callq 0xdfb87
addq %r14, %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rbx), %rdi
movl 0x4(%r12), %edx
movq %r13, %rsi
callq 0x9fe70
movq %rax, %rbp
movl 0x6c(%rsp), %eax
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
cmpl $0x50485554, %eax       # imm = 0x50485554
jne 0x9fbb0
movw %r15w, (%rsp)
leaq 0x7f340(%rip), %r13     # 0x11eee1
movq %r13, 0x8(%rsp)
movq 0x50(%rsp), %rdi
jmp 0x9fc57
xorl %ecx, %ecx
leaq 0xe8a67(%rip), %rdx     # 0x188620
movq 0x50(%rsp), %rdi
leaq 0x18(%rcx), %rax
cmpq $0x858, %rax            # imm = 0x858
je 0x9fbff
cmpw %r15w, (%rcx,%rdx)
movq %rax, %rcx
jne 0x9fbbe
movups -0x18(%rax,%rdx), %xmm0
movaps %xmm0, (%rsp)
movq -0x8(%rax,%rdx), %rax
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %r13
testq %r13, %r13
jne 0x9fc57
leaq 0x7f2e9(%rip), %r13     # 0x11eee1
movq %r13, 0x8(%rsp)
jmp 0x9fc57
movw %r15w, (%rsp)
leaq 0x7f2d6(%rip), %r13     # 0x11eee1
movq %r13, 0x8(%rsp)
leal -0x7d0(%r15), %eax
cmpw $0x3e6, %ax             # imm = 0x3E6
ja 0x9fc32
leaq 0x86111(%rip), %r13     # 0x125d35
movq %r13, 0x8(%rsp)
leaq 0x332(%rip), %rax       # 0x9ff62
jmp 0x9fc52
leal -0xfa0(%r15), %eax
cmpw $0x3e7, %ax             # imm = 0x3E7
ja 0x9fc57
leaq 0x86100(%rip), %r13     # 0x125d46
movq %r13, 0x8(%rsp)
leaq 0x315(%rip), %rax       # 0x9ff67
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %r14
callq 0xeb7e4
movq %rax, %r10
movq 0x30(%rsp), %r12
subq $0x8, %rsp
movq %rbx, %rdi
leaq 0x8603f(%rip), %rsi     # 0x125cb6
movq 0x68(%rsp), %rdx
movl %r15d, %ecx
movq %r13, %r8
movl %r14d, %r9d
xorl %eax, %eax
pushq %rbp
pushq %r12
pushq %r10
callq 0xde896
addq $0x20, %rsp
leaq (%r12,%rbp), %rdx
movq 0x40(%rsp), %r15
cmpq %r15, %rdx
jle 0x9fcb7
movq %rbx, %rdi
leaq 0x86041(%rip), %rsi     # 0x125cee
movq %r15, %rcx
xorl %eax, %eax
callq 0xdf05a
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x9fd08
testq %rbp, %rbp
movq %rbp, %rcx
movl $0x0, %edx
cmovleq %rdx, %rcx
addq %r12, %rcx
cmpq %r15, %rcx
cmovgeq %r15, %rcx
movq %r12, 0x20(%rsp)
movq %r12, 0x18(%rsp)
movq %rcx, 0x28(%rsp)
movq %rbx, %rdi
movq 0x48(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %rsp, %rcx
callq *%rax
jmp 0x9fd87
movl 0x4(%rsp), %eax
testb $0x4, %al
jne 0x9fd43
cmpl $0x2, (%rbx)
jl 0x9fd87
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 %rbp, %rcx
xorl %r9d, %r9d
pushq %r10
callq 0xded3a
popq %rax
popq %rcx
jmp 0x9fd87
testq %rbp, %rbp
movq %rbp, %rax
movl $0x0, %ecx
cmovleq %rcx, %rax
addq %r12, %rax
cmpq %r15, %rax
cmovgeq %r15, %rax
movq %r12, 0x20(%rsp)
movq %r12, 0x18(%rsp)
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
movq 0x48(%rsp), %rsi
leaq 0x18(%rsp), %rdx
pushq $0x1
popq %rcx
leaq 0x97ede(%rip), %r8      # 0x137c60
callq 0xa147d
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq %rbp, %rdi
callq 0xdfb87
movq %rax, %r13
addq %r12, %r13
movq %r13, 0x30(%rsp)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x9fdb4
callq 0xeaf3c
movq %r15, %rax
subq %r14, %rax
movq 0x48(%rsp), %r12
jle 0x9fdce
cmpq %r15, %r13
jg 0x9fdd0
subq %r14, %r13
movq %r13, %rax
jmp 0x9fdd0
xorl %eax, %eax
movq 0x58(%rsp), %r14
addq (%r14), %rax
movq %rax, (%r14)
leaq 0x30(%rsp), %r13
jmp 0x9fa61
leaq 0x70(%rsp), %rdx
movl 0x38(%rsp), %ecx
leaq 0x85e8f(%rip), %rsi     # 0x125c84
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf05a
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq