// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/iptc.c
// Function: de_run_iptc
static void de_run_iptc(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 pos;
	i64 bytes_consumed;
	i64 ds_count;

	d = de_malloc(c, sizeof(lctx));
	d->charset = DE_ENCODING_UNKNOWN;

	pos = 0;
	ds_count = 0;
	while(1) {
		if(pos>=c->infile->len) break;
		if(!do_dataset(c, d, ds_count, pos, &bytes_consumed)) break;
		if(bytes_consumed<=0) break;
		ds_count++;
		pos += bytes_consumed;
	}

	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r14
pushq $0x4
popq %rsi
callq 0xdecaf
movq %rax, 0x18(%rsp)
andl $0x0, (%rax)
xorl %r13d, %r13d
xorl %ebx, %ebx
movq %r14, 0x40(%rsp)
movq 0x18(%r14), %rdi
cmpq 0x18(%rdi), %r13
jge 0x7a6a2
movq %r13, %rsi
callq 0xe3eb4
cmpb $0x1c, %al
jne 0x7a6be
movq %rbx, 0x48(%rsp)
leaq 0x1(%r13), %rsi
movq 0x18(%r14), %rdi
leaq 0x2(%r13), %rbx
callq 0xe3eb4
movl %eax, %ebp
movq 0x18(%r14), %rdi
leaq 0x3(%r13), %r12
movq %rbx, %rsi
callq 0xe3eb4
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
xorl %r15d, %r15d
leaq 0x10bd3f(%rip), %rcx    # 0x186240
movq %r13, 0x50(%rsp)
movb %al, 0x17(%rsp)
cmpq $0x738, %r15            # imm = 0x738
je 0x7a526
cmpb %bpl, (%r15,%rcx)
jne 0x7a520
cmpb %al, 0x1(%r15,%rcx)
je 0x7a53d
addq $0x18, %r15
jmp 0x7a50a
movb %bpl, 0x20(%rsp)
movb %al, 0x21(%rsp)
leaq 0xa49ab(%rip), %rax     # 0x11eee1
movq %rax, 0x28(%rsp)
jmp 0x7a551
movq 0x10(%r15,%rcx), %rax
movq %rax, 0x30(%rsp)
movups (%r15,%rcx), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x18(%r14), %rdi
movq %rdi, 0x60(%rsp)
movq %r12, %rsi
callq 0xe3f46
movq %rax, %rbx
movq %r12, %rax
movq %rbx, %r12
pushq $0x2
popq %r13
cmpq $0x8000, %rbx           # imm = 0x8000
jl 0x7a5d8
movq %rax, 0x58(%rsp)
leaq -0x8000(%rbx), %r14
addq $-0x7ffe, %rbx          # imm = 0x8002
movq 0x50(%rsp), %rax
leaq 0x5(%rax), %r13
xorl %r12d, %r12d
subq $0x1, %r14
jb 0x7a5cb
shlq $0x8, %r12
movq 0x60(%rsp), %rdi
movq %r13, %rsi
callq 0xe3eb4
movzbl %al, %eax
orq %rax, %r12
incq %r13
movabsq $0x1000000000000, %rax  # imm = 0x1000000000000
cmpq %rax, %r12
jl 0x7a597
jmp 0x7a68c
movq %rbx, %r13
movq 0x40(%rsp), %r14
movq 0x58(%rsp), %rax
addq %rax, %r13
movzbl %bpl, %edx
movzbl 0x17(%rsp), %ecx
movq 0x28(%rsp), %r8
movq %r12, (%rsp)
movq %r14, %rdi
leaq 0xa255c(%rip), %rsi     # 0x11cb53
movq %r13, %r9
xorl %eax, %eax
callq 0xde896
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x7a632
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %r13, %rcx
movq %r12, %r8
callq *%rax
movq 0x48(%rsp), %rbx
jmp 0x7a666
testb $0x1, 0x24(%rsp)
movq 0x48(%rsp), %rbx
jne 0x7a64e
cmpq $0x738, %r15            # imm = 0x738
jne 0x7a666
cmpb $0x2, 0x20(%rsp)
jne 0x7a666
movq %r14, %rdi
movq 0x18(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %r13, %rcx
movq %r12, %r8
callq 0x7a765
movq %r14, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq %r12, %rax
subq 0x50(%rsp), %rax
addq %r13, %rax
testq %rax, %rax
jle 0x7a6a2
incq %rbx
addq %r12, %r13
jmp 0x7a4a3
leaq 0xa29d9(%rip), %rsi     # 0x11d06c
movq 0x40(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0xdf2a5
movq %r14, %rdi
movq 0x18(%rsp), %rsi
callq 0xded32
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rbx, %rbx
je 0x7a6eb
testb %al, %al
jne 0x7a6eb
movq 0x18(%r14), %rax
movq 0x18(%rax), %rdx
leaq -0x1(%rdx), %rax
cmpq %r13, %rax
jne 0x7a704
leaq 0xa23ef(%rip), %rsi     # 0x11cace
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
jmp 0x7a6a2
movzbl %al, %edx
leaq 0xa243b(%rip), %rsi     # 0x11cb30
movq %r14, %rdi
movl %r13d, %ecx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x7a6a2
leaq 0xa23f1(%rip), %rsi     # 0x11cafc
movq %r14, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0xdf05a
jmp 0x7a6a2