// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/enums.c
// Function: enums_new
static int enums_new(lua_State *L, uint32_t domain, uint32_t code, const char *str)
    {
    rec_t *rec;
    if((rec = (rec_t*)Malloc(L, sizeof(rec_t))) == NULL) 
        return luaL_error(L, errstring(ERR_MEMORY));

    memset(rec, 0, sizeof(rec_t));
    rec->domain = domain;
    rec->code = code;
    rec->str = Strdup(L, str);
    if(code_search(domain, code) || str_search(domain, str))
        { 
        Free(L, rec->str);
        Free(L, rec); 
        return unexpected(L); /* duplicate value */
        }
    code_insert(rec);
    str_insert(rec);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movl %edx, %r12d
movl %esi, %ebp
movq %rdi, %r14
pushq $0x50
popq %rsi
callq 0x13c00
testq %rax, %rax
je 0x1d88d
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movl %ebp, 0x40(%rax)
movl %r12d, 0x44(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x138b0
movq %rax, %r13
movq %rax, 0x48(%rbx)
movl %ebp, %edi
movl %r12d, %esi
callq 0x17a1c
testq %rax, %rax
jne 0x1d84e
movl %ebp, %edi
movq %r15, %rsi
callq 0x17920
testq %rax, %rax
je 0x1d8b0
movq %r14, %rdi
movq %r13, %rsi
callq 0x13220
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13220
leaq 0x428b4(%rip), %rsi     # 0x6011f
leaq 0x42c32(%rip), %rdx     # 0x604a4
pushq $0x7c
popq %rcx
movq %r14, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13bb0
pushq $-0x6
popq %rdi
callq 0x13cc0
movq %r14, %rdi
movq %rax, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13bb0
pushq $0x8
popq %r15
leaq 0x6898d(%rip), %rsi     # 0x86248
xorl %ecx, %ecx
movq %r15, %rdx
movq (%rsi), %r14
testq %r14, %r14
je 0x1d8f1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1dd14
movq %r14, %rsi
movq %r14, %rcx
movl $0x0, %edx
testl %eax, %eax
js 0x1d8c0
je 0x1dad2
leaq 0x8(%r14), %rsi
movq %r14, %rcx
jmp 0x1d8bd
movq %rcx, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movl $0x1, 0x18(%rbx)
addq %rcx, %rdx
testq %rcx, %rcx
leaq 0x68939(%rip), %rax     # 0x86248
cmoveq %rax, %rdx
movq %rbx, (%rdx)
movq %rbx, %rsi
testq %rcx, %rcx
je 0x1dac7
cmpl $0x1, 0x18(%rcx)
jne 0x1dac7
movq 0x10(%rcx), %rdx
movq (%rdx), %rdi
cmpq %rdi, %rcx
je 0x1d95c
testq %rdi, %rdi
je 0x1d949
cmpl $0x1, 0x18(%rdi)
jne 0x1d949
andl $0x0, 0x18(%rdi)
jmp 0x1d971
movq (%rcx), %rdi
cmpq %rsi, %rdi
je 0x1d998
movq %rcx, %rdi
movq %rsi, %rcx
jmp 0x1da07
movq 0x8(%rdx), %r8
testq %r8, %r8
je 0x1d984
cmpl $0x1, 0x18(%r8)
jne 0x1d984
andl $0x0, 0x18(%r8)
andl $0x0, 0x18(%rcx)
movl $0x1, 0x18(%rdx)
movq %rdx, %rcx
jmp 0x1dabb
movq 0x8(%rcx), %r8
cmpq %rsi, %r8
je 0x1d9ba
movq %rcx, %r8
movq %rsi, %rcx
jmp 0x1da76
movq 0x8(%rdi), %r8
movq %r8, (%rcx)
testq %r8, %r8
je 0x1d9e3
movq %rcx, 0x10(%r8)
movq 0x10(%rcx), %r8
movq %r8, 0x10(%rdi)
movq %rax, %r9
testq %r8, %r8
jne 0x1d9eb
jmp 0x1d9f9
movq (%r8), %rdi
movq %rdi, 0x8(%rcx)
testq %rdi, %rdi
je 0x1da50
movq %rcx, 0x10(%rdi)
movq 0x10(%rcx), %rdi
movq %rdi, 0x10(%r8)
movq %rax, %r9
testq %rdi, %rdi
jne 0x1da58
jmp 0x1da66
movq %rdx, 0x10(%rdi)
movq 0x10(%rcx), %r8
xorl %r9d, %r9d
cmpq (%r8), %rcx
setne %r9b
leaq (%r8,%r9,8), %r9
movq %rdi, (%r9)
movq %rcx, 0x8(%rdi)
movq %rdi, 0x10(%rcx)
movq %rsi, %rdi
andl $0x0, 0x18(%rdi)
movl $0x1, 0x18(%rdx)
movq 0x8(%rdx), %rsi
movq (%rsi), %rdi
movq %rdi, 0x8(%rdx)
testq %rdi, %rdi
je 0x1da26
movq %rdx, 0x10(%rdi)
movq 0x10(%rdx), %rdi
movq %rdi, 0x10(%rsi)
movq %rax, %r8
testq %rdi, %rdi
je 0x1da44
xorl %r8d, %r8d
cmpq (%rdi), %rdx
setne %r8b
leaq (%rdi,%r8,8), %r8
movq %rsi, (%r8)
movq %rdx, (%rsi)
movq %rsi, 0x10(%rdx)
jmp 0x1dabb
movq %rdx, 0x10(%r8)
movq 0x10(%rcx), %rdi
xorl %r9d, %r9d
cmpq (%rdi), %rcx
setne %r9b
leaq (%rdi,%r9,8), %r9
movq %r8, (%r9)
movq %rcx, (%r8)
movq %r8, 0x10(%rcx)
movq (%rdx), %rdi
movq %rsi, %r8
andl $0x0, 0x18(%r8)
movl $0x1, 0x18(%rdx)
movq 0x8(%rdi), %rsi
movq %rsi, (%rdx)
testq %rsi, %rsi
je 0x1da92
movq %rdx, 0x10(%rsi)
movq 0x10(%rdx), %rsi
movq %rsi, 0x10(%rdi)
movq %rax, %r8
testq %rsi, %rsi
je 0x1dab0
xorl %r8d, %r8d
cmpq (%rsi), %rdx
setne %r8b
leaq (%rsi,%r8,8), %r8
movq %rdi, (%r8)
movq %rdx, 0x8(%rdi)
movq %rdi, 0x10(%rdx)
movq %rcx, %rsi
movq 0x10(%rcx), %rcx
jmp 0x1d919
movq 0x6877a(%rip), %rax     # 0x86248
andl $0x0, 0x18(%rax)
xorl %ecx, %ecx
leaq 0x68775(%rip), %rdx     # 0x86250
pushq $0x20
popq %r15
pushq $0x28
popq %r12
xorl %eax, %eax
movq (%rdx), %r14
testq %r14, %r14
je 0x1db10
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1dd34
movq %r15, %rdx
testl %eax, %eax
js 0x1db08
movq %r12, %rdx
je 0x1dd05
addq %r14, %rdx
movq %r14, %rcx
jmp 0x1dae5
movq %rcx, 0x30(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movl $0x1, 0x38(%rbx)
leaq 0x68727(%rip), %rdx     # 0x86250
movq %rdx, %rsi
testq %rcx, %rcx
je 0x1db3f
testl %eax, %eax
js 0x1db3b
leaq 0x28(%rcx), %rsi
jmp 0x1db3f
leaq 0x20(%rcx), %rsi
movq %rbx, (%rsi)
testq %rcx, %rcx
je 0x1dcfa
cmpl $0x1, 0x38(%rcx)
jne 0x1dcfa
movq 0x30(%rcx), %rax
movq 0x20(%rax), %rsi
cmpq %rsi, %rcx
je 0x1db87
testq %rsi, %rsi
je 0x1db73
cmpl $0x1, 0x38(%rsi)
jne 0x1db73
andl $0x0, 0x38(%rsi)
jmp 0x1db9a
movq 0x20(%rcx), %rsi
cmpq %rbx, %rsi
je 0x1dbc1
movq %rcx, %rsi
movq %rbx, %rcx
jmp 0x1dc34
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x1dbad
cmpl $0x1, 0x38(%rdi)
jne 0x1dbad
andl $0x0, 0x38(%rdi)
andl $0x0, 0x38(%rcx)
movl $0x1, 0x38(%rax)
movq %rax, %rcx
jmp 0x1dcee
movq 0x28(%rcx), %rdi
cmpq %rbx, %rdi
je 0x1dbe4
movq %rcx, %rdi
movq %rbx, %rcx
jmp 0x1dca7
movq 0x28(%rsi), %rdi
movq %rdi, 0x20(%rcx)
testq %rdi, %rdi
je 0x1dc0e
movq %rcx, 0x30(%rdi)
movq 0x30(%rcx), %rdi
movq %rdi, 0x30(%rsi)
movq %rdx, %r8
testq %rdi, %rdi
jne 0x1dc16
jmp 0x1dc26
movq 0x20(%rdi), %rsi
movq %rsi, 0x28(%rcx)
testq %rsi, %rsi
je 0x1dc7d
movq %rcx, 0x30(%rsi)
movq 0x30(%rcx), %rsi
movq %rsi, 0x30(%rdi)
movq %rdx, %r8
testq %rsi, %rsi
jne 0x1dc85
jmp 0x1dc95
movq %rax, 0x30(%rsi)
movq 0x30(%rcx), %rdi
leaq 0x20(%rdi), %r9
leaq 0x28(%rdi), %r8
cmpq 0x20(%rdi), %rcx
cmoveq %r9, %r8
movq %rsi, (%r8)
movq %rcx, 0x28(%rsi)
movq %rsi, 0x30(%rcx)
movq %rbx, %rsi
andl $0x0, 0x38(%rsi)
movl $0x1, 0x38(%rax)
movq 0x28(%rax), %rsi
movq 0x20(%rsi), %rdi
movq %rdi, 0x28(%rax)
testq %rdi, %rdi
je 0x1dc54
movq %rax, 0x30(%rdi)
movq 0x30(%rax), %r8
movq %r8, 0x30(%rsi)
movq %rdx, %rdi
testq %r8, %r8
je 0x1dc74
leaq 0x20(%r8), %r9
leaq 0x28(%r8), %rdi
cmpq 0x20(%r8), %rax
cmoveq %r9, %rdi
movq %rsi, (%rdi)
movq %rax, 0x20(%rsi)
jmp 0x1dcea
movq %rax, 0x30(%rdi)
movq 0x30(%rcx), %rsi
leaq 0x20(%rsi), %r9
leaq 0x28(%rsi), %r8
cmpq 0x20(%rsi), %rcx
cmoveq %r9, %r8
movq %rdi, (%r8)
movq %rcx, 0x20(%rdi)
movq %rdi, 0x30(%rcx)
movq 0x20(%rax), %rsi
movq %rbx, %rdi
andl $0x0, 0x38(%rdi)
movl $0x1, 0x38(%rax)
movq 0x28(%rsi), %rdi
movq %rdi, 0x20(%rax)
testq %rdi, %rdi
je 0x1dcc3
movq %rax, 0x30(%rdi)
movq 0x30(%rax), %r8
movq %r8, 0x30(%rsi)
movq %rdx, %rdi
testq %r8, %r8
je 0x1dce3
leaq 0x20(%r8), %r9
leaq 0x28(%r8), %rdi
cmpq 0x20(%r8), %rax
cmoveq %r9, %rdi
movq %rsi, (%rdi)
movq %rax, 0x28(%rsi)
movq %rsi, 0x30(%rax)
movq %rcx, %rbx
movq 0x30(%rcx), %rcx
jmp 0x1db42
movq 0x6854f(%rip), %rax     # 0x86250
andl $0x0, 0x38(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq