// File: /workspace/github_c_makefile_star2_O0/janet-lang[P]janet/src/core/specials.c
// Function: destructure
static int destructure(JanetCompiler *c,
                       Janet left,
                       JanetSlot right,
                       int (*leaf)(JanetCompiler *c,
                                   const uint8_t *sym,
                                   JanetSlot s,
                                   JanetTable *attr),
                       JanetTable *attr) {
    switch (janet_type(left)) {
        default:
            janetc_error(c, janet_formatc("unexpected type in destructuring, got %v", left));
            return 1;
        case JANET_SYMBOL:
            /* Leaf, assign right to left */
            return leaf(c, janet_unwrap_symbol(left), right, attr);
        case JANET_TUPLE:
        case JANET_ARRAY: {
            int32_t len = 0;
            const Janet *values = NULL;
            janet_indexed_view(left, &values, &len);
            for (int32_t i = 0; i < len; i++) {
                JanetSlot nextright = janetc_farslot(c);
                Janet subval = values[i];

                if (janet_checktype(subval, JANET_SYMBOL) && !janet_cstrcmp(janet_unwrap_symbol(subval), "&")) {
                    if (i + 1 >= len) {
                        janetc_cerror(c, "expected symbol following '& in destructuring pattern");
                        return 1;
                    }

                    if (i + 2 < len) {
                        int32_t num_extra = len - i - 1;
                        Janet *extra = janet_tuple_begin(num_extra);
                        janet_tuple_flag(extra) |= JANET_TUPLE_FLAG_BRACKETCTOR;

                        for (int32_t j = 0; j < num_extra; ++j) {
                            extra[j] = values[j + i + 1];
                        }

                        janetc_error(c, janet_formatc("expected a single symbol follow '& in destructuring pattern, found %q", janet_wrap_tuple(janet_tuple_end(extra))));
                        return 1;
                    }

                    if (!janet_checktype(values[i + 1], JANET_SYMBOL)) {
                        janetc_error(c, janet_formatc("expected symbol following '& in destructuring pattern, found %q", values[i + 1]));
                        return 1;
                    }

                    JanetSlot argi = janetc_farslot(c);
                    JanetSlot arg  = janetc_farslot(c);
                    JanetSlot len  = janetc_farslot(c);

                    janetc_emit_si(c, JOP_LOAD_INTEGER, argi, i, 0);
                    janetc_emit_ss(c, JOP_LENGTH, len, right, 0);

                    /* loop condition - reuse arg slot for the condition result */
                    int32_t label_loop_start = janetc_emit_sss(c, JOP_LESS_THAN, arg, argi, len, 0);
                    int32_t label_loop_cond_jump = janetc_emit_si(c, JOP_JUMP_IF_NOT, arg, 0, 0);

                    /* loop body */
                    janetc_emit_sss(c, JOP_GET, arg, right, argi, 0);
                    janetc_emit_s(c, JOP_PUSH, arg, 0);
                    janetc_emit_ssi(c, JOP_ADD_IMMEDIATE, argi, argi, 1, 0);

                    /* loop - jump back to the start of the loop */
                    int32_t label_loop_loop = janet_v_count(c->buffer);
                    janetc_emit(c, JOP_JUMP);
                    int32_t label_loop_exit = janet_v_count(c->buffer);

                    /* avoid shifting negative numbers */
                    c->buffer[label_loop_cond_jump] |= (uint32_t)(label_loop_exit - label_loop_cond_jump) << 16;
                    c->buffer[label_loop_loop] |= (uint32_t)(label_loop_start - label_loop_loop) << 8;

                    janetc_freeslot(c, argi);
                    janetc_freeslot(c, arg);
                    janetc_freeslot(c, len);

                    janetc_emit_s(c, JOP_MAKE_TUPLE, nextright, 1);

                    leaf(c, janet_unwrap_symbol(values[i + 1]), nextright, attr);
                    janetc_freeslot(c, nextright);
                    break;
                }

                if (i < 0x100) {
                    janetc_emit_ssu(c, JOP_GET_INDEX, nextright, right, (uint8_t) i, 1);
                } else {
                    JanetSlot k = janetc_cslot(janet_wrap_integer(i));
                    janetc_emit_sss(c, JOP_IN, nextright, right, k, 1);
                }
                if (destructure(c, subval, nextright, leaf, attr))
                    janetc_freeslot(c, nextright);
            }
        }
        return 1;
        case JANET_TABLE:
        case JANET_STRUCT: {
            const JanetKV *kvs = NULL;
            int32_t cap = 0, len = 0;
            janet_dictionary_view(left, &kvs, &len, &cap);
            for (int32_t i = 0; i < cap; i++) {
                if (janet_checktype(kvs[i].key, JANET_NIL)) continue;
                JanetSlot nextright = janetc_farslot(c);
                JanetSlot k = janetc_value(janetc_fopts_default(c), kvs[i].key);
                janetc_emit_sss(c, JOP_IN, nextright, right, k, 1);
                if (destructure(c, kvs[i].value, nextright, leaf, attr))
                    janetc_freeslot(c, nextright);
            }
        }
        return 1;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
leaq 0x10(%rbp), %rax
movq %rax, -0x170(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movsd -0x10(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x622e8
jmp 0x622fc
movq -0x10(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
movl %eax, -0x174(%rbp)
jmp 0x62306
xorl %eax, %eax
movl %eax, -0x174(%rbp)
jmp 0x62306
movl -0x174(%rbp), %eax
movl %eax, -0x178(%rbp)
subl $0x5, %eax
je 0x62379
jmp 0x62319
movl -0x178(%rbp), %eax
addl $-0x7, %eax
subl $0x2, %eax
jb 0x623d7
jmp 0x6232d
movl -0x178(%rbp), %eax
addl $-0x9, %eax
subl $0x2, %eax
jb 0x62c03
jmp 0x62341
movq -0x18(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x10(%rbp), %rsi
leaq 0x33a39(%rip), %rdi     # 0x95d90
movb $0x0, %al
callq 0x5bdd0
movq -0x180(%rbp), %rdi
movq %rax, %rsi
callq 0x1ffb0
movl $0x1, -0x4(%rbp)
jmp 0x62e59
movq -0x20(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x10(%rbp), %rdi
callq 0x7b260
movq -0x190(%rbp), %rdi
movq -0x170(%rbp), %rcx
movq %rax, %rsi
movq -0x188(%rbp), %rax
movq -0x28(%rbp), %rdx
movq (%rcx), %r8
movq %r8, (%rsp)
movq 0x8(%rcx), %r8
movq %r8, 0x8(%rsp)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rsp)
callq *%rax
movl %eax, -0x4(%rbp)
jmp 0x62e59
movl $0x0, -0x2c(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x2c(%rbp), %rdx
callq 0x6d0d0
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0x62bf7
movq -0x18(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x20470
movq -0x38(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x60(%rbp)
xorl %eax, %eax
testb $0x1, %al
jne 0x6242f
jmp 0x62458
movsd -0x60(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x62441
jmp 0x62479
movq -0x60(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x62479
jmp 0x62a8f
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0x60(%rbp), %rax
movabsq $-0x5800000000000, %rcx # imm = 0xFFFA800000000000
cmpq %rcx, %rax
jne 0x62a8f
movq -0x60(%rbp), %rdi
callq 0x7b260
movq %rax, %rdi
leaq 0x28b26(%rip), %rsi     # 0x8afb2
callq 0x6b2b0
cmpl $0x0, %eax
jne 0x62a8f
movl -0x3c(%rbp), %eax
addl $0x1, %eax
cmpl -0x2c(%rbp), %eax
jl 0x624c1
movq -0x18(%rbp), %rdi
leaq 0x33909(%rip), %rsi     # 0x95db9
callq 0x1fff0
movl $0x1, -0x4(%rbp)
jmp 0x62e59
movl -0x3c(%rbp), %eax
addl $0x2, %eax
cmpl -0x2c(%rbp), %eax
jge 0x62589
movl -0x2c(%rbp), %eax
subl -0x3c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %edi
callq 0x6a740
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl -0x20(%rax), %ecx
orl $0x10000, %ecx          # imm = 0x10000
movl %ecx, -0x20(%rax)
movl $0x0, -0x74(%rbp)
movl -0x74(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x62532
movq -0x70(%rbp), %rax
movslq -0x74(%rbp), %rcx
movq -0x38(%rbp), %rdx
movl -0x74(%rbp), %esi
addl -0x3c(%rbp), %esi
addl $0x1, %esi
movslq %esi, %rsi
movq (%rdx,%rsi,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x624ff
movq -0x18(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x70(%rbp), %rdi
callq 0x6a7a0
movq %rax, %rdi
movabsq $-0x4000000000000, %rsi # imm = 0xFFFC000000000000
callq 0x7b550
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rsi
leaq 0x33888(%rip), %rdi     # 0x95def
movb $0x0, %al
callq 0x5bdd0
movq -0x198(%rbp), %rdi
movq %rax, %rsi
callq 0x1ffb0
movl $0x1, -0x4(%rbp)
jmp 0x62e59
xorl %eax, %eax
testb $0x1, %al
jne 0x62591
jmp 0x625d4
movq -0x38(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x625b3
jmp 0x62643
movq -0x38(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x62643
jmp 0x625fe
movq -0x38(%rbp), %rcx
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdx
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq (%rcx,%rdx,8), %rax
movabsq $-0x5800000000000, %rcx # imm = 0xFFFA800000000000
cmpq %rcx, %rax
je 0x62643
movq -0x18(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x38(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x33814(%rip), %rdi     # 0x95e35
movb $0x0, %al
callq 0x5bdd0
movq -0x1a0(%rbp), %rdi
movq %rax, %rsi
callq 0x1ffb0
movl $0x1, -0x4(%rbp)
jmp 0x62e59
movq -0x18(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0x20470
movq -0x18(%rbp), %rsi
leaq -0xb0(%rbp), %rdi
callq 0x20470
movq -0x18(%rbp), %rsi
leaq -0xc8(%rbp), %rdi
callq 0x20470
movq -0x18(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl $0x2b, %esi
leaq -0x98(%rbp), %rdx
xorl %ecx, %ecx
movq (%rdx), %r8
movq %r8, (%rsp)
movq 0x8(%rdx), %r8
movq %r8, 0x8(%rsp)
movq 0x10(%rdx), %rdx
movq %rdx, 0x10(%rsp)
movswl %ax, %edx
callq 0x29dd0
movq -0x170(%rbp), %rax
movq -0x18(%rbp), %rdi
movl $0x3f, %esi
leaq -0xc8(%rbp), %rcx
xorl %edx, %edx
movq (%rcx), %r8
movq %r8, (%rsp)
movq 0x8(%rcx), %r8
movq %r8, 0x8(%rsp)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rsp)
movq (%rax), %rcx
movq %rcx, 0x18(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
callq 0x29e90
movq -0x18(%rbp), %rdi
movl $0x23, %esi
leaq -0xb0(%rbp), %r8
leaq -0x98(%rbp), %rcx
leaq -0xc8(%rbp), %rax
xorl %edx, %edx
movq (%r8), %r9
movq %r9, (%rsp)
movq 0x8(%r8), %r9
movq %r9, 0x8(%rsp)
movq 0x10(%r8), %r8
movq %r8, 0x10(%rsp)
movq (%rcx), %r8
movq %r8, 0x18(%rsp)
movq 0x8(%rcx), %r8
movq %r8, 0x20(%rsp)
movq 0x10(%rcx), %rcx
movq %rcx, 0x28(%rsp)
movq (%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x38(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
callq 0x2a2c0
movl %eax, -0xcc(%rbp)
movq -0x18(%rbp), %rdi
movl $0x1e, %esi
leaq -0xb0(%rbp), %rax
xorl %ecx, %ecx
movq (%rax), %rdx
movq %rdx, (%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movl %ecx, %edx
callq 0x29dd0
movq -0x170(%rbp), %rcx
movl %eax, -0xd0(%rbp)
movq -0x18(%rbp), %rdi
movl $0x3b, %esi
leaq -0xb0(%rbp), %r8
leaq -0x98(%rbp), %rax
xorl %edx, %edx
movq (%r8), %r9
movq %r9, (%rsp)
movq 0x8(%r8), %r9
movq %r9, 0x8(%rsp)
movq 0x10(%r8), %r8
movq %r8, 0x10(%rsp)
movq (%rcx), %r8
movq %r8, 0x18(%rsp)
movq 0x8(%rcx), %r8
movq %r8, 0x20(%rsp)
movq 0x10(%rcx), %rcx
movq %rcx, 0x28(%rsp)
movq (%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x38(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
callq 0x2a2c0
movq -0x18(%rbp), %rdi
movl $0x31, %esi
leaq -0xb0(%rbp), %rax
xorl %edx, %edx
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x29990
movq -0x18(%rbp), %rdi
movl $0x5, %esi
leaq -0x98(%rbp), %rax
movl $0x1, %edx
xorl %ecx, %ecx
movq (%rax), %r8
movq %r8, (%rsp)
movq 0x8(%rax), %r8
movq %r8, 0x8(%rsp)
movq 0x10(%rax), %r8
movq %r8, 0x10(%rsp)
movq (%rax), %r8
movq %r8, 0x18(%rsp)
movq 0x8(%rax), %r8
movq %r8, 0x20(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
callq 0x2a080
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x628b9
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x4(%rax), %eax
movl %eax, -0x1a4(%rbp)
jmp 0x628c3
xorl %eax, %eax
movl %eax, -0x1a4(%rbp)
jmp 0x628c3
movl -0x1a4(%rbp), %eax
movl %eax, -0xd4(%rbp)
movq -0x18(%rbp), %rdi
movl $0x1c, %esi
callq 0x29410
movq -0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x628fb
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x4(%rax), %eax
movl %eax, -0x1a8(%rbp)
jmp 0x62905
xorl %eax, %eax
movl %eax, -0x1a8(%rbp)
jmp 0x62905
movl -0x1a8(%rbp), %eax
movl %eax, -0xd8(%rbp)
movl -0xd8(%rbp), %edx
subl -0xd0(%rbp), %edx
shll $0x10, %edx
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xd0(%rbp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
movl -0xcc(%rbp), %edx
subl -0xd4(%rbp), %edx
shll $0x8, %edx
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0xd4(%rbp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
movq -0x18(%rbp), %rdi
leaq -0x98(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x202e0
movq -0x18(%rbp), %rdi
leaq -0xb0(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x202e0
movq -0x18(%rbp), %rdi
leaq -0xc8(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x202e0
movq -0x18(%rbp), %rdi
movl $0x45, %esi
leaq -0x58(%rbp), %rax
movl $0x1, %edx
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x29990
movq -0x20(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x38(%rbp), %rax
movl -0x3c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x7b260
movq -0x1b8(%rbp), %rdi
movq %rax, %rsi
movq -0x1b0(%rbp), %rax
movq -0x28(%rbp), %rdx
leaq -0x58(%rbp), %rcx
movq (%rcx), %r8
movq %r8, (%rsp)
movq 0x8(%rcx), %r8
movq %r8, 0x8(%rsp)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rsp)
callq *%rax
movq -0x18(%rbp), %rdi
leaq -0x58(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x202e0
jmp 0x62bf7
cmpl $0x100, -0x3c(%rbp)     # imm = 0x100
jge 0x62af4
movq -0x170(%rbp), %rdx
movq -0x18(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl $0x3d, %esi
leaq -0x58(%rbp), %r8
movl $0x1, %ecx
movq (%r8), %r9
movq %r9, (%rsp)
movq 0x8(%r8), %r9
movq %r9, 0x8(%rsp)
movq 0x10(%r8), %r8
movq %r8, 0x10(%rsp)
movq (%rdx), %r8
movq %r8, 0x18(%rsp)
movq 0x8(%rdx), %r8
movq %r8, 0x20(%rsp)
movq 0x10(%rdx), %rdx
movq %rdx, 0x28(%rsp)
movzbl %al, %edx
callq 0x2a250
jmp 0x62b8a
cvtsi2sdl -0x3c(%rbp), %xmm0
callq 0x7b820
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x1ff40
movq -0x170(%rbp), %rcx
movq -0x18(%rbp), %rdi
movl $0x3a, %esi
leaq -0x58(%rbp), %r8
leaq -0xf0(%rbp), %rax
movl $0x1, %edx
movq (%r8), %r9
movq %r9, (%rsp)
movq 0x8(%r8), %r9
movq %r9, 0x8(%rsp)
movq 0x10(%r8), %r8
movq %r8, 0x10(%rsp)
movq (%rcx), %r8
movq %r8, 0x18(%rsp)
movq 0x8(%rcx), %r8
movq %r8, 0x20(%rsp)
movq 0x10(%rcx), %rcx
movq %rcx, 0x28(%rsp)
movq (%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x38(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
callq 0x2a2c0
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x60(%rbp), %rsi
leaq -0x58(%rbp), %rax
movq (%rax), %r8
movq %r8, (%rsp)
movq 0x8(%rax), %r8
movq %r8, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x622b0
cmpl $0x0, %eax
je 0x62be7
movq -0x18(%rbp), %rdi
leaq -0x58(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x202e0
jmp 0x62be9
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x623fe
movl $0x1, -0x4(%rbp)
jmp 0x62e59
movq $0x0, -0x100(%rbp)
movl $0x0, -0x104(%rbp)
movl $0x0, -0x108(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x100(%rbp), %rsi
leaq -0x108(%rbp), %rdx
leaq -0x104(%rbp), %rcx
callq 0x6d330
movl $0x0, -0x10c(%rbp)
movl -0x10c(%rbp), %eax
cmpl -0x104(%rbp), %eax
jge 0x62e52
xorl %eax, %eax
testb $0x1, %al
jne 0x62c64
jmp 0x62cb2
movq -0x100(%rbp), %rax
movslq -0x10c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x62c8a
jmp 0x62ce3
movq -0x100(%rbp), %rax
movslq -0x10c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x62ce3
jmp 0x62ce8
movq -0x100(%rbp), %rcx
movslq -0x10c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rcx
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq (%rcx), %rax
movabsq $-0x7800000000000, %rcx # imm = 0xFFF8800000000000
cmpq %rcx, %rax
jne 0x62ce8
jmp 0x62e3e
movq -0x18(%rbp), %rsi
leaq -0x128(%rbp), %rdi
callq 0x20470
movq -0x18(%rbp), %rsi
leaq -0x168(%rbp), %rdi
callq 0x1fed0
movq -0x100(%rbp), %rax
movslq -0x10c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movq -0x148(%rbp), %rcx
movq %rsp, %rax
movq %rcx, 0x20(%rax)
movups -0x168(%rbp), %xmm0
movups -0x158(%rbp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq -0x140(%rbp), %rdi
callq 0x21590
movq -0x170(%rbp), %rcx
movq -0x18(%rbp), %rdi
movl $0x3a, %esi
leaq -0x128(%rbp), %r8
leaq -0x140(%rbp), %rax
movl $0x1, %edx
movq (%r8), %r9
movq %r9, (%rsp)
movq 0x8(%r8), %r9
movq %r9, 0x8(%rsp)
movq 0x10(%r8), %r8
movq %r8, 0x10(%rsp)
movq (%rcx), %r8
movq %r8, 0x18(%rsp)
movq 0x8(%rcx), %r8
movq %r8, 0x20(%rsp)
movq 0x10(%rcx), %rcx
movq %rcx, 0x28(%rsp)
movq (%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x38(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
callq 0x2a2c0
movq -0x18(%rbp), %rdi
movq -0x100(%rbp), %rax
movslq -0x10c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq 0x8(%rax), %rsi
leaq -0x128(%rbp), %rax
movq (%rax), %r8
movq %r8, (%rsp)
movq 0x8(%rax), %r8
movq %r8, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x622b0
cmpl $0x0, %eax
je 0x62e3c
movq -0x18(%rbp), %rdi
leaq -0x128(%rbp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
callq 0x202e0
jmp 0x62e3e
movl -0x10c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10c(%rbp)
jmp 0x62c4a
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
nopw %cs:(%rax,%rax)