// File: /workspace/github_c_makefile_star2_O0/jsummers[P]deark/modules/jpeg.c
// Function: print_summary
static void print_summary(deark *c, lctx *d)
{
	de_ucstring *summary = NULL;

	if(d->is_jpegls) goto done;
	if(d->is_pegasus_pic2) goto done;
	if(!d->found_sof) goto done;
	if(!d->found_soi) goto done;

	summary = ucstring_create(c);

	if(d->is_baseline) ucstring_append_sz(summary, " baseline", DE_ENCODING_LATIN1);
	if(d->is_lossless) ucstring_append_sz(summary, " lossless", DE_ENCODING_LATIN1);
	if(d->is_progressive) ucstring_append_sz(summary, " progressive", DE_ENCODING_LATIN1);
	if(d->is_arithmetic) ucstring_append_sz(summary, " arithmetic", DE_ENCODING_LATIN1);
	if(d->is_hierarchical) ucstring_append_sz(summary, " hierarchical", DE_ENCODING_LATIN1);
	ucstring_printf(summary, DE_ENCODING_LATIN1, " cmpts=%d", (int)d->ncomp);
	if(d->is_subsampled) {
		// The subsampling type code printed here is not the standard way to denote
		// subsampling, but the standard notation is incomprehensible, and doesn't
		// cover all the possible cases.
		ucstring_append_sz(summary, " subsampling=", DE_ENCODING_LATIN1);
		ucstring_append_ucstring(summary, d->sampling_code);
	}
	ucstring_printf(summary, DE_ENCODING_LATIN1, " bits=%d", (int)d->precision);

	if(d->has_restart_markers) ucstring_append_sz(summary, " rst", DE_ENCODING_LATIN1);
	if(d->has_jfif_seg) {
		ucstring_printf(summary, DE_ENCODING_LATIN1, " JFIF=%u.%02u",
			(unsigned int)d->jfif_ver_h, (unsigned int)d->jfif_ver_l);
	}
	if(d->has_spiff_seg) ucstring_append_sz(summary, " SPIFF", DE_ENCODING_LATIN1);
	if(d->has_exif_seg) {
		ucstring_append_sz(summary, " Exif", DE_ENCODING_LATIN1);
		if(d->exif_version_as_uint32!=0) {
			char tmps[5];
			exif_version_to_string(d->exif_version_as_uint32, tmps);
			ucstring_printf(summary, DE_ENCODING_LATIN1, "=%s", tmps);
		}
	}
	if(d->has_adobeapp14)
		ucstring_printf(summary, DE_ENCODING_LATIN1, " colorxform=%d", (int)d->color_transform);
	if(d->has_revcolorxform) ucstring_append_sz(summary, " rev-colorxform", DE_ENCODING_LATIN1);

	if(d->has_jfif_thumb) ucstring_append_sz(summary, " JFIFthumbnail", DE_ENCODING_LATIN1);
	if(d->has_jfxx_seg) ucstring_append_sz(summary, " JFXX", DE_ENCODING_LATIN1);
	if(d->has_flashpix) ucstring_append_sz(summary, " FlashPix", DE_ENCODING_LATIN1);
	if(d->is_jpeghdr) ucstring_append_sz(summary, " HDR", DE_ENCODING_LATIN1);
	if(d->is_jpegxt) ucstring_append_sz(summary, " XT", DE_ENCODING_LATIN1);
	if(d->has_jumbf && !d->is_jpegxt) ucstring_append_sz(summary, " JUMBF", DE_ENCODING_LATIN1);
	if(d->has_mpf_seg) ucstring_append_sz(summary, " MPO", DE_ENCODING_LATIN1);
	if(d->is_jps) ucstring_append_sz(summary, " JPS", DE_ENCODING_LATIN1);
	if(d->has_iccprofile) ucstring_append_sz(summary, " ICC", DE_ENCODING_LATIN1);
	if(d->has_xmp) ucstring_append_sz(summary, " XMP", DE_ENCODING_LATIN1);
	if(d->has_xmp_ext) ucstring_append_sz(summary, " XMPext", DE_ENCODING_LATIN1);
	if(d->has_psd) ucstring_append_sz(summary, " PSD", DE_ENCODING_LATIN1);
	if(d->has_iptc) ucstring_append_sz(summary, " IPTC", DE_ENCODING_LATIN1);
	if(d->has_exif_gps) ucstring_append_sz(summary, " GPS", DE_ENCODING_LATIN1);
	if(d->has_afcp) ucstring_append_sz(summary, " AFCP", DE_ENCODING_LATIN1);

	if(d->scan_count!=1) ucstring_printf(summary, DE_ENCODING_LATIN1, " scans=%d", d->scan_count);

	de_dbg(c, "summary:%s", ucstring_getpsz(summary));

done:
	ucstring_destroy(summary);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0xbc016
jmp 0xbc49b
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1(%rax)
je 0xbc025
jmp 0xbc49b
movq -0x10(%rbp), %rax
cmpb $0x0, 0x29(%rax)
jne 0xbc034
jmp 0xbc49b
movq -0x10(%rbp), %rax
cmpb $0x0, 0x28(%rax)
jne 0xbc043
jmp 0xbc49b
movq -0x8(%rbp), %rdi
callq 0x1711d0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, 0x12(%rax)
je 0xbc06f
movq -0x18(%rbp), %rdi
leaq 0xfb32c(%rip), %rsi     # 0x1b7391
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x14(%rax)
je 0xbc08e
movq -0x18(%rbp), %rdi
leaq 0xfb317(%rip), %rsi     # 0x1b739b
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x13(%rax)
je 0xbc0ad
movq -0x18(%rbp), %rdi
leaq 0xfb302(%rip), %rsi     # 0x1b73a5
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x15(%rax)
je 0xbc0cc
movq -0x18(%rbp), %rdi
leaq 0xfb2f0(%rip), %rsi     # 0x1b73b2
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x16(%rax)
je 0xbc0eb
movq -0x18(%rbp), %rdi
leaq 0xfb2dd(%rip), %rsi     # 0x1b73be
movl $0x5, %edx
callq 0x1715e0
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movl %eax, %ecx
movl $0x5, %esi
leaq 0xfb2c7(%rip), %rdx     # 0x1b73cc
movb $0x0, %al
callq 0x171660
movq -0x10(%rbp), %rax
cmpl $0x0, 0x98(%rax)
je 0xbc142
movq -0x18(%rbp), %rdi
leaq 0xfb2b2(%rip), %rsi     # 0x1b73d6
movl $0x5, %edx
callq 0x1715e0
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0xa0(%rax), %rsi
callq 0x171460
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x1c(%rax), %ecx
movl $0x5, %esi
leaq 0xfb28a(%rip), %rdx     # 0x1b73e4
movb $0x0, %al
callq 0x171660
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1b(%rax)
je 0xbc180
movq -0x18(%rbp), %rdi
leaq 0xfb277(%rip), %rsi     # 0x1b73ed
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x2(%rax)
je 0xbc1b2
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x38(%rax), %ecx
movq -0x10(%rbp), %rax
movzbl 0x39(%rax), %r8d
movl $0x5, %esi
leaq 0xfb247(%rip), %rdx     # 0x1b73f2
movb $0x0, %al
callq 0x171660
movq -0x10(%rbp), %rax
cmpb $0x0, 0x7(%rax)
je 0xbc1d1
movq -0x18(%rbp), %rdi
leaq 0xfb239(%rip), %rsi     # 0x1b7400
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x5(%rax)
je 0xbc227
movq -0x18(%rbp), %rdi
leaq 0xfb221(%rip), %rsi     # 0x1b7407
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpl $0x0, 0x40(%rax)
je 0xbc225
movq -0x10(%rbp), %rax
movl 0x40(%rax), %edi
leaq -0x1d(%rbp), %rsi
callq 0xc0e90
movq -0x18(%rbp), %rdi
leaq -0x1d(%rbp), %rcx
movl $0x5, %esi
leaq 0xf0b33(%rip), %rdx     # 0x1acd51
movb $0x0, %al
callq 0x171660
jmp 0xbc227
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1d(%rax)
je 0xbc250
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x1e(%rax), %ecx
movl $0x5, %esi
leaq 0xfb1c4(%rip), %rdx     # 0x1b740d
movb $0x0, %al
callq 0x171660
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1f(%rax)
je 0xbc26f
movq -0x18(%rbp), %rdi
leaq 0xfb1b7(%rip), %rsi     # 0x1b741c
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x3(%rax)
je 0xbc28e
movq -0x18(%rbp), %rdi
leaq 0xfb1a8(%rip), %rsi     # 0x1b742c
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x4(%rax)
je 0xbc2ad
movq -0x18(%rbp), %rdi
leaq 0xfb198(%rip), %rsi     # 0x1b743b
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x10(%rax)
je 0xbc2cc
movq -0x18(%rbp), %rdi
leaq 0xfb17f(%rip), %rsi     # 0x1b7441
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x17(%rax)
je 0xbc2eb
movq -0x18(%rbp), %rdi
leaq 0xfb16a(%rip), %rsi     # 0x1b744b
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x18(%rax)
je 0xbc30a
movq -0x18(%rbp), %rdi
leaq 0xfaf31(%rip), %rsi     # 0x1b7231
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
movzbl 0x11(%rax), %eax
cmpl $0x0, %eax
je 0xbc336
movq -0x10(%rbp), %rax
cmpb $0x0, 0x18(%rax)
jne 0xbc336
movq -0x18(%rbp), %rdi
leaq 0xfb124(%rip), %rsi     # 0x1b7450
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x8(%rax)
je 0xbc355
movq -0x18(%rbp), %rdi
leaq 0xfb10c(%rip), %rsi     # 0x1b7457
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x1a(%rax)
je 0xbc374
movq -0x18(%rbp), %rdi
leaq 0xfb0f2(%rip), %rsi     # 0x1b745c
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0xf(%rax)
je 0xbc393
movq -0x18(%rbp), %rdi
leaq 0xfb0d8(%rip), %rsi     # 0x1b7461
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0xd(%rax)
je 0xbc3b2
movq -0x18(%rbp), %rdi
leaq 0xfb0be(%rip), %rsi     # 0x1b7466
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0xe(%rax)
je 0xbc3d1
movq -0x18(%rbp), %rdi
leaq 0xfb0a4(%rip), %rsi     # 0x1b746b
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0xb(%rax)
je 0xbc3f0
movq -0x18(%rbp), %rdi
leaq 0x102486(%rip), %rsi    # 0x1be86c
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0xc(%rax)
je 0xbc40f
movq -0x18(%rbp), %rdi
leaq 0x119b31(%rip), %rsi    # 0x1d5f36
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x6(%rax)
je 0xbc42e
movq -0x18(%rbp), %rdi
leaq 0xfb04f(%rip), %rsi     # 0x1b7473
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpb $0x0, 0x9(%rax)
je 0xbc44d
movq -0x18(%rbp), %rdi
leaq 0xfb035(%rip), %rsi     # 0x1b7478
movl $0x5, %edx
callq 0x1715e0
movq -0x10(%rbp), %rax
cmpl $0x1, 0x24(%rax)
je 0xbc475
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x24(%rax), %ecx
movl $0x5, %esi
leaq 0xfb010(%rip), %rdx     # 0x1b747e
movb $0x0, %al
callq 0x171660
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0x172500
movq -0x28(%rbp), %rdi
movq %rax, %rdx
leaq 0xf8b20(%rip), %rsi     # 0x1b4fb4
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rdi
callq 0x171750
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)