// File: /workspace/github_cpp_makefile_star2_O1/cqbqdd11519[P]DockerClient/docker.cpp
// Function: Docker::requestAndParseJson(Method, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int, rapidjson::GenericDocument<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>, rapidjson::CrtAllocator>&)
JSON_DOCUMENT Docker::requestAndParseJson(Method method, const std::string& path, unsigned success_code, JSON_DOCUMENT& param){
    auto result_obj = requestAndParse(method,path,success_code,param,true);
    bool result = (result_obj.HasMember("success") && result_obj["success"].IsBool() && result_obj["success"].GetBool());
    if(result){
        JSON_DOCUMENT doc(rapidjson::kObjectType);

        JSON_DOCUMENT data(&doc.GetAllocator());
        data.Parse(result_obj["data"].GetString());

        doc.AddMember("success", true, doc.GetAllocator());
        doc.AddMember("data", data, doc.GetAllocator());
        return doc;
    }else{
        return result_obj;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
movl $0x1, (%rsp)
leaq -0x78(%rbp), %r14
movq %r14, %rdi
callq 0x7660
leaq 0x8297(%rip), %rdx      # 0x10268
leaq -0xf0(%rbp), %rdi
movq %r14, %rsi
callq 0x7680
cmpw $0x3, -0x6a(%rbp)
jne 0x8224
movabsq $0xffffffffffff, %rax   # imm = 0xFFFFFFFFFFFF
andq -0x70(%rbp), %rax
movl -0x78(%rbp), %ecx
shlq $0x5, %rcx
addq %rax, %rcx
cmpq %rcx, -0xf0(%rbp)
je 0x8193
leaq 0x8251(%rip), %rsi      # 0x10268
leaq -0x78(%rbp), %rdi
callq 0x7070
testb $0x8, 0xe(%rax)
je 0x8193
leaq 0x8237(%rip), %r14      # 0x10268
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x7070
movzwl 0xe(%rax), %eax
testb $0x8, %al
je 0x8262
cmpw $0xa, %ax
jne 0x8193
movl $0x400, %ecx            # imm = 0x400
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x70e0
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x8243
xorps %xmm0, %xmm0
movaps %xmm0, -0xf0(%rbp)
movq %rax, -0xe0(%rbp)
movups %xmm0, -0xd8(%rbp)
movups %xmm0, -0xc8(%rbp)
movups %xmm0, -0xb8(%rbp)
movq $0x400, -0xa8(%rbp) # imm = 0x400
movl $0x0, -0xa0(%rbp)
movq $0x0, -0x98(%rbp)
leaq 0x81ac(%rip), %r15      # 0x10270
leaq -0x78(%rbp), %rdi
movq %r15, %rsi
callq 0x7070
movq %rax, %rdi
callq 0x7090
leaq -0x90(%rbp), %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rsi)
leaq -0xf0(%rbp), %rdi
callq 0x73a0
movq 0x10(%rbx), %rcx
testq %rcx, %rcx
je 0x8243
xorps %xmm0, %xmm0
leaq -0x100(%rbp), %rsi
movaps %xmm0, (%rsi)
movabsq $0x405000000000000, %rax # imm = 0x405000000000000
orq %rax, %r14
movq %r14, 0x8(%rsi)
movl $0x7, (%rsi)
leaq -0x90(%rbp), %rdx
movaps %xmm0, (%rdx)
movw $0xa, 0xe(%rdx)
movq %rbx, %rdi
callq 0x7060
movq 0x10(%rbx), %rcx
testq %rcx, %rcx
je 0x8243
movabsq $-0x1000000000000, %rax # imm = 0xFFFF000000000000
xorps %xmm0, %xmm0
leaq -0x90(%rbp), %rsi
movaps %xmm0, (%rsi)
movw $0x405, 0xe(%rsi)       # imm = 0x405
andq 0x8(%rsi), %rax
orq %r15, %rax
movq %rax, 0x8(%rsi)
movl $0x4, (%rsi)
leaq -0xf0(%rbp), %rdx
movq %rbx, %rdi
callq 0x7060
leaq -0xf0(%rbp), %rdi
callq 0x78d8
jmp 0x820a
movups -0x78(%rbp), %xmm0
movups %xmm0, (%rbx)
movw $0x0, -0x6a(%rbp)
movq -0x68(%rbp), %rax
movq %rax, 0x10(%rbx)
movq -0x60(%rbp), %rax
movq %rax, 0x18(%rbx)
movq -0x58(%rbp), %rax
movq %rax, 0x20(%rbx)
movq -0x50(%rbp), %rax
movq %rax, 0x28(%rbx)
movq -0x48(%rbp), %rax
movq %rax, 0x30(%rbx)
movq -0x40(%rbp), %rax
movq %rax, 0x38(%rbx)
movq -0x38(%rbp), %rax
movq %rax, 0x40(%rbx)
movq -0x30(%rbp), %rax
movq %rax, 0x48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, -0x38(%rbp)
movups %xmm0, -0x48(%rbp)
movups %xmm0, -0x58(%rbp)
movups -0x28(%rbp), %xmm1
movups %xmm1, 0x50(%rbx)
movl $0x0, -0x28(%rbp)
movq $0x0, -0x20(%rbp)
movups %xmm0, -0x68(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x78d8
movq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x85a9(%rip), %rdi      # 0x107d4
leaq 0x8092(%rip), %rsi      # 0x102c4
leaq 0x8647(%rip), %rcx      # 0x10880
movl $0x4aa, %edx            # imm = 0x4AA
callq 0x72c0
leaq 0x8fdb(%rip), %rdi      # 0x11225
leaq 0x8073(%rip), %rsi      # 0x102c4
leaq 0x8fd8(%rip), %rcx      # 0x11230
movl $0x98b, %edx            # imm = 0x98B
callq 0x72c0
leaq 0xa9ba(%rip), %rdi      # 0x12c23
leaq 0x8054(%rip), %rsi      # 0x102c4
leaq 0xa9b5(%rip), %rcx      # 0x12c2c
movl $0x45a, %edx            # imm = 0x45A
callq 0x72c0
movq %rax, %r14
leaq -0xf0(%rbp), %rdi
callq 0x78d8
movq %rbx, %rdi
callq 0x78d8
jmp 0x829d
movq %rax, %r14
leaq -0x78(%rbp), %rdi
callq 0x78d8
movq %r14, %rdi
callq 0x77e0