// File: /workspace/github_c_makefile_star2_O1/dxwc[P]sfeed/sfeed.c
// Function: xmlattr
static void
xmlattr(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl,
	const char *v, size_t vl)
{
	/* handles transforming inline XML to data */
	if (ISINCONTENT(ctx)) {
		if (ctx.contenttype == ContentTypeHTML)
			xmldata(p, v, vl);
		return;
	}

	if (ctx.feedtype == FeedTypeNone)
		return;

	/* content-type may be: Atom: text, xhtml, html or mime-type.
	   MRSS (media:description): plain, html. */
	if (ISCONTENTTAG(ctx)) {
		if (isattr(n, nl, STRP("type"))) {
			if (isattr(v, vl, STRP("html")) ||
			    isattr(v, vl, STRP("xhtml")) ||
			    isattr(v, vl, STRP("text/html")) ||
			    isattr(v, vl, STRP("text/xhtml"))) {
				ctx.contenttype = ContentTypeHTML;
			} else if (isattr(v, vl, STRP("text")) ||
			           isattr(v, vl, STRP("plain")) ||
				   isattr(v, vl, STRP("text/plain"))) {
				ctx.contenttype = ContentTypePlain;
			}
		}
		return;
	}

	if (ctx.feedtype == FeedTypeRSS) {
		if (ctx.tagid == RSSTagEnclosure &&
		    isattr(n, nl, STRP("url")) && ctx.field) {
			string_append(ctx.field, v, vl);
		} else if (ctx.tagid == RSSTagGuid &&
		           isattr(n, nl, STRP("ispermalink")) &&
		           !isattr(v, vl, STRP("true"))) {
			rssidpermalink = 0;
		}
	} else if (ctx.feedtype == FeedTypeAtom) {
		if (ctx.tagid == AtomTagLink &&
		           isattr(n, nl, STRP("rel"))) {
			/* empty or "alternate": other types could be
			   "enclosure", "related", "self" or "via" */
			if (!vl || isattr(v, vl, STRP("alternate")))
				atomlinktype = AtomTagLinkAlternate;
			else if (isattr(v, vl, STRP("enclosure")))
				atomlinktype = AtomTagLinkEnclosure;
			else
				atomlinktype = TagUnknown;
		} else if (ctx.tagid == AtomTagLink &&
		           isattr(n, nl, STRP("href"))) {
			string_append(&atomlink, v, vl);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %rbx
movq %rcx, %r15
movq 0x30(%rsp), %r14
movl 0x78e5(%rip), %ecx      # 0x9c84
testl %ecx, %ecx
sete %al
movl 0x78de(%rip), %edx      # 0x9c88
testl %edx, %edx
setne %sil
orb %al, %sil
je 0x24d6
movl 0x78d1(%rip), %eax      # 0x9c90
testl %eax, %eax
je 0x2677
movq %r8, %r12
testl %edx, %edx
setne %dl
testl %ecx, %ecx
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x24f6
cmpq $0x4, %r12
jne 0x2677
leaq 0x2c14(%rip), %rsi      # 0x5004
movq %r15, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2677
cmpq $0x4, %r14
jne 0x241d
leaq 0x2c01(%rip), %rsi      # 0x500e
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x25a8
cmpq $0x5, %r14
jne 0x243a
leaq 0x2bee(%rip), %rsi      # 0x5018
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x25a8
cmpq $0x9, %r14
jne 0x2457
leaq 0x2bc2(%rip), %rsi      # 0x5009
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x25a8
cmpq $0xa, %r14
jne 0x2474
leaq 0x2baf(%rip), %rsi      # 0x5013
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x25a8
cmpq $0x4, %r14
jne 0x248d
leaq 0x2b9d(%rip), %rsi      # 0x501e
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x24c7
cmpq $0x5, %r14
jne 0x24a6
leaq 0x2b8e(%rip), %rsi      # 0x5028
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x24c7
cmpq $0xa, %r14
jne 0x2677
leaq 0x2b6c(%rip), %rsi      # 0x5023
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2677
movl $0x1, 0x77bb(%rip)      # 0x9c8c
jmp 0x2677
cmpl $0x2, 0x77af(%rip)      # 0x9c8c
jne 0x2677
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x274a
cmpl $0x2, %eax
je 0x253c
cmpl $0x1, %eax
jne 0x2677
movl 0x7776(%rip), %ebp      # 0x9c80
cmpl $0x7, %ebp
je 0x259d
cmpl $0x9, %ebp
jne 0x2677
cmpq $0x3, %r12
jne 0x25b7
leaq 0x2b01(%rip), %rsi      # 0x502e
movq %r15, %rdi
callq 0x2040
testl %eax, %eax
sete %al
jmp 0x25b9
movl 0x773e(%rip), %ebp      # 0x9c80
cmpl $0x13, %ebp
jne 0x2677
cmpq $0x3, %r12
jne 0x2568
leaq 0x2aeb(%rip), %rsi      # 0x5043
movq %r15, %rdi
callq 0x2040
testl %eax, %eax
je 0x262a
cmpl $0x13, %ebp
setne %al
cmpq $0x4, %r12
setne %cl
orb %al, %cl
jne 0x2677
leaq 0x2ad7(%rip), %rsi      # 0x505b
movq %r15, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2677
leaq 0x7705(%rip), %rdi      # 0x9ca0
jmp 0x25cd
cmpq $0xb, %r12
je 0x25f5
jmp 0x2677
movl $0x2, 0x76da(%rip)      # 0x9c8c
jmp 0x2677
xorl %eax, %eax
movq 0x75d8(%rip), %rdi      # 0x9b98
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x25e0
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2c5b
cmpl $0x7, %ebp
sete %al
cmpq $0xb, %r12
sete %cl
testb %al, %cl
je 0x2677
leaq 0x2a36(%rip), %rsi      # 0x5032
movq %r15, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2677
cmpq $0x4, %r14
jne 0x2621
leaq 0x2a29(%rip), %rsi      # 0x503e
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x2677
movb $0x0, 0x7670(%rip)      # 0x9c98
jmp 0x2677
testq %r14, %r14
je 0x266d
cmpq $0x9, %r14
jne 0x2661
leaq 0x2a0b(%rip), %rsi      # 0x5047
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x266d
cmpq $0x9, %r14
jne 0x2661
leaq 0x29fc(%rip), %rsi      # 0x5051
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x2680
movl $0x0, 0x7631(%rip)      # 0x9c9c
jmp 0x2677
movl $0x14, 0x7625(%rip)     # 0x9c9c
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x15, 0x7612(%rip)     # 0x9c9c
jmp 0x2677