// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/id3.c
// Function: decode_id3v2_frame_geob
static void decode_id3v2_frame_geob(deark *c, id3v2ctx *d,
	dbuf *f, i64 pos1, i64 len)
{
	u8 id3_encoding;
	i64 pos = pos1;
	de_ucstring *mimetype = NULL;
	de_ucstring *filename = NULL;
	de_ucstring *description = NULL;
	i64 bytes_consumed = 0;
	int ret;
	i64 objlen;

	id3_encoding = dbuf_getbyte(f, pos++);
	de_dbg(c, "text encoding: %d (%s)", (int)id3_encoding,
		get_id3v2_textenc_name(d, id3_encoding));

	mimetype = ucstring_create(c);
	ret = read_id3v2_terminated_string(c, d, f, pos, pos1+len-pos, 256, ID3ENC_ISO_8859_1,
		mimetype, &bytes_consumed);
	if(!ret) goto done;
	de_dbg(c, "mime type: \"%s\"", ucstring_getpsz(mimetype));
	pos += bytes_consumed;

	filename = ucstring_create(c);
	ret = read_id3v2_terminated_string(c, d, f, pos, pos1+len-pos, 256, id3_encoding,
		filename, &bytes_consumed);
	if(!ret) goto done;
	de_dbg(c, "filename: \"%s\"", ucstring_getpsz(filename));
	pos += bytes_consumed;

	description = ucstring_create(c);
	ret = read_id3v2_terminated_string(c, d, f, pos, pos1+len-pos, 256, id3_encoding,
		description, &bytes_consumed);
	if(!ret) goto done;
	de_dbg(c, "description: \"%s\"", ucstring_getpsz(description));
	pos += bytes_consumed;

	objlen = pos1+len-pos;
	if(objlen<1) goto done;

	de_dbg(c, "[%d bytes of encapsulated object data]", (int)objlen);

	if(c->extract_level>=2) {
		dbuf_create_file_from_slice(f, pos, objlen, "encobj.bin",
			NULL, DE_CREATEFLAG_IS_AUX);
	}
	else if(c->debug_level>=2) {
		de_dbg_indent(c, 1);
		de_dbg_hexdump(c, f, pos, objlen, 256, NULL, 0x1);
		de_dbg_indent(c, -1);
	}

done:
	ucstring_destroy(mimetype);
	ucstring_destroy(filename);
	ucstring_destroy(description);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, %r13
movq %rsi, %rbx
movq %rdi, %r15
movq $0x0, 0x18(%rsp)
leaq 0x1(%rcx), %r12
movq %rdx, %rbp
movq %rdx, %rdi
movq %rcx, %rsi
callq 0xef0d5
movzbl %al, %edx
cmpb $0x3, %dl
ja 0x76343
leaq 0xb13db(%rip), %rax     # 0x1276d4
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0xb19eb(%rip), %rcx     # 0x127cf4
jmp 0x7634a
leaq 0xb1a0c(%rip), %rcx     # 0x127d1e
jmp 0x7634a
leaq 0xaddbe(%rip), %rcx     # 0x1240d9
jmp 0x7634a
movb 0x30(%rbx), %al
cmpb $0x3, %al
leaq 0xb19dc(%rip), %rcx     # 0x127d05
leaq 0xb19e1(%rip), %rsi     # 0x127d11
cmoveq %rcx, %rsi
cmpb $0x2, %al
leaq 0xb19c2(%rip), %rcx     # 0x127cff
cmovneq %rsi, %rcx
jmp 0x7634a
leaq 0xb5b1f(%rip), %rcx     # 0x12be69
leaq 0xb1988(%rip), %rsi     # 0x127cd9
movq %r15, %rdi
xorl %eax, %eax
movq %rdx, 0x10(%rsp)
callq 0xe9226
movq %r15, %rdi
callq 0xf6870
movq %rax, %r14
movq 0x8(%rsp), %rbx
leaq -0x1(%rbx), %rcx
leaq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
xorl %r8d, %r8d
movq %r14, %r9
callq 0x769ce
testl %eax, %eax
je 0x764c9
addq %r13, %rbx
movq %r14, %rdi
callq 0xf74bd
leaq 0xb19ab(%rip), %rsi     # 0x127d56
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
addq 0x18(%rsp), %r12
movq %r15, %rdi
callq 0xf6870
movq %rax, %r13
movq %rbx, %rcx
subq %r12, %rcx
leaq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq 0x10(%rsp), %r8
movq %r13, %r9
callq 0x769ce
testl %eax, %eax
je 0x764d0
movq %r14, 0x8(%rsp)
movq %r13, %rdi
movq %rbp, %r14
callq 0xf74bd
leaq 0xc55c8(%rip), %rsi     # 0x13b9d4
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
addq 0x18(%rsp), %r12
movq %r15, %rdi
callq 0xf6870
movq %rax, %rbp
movq %rbx, %rcx
subq %r12, %rcx
leaq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq %r15, %rdi
movq %r14, 0x20(%rsp)
movq %r14, %rsi
movq %r12, %rdx
movq 0x10(%rsp), %r8
movq %rbp, %r9
callq 0x769ce
testl %eax, %eax
je 0x7651c
movq %rbp, 0x10(%rsp)
movq %rbp, %rdi
callq 0xf74bd
leaq 0xb18d5(%rip), %rsi     # 0x127d44
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
addq 0x18(%rsp), %r12
subq %r12, %rbx
jle 0x76517
leaq 0xb18d5(%rip), %rsi     # 0x127d66
movq %r15, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
cmpl $0x2, 0x90(%r15)
jl 0x764d4
leaq 0xb18df(%rip), %rcx     # 0x127d8d
movq 0x20(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0xf0321
jmp 0x76517
xorl %ebp, %ebp
xorl %r13d, %r13d
jmp 0x76521
xorl %ebp, %ebp
jmp 0x76521
cmpl $0x2, (%r15)
jl 0x76517
movq %r15, %rdi
movl $0x1, %esi
callq 0xe9585
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %r15, %rdi
movq 0x20(%rsp), %rsi
movq %r12, %rdx
movq %rbx, %rcx
xorl %r9d, %r9d
callq 0xe975a
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x10(%rsp), %rbp
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xf6bb0
movq %r13, %rdi
callq 0xf6bb0
movq %rbp, %rdi
callq 0xf6bb0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq