// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglmath/src/vec.c
// Function: ToString_
static int ToString_(lua_State *L, vec_t v, size_t size, unsigned int isrow)
/* With snprintf because lua_pushfstring does not support the %g conversion specifier */
    {
#define SZ 512
#define space (SZ-p)
    char str[SZ];
    int p=0;
    switch(size)
        {
#define T isrow==1 ? "" : "'"
        case 2: p = snprintf(str, space, "{ "FMT", "FMT" }%s", v[0], v[1], T ); break;
        case 3: p = snprintf(str, space, "{ "FMT", "FMT", "FMT" }%s", 
                                                v[0], v[1], v[2], T); break;
        case 4: p = snprintf(str, space, "{ "FMT", "FMT", "FMT", "FMT" }%s", 
                                                v[0], v[1], v[2], v[3], T); break;
        default:
            return luaL_error(L, UNEXPECTED_ERROR);
        }
    if(space<0)
        { 
        /* truncate */
        p = SZ - 5; 
        p+=snprintf(str+p, space, " ...");
        lua_pushlstring(L, str, p);
        return 1;
        }
    lua_pushlstring(L, str, p);
    return 1;
#undef space
#undef SZ
    }

// Assembly:
subq $0x238, %rsp            # imm = 0x238
movq %rdi, 0x228(%rsp)
movq %rsi, 0x220(%rsp)
movq %rdx, 0x218(%rsp)
movl %ecx, 0x214(%rsp)
movl $0x0, 0xc(%rsp)
movq 0x218(%rsp), %rax
movq %rax, (%rsp)
subq $0x2, %rax
je 0x20a71
jmp 0x20a52
movq (%rsp), %rax
subq $0x3, %rax
je 0x20ace
jmp 0x20a5e
movq (%rsp), %rax
subq $0x4, %rax
je 0x20b38
jmp 0x20bac
leaq 0x10(%rsp), %rdi
movl $0x200, %eax            # imm = 0x200
subl 0xc(%rsp), %eax
movslq %eax, %rsi
movq 0x220(%rsp), %rax
movsd (%rax), %xmm0
movq 0x220(%rsp), %rax
movsd 0x8(%rax), %xmm1
movl 0x214(%rsp), %edx
leaq 0x2db5(%rip), %rcx      # 0x2385e
leaq 0x2c12(%rip), %rax      # 0x236c2
cmpl $0x1, %edx
cmoveq %rax, %rcx
leaq 0x2fb1(%rip), %rdx      # 0x23a6f
movb $0x2, %al
callq 0x8420
movl %eax, 0xc(%rsp)
jmp 0x20bda
leaq 0x10(%rsp), %rdi
movl $0x200, %eax            # imm = 0x200
subl 0xc(%rsp), %eax
movslq %eax, %rsi
movq 0x220(%rsp), %rax
movsd (%rax), %xmm0
movq 0x220(%rsp), %rax
movsd 0x8(%rax), %xmm1
movq 0x220(%rsp), %rax
movsd 0x10(%rax), %xmm2
movl 0x214(%rsp), %edx
leaq 0x2d4b(%rip), %rcx      # 0x2385e
leaq 0x2ba8(%rip), %rax      # 0x236c2
cmpl $0x1, %edx
cmoveq %rax, %rcx
leaq 0x2f54(%rip), %rdx      # 0x23a7c
movb $0x3, %al
callq 0x8420
movl %eax, 0xc(%rsp)
jmp 0x20bda
leaq 0x10(%rsp), %rdi
movl $0x200, %eax            # imm = 0x200
subl 0xc(%rsp), %eax
movslq %eax, %rsi
movq 0x220(%rsp), %rax
movsd (%rax), %xmm0
movq 0x220(%rsp), %rax
movsd 0x8(%rax), %xmm1
movq 0x220(%rsp), %rax
movsd 0x10(%rax), %xmm2
movq 0x220(%rsp), %rax
movsd 0x18(%rax), %xmm3
movl 0x214(%rsp), %edx
leaq 0x2cd4(%rip), %rcx      # 0x2385e
leaq 0x2b31(%rip), %rax      # 0x236c2
cmpl $0x1, %edx
cmoveq %rax, %rcx
leaq 0x2eee(%rip), %rdx      # 0x23a8d
movb $0x4, %al
callq 0x8420
movl %eax, 0xc(%rsp)
jmp 0x20bda
movq 0x228(%rsp), %rdi
leaq 0x24b9(%rip), %rsi      # 0x23074
leaq 0x2ea1(%rip), %rdx      # 0x23a63
movl $0xba, %ecx
movb $0x0, %al
callq 0x8b30
movl %eax, 0x234(%rsp)
jmp 0x20c65
movl $0x200, %eax            # imm = 0x200
subl 0xc(%rsp), %eax
cmpl $0x0, %eax
jge 0x20c43
movl $0x1fb, 0xc(%rsp)       # imm = 0x1FB
leaq 0x10(%rsp), %rdi
movslq 0xc(%rsp), %rax
addq %rax, %rdi
movl $0x200, %eax            # imm = 0x200
subl 0xc(%rsp), %eax
movslq %eax, %rsi
leaq 0x2484(%rip), %rdx      # 0x23094
movb $0x0, %al
callq 0x8420
addl 0xc(%rsp), %eax
movl %eax, 0xc(%rsp)
movq 0x228(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movslq 0xc(%rsp), %rdx
callq 0x8a00
movl $0x1, 0x234(%rsp)
jmp 0x20c65
movq 0x228(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movslq 0xc(%rsp), %rdx
callq 0x8a00
movl $0x1, 0x234(%rsp)
movl 0x234(%rsp), %eax
addq $0x238, %rsp            # imm = 0x238
retq
nopw %cs:(%rax,%rax)