// File: /workspace/github_c_makefile_star2_O1/dxwc[P]sfeed/sfeed.c
// Function: xmltagend
static void
xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
{
	size_t i;

	if (ctx.feedtype == FeedTypeNone)
		return;

	if (ISINCONTENT(ctx)) {
		/* not close content field */
		if (gettag(ctx.feedtype, t, tl) != ctx.tagid) {
			if (!isshort && ctx.contenttype == ContentTypeHTML) {
				xmldata(p, "</", 2);
				xmldata(p, t, tl);
				xmldata(p, ">", 1);
			}
			return;
		}
	} else if (ctx.tagid == AtomTagLink) {
		/* map tag type to field: unknown or lesser priority is ignored,
		   when tags of the same type are repeated only the first is used. */
		if (atomlinktype && atomlinktype > ctx.fields[fieldmap[atomlinktype]].tagid) {
			string_append(&ctx.fields[fieldmap[atomlinktype]].str,
			              atomlink.data, atomlink.len);
			ctx.fields[fieldmap[atomlinktype]].tagid = atomlinktype;
		}
	} else if (ctx.tagid == RSSTagGuid && rssidpermalink) {
		if (ctx.tagid > ctx.fields[FeedFieldLink].tagid) {
			string_clear(&ctx.fields[FeedFieldLink].str);
			string_append(&ctx.fields[FeedFieldLink].str,
			             ctx.fields[FeedFieldId].str.data,
			             ctx.fields[FeedFieldId].str.len);
			ctx.fields[FeedFieldLink].tagid = ctx.tagid;
		}
	} else if (!ctx.tagid && ((ctx.feedtype == FeedTypeAtom &&
	   istag(t, tl, STRP("entry"))) || /* Atom */
	   (ctx.feedtype == FeedTypeRSS &&
	   istag(t, tl, STRP("item"))))) /* RSS */
	{
		/* end of RSS or Atom entry / item */
		printfields();

		/* clear strings */
		for (i = 0; i < FeedFieldLast; i++) {
			string_clear(&ctx.fields[i].str);
			ctx.fields[i].tagid = TagUnknown;
		}
		ctx.contenttype = ContentTypeNone;
		/* allow parsing of Atom and RSS concatenated in one XML stream. */
		ctx.feedtype = FeedTypeNone;
	} else if (!ctx.tagid ||
	           gettag(ctx.feedtype, t, tl) != ctx.tagid) {
		/* not end of field */
		return;
	}
	/* close field */
	ctx.iscontent = 0;
	ctx.tagid = TagUnknown;
	ctx.field = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x748c(%rip), %ebp      # 0x9c90
testl %ebp, %ebp
je 0x29dd
movq %rdx, %r14
movq %rsi, %rbx
cmpl $0x0, 0x746b(%rip)      # 0x9c84
je 0x2894
cmpl $0x0, 0x7466(%rip)      # 0x9c88
jne 0x2894
movl %ecx, %r12d
movq %rdi, %r15
movl %ebp, %edi
movq %rbx, %rsi
callq 0x2ce8
cmpl 0x7446(%rip), %eax      # 0x9c80
je 0x29cd
testl %r12d, %r12d
jne 0x29dd
cmpl $0x2, 0x743c(%rip)      # 0x9c8c
jne 0x29dd
leaq 0x2815(%rip), %rsi      # 0x5072
movl $0x2, %edx
movq %r15, %rdi
callq 0x274a
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x274a
leaq 0x2904(%rip), %rsi      # 0x5183
movl $0x1, %edx
movq %r15, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x274a
movl 0x73e5(%rip), %r15d     # 0x9c80
cmpl $0x13, %r15d
jne 0x2904
movl 0x73f5(%rip), %eax      # 0x9c9c
testq %rax, %rax
je 0x29cd
leaq 0x28d9(%rip), %rbx      # 0x5190
movslq (%rbx,%rax,4), %rcx
shlq $0x5, %rcx
leaq 0x72d2(%rip), %r14      # 0x9b98
cmpl 0x20(%rcx,%r14), %eax
jbe 0x29cd
leaq (%rcx,%r14), %rdi
addq $0x8, %rdi
movq 0x73c0(%rip), %rsi      # 0x9ca0
movq 0x73c1(%rip), %rdx      # 0x9ca8
callq 0x2c5b
movl 0x73aa(%rip), %eax      # 0x9c9c
movslq (%rbx,%rax,4), %rcx
shlq $0x5, %rcx
movl %eax, 0x20(%rcx,%r14)
jmp 0x29cd
cmpl $0x7, %r15d
jne 0x2962
testb $0x1, 0x7387(%rip)      # 0x9c98
je 0x2962
cmpl $0x6, 0x72de(%rip)      # 0x9bf8
ja 0x29cd
movq 0x72b9(%rip), %rax      # 0x9be0
testq %rax, %rax
je 0x292f
movb $0x0, (%rax)
movq $0x0, 0x72ae(%rip) # 0x9be8
movq 0x72df(%rip), %rsi      # 0x9c20
movq 0x72e0(%rip), %rdx      # 0x9c28
leaq 0x7291(%rip), %rdi      # 0x9be0
callq 0x2c5b
movl 0x7326(%rip), %eax      # 0x9c80
movl %eax, 0x7298(%rip)      # 0x9bf8
jmp 0x29cd
testl %r15d, %r15d
jne 0x29bb
cmpl $0x1, %ebp
je 0x299d
cmpl $0x2, %ebp
jne 0x29b6
cmpq $0x5, %r14
jne 0x298a
leaq 0x26f7(%rip), %rsi      # 0x5075
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x29e6
cmpl $0x1, %ebp
sete %al
cmpq $0x4, %r14
sete %cl
testb %al, %cl
jne 0x29a3
jmp 0x29b6
cmpq $0x4, %r14
jne 0x29b6
leaq 0x26d1(%rip), %rsi      # 0x507b
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x29e6
testl %r15d, %r15d
je 0x29dd
movl %ebp, %edi
movq %rbx, %rsi
callq 0x2ce8
cmpl 0x72b5(%rip), %eax      # 0x9c80
jne 0x29dd
xorl %eax, %eax
movq %rax, 0x72aa(%rip)      # 0x9c80
movq %rax, 0x71bb(%rip)      # 0x9b98
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x2d47
movl $0x20, %eax
leaq 0x71a1(%rip), %rcx      # 0x9b98
movq -0x18(%rax,%rcx), %rdx
testq %rdx, %rdx
je 0x2a04
movb $0x0, (%rdx)
movq $0x0, -0x10(%rax,%rcx)
movl $0x0, (%rax,%rcx)
addq $0x20, %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x29f7
movq $0x0, 0x7261(%rip) # 0x9c8c
jmp 0x29cd