// File: /workspace/github_c_makefile_star2_O3/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:
testq %rsi, %rsi
je 0x442b0
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
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
leaq 0x1f(%r12), %rbx
testq %rax, %rax
cmovnsq %rax, %rbx
andq $-0x8, %rbx
leaq 0x67(%rbx), %rax
addq $0xa6, %rbx
testq %rax, %rax
cmovnsq %rax, %rbx
andq $-0x40, %rbx
movq %r12, %r15
addq $0x10, %r15
js 0x44343
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, %rbx
jge 0x44343
movq 0x10(%r14), %rbp
testq %rbp, %rbp
movq %r14, 0x8(%rsp)
movq %r15, 0x10(%rsp)
je 0x441fb
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %r13d, %r13d
movq %rbp, %rcx
movl 0xc(%rcx), %edx
cmpl 0x8(%rcx), %edx
jge 0x441e9
movl 0x14(%rcx), %edx
cmpl %ebx, %edx
je 0x442b3
setg %sil
cmpl %eax, %edx
setl %dil
testb %dil, %sil
cmovneq %rcx, %r13
cmovnel %edx, %eax
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
jne 0x441c2
testq %r13, %r13
jne 0x442b6
movl $0x100000, %eax         # imm = 0x100000
xorl %edx, %edx
idivq %rbx
testq %rax, %rax
movl $0x1, %r15d
cmovnel %eax, %r15d
movl %r15d, %eax
imull %ebx, %eax
movslq %eax, %r14
leaq 0x30(%r14), %rdi
callq 0x3290
movq %rax, %r13
testq %rax, %rax
je 0x44353
movq 0x8(%rsp), %rsi
movl 0x28(%rsi), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x28(%rsi)
movl %eax, (%r13)
movl $0x0, 0x4(%r13)
movl %r15d, 0x8(%r13)
xorl %eax, %eax
movq %rax, 0xc(%r13)
movl %ebx, 0x14(%r13)
movq %rax, 0x18(%r13)
movq %rbp, 0x20(%r13)
leaq (%r14,%r13), %rax
addq $0x30, %rax
movq %rax, 0x28(%r13)
addq %r14, 0x30(%rsi)
testq %rbp, %rbp
je 0x44279
movq %r13, 0x18(%rbp)
movq %r13, %rax
addq $0x30, %rax
movq %r13, 0x10(%rsi)
movq 0x18(%rsi), %rcx
testq %rcx, %rcx
je 0x44292
cmpq %rax, %rcx
jbe 0x44296
movq %rax, 0x18(%rsi)
movq 0x20(%rsi), %rdx
xorl %eax, %eax
movq 0x28(%r13), %rcx
testq %rdx, %rdx
je 0x442aa
cmpq %rcx, %rdx
jae 0x442be
movq %rcx, 0x20(%rsi)
jmp 0x442be
xorl %eax, %eax
retq
movq %rcx, %r13
movl 0xc(%r13), %eax
movl 0x14(%r13), %ebx
imull %ebx, %eax
movslq %eax, %r14
leaq (%r14,%r13), %r15
leaq (%r14,%r13), %rbp
addq $0x30, %rbp
movslq %ebx, %rdx
xorl %ebx, %ebx
movq %rbp, %rdi
xorl %esi, %esi
callq 0x3190
movl $0x1, (%rbp)
movq 0x10(%rsp), %rax
movl %eax, 0x4(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbp)
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rax
movslq 0x8(%rax), %rax
movq %rax, 0x18(%rbp)
movb %bl, 0x20(%rbp)
incl 0xc(%r13)
incl 0x4(%r13)
movq 0x18(%rsp), %rax
movq %rax, 0x28(%rbp)
movq %r12, 0x30(%rbp)
leaq (%r14,%r13), %rdi
addq $0x68, %rdi
movb %bl, 0x68(%rax,%r15)
movq 0x20(%rsp), %rsi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x30a0
movq %r14, %rdi
movq %r15, %rsi
callq 0x4e62
jmp 0x441a4
movq 0x8(%rsp), %rbp
movq 0x40(%rbp), %rcx
movq 0x20(%rcx), %rdi
leaq 0x2df48(%rip), %rdx     # 0x722af
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %eax, %eax
callq *0x8(%rcx)
movq 0x10(%rbp), %rbp
jmp 0x44230