// File: /workspace/github_c_makefile_star2_O1/craigbarnes[P]lua-gumbo/gumbo/parse.c
// Function: set_children
static void
set_children(lua_State *L, const GumboVector *vec, unsigned int start)
{
    const unsigned int length = vec->length;
    lua_createtable(L, length, 0);
    setmetatable(L, NodeList);
    for (unsigned int i = 0; i < length; i++) {
        push_node(L, (const GumboNode *)vec->data[i]);
        set_value(L, "parentNode", -3); // child.parentNode = parent
        lua_rawseti(L, -2, i + start); // parent.childNodes[i+start] = child
    }
    lua_setfield(L, -2, "childNodes");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl 0x8(%rsi), %r15d
movl %r15d, %esi
xorl %edx, %edx
callq 0x40a0
movq %rbx, %rdi
movl $0xfff0b9d0, %esi       # imm = 0xFFF0B9D0
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4170
testq %r15, %r15
je 0x6db9
movl %ebp, %r12d
xorl %ebp, %ebp
movq %r12, 0x20(%rsp)
movq (%r14), %rax
movq (%rax,%rbp,8), %r13
movq %rbx, %rdi
movl $0xa, %esi
leaq 0x135b6(%rip), %rdx     # 0x1a09d
callq 0x41b0
movl (%r13), %edx
leal -0x1(%rdx), %eax
cmpl $0x5, %eax
ja 0x6d62
leaq 0x134fd(%rip), %rcx     # 0x1a000
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x18(%r13), %r12
movq %rbx, %rdi
xorl %esi, %esi
movl $0x7, %edx
callq 0x40a0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6ddb
movq 0x60(%r13), %rax
movq %rax, 0x10(%rsp)
movups 0x50(%r13), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x6f4c
cmpl $0x0, 0x14(%r13)
je 0x6b73
movq %rbx, %rdi
leaq 0x1356b(%rip), %rsi     # 0x1a0c0
callq 0x4260
movl 0x14(%r13), %esi
movq %rbx, %rdi
callq 0x4130
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
subq $-0x80, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6fe6
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x6a80
movq %rbx, %rdi
movl $0xfff0b9d5, %esi       # imm = 0xFFF0B9D5
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4170
movq 0x20(%rsp), %r12
jmp 0x6d73
addq $0x18, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x7195
movq %rbx, %rdi
leaq 0x4818a(%rip), %rsi     # 0x4ed5e
callq 0x4260
movq %rbx, %rdi
leaq 0x13503(%rip), %rsi     # 0x1a0e6
jmp 0x6c12
addq $0x18, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x7195
movq %rbx, %rdi
leaq 0x4815b(%rip), %rsi     # 0x4ed5e
callq 0x4260
movq %rbx, %rdi
leaq 0x134df(%rip), %rsi     # 0x1a0f1
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
jmp 0x6d73
addq $0x18, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0x2, %edx
jmp 0x6c49
addq $0x18, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x7195
jmp 0x6d73
leaq 0x18(%r13), %r12
movq %rbx, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x40a0
movq %rbx, %rdi
leaq 0x1345b(%rip), %rsi     # 0x1a0cb
callq 0x4260
movq %rbx, %rdi
leaq 0x13456(%rip), %rsi     # 0x1a0d5
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
movq 0x60(%r13), %rax
movq %rax, 0x10(%rsp)
movups 0x50(%r13), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x6f4c
subq $-0x80, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6fe6
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x40a0
movq %rbx, %rdi
movl $0xfff0b9d0, %esi       # imm = 0xFFF0B9D0
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4170
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x13386(%rip), %rdx     # 0x1a075
callq 0x4110
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x40a0
movq %rbx, %rdi
movq %r12, %rsi
movq 0x20(%rsp), %r12
movl $0x1, %edx
callq 0x6a80
movq %rbx, %rdi
movl $0xfff0b9d1, %esi       # imm = 0xFFF0B9D1
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4170
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x1339d(%rip), %rdx     # 0x1a0de
callq 0x4110
movq %rbx, %rdi
movl $0xfff0b9d5, %esi       # imm = 0xFFF0B9D5
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4170
jmp 0x6d73
movq %rbx, %rdi
leaq 0x1338b(%rip), %rsi     # 0x1a0f7
xorl %eax, %eax
callq 0x4230
movq %rbx, %rdi
leaq 0x13315(%rip), %rsi     # 0x1a092
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffc, %esi       # imm = 0xFFFFFFFC
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
leal (%r12,%rbp), %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4180
incq %rbp
cmpq %rbp, %r15
jne 0x6ad1
leaq 0x132b5(%rip), %rdx     # 0x1a075
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4110