// File: /workspace/github_cpp_makefile_star2_O3/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 0x7640
leaq 0x6d67(%rip), %rdx      # 0xf268
leaq -0xf0(%rbp), %rdi
movq %r14, %rsi
callq 0x7660
cmpw $0x3, -0x6a(%rbp)
jne 0x8754
movabsq $0xffffffffffff, %rax   # imm = 0xFFFFFFFFFFFF
andq -0x70(%rbp), %rax
movl -0x78(%rbp), %ecx
shlq $0x5, %rcx
addq %rax, %rcx
cmpq %rcx, -0xf0(%rbp)
je 0x86c3
leaq 0x6d21(%rip), %rsi      # 0xf268
leaq -0x78(%rbp), %rdi
callq 0x7070
testb $0x8, 0xe(%rax)
je 0x86c3
leaq 0x6d07(%rip), %r14      # 0xf268
leaq -0x78(%rbp), %rdi
movq %r14, %rsi
callq 0x7070
movzwl 0xe(%rax), %eax
testb $0x8, %al
je 0x8792
cmpw $0xa, %ax
jne 0x86c3
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 0x8773
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 0x6c7c(%rip), %r15      # 0xf270
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 0x7390
movq 0x10(%rbx), %rcx
testq %rcx, %rcx
je 0x8773
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 0x8773
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 0x78c8
jmp 0x873a
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 0x78c8
movq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7079(%rip), %rdi      # 0xf7d4
leaq 0x6b62(%rip), %rsi      # 0xf2c4
leaq 0x7117(%rip), %rcx      # 0xf880
movl $0x4aa, %edx            # imm = 0x4AA
callq 0x72b0
leaq 0x7aab(%rip), %rdi      # 0x10225
leaq 0x6b43(%rip), %rsi      # 0xf2c4
leaq 0x7aa8(%rip), %rcx      # 0x10230
movl $0x98b, %edx            # imm = 0x98B
callq 0x72b0
leaq 0x948a(%rip), %rdi      # 0x11c23
leaq 0x6b24(%rip), %rsi      # 0xf2c4
leaq 0x9485(%rip), %rcx      # 0x11c2c
movl $0x45a, %edx            # imm = 0x45A
callq 0x72b0
movq %rax, %r14
leaq -0xf0(%rbp), %rdi
callq 0x78c8
movq %rbx, %rdi
callq 0x78c8
jmp 0x87cd
movq %rax, %r14
leaq -0x78(%rbp), %rdi
callq 0x78c8
movq %r14, %rdi
callq 0x77c0