// File: /workspace/github_c_makefile_star2_O1/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 0x4d28e(%rip), %rsi     # 0xc3d60
movq %rsp, %rdi
movl $0x10, %ecx
rep  movsq (%rsi), %es:(%rdi)
leaq 0x6806c(%rip), %rsi     # 0xdeb50
movq %rbx, %rdi
callq 0x66936
movl $0x550, %esi            # imm = 0x550
movq %rbx, %rdi
callq 0x67132
movq %rax, %r14
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x66a47
leaq 0x167b(%rip), %rsi      # 0x7818d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x66885
leaq 0x2a920(%rip), %rdx     # 0xa1443
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x66b6a
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x66c8f
leaq 0x500(%r14), %rdi
xorl %esi, %esi
callq 0x7beb0
movaps 0x2b5ae(%rip), %xmm0    # 0xa2100
movups %xmm0, 0x52c(%r14)
movaps 0x2b5af(%rip), %xmm0    # 0xa2110
movups %xmm0, 0x53c(%r14)
leaq 0x520(%r14), %rdi
leaq 0x2ba40(%rip), %rsi     # 0xa25b7
movl $0xe, %edx
xorl %eax, %eax
callq 0x1f570
movl $0xc, (%r14,%r15,4)
incq %r15
cmpq $0x100, %r15            # imm = 0x100
jne 0x76b83
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)
xorl %eax, %eax
movl $0xd, 0xc0(%r14,%rax,4)
incq %rax
cmpq $0xa, %rax
jne 0x76c43
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 0x66b43
leaq 0x26c1d(%rip), %rsi     # 0x9d8e1
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x713dc
movq %rbx, %rdi
xorl %esi, %esi
callq 0x66936
leaq 0x1f37f(%rip), %rdx     # 0x9605f
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x66b6a
leaq 0x2b4da(%rip), %rsi     # 0xa21ce
movl $0x5, %edx
movq %rbx, %rdi
callq 0x66700
leaq 0x1fb4b(%rip), %rdx     # 0x96853
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x66b6a
movl $0x1, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq