// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: arr_slice
static ARR* arr_slice(ARR* arr, USIZE from, USIZE len) {
    ASSERT(arr);
    ASSERT(len <= arr->size);
    ASSERT(from <= arr->size - len);
    arr = arr_thaw(arr);
    if (from > 0) {
        if (arr->stride != STRIDE_BOOL) {
            if (TAG_HAS_REFS(arr->tag)) {
                for (USIZE i = 0; i < from; i++) {
                    decref(val_peek_(arr, i));
                }
                for (USIZE i = from+len; i < arr->size; i++) {
                    decref(val_peek_(arr, i));
                }
            }
            memmove(arr->data.u8s, arr->data.u8s + from*arr->stride, arr->stride*len);
        } else {
            if (from % 8 == 0) {
                memmove(arr->data.u8s, arr->data.u8s + from/8, len/8 + 1);
            } else {
                USIZE i0 = from / 32;
                USIZE sh = from % 32;
                for (USIZE i = 0; i < (len+31)/32; i++) {
                    arr->data.u32s[i]
                        = (arr->data.u32s[i0 + i] >> sh)
                        | (arr->data.u32s[i0 + i + 1] << (32 - sh));
                }
            }
        }
    }
    arr->size = len;
    return arr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x37878
movl $0x2, %edi
leaq 0x31db9e(%rip), %rsi    # 0x3553f8
movl $0x31, %edx
callq 0x5060
callq 0x5310
callq 0x53b0
movl $0x1, %edi
callq 0x5130
jmp 0x3787a
jmp 0x3787c
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x378b4
movl $0x2, %edi
leaq 0x31db94(%rip), %rsi    # 0x35542a
movl $0x3e, %edx
callq 0x5060
callq 0x5310
callq 0x53b0
movl $0x1, %edi
callq 0x5130
jmp 0x378b6
jmp 0x378b8
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
subq -0x18(%rbp), %rcx
cmpq %rcx, %rax
jbe 0x378f7
movl $0x2, %edi
leaq 0x31db90(%rip), %rsi    # 0x355469
movl $0x45, %edx
callq 0x5060
callq 0x5310
callq 0x53b0
movl $0x1, %edi
callq 0x5130
jmp 0x378f9
movq -0x8(%rbp), %rdi
callq 0x35840
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x10(%rbp)
jbe 0x37c7e
movq -0x8(%rbp), %rax
cmpq $-0x1, 0x18(%rax)
je 0x37b8b
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x37b54
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x37a29
jmp 0x3794e
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x35630
movq %rax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x28(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x37a14
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x35630
movq %rax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x40(%rbp), %rax
cmpq $0x0, %rax
je 0x37a14
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x35630
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x50(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x37a14
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x35630
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x37a12
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x35630
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x127c0
jmp 0x37a14
jmp 0x37a16
jmp 0x37a18
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x3793e
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x37b52
jmp 0x37a49
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x35630
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x80(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x37b3d
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x35630
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
cmpq $0x0, %rax
je 0x37b3d
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x35630
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x37b3d
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x35630
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x37b3b
movq -0x8(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x35630
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x127c0
jmp 0x37b3d
jmp 0x37b3f
jmp 0x37b41
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x37a35
jmp 0x37b54
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
movq -0x8(%rbp), %rsi
addq $0x28, %rsi
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
imulq 0x18(%rcx), %rax
addq %rax, %rsi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdx
imulq -0x18(%rbp), %rdx
callq 0x5100
jmp 0x37c7c
movq -0x10(%rbp), %rax
andq $0x7, %rax
cmpq $0x0, %rax
jne 0x37bca
movq -0x8(%rbp), %rdi
addq $0x28, %rdi
movq -0x8(%rbp), %rsi
addq $0x28, %rsi
movq -0x10(%rbp), %rax
shrq $0x3, %rax
addq %rax, %rsi
movq -0x18(%rbp), %rdx
shrq $0x3, %rdx
addq $0x1, %rdx
callq 0x5100
jmp 0x37c7a
movq -0x10(%rbp), %rax
shrq $0x5, %rax
movq %rax, -0xd0(%rbp)
movq -0x10(%rbp), %rax
andq $0x1f, %rax
movq %rax, -0xd8(%rbp)
movq $0x0, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movq -0x18(%rbp), %rcx
addq $0x1f, %rcx
shrq $0x5, %rcx
cmpq %rcx, %rax
jae 0x37c78
movq -0x8(%rbp), %rax
movq -0xd0(%rbp), %rcx
addq -0xe0(%rbp), %rcx
movl 0x28(%rax,%rcx,4), %edx
movq -0xd8(%rbp), %rax
movl %eax, %ecx
shrl %cl, %edx
movq -0x8(%rbp), %rax
movq -0xd0(%rbp), %rcx
addq -0xe0(%rbp), %rcx
movl 0x2c(%rax,%rcx,4), %eax
movl $0x20, %ecx
subq -0xd8(%rbp), %rcx
shll %cl, %eax
orl %eax, %edx
movq -0x8(%rbp), %rax
movq -0xe0(%rbp), %rcx
movl %edx, 0x28(%rax,%rcx,4)
movq -0xe0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe0(%rbp)
jmp 0x37bf3
jmp 0x37c7a
jmp 0x37c7c
jmp 0x37c7e
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
nopw (%rax,%rax)