// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %r9, %rbx
movq 0x20(%rsp), %r14
movl 0x78ec(%rip), %edx      # 0x9c84
testl %edx, %edx
sete %al
movl 0x78e5(%rip), %esi      # 0x9c88
testl %esi, %esi
setne %r9b
orb %al, %r9b
je 0x2439
movl 0x78d8(%rip), %eax      # 0x9c90
testl %eax, %eax
je 0x2624
testl %esi, %esi
setne %sil
testl %edx, %edx
sete %dl
andb %sil, %dl
cmpb $0x1, %dl
jne 0x2458
cmpq $0x4, %r8
jne 0x2624
leaq 0x2ce8(%rip), %rsi      # 0x50d0
movq %rcx, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2624
addq $-0x4, %r14
cmpq $0x6, %r14
ja 0x2624
leaq 0x2c03(%rip), %rax      # 0x5010
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x2cbd(%rip), %rsi      # 0x50da
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x261a
leaq 0x2cb6(%rip), %rsi      # 0x50ea
jmp 0x2602
cmpl $0x2, 0x784c(%rip)      # 0x9c8c
jne 0x2624
movq %rbx, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x270b
cmpl $0x2, %eax
je 0x24b9
cmpl $0x1, %eax
jne 0x2624
movl 0x7814(%rip), %eax      # 0x9c80
cmpl $0x7, %eax
je 0x253d
cmpl $0x9, %eax
jne 0x2624
cmpq $0x3, %r8
jne 0x2624
leaq 0x2c6b(%rip), %rsi      # 0x50fa
movq %rcx, %rdi
callq 0x2040
testl %eax, %eax
sete %al
movq 0x76f5(%rip), %rdi      # 0x9b98
testq %rdi, %rdi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
je 0x25a5
jmp 0x2624
cmpl $0x13, 0x77c0(%rip)     # 0x9c80
jne 0x2624
cmpq $0x4, %r8
je 0x2587
cmpq $0x3, %r8
jne 0x2624
leaq 0x2c2e(%rip), %rsi      # 0x510f
movq %rcx, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2624
testq %r14, %r14
je 0x262c
cmpq $0x9, %r14
jne 0x252e
leaq 0x2c0c(%rip), %rsi      # 0x5113
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x262c
leaq 0x2bff(%rip), %rsi      # 0x511d
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x2638
movl $0x0, 0x7764(%rip)      # 0x9c9c
jmp 0x2624
cmpq $0xb, %r8
jne 0x2624
leaq 0x2bb0(%rip), %rsi      # 0x50fe
movq %rcx, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2624
cmpq $0x4, %r14
jne 0x257b
leaq 0x2b9f(%rip), %rsi      # 0x510a
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x2624
movb $0x0, 0x7716(%rip)      # 0x9c98
jmp 0x2624
leaq 0x2b99(%rip), %rsi      # 0x5127
movq %rcx, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2624
leaq 0x76fb(%rip), %rdi      # 0x9ca0
movq %rbx, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2bd6
leaq 0x2b17(%rip), %rsi      # 0x50d5
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2624
jmp 0x261a
leaq 0x2b11(%rip), %rsi      # 0x50e4
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x261a
leaq 0x2b0e(%rip), %rsi      # 0x50f4
jmp 0x2602
leaq 0x2af0(%rip), %rsi      # 0x50df
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
je 0x261a
leaq 0x2aed(%rip), %rsi      # 0x50ef
movq %rbx, %rdi
callq 0x2040
testl %eax, %eax
jne 0x2624
movl $0x1, 0x7674(%rip)      # 0x9c8c
jmp 0x2624
movl $0x2, 0x7668(%rip)      # 0x9c8c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x14, 0x7666(%rip)     # 0x9c9c
jmp 0x2624
movl $0x15, 0x765a(%rip)     # 0x9c9c
jmp 0x2624