// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x50bb9(%rip), %rsi     # 0xc0d60
pushq $0x10
popq %rcx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x6b999(%rip), %rsi     # 0xdbb50
movq %rbx, %rdi
callq 0x60f96
movl $0x550, %esi            # imm = 0x550
movq %rbx, %rdi
callq 0x61797
movq %rax, %r14
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x610a7
leaq 0x149b(%rip), %rsi      # 0x71680
movq %rbx, %rdi
xorl %edx, %edx
callq 0x60ee3
leaq 0x2726d(%rip), %rdx     # 0x97463
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x611c6
movq %rbx, %rdi
movl %ebp, %esi
callq 0x612f9
leaq 0x500(%r14), %rdi
xorl %esi, %esi
callq 0x74e2c
movaps 0x27f1e(%rip), %xmm0    # 0x98140
movups %xmm0, 0x52c(%r14)
movq $0x1, 0x53c(%r14)
movl $0x1, 0x544(%r14)
pushq $0xe
popq %rsi
movq %r14, %rdi
callq 0x71663
cmpq $0x100, %r15            # imm = 0x100
je 0x70261
movl $0xc, (%r14,%r15,4)
incq %r15
jmp 0x7024b
andl $0x0, 0x1ec(%r14)
movl $0x1, 0x1f4(%r14)
movl $0x2, 0x16c(%r14)
movl $0x3, 0x174(%r14)
movl $0x8, 0xe8(%r14)
movl $0xa, (%r14)
pushq $0xb
popq %rax
movl %eax, 0x80(%r14)
movabsq $0xb0000000b, %rcx      # imm = 0xB0000000B
movq %rcx, 0x24(%r14)
movl %eax, 0x34(%r14)
pushq $0xd
popq %rax
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
cmpq $0xa, %rax
je 0x7031d
movl $0xd, 0xc0(%r14,%rax,4)
incq %rax
jmp 0x70306
xorl %eax, %eax
cmpq $0x100, %rax            # imm = 0x100
je 0x70335
movb $0x0, 0x400(%r14,%rax)
incq %rax
jmp 0x7031f
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 0x6119f
leaq 0x23556(%rip), %rsi     # 0x938e1
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x6af83
movq %rbx, %rdi
xorl %esi, %esi
callq 0x60f96
leaq 0x1bcc8(%rip), %rdx     # 0x8c06f
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x611c6
leaq 0x27e43(%rip), %rsi     # 0x981fe
pushq $0x5
popq %rdx
movq %rbx, %rdi
callq 0x60d61
leaq 0x1c493(%rip), %rdx     # 0x8c860
movq %rbx, %rdi
movl %ebp, %esi
callq 0x611c6
pushq $0x1
popq %rax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq