// File: /workspace/github_c_makefile_star2_O3/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 %rbx
pushq %rax
movq %rdi, %r15
movl 0x74c9(%rip), %edi      # 0x9c90
testl %edi, %edi
je 0x293a
movq %rdx, %r14
movq %rsi, %rbx
cmpl $0x0, 0x74a8(%rip)      # 0x9c84
je 0x2852
cmpl $0x0, 0x74a3(%rip)      # 0x9c88
jne 0x2852
movl %ecx, %ebp
movq %rbx, %rsi
callq 0x2c69
cmpl 0x7489(%rip), %eax      # 0x9c80
je 0x292a
testl %ebp, %ebp
jne 0x293a
cmpl $0x2, 0x7480(%rip)      # 0x9c8c
jne 0x293a
leaq 0x2925(%rip), %rsi      # 0x513e
movl $0x2, %edx
movq %r15, %rdi
callq 0x270b
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x270b
leaq 0x2a14(%rip), %rsi      # 0x524f
movl $0x1, %edx
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x270b
movl 0x7428(%rip), %eax      # 0x9c80
cmpl $0x13, %eax
jne 0x28bd
movl 0x7439(%rip), %eax      # 0x9c9c
testq %rax, %rax
je 0x292a
leaq 0x27bd(%rip), %rbx      # 0x5030
movslq (%rbx,%rax,4), %rcx
shlq $0x5, %rcx
leaq 0x7316(%rip), %r14      # 0x9b98
cmpl 0x20(%rcx,%r14), %eax
jbe 0x292a
leaq (%rcx,%r14), %rdi
addq $0x8, %rdi
movq 0x7404(%rip), %rsi      # 0x9ca0
movq 0x7405(%rip), %rdx      # 0x9ca8
callq 0x2bd6
movl 0x73ee(%rip), %eax      # 0x9c9c
movslq (%rbx,%rax,4), %rcx
shlq $0x5, %rcx
movl %eax, 0x20(%rcx,%r14)
jmp 0x292a
cmpl $0x7, %eax
jne 0x2916
testb $0x1, 0x73cf(%rip)      # 0x9c98
je 0x2916
cmpl $0x6, 0x7326(%rip)      # 0x9bf8
ja 0x292a
movq 0x7305(%rip), %rax      # 0x9be0
testq %rax, %rax
je 0x28e3
movb $0x0, (%rax)
movq $0x0, 0x72fa(%rip) # 0x9be8
movq 0x732b(%rip), %rsi      # 0x9c20
movq 0x732c(%rip), %rdx      # 0x9c28
leaq 0x72dd(%rip), %rdi      # 0x9be0
callq 0x2bd6
movl 0x7372(%rip), %eax      # 0x9c80
movl %eax, 0x72e4(%rip)      # 0x9bf8
jmp 0x292a
testl %eax, %eax
je 0x2945
movq %rbx, %rsi
callq 0x2c69
cmpl 0x7358(%rip), %eax      # 0x9c80
jne 0x293a
xorl %eax, %eax
movq %rax, 0x734d(%rip)      # 0x9c80
movq %rax, 0x725e(%rip)      # 0x9b98
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1, %edi
je 0x295e
cmpl $0x2, %edi
jne 0x293a
cmpq $0x5, %r14
jne 0x293a
leaq 0x27e5(%rip), %rsi      # 0x5141
jmp 0x296b
cmpq $0x4, %r14
jne 0x293a
leaq 0x27dc(%rip), %rsi      # 0x5147
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
jne 0x293a
callq 0x2ccb
movl $0x20, %eax
leaq 0x7210(%rip), %rcx      # 0x9b98
movq -0x18(%rax,%rcx), %rdx
testq %rdx, %rdx
je 0x2995
movb $0x0, (%rdx)
movq $0x0, -0x10(%rax,%rcx)
movl $0x0, (%rax,%rcx)
addq $0x20, %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x2988
movq $0x0, 0x72d0(%rip) # 0x9c8c
jmp 0x292a