// File: /workspace/github_c_makefile_star2_O3/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 0x6a37
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 0x11938(%rip), %rdx     # 0x1809d
callq 0x41b0
movl (%r13), %edx
leal -0x1(%rdx), %eax
cmpl $0x5, %eax
ja 0x69e0
leaq 0x1187f(%rip), %rcx     # 0x18000
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 0x6a59
movq 0x60(%r13), %rax
movq %rax, 0x10(%rsp)
movups 0x50(%r13), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x6bca
cmpl $0x0, 0x14(%r13)
je 0x67f1
movq %rbx, %rdi
leaq 0x118ed(%rip), %rsi     # 0x180c0
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 0x6c64
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x66fe
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 0x69f1
addq $0x18, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x6e13
movq %rbx, %rdi
leaq 0x4662c(%rip), %rsi     # 0x4ce7e
callq 0x4260
movq %rbx, %rdi
leaq 0x11885(%rip), %rsi     # 0x180e6
jmp 0x6890
addq $0x18, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x6e13
movq %rbx, %rdi
leaq 0x465fd(%rip), %rsi     # 0x4ce7e
callq 0x4260
movq %rbx, %rdi
leaq 0x11861(%rip), %rsi     # 0x180f1
callq 0x4260
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x40c0
jmp 0x69f1
addq $0x18, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0x2, %edx
jmp 0x68c7
addq $0x18, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x6e13
jmp 0x69f1
leaq 0x18(%r13), %r12
movq %rbx, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x40a0
movq %rbx, %rdi
leaq 0x117dd(%rip), %rsi     # 0x180cb
callq 0x4260
movq %rbx, %rdi
leaq 0x117d8(%rip), %rsi     # 0x180d5
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 0x6bca
subq $-0x80, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6c64
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 0x11708(%rip), %rdx     # 0x18075
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 0x66fe
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 0x1171f(%rip), %rdx     # 0x180de
callq 0x4110
movq %rbx, %rdi
movl $0xfff0b9d5, %esi       # imm = 0xFFF0B9D5
callq 0x4150
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4170
jmp 0x69f1
movq %rbx, %rdi
leaq 0x1170d(%rip), %rsi     # 0x180f7
xorl %eax, %eax
callq 0x4230
movq %rbx, %rdi
leaq 0x11697(%rip), %rsi     # 0x18092
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 0x674f
leaq 0x11637(%rip), %rdx     # 0x18075
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