// File: /workspace/github_c_makefile_star2_O3/nilyang[P]redis-tdd-annotation/deps/lua/src/lua_cjson.c
// Function: luaopen_cjson
int luaopen_cjson(lua_State *l)
{
    luaL_Reg reg[] = {
        { "encode", json_encode },
        { "decode", json_decode },
        { "encode_sparse_array", json_cfg_encode_sparse_array },
        { "encode_max_depth", json_cfg_encode_max_depth },
        { "encode_number_precision", json_cfg_encode_number_precision },
        { "encode_keep_buffer", json_cfg_encode_keep_buffer },
        { "refuse_invalid_numbers", json_cfg_refuse_invalid_numbers },
        { NULL, NULL }
    };

    /* Use json_fetch_config as a pointer.
     * It's faster than using a config string, and more unique */
    lua_pushlightuserdata(l, &json_config_key);
    json_create_config(l);
    lua_settable(l, LUA_REGISTRYINDEX);

    luaL_register(l, "cjson", reg);

    /* Set cjson.null */
    lua_pushlightuserdata(l, NULL);
    lua_setfield(l, -2, "null");

    /* Set cjson.version */
    lua_pushliteral(l, VERSION);
    lua_setfield(l, -2, "version");

    /* Return cjson table */
    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
leaq 0x4d222(%rip), %rsi     # 0xc3d60
movq %rsp, %rdi
movl $0x10, %ecx
rep  movsq (%rsi), %es:(%rdi)
leaq 0x68000(%rip), %rsi     # 0xdeb50
movq %rbx, %rdi
callq 0x6649b
movl $0x550, %esi            # imm = 0x550
movq %rbx, %rdi
callq 0x66ca1
movq %rax, %r14
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x665ac
leaq 0x1706(%rip), %rsi      # 0x78284
movq %rbx, %rdi
xorl %edx, %edx
callq 0x663e3
leaq 0x2a944(%rip), %rdx     # 0xa14d3
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x666cf
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x66802
leaq 0x500(%r14), %rdi
xorl %esi, %esi
callq 0x7c060
movaps 0x2b5d2(%rip), %xmm0    # 0xa2190
movups %xmm0, 0x52c(%r14)
movaps 0x2b5d3(%rip), %xmm0    # 0xa21a0
movups %xmm0, 0x53c(%r14)
leaq 0x520(%r14), %rdi
leaq 0x2ba84(%rip), %rsi     # 0xa2667
movl $0xe, %edx
xorl %eax, %eax
callq 0x1f570
movaps 0x2b5ba(%rip), %xmm0    # 0xa21b0
movups %xmm0, (%r14,%r15,4)
addq $0x4, %r15
cmpq $0x100, %r15            # imm = 0x100
jne 0x76bf6
movl $0x0, 0x1ec(%r14)
movl $0x1, 0x1f4(%r14)
movl $0x2, 0x16c(%r14)
movl $0x3, 0x174(%r14)
movl $0x8, 0xe8(%r14)
movl $0xa, (%r14)
movl $0xb, %eax
movl %eax, 0x80(%r14)
movabsq $0xb0000000b, %rcx      # imm = 0xB0000000B
movq %rcx, 0x24(%r14)
movl %eax, 0x34(%r14)
movl $0xd, %eax
movl %eax, 0x198(%r14)
movl %eax, 0x1a4(%r14)
movl %eax, 0x124(%r14)
movl %eax, 0x1b8(%r14)
movl %eax, 0x138(%r14)
movl %eax, 0x1d0(%r14)
movl %eax, 0x88(%r14)
movabsq $0x90000000d, %rcx      # imm = 0x90000000D
movq %rcx, 0xac(%r14)
movl %eax, 0xb4(%r14)
movdqa 0x1d366(%rip), %xmm0    # 0x94020
xorl %eax, %eax
movdqa 0x1d36c(%rip), %xmm1    # 0x94030
movdqa 0x2b4f4(%rip), %xmm2    # 0xa21c0
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
movdqa 0x20867(%rip), %xmm4    # 0x97540
movdqa %xmm0, %xmm5
pxor %xmm1, %xmm5
movdqa %xmm2, %xmm6
pcmpgtd %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pcmpeqd %xmm3, %xmm5
pand %xmm6, %xmm5
movd %xmm5, %ecx
testb $0x1, %cl
je 0x76d0b
movl $0xd, 0xc0(%r14,%rax,4)
pextrw $0x4, %xmm5, %ecx
testb $0x1, %cl
je 0x76d28
movq %rax, %rcx
orq $0x31, %rcx
shlq $0x2, %rcx
movl $0xd, (%r14,%rcx)
addq $0x2, %rax
paddq %xmm4, %xmm0
cmpq $0xa, %rax
jne 0x76cd9
movq %r14, %rdi
addq $0x400, %rdi            # imm = 0x400
movl $0x100, %edx            # imm = 0x100
xorl %esi, %esi
callq 0x1f110
movb $0x22, 0x422(%r14)
movb $0x5c, 0x45c(%r14)
movb $0x2f, 0x42f(%r14)
movb $0x8, 0x462(%r14)
movw $0x7509, 0x474(%r14)    # imm = 0x7509
movb $0xa, 0x46e(%r14)
movb $0xc, 0x466(%r14)
movb $0xd, 0x472(%r14)
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x666a8
leaq 0x26b7f(%rip), %rsi     # 0x9d921
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x714d1
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6649b
leaq 0x1f2f1(%rip), %rdx     # 0x960af
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x666cf
leaq 0x2b4ac(%rip), %rsi     # 0xa227e
movl $0x5, %edx
movq %rbx, %rdi
callq 0x6625e
leaq 0x1faba(%rip), %rdx     # 0x968a0
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x666cf
movl $0x1, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq