LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/preload/posix/../../libfiu/hash.c
// Function: cache_invalidate
static void _cache_invalidate(struct cache *c)
{
	size_t i;
	struct entry *entry;

	for (i = 0; i < c->hash->table_size; i++) {
		entry = c->hash->entries + i;
		if (entry->in_use == IN_USE) {
			free(entry->key);
			entry->key = NULL;
			entry->value = NULL;
			entry->in_use = NEVER;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rax
cmpq $0x0, 0x8(%rax)
je 0x11508
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rax), %r12
cmpl $0x1, 0x10(%r12,%r14)
jne 0x114fb
addq %r14, %r12
movq (%r12), %rdi
callq 0x3030
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movl $0x0, 0x10(%r12)
movq (%rbx), %rax
incq %r15
addq $0x18, %r14
cmpq 0x8(%rax), %r15
jb 0x114d0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/preload/posix/../../libfiu/hash.c
// Function: resize_table
static bool resize_table(struct hash *h, size_t new_size)
{
	size_t i;
	struct entry *old_entries, *e;
	size_t old_size;

	/* Do not resize below minimum size; however, continue anyway to clear
	 * up removed entries. */
	if (new_size < MIN_SIZE) {
		new_size = MIN_SIZE;
	}

	old_entries = h->entries;
	old_size = h->table_size;

	h->entries = malloc(sizeof(struct entry) * new_size);
	if (h->entries == NULL)
		return false;

	memset(h->entries, 0, sizeof(struct entry) * new_size);
	h->table_size = new_size;
	h->nentries = 0;
	h->nremoved = 0;

	/* Insert the old entries into the new table. We use the internal
	 * version _hash_set() to avoid copying the keys again. */
	for (i = 0; i < old_size; i++) {
		e = old_entries + i;
		if (e->in_use == IN_USE)
			_hash_set(h, e->key, e->value);
	}

	free(old_entries);

	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0xb, %rsi
movl $0xa, %ebp
cmovaeq %rsi, %rbp
movq (%rdi), %r14
movq 0x8(%rdi), %r13
leaq (,%rbp,8), %rax
leaq (%rax,%rax,2), %r12
movq %r12, %rdi
callq 0x3220
movq %rax, %r15
movq %rax, (%rbx)
testq %rax, %rax
je 0x115f6
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x3100
movq %rbp, 0x8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
testq %r13, %r13
je 0x115ee
leaq 0x10(%r14), %r12
cmpl $0x1, (%r12)
jne 0x115e5
movq -0x10(%r12), %rsi
movq -0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x1118d
addq $0x18, %r12
decq %r13
jne 0x115cc
movq %r14, %rdi
callq 0x3030
testq %r15, %r15
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/preload/posix/../../libfiu/hash.c
// Function: cache_get
bool cache_get(struct cache *c, const char *key, void **value)
{
	pthread_rwlock_rdlock(&c->lock);
	struct entry *e = entry_for_key(c, key);

	*value = NULL;

	if (e->in_use != IN_USE)
		goto miss;

	if (strcmp(key, e->key) == 0) {
		*value = e->value;
		goto hit;
	} else {
		goto miss;
	}

hit:
	pthread_rwlock_unlock(&c->lock);
	return true;

miss:
	pthread_rwlock_unlock(&c->lock);
	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x10(%rdi), %rbx
movq %rbx, %rdi
callq 0x3110
movq %r15, %rdi
callq 0x30c0
movq %r15, %rdi
movq %rax, %rsi
callq 0x110e1
movl %eax, %eax
movq (%r12), %rcx
xorl %r12d, %r12d
xorl %edx, %edx
divq 0x8(%rcx)
movq (%rcx), %rax
leaq (%rdx,%rdx,2), %rcx
movq $0x0, (%r14)
cmpl $0x1, 0x10(%rax,%rcx,8)
jne 0x116be
leaq (%rax,%rcx,8), %r12
movq (%r12), %rsi
movq %r15, %rdi
callq 0x3140
testl %eax, %eax
je 0x116b3
xorl %r12d, %r12d
jmp 0x116be
movq 0x8(%r12), %rax
movq %rax, (%r14)
movb $0x1, %r12b
movq %rbx, %rdi
callq 0x31b0
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/preload/posix/../../libfiu/hash.c
// Function: cache_set
bool cache_set(struct cache *c, const char *key, void *value)
{
	pthread_rwlock_wrlock(&c->lock);
	struct entry *e = entry_for_key(c, key);

	if (e->in_use == IN_USE)
		free(e->key);

	e->in_use = IN_USE;

	e->key = strdup(key);
	e->value = value;

	pthread_rwlock_unlock(&c->lock);
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
leaq 0x10(%rdi), %r14
movq %r14, %rdi
callq 0x3080
movq %r15, %rdi
callq 0x30c0
movq %r15, %rdi
movq %rax, %rsi
callq 0x110e1
movl %eax, %eax
movq (%r12), %rcx
xorl %edx, %edx
divq 0x8(%rcx)
movq (%rcx), %rax
leaq (%rdx,%rdx,2), %rcx
leaq (%rax,%rcx,8), %r12
cmpl $0x1, 0x10(%r12)
jne 0x1172d
movq (%r12), %rdi
callq 0x3030
movl $0x1, 0x10(%r12)
movq %r15, %rdi
callq 0x31d0
movq %rax, (%r12)
movq %rbx, 0x8(%r12)
movq %r14, %rdi
callq 0x31b0
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/albertito[P]libfiu/preload/posix/../../libfiu/hash.c
// Function: cache_del
bool cache_del(struct cache *c, const char *key)
{
	pthread_rwlock_wrlock(&c->lock);
	struct entry *e = entry_for_key(c, key);

	if (e->in_use == IN_USE && strcmp(e->key, key) == 0) {
		free(e->key);
		e->key = NULL;
		e->value = NULL;
		e->in_use = NEVER;
		pthread_rwlock_unlock(&c->lock);
		return true;
	}

	pthread_rwlock_unlock(&c->lock);
	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rdi), %rbx
movq %rbx, %rdi
callq 0x3080
movq %r14, %rdi
callq 0x30c0
movq %r14, %rdi
movq %rax, %rsi
callq 0x110e1
movl %eax, %eax
movq (%r15), %rcx
xorl %r15d, %r15d
xorl %edx, %edx
divq 0x8(%rcx)
movq (%rcx), %rax
leaq (%rdx,%rdx,2), %rcx
cmpl $0x1, 0x10(%rax,%rcx,8)
jne 0x117de
leaq (%rax,%rcx,8), %r12
movq (%r12), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x3140
testl %eax, %eax
je 0x117c2
xorl %r15d, %r15d
jmp 0x117de
movq %r15, %rdi
callq 0x3030
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movl $0x0, 0x10(%r12)
movb $0x1, %r15b
movq %rbx, %rdi
callq 0x31b0
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/string_buffer.c
// Function: gumbo_string_buffer_append_codepoint
HOT void gumbo_string_buffer_append_codepoint (
  int c,
  GumboStringBuffer* output
) {
  // num_bytes is actually the number of continuation bytes, 1 less than the
  // total number of bytes. This is done to keep the loop below simple and
  // should probably change if we unroll it.
  int num_bytes;
  int prefix;
  if (c <= 0x7f) {
    num_bytes = 0;
    prefix = 0;
  } else if (c <= 0x7ff) {
    num_bytes = 1;
    prefix = 0xc0;
  } else if (c <= 0xffff) {
    num_bytes = 2;
    prefix = 0xe0;
  } else {
    num_bytes = 3;
    prefix = 0xf0;
  }
  maybe_resize_string_buffer(num_bytes + 1, output);
  output->data[output->length++] = prefix | (c >> (num_bytes * 6));
  for (int i = num_bytes - 1; i >= 0; --i) {
    output->data[output->length++] = 0x80 | (0x3f & (c >> (i * 6)));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movl %edi, %ebp
xorl %r15d, %r15d
movl $0x0, %r12d
cmpl $0x80, %edi
jl 0x4375
cmpl $0x800, %ebp            # imm = 0x800
jae 0x4356
movl $0xc0, %r12d
movl $0x1, %r15d
jmp 0x4375
xorl %r12d, %r12d
cmpl $0x10000, %ebp          # imm = 0x10000
setae %r12b
movl $0x3, %r15d
sbbl $0x0, %r15d
orl $0xe, %r12d
shll $0x4, %r12d
leal 0x1(%r15), %r14d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7499
leal (%r15,%r15), %eax
leal (%rax,%rax,2), %ecx
movl %ebp, %eax
sarl %cl, %eax
orl %r12d, %eax
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
movb %al, (%rcx,%rdx)
testl %r15d, %r15d
je 0x43da
leal (%r15,%r15,2), %eax
leal -0x6(,%rax,2), %ecx
movl %ebp, %eax
sarl %cl, %eax
andb $0x3f, %al
orb $-0x80, %al
movq (%rbx), %rdx
movq 0x8(%rbx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x8(%rbx)
movb %al, (%rdx,%rsi)
decl %r14d
addl $-0x6, %ecx
cmpl $0x1, %r14d
ja 0x43b4
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/utf8.c
// Function: utf8iterator_next
static void update_position(Utf8Iterator* iter) {
  iter->_pos.offset += iter->_width;
  switch (iter->_current) {
  case '\n':
    ++iter->_pos.line;
    iter->_pos.column = 1;
    break;
  case '\t': {
    int tab_stop = iter->_parser->_options->tab_stop;
    iter->_pos.column = ((iter->_pos.column / tab_stop) + 1) * tab_stop;
    break;
  }
  case -1:
    break;
  default:
    ++iter->_pos.column;
    break;
  }
}

// Assembly:
movq 0x20(%rdi), %rcx
addq %rcx, 0x38(%rdi)
movl 0x18(%rdi), %eax
cmpl $-0x1, %eax
je 0x442f
cmpl $0x9, %eax
je 0x440b
cmpl $0xa, %eax
jne 0x442b
incq 0x28(%rdi)
movq $0x1, 0x30(%rdi)
jmp 0x442f
movq 0x30(%rdi), %rax
movq 0x58(%rdi), %rdx
movq (%rdx), %rdx
movslq (%rdx), %rsi
xorl %edx, %edx
divq %rsi
incq %rax
imulq %rsi, %rax
movq %rax, 0x30(%rdi)
jmp 0x442f
incq 0x30(%rdi)
addq %rcx, (%rdi)
jmp 0x7849
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/parser.c
// Function: handle_text
static HOT bool handle_text(GumboParser* parser, GumboToken* token) {
  if (
    token->type == GUMBO_TOKEN_CHARACTER
    || token->type == GUMBO_TOKEN_WHITESPACE
  ) {
    insert_text_token(parser, token);
  } else {
    // We provide only bare-bones script handling that doesn't involve any of
    // the parser-pause/already-started/script-nesting flags or re-entrant
    // invocations of the tokenizer. Because the intended usage of this library
    // is mostly for templating, refactoring, and static-analysis libraries, we
    // provide the script body as a text-node child of the <script> element.
    // This behavior doesn't support document.write of partial HTML elements,
    // but should be adequate for almost all other scripting support.
    if (token->type == GUMBO_TOKEN_EOF) {
      parser_add_parse_error(parser, token);
      parser->_parser_state->_reprocess_current_token = true;
    }
    pop_current_node(parser);
    set_insertion_mode(parser, parser->_parser_state->_original_insertion_mode);
  }
  return true;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rsi), %eax
leal -0x4(%rax), %ecx
cmpl $0x2, %ecx
jae 0x61c6
movq %rbx, %rdi
callq 0xaf71
jmp 0x61ec
cmpl $0x8, %eax
jne 0x61db
movq %rbx, %rdi
callq 0x7d9d
movq 0x18(%rbx), %rax
movb $0x1, 0x50(%rax)
movq %rbx, %rdi
callq 0xaffb
movq 0x18(%rbx), %rax
movl 0x4(%rax), %ecx
movl %ecx, (%rax)
movb $0x1, %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/gumbo/parse.c
// Function: parse
static int parse(lua_State *L)
{
    GumboOptions options = kGumboDefaultOptions;
    options.max_errors = 0;
    size_t input_len;
    const char *input = luaL_checklstring(L, 1, &input_len);
    options.tab_stop = (int)luaL_optinteger(L, 2, 8);

    size_t tagname_len;
    const char *tagname = luaL_optlstring(L, 3, NULL, &tagname_len);
    if (tagname != NULL) {
        options.fragment_context = gumbo_tagn_enum(tagname, tagname_len);
    }

    static const char *namespaces[] = {"html", "svg", "math", NULL};
    options.fragment_namespace = luaL_checkoption(L, 4, "html", namespaces);

    for (int i = 1; i <= nupvalues; i++) {
        luaL_checktype(L, i + 4, LUA_TTABLE);
    }
    lua_pushcclosure(L, push_document, nupvalues);

    GumboOutput *output = gumbo_parse_with_options(&options, input, input_len);
    if (unlikely(output == NULL)) {
        lua_pushnil(L);
        lua_pushliteral(L, "gumbo_parse_with_options() returned NULL");
        return 2;
    }

    GumboOutputStatus status = output->status;
    if (unlikely(status != GUMBO_STATUS_OK)) {
        gumbo_destroy_output(output);
        lua_pushnil(L);
        lua_pushstring(L, gumbo_status_to_string(status));
        return 2;
    }

    lua_pushlightuserdata(L, &output->document->v.document);
    int err = lua_pcall(L, 1, 1, 0);
    gumbo_destroy_output(output);
    if (unlikely(err != 0)) { // LUA_OK
        lua_pushnil(L);
        lua_pushvalue(L, -2);
        return 2;
    }
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x13326(%rip), %rax     # 0x1976c
movups (%rax), %xmm0
movaps %xmm0, (%rsp)
movl 0x10(%rax), %eax
movl %eax, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
leaq 0x20(%rsp), %rdx
movl $0x1, %esi
callq 0x4140
movq %rax, %r14
movl $0x8, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x41a0
movl %eax, (%rsp)
leaq 0x18(%rsp), %rcx
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x40d0
testq %rax, %rax
je 0x64ad
movq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x77cb
movl %eax, 0x10(%rsp)
leaq 0x159c5(%rip), %rdx     # 0x1be79
leaq 0x4eca5(%rip), %rcx     # 0x55160
movq %rbx, %rdi
movl $0x4, %esi
callq 0x4090
movl %eax, 0x14(%rsp)
movl $0x5, %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl $0x5, %edx
callq 0x41e0
incl %ebp
cmpl $0xe, %ebp
jne 0x64d1
leaq 0x9d(%rip), %rsi        # 0x658b
movq %rbx, %rdi
movl $0x9, %edx
callq 0x4070
movq 0x20(%rsp), %rdx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x4437
testq %rax, %rax
je 0x6565
movq %rax, %r14
movl 0x20(%rax), %edx
testl %edx, %edx
jne 0x656f
movq (%r14), %rsi
addq $0x18, %rsi
movq %rbx, %rdi
callq 0x41f0
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x4280
movl %eax, %r15d
movq %r14, %rdi
callq 0x7fd6
testl %r15d, %r15d
jne 0x657c
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x42e4
jmp 0x6584
movq %r14, %rdi
movq %rbx, %rsi
callq 0x42a0
jmp 0x6584
movq %rbx, %rdi
callq 0x42ce
movl $0x2, %ebp
jmp 0x6558
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/gumbo/parse.c
// Function: push_document
static int push_document(lua_State *L)
{
    const GumboDocument *document = lua_touserdata(L, 1);
    lua_createtable(L, 0, 4);
    if (document->has_doctype) {
        set_integer(L, "quirksModeEnum", document->doc_type_quirks_mode);
        set_children(L, &document->children, 2);
        lua_getfield(L, -1, "childNodes");
        lua_createtable(L, 0, 3); // doctype
        set_string(L, "name", document->name);
        set_string(L, "publicId", document->public_identifier);
        set_string(L, "systemId", document->system_identifier);
        setmetatable(L, DocumentType);
        lua_rawseti(L, -2, 1); // childNodes[1] = doctype
        lua_pop(L, 1);
    } else {
        set_children(L, &document->children, 1);
    }
    setmetatable(L, Document);
    return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x4060
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
movl $0x4, %edx
callq 0x40a0
cmpb $0x1, 0x10(%r14)
jne 0x66c7
leaq 0x11aa6(%rip), %rsi     # 0x18066
movq %rbx, %rdi
callq 0x4260
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x4130
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
movq %rbx, %rdi
movq %r14, %rsi
movl $0x2, %edx
callq 0x66fe
leaq 0x11a7d(%rip), %rdx     # 0x18075
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4270
movq %rbx, %rdi
xorl %esi, %esi
movl $0x3, %edx
callq 0x40a0
leaq 0x11e4a(%rip), %rsi     # 0x18465
movq %rbx, %rdi
callq 0x4260
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
leaq 0x11a3d(%rip), %rsi     # 0x18080
movq %rbx, %rdi
callq 0x4260
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
leaq 0x11a1e(%rip), %rsi     # 0x18089
movq %rbx, %rdi
callq 0x4260
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
movq %rbx, %rdi
movl $0xfff0b9d2, %esi       # imm = 0xFFF0B9D2
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4170
movl $0x1, %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4180
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4040
jmp 0x66d7
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x66fe
movq %rbx, %rdi
movl $0xfff0b9d3, %esi       # imm = 0xFFF0B9D3
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4170
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/gumbo/parse.c
// Function: set_tag
static void set_tag(lua_State *L, const GumboElement *element)
{
    if (element->tag_namespace == GUMBO_NAMESPACE_SVG) {
        set_literal(L, "namespace", "svg");
        GumboStringPiece original_tag = element->original_tag;
        gumbo_tag_from_original_text(&original_tag);
        const char *normalized = gumbo_normalize_svg_tagname(&original_tag);
        if (normalized) {
            set_string(L, "localName", normalized);
            return;
        }
    } else if (element->tag_namespace == GUMBO_NAMESPACE_MATHML) {
        set_literal(L, "namespace", "math");
    }
    if (element->tag == GUMBO_TAG_UNKNOWN) {
        GumboStringPiece original_tag = element->original_tag;
        gumbo_tag_from_original_text(&original_tag);
        pushstring_lower(L, original_tag.data, original_tag.length);
    } else {
        lua_pushstring(L, gumbo_normalized_tagname(element->tag));
    }
    lua_setfield(L, -2, "localName");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x2030, %rsp           # imm = 0x2030
movq %rsi, %r14
movq %rdi, %rbx
movl 0x14(%rsi), %eax
cmpl $0x2, %eax
je 0x6afd
cmpl $0x1, %eax
jne 0x6b28
leaq 0x11696(%rip), %rsi     # 0x1811d
movq %rbx, %rdi
callq 0x4260
leaq 0x16912(%rip), %rsi     # 0x1d3a8
movq %rbx, %rdi
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
movups 0x18(%r14), %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq %r15, %rdi
callq 0x76cd
movq %r15, %rdi
callq 0x7d14
testq %rax, %rax
je 0x6b28
movq %rax, %r15
leaq 0x115f3(%rip), %rsi     # 0x180cb
movq %rbx, %rdi
callq 0x4260
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
jmp 0x6bbd
leaq 0x11619(%rip), %rsi     # 0x1811d
movq %rbx, %rdi
callq 0x4260
leaq 0x11525(%rip), %rsi     # 0x18038
movq %rbx, %rdi
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
movl 0x10(%r14), %edi
cmpl $0x96, %edi
jne 0x6b99
movups 0x18(%r14), %xmm0
movq %rsp, %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
callq 0x76cd
movq (%r14), %r15
movq 0x8(%r14), %r14
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x41d0
testq %r14, %r14
je 0x6b89
xorl %ecx, %ecx
leaq 0x115e3(%rip), %rdx     # 0x18150
movzbl (%r15,%rcx), %esi
movb (%rdx,%rsi), %dil
andb $0x20, %dil
orb %sil, %dil
movb %dil, (%rax,%rcx)
incq %rcx
cmpq %rcx, %r14
jne 0x6b6d
leaq 0x10(%rsp), %rdi
addq %r14, 0x10(%rdi)
callq 0x40e0
jmp 0x6ba9
callq 0x7694
movq %rbx, %rdi
movq %rax, %rsi
callq 0x4260
leaq 0x1151b(%rip), %rdx     # 0x180cb
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4110
addq $0x2030, %rsp           # imm = 0x2030
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/gumbo/parse.c
// Function: set_sourcepos
static void set_sourcepos(lua_State *L, const GumboSourcePosition pos)
{
    if (pos.line != 0) {
        set_integer(L, "line", pos.line);
        set_integer(L, "column", pos.column);
        set_integer(L, "offset", pos.offset);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x20(%rsp), %r14
testq %r14, %r14
je 0x6c5e
movq %rdi, %rbx
leaq 0x20(%rsp), %r15
leaq 0x1153b(%rip), %rsi     # 0x18127
callq 0x4260
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4130
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
leaq 0x1151c(%rip), %rsi     # 0x1812c
movq %rbx, %rdi
callq 0x4260
movq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0x4130
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
leaq 0x46d89(%rip), %rsi     # 0x4d9c1
movq %rbx, %rdi
callq 0x4260
movq 0x10(%r15), %rsi
movq %rbx, %rdi
callq 0x4130
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
popq %rbx
popq %r14
popq %r15
jmp 0x40c0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/gumbo/parse.c
// Function: create_text_node
static void create_text_node(lua_State *L, const GumboText *t, Upvalue i)
{
    lua_createtable(L, 0, 5);
    set_string(L, "data", t->text);
    set_sourcepos(L, t->start_pos);
    setmetatable(L, i);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
movl $0x5, %edx
callq 0x40a0
leaq 0x16ced(%rip), %rsi     # 0x1db23
movq %rbx, %rdi
callq 0x4260
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
movq 0x28(%r14), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%r14), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x6bca
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
subl %ebp, %esi
movq %rbx, %rdi
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x4170
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/attribute.c
// Function: gumbo_get_attribute
GumboAttribute* gumbo_get_attribute (
  const GumboVector* attrs,
  const char* name
) {
  for (unsigned int i = 0; i < attrs->length; ++i) {
    GumboAttribute* attr = attrs->data[i];
    if (ascii_streq_icase(attr->name, name)) {
      return attr;
    }
  }
  return NULL;
}

// Assembly:
movl 0x8(%rdi), %ecx
testq %rcx, %rcx
je 0x6ef7
pushq %r15
pushq %r14
pushq %rbx
movq (%rdi), %rdx
leaq 0x112a5(%rip), %rdi     # 0x18150
xorl %r8d, %r8d
movq (%rdx,%r8,8), %rax
movq 0x8(%rax), %r9
xorl %r10d, %r10d
movzbl (%r9,%r10), %r14d
movb (%rdi,%r14), %r11b
andb $0x20, %r11b
movzbl (%rsi,%r10), %r15d
movb (%rdi,%r15), %bl
andb $0x20, %bl
orb %r15b, %bl
orb %r14b, %r11b
je 0x6ee2
incq %r10
cmpb %bl, %r11b
je 0x6eb9
cmpb %bl, %r11b
je 0x6ef1
incq %r8
cmpq %rcx, %r8
jne 0x6eae
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/error.c
// Function: gumbo_add_error
GumboError* gumbo_add_error(GumboParser* parser) {
  int max_errors = parser->_options->max_errors;
  if (max_errors >= 0 && parser->_output->errors.length >= (unsigned int) max_errors) {
    return NULL;
  }
  GumboError* error = gumbo_alloc(sizeof(GumboError));
  gumbo_vector_add(error, &parser->_output->errors);
  return error;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movl 0xc(%rax), %eax
testl %eax, %eax
js 0x6f36
movq 0x8(%rbx), %rcx
cmpl %eax, 0x18(%rcx)
jae 0x6f55
movl $0x48, %edi
callq 0x113d4
movq %rax, %r14
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
movq %rax, %rdi
callq 0x7b25
jmp 0x6f58
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/error.c
// Function: gumbo_caret_diagnostic_to_string
void gumbo_caret_diagnostic_to_string (
  const GumboError* error,
  const char* source_text,
  size_t source_length,
  GumboStringBuffer* output
) {
  gumbo_error_to_string(error, output);

  const char* line_start = find_prev_newline(source_text, error->original_text);
  const char* line_end = find_next_newline (
    source_text + source_length,
    error->original_text
  );
  GumboStringPiece original_line;
  original_line.data = line_start;
  original_line.length = line_end - line_start;

  gumbo_string_buffer_append_codepoint('\n', output);
  gumbo_string_buffer_append_string(&original_line, output);
  gumbo_string_buffer_append_codepoint('\n', output);
  gumbo_string_buffer_reserve(output->length + error->position.column, output);
  if (error->position.column >= 2) {
    size_t num_spaces = error->position.column - 1;
    memset(output->data + output->length, ' ', num_spaces);
    output->length += num_spaces;
  }
  gumbo_string_buffer_append_codepoint('^', output);
  gumbo_string_buffer_append_codepoint('\n', output);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq %rcx, %rsi
callq 0x6f63
movq 0x20(%r14), %rax
cmpq %r12, %rax
jb 0x72c9
cmpb $0xa, (%rax)
sete %cl
cmpq %r12, %rax
setne %dl
andb %cl, %dl
movzbl %dl, %ecx
movq %rax, %rdx
subq %rcx, %rdx
cmpq %r12, %rdx
je 0x7211
cmpb $0xa, (%rdx)
je 0x7211
decq %rdx
cmpq %r12, %rdx
jne 0x7201
movq %r12, %rdx
xorl %ecx, %ecx
cmpq %r12, %rdx
setne %cl
addq %rdx, %rcx
addq %r12, %r15
cmpq %r15, %rax
ja 0x72e8
je 0x723a
cmpb $0xa, (%rax)
je 0x723a
incq %rax
cmpq %r15, %rax
jne 0x722a
movq %r15, %rax
leaq 0x8(%rsp), %r15
movq %rcx, (%r15)
subq %rcx, %rax
movq %rax, 0x8(%r15)
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4322
movq %r15, %rdi
movq %rbx, %rsi
callq 0x74f3
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4322
movq 0x10(%r14), %rdi
addq 0x8(%rbx), %rdi
movq %rbx, %rsi
callq 0x7493
movq 0x10(%r14), %r14
cmpq $0x2, %r14
jb 0x72a3
decq %r14
movq (%rbx), %rdi
addq 0x8(%rbx), %rdi
movl $0x20, %esi
movq %r14, %rdx
callq 0x4120
addq %r14, 0x8(%rbx)
movl $0x5e, %edi
movq %rbx, %rsi
callq 0x4322
movl $0xa, %edi
movq %rbx, %rsi
callq 0x4322
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1138c(%rip), %rdi     # 0x1865c
leaq 0x1129a(%rip), %rsi     # 0x18571
leaq 0x1139c(%rip), %rcx     # 0x1867a
movl $0x75, %edx
callq 0x4100
leaq 0x113c5(%rip), %rdi     # 0x186b4
leaq 0x1127b(%rip), %rsi     # 0x18571
leaq 0x113d9(%rip), %rcx     # 0x186d6
movl $0x87, %edx
callq 0x4100
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/error.c
// Function: gumbo_print_caret_diagnostic
void gumbo_print_caret_diagnostic (
  const GumboError* error,
  const char* source_text,
  size_t source_length
) {
  GumboStringBuffer text;
  gumbo_string_buffer_init(&text);
  gumbo_caret_diagnostic_to_string(error, source_text, source_length, &text);
  printf("%.*s", (int) text.length, text.data);
  gumbo_string_buffer_destroy(&text);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsp, %r12
movq %r12, %rdi
callq 0x7470
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x71b9
movl 0x8(%r12), %esi
movq (%r12), %rdx
leaq 0x111d5(%rip), %rdi     # 0x1851c
xorl %eax, %eax
callq 0x40f0
movq %r12, %rdi
callq 0x7689
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/error.c
// Function: gumbo_error_destroy
void gumbo_error_destroy(GumboError* error) {
  if (
    error->type == GUMBO_ERR_PARSER
    || error->type == GUMBO_ERR_UNACKNOWLEDGED_SELF_CLOSING_TAG
  ) {
    gumbo_vector_destroy(&error->v.parser.tag_stack);
  } else if (error->type == GUMBO_ERR_DUPLICATE_ATTR) {
    gumbo_free((void*) error->v.duplicate_attr.name);
  }
  gumbo_free(error);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %eax
leal -0x28(%rax), %ecx
cmpl $0x2, %ecx
jae 0x737b
leaq 0x38(%rbx), %rdi
callq 0x7b16
jmp 0x7389
cmpl $0x18, %eax
jne 0x7389
movq 0x28(%rbx), %rdi
callq 0x113f8
movq %rbx, %rdi
popq %rbx
jmp 0x113f8
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/error.c
// Function: print_tag_stack
static void print_tag_stack (
  const GumboParserError* error,
  GumboStringBuffer* output
) {
  print_message(output, "  Currently open tags: ");
  for (unsigned int i = 0; i < error->tag_stack.length; ++i) {
    if (i) {
      print_message(output, ", ");
    }
    GumboTag tag = (GumboTag) error->tag_stack.data[i];
    print_message(output, "%s", gumbo_normalized_tagname(tag));
  }
  gumbo_string_buffer_append_codepoint('.', output);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x11241(%rip), %rsi     # 0x1863e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7135
cmpl $0x0, 0x18(%r14)
je 0x745a
leaq 0x11244(%rip), %r15     # 0x18659
leaq 0x1123a(%rip), %r12     # 0x18656
xorl %r13d, %r13d
testq %r13, %r13
je 0x7431
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x7135
movq 0x10(%r14), %rax
movl (%rax,%r13,8), %edi
callq 0x7694
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x7135
incq %r13
movl 0x18(%r14), %eax
cmpq %rax, %r13
jb 0x741f
movl $0x2e, %edi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4322
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/string_buffer.c
// Function: maybe_resize_string_buffer
static void maybe_resize_string_buffer (
  size_t additional_chars,
  GumboStringBuffer* buffer
) {
  size_t new_length = buffer->length + additional_chars;
  size_t new_capacity = buffer->capacity;
  while (new_capacity < new_length) {
    new_capacity *= 2;
  }
  if (new_capacity != buffer->capacity) {
    buffer->data = gumbo_realloc(buffer->data, new_capacity);
    buffer->capacity = new_capacity;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
addq 0x8(%rsi), %rdi
movq 0x10(%rsi), %rax
movq %rax, %rcx
movq %rcx, %r14
addq %rcx, %rcx
cmpq %rdi, %r14
jb 0x74ab
cmpq %rax, %r14
je 0x74cd
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x113e6
movq %rax, (%rbx)
movq %r14, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/string_buffer.c
// Function: gumbo_string_buffer_vsprintf
int gumbo_string_buffer_vsprintf (
  GumboStringBuffer* s,
  const char* fmt,
  va_list ap
) {
  va_list ap2;
  va_copy(ap2, ap);
  // Calculate the required size
  int n = vsnprintf(NULL, 0, fmt, ap2);
  va_end(ap2);
  if (n <= 0) {
    return n;
  }
  maybe_resize_string_buffer(n + 1, s);
  int wrote = vsnprintf(s->data + s->length, n + 1, fmt, ap);
  assert(wrote == n);
  s->length += wrote;
  return wrote;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x10(%rdx), %rax
movq %rsp, %rcx
movq %rax, 0x10(%rcx)
movups (%rdx), %xmm0
movaps %xmm0, (%rcx)
xorl %edi, %edi
xorl %esi, %esi
movq %r15, %rdx
callq 0x4080
movl %eax, %r12d
testl %eax, %eax
jle 0x7594
leal 0x1(%r12), %r13d
movq %r13, %rdi
movq %rbx, %rsi
callq 0x7499
movq (%rbx), %rdi
addq 0x8(%rbx), %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x4080
cmpl %r12d, %eax
jne 0x75a5
movl %r12d, %eax
addq %rax, 0x8(%rbx)
movl %r12d, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x11164(%rip), %rdi     # 0x18710
leaq 0x11168(%rip), %rsi     # 0x1871b
leaq 0x11175(%rip), %rcx     # 0x1872f
movl $0x72, %edx
callq 0x4100
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/string_buffer.c
// Function: gumbo_string_buffer_to_string
char* gumbo_string_buffer_to_string(const GumboStringBuffer* input) {
  char* buffer = gumbo_alloc(input->length + 1);
  memcpy(buffer, input->data, input->length);
  buffer[input->length] = '\0';
  return buffer;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
incq %rdi
callq 0x113d4
movq %rax, %r14
movq (%rbx), %rsi
movq 0x8(%rbx), %rbx
movq %rax, %rdi
movq %rbx, %rdx
callq 0x4190
movb $0x0, (%r14,%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/tag.c
// Function: gumbo_normalized_tagname
const char* gumbo_normalized_tagname(GumboTag tag) {
  assert(tag <= GUMBO_TAG_LAST);
  const char *tagname = kGumboTagNames[tag];
  assert(tagname);
  return tagname;
}

// Assembly:
cmpl $0x98, %edi
jae 0x76ad
movl %edi, %ecx
shlq $0x4, %rcx
leaq 0x111c7(%rip), %rax     # 0x18870
addq %rcx, %rax
retq
pushq %rax
leaq 0x110d6(%rip), %rdi     # 0x1878b
leaq 0x110e5(%rip), %rsi     # 0x187a1
leaq 0x110e8(%rip), %rcx     # 0x187ab
movl $0xb5, %edx
callq 0x4100
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/tag.c
// Function: gumbo_tag_from_original_text
void gumbo_tag_from_original_text(GumboStringPiece* text) {
  if (text->data == NULL) {
    return;
  }

  assert(text->length >= 2);
  assert(text->data[0] == '<');
  assert(text->data[text->length - 1] == '>');

  if (text->data[1] == '/') {
    // End tag
    assert(text->length >= 3);
    text->data += 2;  // Move past </
    text->length -= 3;
  } else {
    // Start tag
    text->data += 1;  // Move past <
    text->length -= 2;
    for (const char* c = text->data; c != text->data + text->length; ++c) {
      switch (*c) {
      case '\t':
      case '\n':
      case '\f':
      case ' ':
      case '/':
        text->length = c - text->data;
        return;
      }
    }
  }
}

// Assembly:
pushq %rax
movq (%rdi), %rax
testq %rax, %rax
je 0x7716
movq 0x8(%rdi), %rcx
cmpq $0x1, %rcx
jbe 0x774f
cmpb $0x3c, (%rax)
jne 0x776e
cmpb $0x3e, -0x1(%rax,%rcx)
jne 0x778d
cmpb $0x2f, 0x1(%rax)
jne 0x7718
cmpq $0x2, %rcx
je 0x77ac
addq $0x2, %rax
movq %rax, (%rdi)
addq $-0x3, %rcx
movq %rcx, %rdx
movq %rdx, 0x8(%rdi)
popq %rax
retq
incq %rax
movq %rax, (%rdi)
addq $-0x2, %rcx
movq %rcx, 0x8(%rdi)
je 0x7716
xorl %edx, %edx
movabsq $0x800100001600, %rsi   # imm = 0x800100001600
movzbl (%rax,%rdx), %r8d
cmpq $0x2f, %r8
ja 0x7745
btq %r8, %rsi
jb 0x7712
incq %rdx
cmpq %rdx, %rcx
jne 0x7734
jmp 0x7716
leaq 0x11084(%rip), %rdi     # 0x187da
leaq 0x11044(%rip), %rsi     # 0x187a1
leaq 0x11088(%rip), %rcx     # 0x187ec
movl $0xc0, %edx
callq 0x4100
leaq 0x110ad(%rip), %rdi     # 0x18822
leaq 0x11025(%rip), %rsi     # 0x187a1
leaq 0x11069(%rip), %rcx     # 0x187ec
movl $0xc1, %edx
callq 0x4100
leaq 0x110a3(%rip), %rdi     # 0x18837
leaq 0x11006(%rip), %rsi     # 0x187a1
leaq 0x1104a(%rip), %rcx     # 0x187ec
movl $0xc2, %edx
callq 0x4100
leaq 0x110a8(%rip), %rdi     # 0x1885b
leaq 0x10fe7(%rip), %rsi     # 0x187a1
leaq 0x1102b(%rip), %rcx     # 0x187ec
movl $0xc6, %edx
callq 0x4100
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/utf8.c
// Function: utf8_is_invalid_code_point
bool utf8_is_invalid_code_point(int c) {
  return
    (c >= 0x1 && c <= 0x8)
    || c == 0xB
    || (c >= 0xE && c <= 0x1F)
    || (c >= 0x7F && c <= 0x9F)
    || (c >= 0xFDD0 && c <= 0xFDEF)
    || ((c & 0xFFFF) == 0xFFFE)
    || ((c & 0xFFFF) == 0xFFFF)
  ;
}

// Assembly:
leal -0x1(%rdi), %ecx
cmpl $0xb, %ecx
jae 0x77f8
movb $0x1, %al
movl $0x4ff, %edx            # imm = 0x4FF
btl %ecx, %edx
jb 0x7820
leal -0xfdd0(%rdi), %ecx
movb $0x1, %al
cmpl $0x20, %ecx
jb 0x7820
leal -0xe(%rdi), %ecx
cmpl $0x12, %ecx
jb 0x7820
leal -0x7f(%rdi), %ecx
cmpl $0x21, %ecx
jb 0x7820
notl %edi
testl $0xfffe, %edi           # imm = 0xFFFE
sete %al
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/utf8.c
// Function: utf8iterator_maybe_consume_match
bool utf8iterator_maybe_consume_match (
  Utf8Iterator* iter,
  const char* prefix,
  size_t length,
  bool case_sensitive
) {
  bool matched =
    (iter->_start + length <= iter->_end)
    && (
      case_sensitive
        ? mem_equal(iter->_start, prefix, length)
        : mem_equal_icase(iter->_start, prefix, length)
    )
  ;
  if (matched) {
    for (size_t i = 0; i < length; ++i) {
      utf8iterator_next(iter);
    }
    return true;
  } else {
    return false;
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movq (%rdi), %rdi
leaq (%rdi,%rdx), %rax
cmpq 0x10(%r14), %rax
ja 0x79e2
movq %rdx, %rbx
testb %cl, %cl
je 0x79eb
movq %rbx, %rdx
callq 0x4200
testl %eax, %eax
je 0x7a24
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
testq %rbx, %rbx
je 0x7a3b
xorl %eax, %eax
leaq 0x10757(%rip), %rcx     # 0x18150
movzbl (%rdi,%rax), %edx
movb (%rcx,%rdx), %r8b
andb $0x20, %r8b
orb %dl, %r8b
movzbl (%rsi,%rax), %edx
movb (%rcx,%rdx), %r9b
andb $0x20, %r9b
orb %dl, %r9b
cmpb %r9b, %r8b
jne 0x79e2
incq %rax
cmpq %rax, %rbx
jne 0x79f9
movb $0x1, %bpl
testq %rbx, %rbx
je 0x79e4
movq %r14, %rdi
callq 0x43e3
decq %rbx
jne 0x7a2c
jmp 0x79e4
movb $0x1, %bpl
jmp 0x79e4
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/utf8.c
// Function: add_error
static void add_error(Utf8Iterator* iter, GumboErrorType type) {
  GumboParser* parser = iter->_parser;

  GumboError* error = gumbo_add_error(parser);
  if (!error) {
    return;
  }
  error->type = type;
  error->position = iter->_pos;
  error->original_text = iter->_start;

  // At the point the error is recorded, the code point hasn't been computed
  // yet (and can't be, because it's invalid), so we need to build up the raw
  // hex value from the bytes under the cursor.
  uint32_t code_point = 0;
  for (size_t i = 0; i < iter->_width; ++i) {
    code_point = (code_point << 8) | (unsigned char) iter->_start[i];
  }
  error->v.codepoint = code_point;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x58(%rdi), %rdi
callq 0x6f1c
testq %rax, %rax
je 0x7ae7
movl %ebp, (%rax)
movups 0x28(%rbx), %xmm0
movups %xmm0, 0x8(%rax)
movq 0x38(%rbx), %rcx
movq %rcx, 0x18(%rax)
movq (%rbx), %rcx
movq %rcx, 0x20(%rax)
movq 0x20(%rbx), %rdx
testq %rdx, %rdx
je 0x7ae2
xorl %esi, %esi
xorl %r8d, %r8d
shll $0x8, %r8d
movzbl (%rcx,%rsi), %edi
orl %r8d, %edi
incq %rsi
movl %edi, %r8d
cmpq %rsi, %rdx
jne 0x7aca
jmp 0x7ae4
xorl %edi, %edi
movl %edi, 0x28(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/vector.c
// Function: gumbo_vector_init
void gumbo_vector_init(unsigned int initial_capacity, GumboVector* vector) {
  vector->length = 0;
  vector->capacity = initial_capacity;
  if (initial_capacity > 0) {
    vector->data = gumbo_alloc(sizeof(void*) * initial_capacity);
  } else {
    vector->data = NULL;
  }
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl $0x0, 0x8(%rsi)
movl %edi, 0xc(%rsi)
testl %edi, %edi
je 0x7b0f
movl %edi, %edi
shlq $0x3, %rdi
callq 0x113d4
jmp 0x7b11
xorl %eax, %eax
movq %rax, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/vector.c
// Function: gumbo_vector_add
void gumbo_vector_add(void* ptr, GumboVector* vector) {
  enlarge_vector_if_full(vector);
  assert(vector->data);
  assert(vector->length < vector->capacity);
  vector->data[vector->length++] = ptr;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x7b9a
movq (%r14), %rax
testq %rax, %rax
je 0x7b5c
movl 0x8(%r14), %ecx
cmpl 0xc(%r14), %ecx
jae 0x7b7b
leal 0x1(%rcx), %edx
movl %edx, 0x8(%r14)
movq %rbx, (%rax,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x11839(%rip), %rdi     # 0x1939c
leaq 0x1183f(%rip), %rsi     # 0x193a9
leaq 0x11845(%rip), %rcx     # 0x193b6
movl $0x38, %edx
callq 0x4100
leaq 0x11861(%rip), %rdi     # 0x193e3
leaq 0x11820(%rip), %rsi     # 0x193a9
leaq 0x11826(%rip), %rcx     # 0x193b6
movl $0x39, %edx
callq 0x4100
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/vector.c
// Function: enlarge_vector_if_full
static void enlarge_vector_if_full(GumboVector* vector) {
  if (vector->length >= vector->capacity) {
    if (vector->capacity) {
      vector->capacity *= 2;
      size_t num_bytes = sizeof(void*) * vector->capacity;
      vector->data = gumbo_realloc(vector->data, num_bytes);
    } else {
      // 0-capacity vector; no previous array to deallocate.
      vector->capacity = 2;
      vector->data = gumbo_alloc(sizeof(void*) * vector->capacity);
    }
  }
}

// Assembly:
movl 0xc(%rdi), %esi
cmpl %esi, 0x8(%rdi)
jb 0x7bd2
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
je 0x7bbd
addl %esi, %esi
movl %esi, 0xc(%rbx)
shlq $0x3, %rsi
movq (%rbx), %rdi
callq 0x113e6
jmp 0x7bce
movl $0x2, 0xc(%rbx)
movl $0x10, %edi
callq 0x113d4
movq %rax, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/vector.c
// Function: gumbo_vector_insert_at
void gumbo_vector_insert_at (
  void* ptr,
  unsigned int index,
  GumboVector* vector
) {
  assert(index <= vector->length);
  enlarge_vector_if_full(vector);
  ++vector->length;
  memmove (
    &vector->data[index + 1],
    &vector->data[index],
    sizeof(void*) * (vector->length - index - 1)
  );
  vector->data[index] = ptr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl %esi, 0x8(%rdx)
jb 0x7c66
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
movq %rdx, %rdi
callq 0x7b9a
movl 0x8(%rbx), %edx
leal 0x1(%rdx), %eax
movl %eax, 0x8(%rbx)
movq (%rbx), %rax
leal 0x1(%r15), %ecx
leaq (%rax,%rcx,8), %rdi
movl %r15d, %r12d
leaq (%rax,%r12,8), %rsi
subl %r15d, %edx
shlq $0x3, %rdx
callq 0x4220
movq (%rbx), %rax
movq %r14, (%rax,%r12,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x11798(%rip), %rdi     # 0x19405
leaq 0x11735(%rip), %rsi     # 0x193a9
leaq 0x117a2(%rip), %rcx     # 0x1941d
movl $0x52, %edx
callq 0x4100
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/vector.c
// Function: gumbo_vector_remove
int gumbo_vector_index_of(GumboVector* vector, const void* ptr) {
  for (unsigned int i = 0, n = vector->length; i < n; ++i) {
    if (vector->data[i] == ptr) {
      return i;
    }
  }
  return -1;
}

// Assembly:
movl 0x8(%rsi), %ecx
testq %rcx, %rcx
je 0x7cac
movq (%rsi), %rdx
xorl %eax, %eax
cmpq %rdi, (%rdx,%rax,8)
je 0x7ca2
incq %rax
cmpq %rax, %rcx
jne 0x7c92
jmp 0x7cac
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jne 0x7cad
retq
movl %eax, %edi
jmp 0x7cb4
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/vector.c
// Function: gumbo_vector_remove_at
void* gumbo_vector_remove_at(unsigned int index, GumboVector* vector) {
  assert(index < vector->length);
  void* result = vector->data[index];
  memmove (
    &vector->data[index],
    &vector->data[index + 1],
    sizeof(void*) * (vector->length - index - 1)
  );
  --vector->length;
  return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl 0x8(%rsi), %edx
cmpl %edi, %edx
jbe 0x7cf4
movq %rsi, %rbx
movq (%rsi), %rcx
movl %edi, %esi
leaq (%rcx,%rsi,8), %rax
movq (%rax), %r14
leaq (%rcx,%rsi,8), %rsi
addq $0x8, %rsi
notl %edi
addl %edi, %edx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x4220
decl 0x8(%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x11763(%rip), %rdi     # 0x1945e
leaq 0x116a7(%rip), %rsi     # 0x193a9
leaq 0x1176c(%rip), %rcx     # 0x19475
movl $0x66, %edx
callq 0x4100
nop
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/parser.c
// Function: gumbo_normalize_svg_tagname
const char* gumbo_normalize_svg_tagname(const GumboStringPiece* tag) {
  const StringReplacement *replacement = gumbo_get_svg_tag_replacement (
    tag->data,
    tag->length
  );
  return replacement ? replacement->to : NULL;
}

// Assembly:
pushq %rax
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
movq %rax, %rdi
callq 0x1715c
testq %rax, %rax
je 0x7d2f
movq 0x8(%rax), %rax
jmp 0x7d31
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/parser.c
// Function: get_current_node
static GumboNode* get_current_node(const GumboParser* parser) {
  const GumboVector* open_elements = &parser->_parser_state->_open_elements;
  if (open_elements->length == 0) {
    assert(!parser->_output->root);
    return NULL;
  }
  assert(open_elements->length > 0);
  assert(open_elements->data != NULL);
  return open_elements->data[open_elements->length - 1];
}

// Assembly:
pushq %rax
movq 0x18(%rdi), %rcx
movl 0x10(%rcx), %eax
testl %eax, %eax
je 0x7d50
movq 0x8(%rcx), %rcx
testq %rcx, %rcx
je 0x7d5f
decl %eax
movq (%rcx,%rax,8), %rax
jmp 0x7d5d
movq 0x8(%rdi), %rax
cmpq $0x0, 0x8(%rax)
jne 0x7d7e
xorl %eax, %eax
popq %rcx
retq
leaq 0x14052(%rip), %rdi     # 0x1bdb8
leaq 0x13bc3(%rip), %rsi     # 0x1b930
leaq 0x14013(%rip), %rcx     # 0x1bd87
movl $0x1e1, %edx            # imm = 0x1E1
callq 0x4100
leaq 0x13feb(%rip), %rdi     # 0x1bd70
leaq 0x13ba4(%rip), %rsi     # 0x1b930
leaq 0x13ff4(%rip), %rcx     # 0x1bd87
movl $0x1dd, %edx            # imm = 0x1DD
callq 0x4100
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/parser.c
// Function: parser_add_parse_error
static GumboError* parser_add_parse_error (
  GumboParser* parser,
  const GumboToken* token
) {
  gumbo_debug("Adding parse error.\n");
  GumboError* error = gumbo_add_error(parser);
  if (!error) {
    return NULL;
  }
  error->type = GUMBO_ERR_PARSER;
  error->position = token->position;
  error->original_text = token->original_text.data;
  GumboParserError* extra_data = &error->v.parser;
  extra_data->input_type = token->type;
  extra_data->input_tag = GUMBO_TAG_UNKNOWN;
  if (token->type == GUMBO_TOKEN_START_TAG) {
    extra_data->input_tag = token->v.start_tag.tag;
  } else if (token->type == GUMBO_TOKEN_END_TAG) {
    extra_data->input_tag = token->v.end_tag;
  }
  const GumboParserState* state = parser->_parser_state;
  extra_data->parser_state = state->_insertion_mode;
  gumbo_vector_init(state->_open_elements.length, &extra_data->tag_stack);
  for (unsigned int i = 0; i < state->_open_elements.length; ++i) {
    const GumboNode* node = state->_open_elements.data[i];
    assert (
      node->type == GUMBO_NODE_ELEMENT
      || node->type == GUMBO_NODE_TEMPLATE
    );
    gumbo_vector_add (
      (void*) node->v.element.tag,
      &extra_data->tag_stack
    );
  }
  return error;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r15
callq 0x6f1c
movq %rax, %rbx
testq %rax, %rax
je 0x7e4d
movq %rax, %r14
movl $0x28, (%rbx)
movups 0x8(%r12), %xmm0
movups %xmm0, 0x8(%rbx)
movq 0x18(%r12), %rax
movq %rax, 0x18(%rbx)
movq 0x20(%r12), %rax
movq %rax, 0x20(%rbx)
movl (%r12), %eax
movl %eax, 0x28(%rbx)
movl $0x96, 0x2c(%rbx)
decl %eax
cmpl $0x1, %eax
ja 0x7dfe
movl 0x30(%r12), %eax
movl %eax, 0x2c(%rbx)
movq 0x18(%r15), %r15
movl (%r15), %eax
movl %eax, 0x30(%rbx)
movl 0x10(%r15), %edi
addq $0x38, %r14
movq %r14, %rsi
callq 0x7af0
cmpl $0x0, 0x10(%r15)
je 0x7e4d
xorl %r12d, %r12d
movq 0x8(%r15), %rax
movq (%rax,%r12,8), %rax
movl (%rax), %ecx
cmpl $0x1, %ecx
je 0x7e36
cmpl $0x6, %ecx
jne 0x7e5c
movl 0x28(%rax), %edi
movq %r14, %rsi
callq 0x7b25
incq %r12
movl 0x10(%r15), %eax
cmpq %rax, %r12
jb 0x7e22
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x13e7b(%rip), %rdi     # 0x1bcde
leaq 0x13ac6(%rip), %rsi     # 0x1b930
leaq 0x157d4(%rip), %rcx     # 0x1d645
movl $0x2dc, %edx            # imm = 0x2DC
callq 0x4100
// File: /workspace/github_c_makefile_star2_O3/craigbarnes[P]lua-gumbo/lib/parser.c
// Function: gumbo_destroy_output
void gumbo_destroy_output(GumboOutput* output) {
  destroy_node(output->document);
  for (unsigned int i = 0; i < output->errors.length; ++i) {
    gumbo_error_destroy(output->errors.data[i]);
  }
  gumbo_vector_destroy(&output->errors);
  gumbo_free(output);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x7e9b
leaq 0x10(%rbx), %r14
cmpl $0x0, 0x18(%rbx)
je 0x800b
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x7362
incq %r15
movl 0x18(%rbx), %eax
cmpq %rax, %r15
jb 0x7ff3
movq %r14, %rdi
callq 0x7b16
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x113f8