// File: /workspace/github_c_makefile_star2_O2/vtereshkov[P]umka-lang/src/umka_vm.c
// Function: vmMakeStr
char *vmMakeStr(VM *vm, const char *str)
{
    if (!str)
        return NULL;

    char *buf = doAllocStr(&vm->pages, strlen(str), vm->error);
    strcpy(buf, str);
    return buf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rsi, %rsi
je 0x3b9d2
movq %rdi, %r14
movq %rsi, 0x20(%rsp)
movq %rsi, %rdi
callq 0x3130
leaq 0x2(,%rax,2), %rcx
movl $0x7ffffbff, %r12d      # imm = 0x7FFFFBFF
cmpq %r12, %rcx
cmovlq %rcx, %r12
cmpq %rax, %r12
movq %rax, 0x18(%rsp)
cmovleq %rax, %r12
leaq 0x18(%r12), %rax
pushq $0x8
popq %rcx
cqto
idivq %rcx
negq %rdx
leaq (%r12,%rdx), %r13
addq $0x7f, %r13
pushq $0x40
popq %rcx
movq %r13, %rax
cqto
idivq %rcx
subq %rdx, %r13
movq %r12, %rbx
addq $0x10, %rbx
js 0x3ba73
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, %r13
jge 0x3ba73
movq %rbx, 0x8(%rsp)
leaq 0x10(%r14), %rax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %ebx, %ebx
movq %r14, 0x10(%rsp)
movq (%rax), %rax
testq %rax, %rax
je 0x3b913
movl 0xc(%rax), %edx
cmpl 0x8(%rax), %edx
jge 0x3b90d
movl 0x14(%rax), %edx
cmpl %r13d, %edx
je 0x3b9e3
setg %sil
cmpl %ecx, %edx
setl %dil
testb %dil, %sil
cmovneq %rax, %rbx
cmovnel %edx, %ecx
addq $0x20, %rax
jmp 0x3b8dd
testq %rbx, %rbx
jne 0x3b9e6
movl $0x100000, %eax         # imm = 0x100000
xorl %edx, %edx
idivq %r13
testq %rax, %rax
pushq $0x1
popq %r15
cmovnel %eax, %r15d
movl %r15d, %eax
imull %r13d, %eax
cltq
movq %rax, (%rsp)
leaq 0x30(%rax), %rdi
callq 0x3290
movq %rax, %rbp
movq %rax, %rbx
testq %rax, %rax
je 0x3ba96
movl 0x28(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x28(%r14)
movl %eax, (%rbx)
andl $0x0, 0x4(%rbx)
movl %r15d, 0x8(%rbx)
andq $0x0, 0xc(%rbx)
movl %r13d, 0x14(%rbx)
andq $0x0, 0x18(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x20(%rbx)
movq (%rsp), %rdx
leaq (%rdx,%rbp), %rcx
addq $0x30, %rcx
movq %rcx, 0x28(%rbx)
addq %rdx, 0x30(%r14)
testq %rax, %rax
je 0x3b99e
movq %rbx, 0x18(%rax)
addq $0x30, %rbp
movq %rbx, 0x10(%r14)
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x3b9b4
cmpq %rbp, %rax
jbe 0x3b9b8
movq %rbp, 0x18(%r14)
movq 0x20(%r14), %rdx
xorl %eax, %eax
movq 0x28(%rbx), %rcx
testq %rdx, %rdx
je 0x3b9cc
cmpq %rcx, %rdx
jae 0x3b9ed
movq %rcx, 0x20(%r14)
jmp 0x3b9ed
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl 0xc(%rbx), %eax
movl 0x14(%rbx), %r13d
imull %r13d, %eax
movslq %eax, %r15
leaq (%rbx,%r15), %r14
leaq (%rbx,%r15), %rbp
addq $0x30, %rbp
movslq %r13d, %rdx
xorl %r13d, %r13d
movq %rbp, %rdi
xorl %esi, %esi
callq 0x3190
movl $0x1, (%rbp)
movq 0x8(%rsp), %rax
movl %eax, 0x4(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbp)
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rax
movslq 0x8(%rax), %rax
movq %rax, 0x18(%rbp)
movb %r13b, 0x20(%rbp)
incl 0xc(%rbx)
incl 0x4(%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rbp)
movq %r12, 0x30(%rbp)
leaq (%rbx,%r15), %rdi
addq $0x68, %rdi
movb %r13b, 0x68(%rax,%r14)
movq 0x20(%rsp), %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30a0
movq 0x80(%r14), %r8
movq 0x20(%r8), %rdi
leaq 0x32fb5(%rip), %rdx     # 0x6ea3a
pushq $-0x1
popq %rsi
movq %rbx, %rcx
xorl %eax, %eax
callq *0x8(%r8)
jmp 0x3b8c8
movq 0x40(%r14), %rcx
movq 0x20(%rcx), %rdi
leaq 0x2a80a(%rip), %rdx     # 0x662af
pushq $-0x1
popq %rsi
xorl %eax, %eax
callq *0x8(%rcx)
jmp 0x3b956