// File: /workspace/github_c_makefile_star2_O1/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, %r12
movl $0x4, %esi
callq 0xe969b
movq %rax, %r13
movl $0x0, (%rax)
movq 0x18(%r12), %rdi
cmpq $0x0, 0x18(%rdi)
jle 0x7f79e
leaq 0x103ce9(%rip), %r15    # 0x183190
xorl %ebx, %ebx
xorl %ebp, %ebp
movq %r12, 0x50(%rsp)
movq %r13, 0x18(%rsp)
movq %rbp, %rsi
callq 0xef0d5
cmpb $0x1c, %al
jne 0x7f54a
movq %rbx, 0x20(%rsp)
leaq 0x1(%rbp), %rsi
movq 0x18(%r12), %rdi
leaq 0x2(%rbp), %rbx
callq 0xef0d5
movq %rbp, %rcx
movl %eax, %ebp
movq 0x18(%r12), %rdi
movq %rcx, 0x28(%rsp)
leaq 0x3(%rcx), %r14
movq %rbx, %rsi
callq 0xef0d5
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movl $0x1, %edx
movb %al, 0x13(%rsp)
cmpb %bpl, -0x1(%rdx,%r15)
jne 0x7f51e
cmpb %al, (%rdx,%r15)
je 0x7f59a
addq $0x18, %rdx
cmpq $0x739, %rdx            # imm = 0x739
jne 0x7f511
movb %bpl, 0x30(%rsp)
movb %al, 0x31(%rsp)
leaq 0xac92e(%rip), %rax     # 0x12be69
movq %rax, 0x38(%rsp)
movl $0x0, 0x14(%rsp)
jmp 0x7f5b5
testq %rbx, %rbx
je 0x7f57f
testb %al, %al
jne 0x7f57f
movq 0x18(%r12), %rax
movq 0x18(%rax), %rdx
leaq -0x1(%rdx), %rax
movq %r12, %rdi
cmpq %rbp, %rax
jne 0x7f64a
leaq 0xaa53b(%rip), %rsi     # 0x129aae
xorl %eax, %eax
callq 0xe9226
jmp 0x7f65b
movzbl %al, %edx
movq %r12, %rdi
leaq 0xaa584(%rip), %rsi     # 0x129b10
movl %ebp, %ecx
xorl %eax, %eax
callq 0xe9df7
jmp 0x7f65b
movq 0xf(%rdx,%r15), %rcx
movq %rcx, 0x40(%rsp)
movups -0x1(%rdx,%r15), %xmm0
movaps %xmm0, 0x30(%rsp)
movb $0x1, %al
movl %eax, 0x14(%rsp)
movq 0x18(%r12), %r15
movq %r15, %rdi
movq %r14, 0x60(%rsp)
movq %r14, %rsi
callq 0xef169
movq %rax, %r14
cmpq $0x8000, %rax           # imm = 0x8000
jge 0x7f5dc
movl $0x2, %ebx
jmp 0x7f5ef
leaq -0x7ffe(%r14), %rbx
cmpq $0x8000, %r14           # imm = 0x8000
jne 0x7f5f6
xorl %r14d, %r14d
xorl %eax, %eax
jmp 0x7f687
movq %rbx, 0x58(%rsp)
movq 0x28(%rsp), %rax
leaq 0x5(%rax), %rbx
addq $-0x8000, %r14          # imm = 0x8000
movq %r14, %r12
xorl %r14d, %r14d
movq %r14, %r13
shlq $0x8, %r13
movq %r15, %rdi
movq %rbx, %rsi
callq 0xef0d5
movzbl %al, %r14d
orq %r13, %r14
movabsq $0x1000000000000, %rax  # imm = 0x1000000000000
cmpq %rax, %r14
jge 0x7f665
incq %rbx
decq %r12
jne 0x7f611
xorl %eax, %eax
movq 0x50(%rsp), %r12
jmp 0x7f67d
leaq 0xaa48b(%rip), %rsi     # 0x129adc
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe9b27
movb $0x1, %al
xorl %r14d, %r14d
jmp 0x7f780
movq 0x50(%rsp), %r12
movq %r12, %rdi
leaq 0xaa9d8(%rip), %rsi     # 0x12a04c
xorl %eax, %eax
callq 0xe9df7
movb $0x1, %al
movq 0x18(%rsp), %r13
movq 0x58(%rsp), %rbx
testb %al, %al
leaq 0x103b00(%rip), %r15    # 0x183190
je 0x7f6a6
movb $0x1, %al
xorl %r14d, %r14d
movq 0x20(%rsp), %rbx
movq 0x28(%rsp), %rbp
jmp 0x7f780
addq 0x60(%rsp), %rbx
movzbl %bpl, %edx
movzbl 0x13(%rsp), %ecx
movq 0x38(%rsp), %r8
movq %r14, (%rsp)
movq %r12, %rdi
leaq 0xaa46c(%rip), %rsi     # 0x129b33
movq %rbx, %r9
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x7f70a
movq %r12, %rdi
movq %r13, %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rcx
movq %r14, %r8
callq *%rax
movq %rbx, %r13
movq 0x20(%rsp), %rbx
movq 0x28(%rsp), %rbp
jmp 0x7f766
testb $0x1, 0x34(%rsp)
movq 0x28(%rsp), %rbp
jne 0x7f748
cmpb $0x2, 0x30(%rsp)
setne %al
movl 0x14(%rsp), %ecx
orb %al, %cl
movq %rbx, %r13
movq 0x20(%rsp), %rbx
jne 0x7f766
movq %r12, %rdi
movq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r13, %rcx
movq %r14, %r8
callq 0x7f807
jmp 0x7f766
movq %r12, %rdi
movq %r13, %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rcx
movq %r14, %r8
callq 0x7f807
movq %rbx, %r13
movq 0x20(%rsp), %rbx
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
subq %rbp, %r14
addq %r13, %r14
xorl %eax, %eax
movq 0x18(%rsp), %r13
testb %al, %al
jne 0x7f79e
testq %r14, %r14
jle 0x7f79e
incq %rbx
addq %r14, %rbp
movq 0x18(%r12), %rdi
cmpq 0x18(%rdi), %rbp
jl 0x7f4b5
movq %r12, %rdi
movq %r13, %rsi
callq 0xe9752
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq