// File: /workspace/github_cpp_makefile_star2_O3/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: parseAction(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>> const&, std::vector<Action, std::allocator<Action>>&)
int parseAction(const rapidjson::Value& function, std::vector<Action>& vecDeviceActions)
{
    Action a;
    std::string action = TryGetMemberString(function, "action");
    rapidjson::Document d;
    d.Parse(action.c_str());
    if (!d.HasParseError())
    {
        a.m_strCommand = TryGetMemberString(d, "command");
    }
    a.m_strName = TryGetMemberString(function, "name");
    a.m_strLabel = TryGetMemberString(function, "label");

    vecDeviceActions.push_back(a);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
leaq 0x6a82(%rip), %rdx      # 0xc91b
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x5dd1
leaq 0xa8(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x8506
movq 0x28(%rsp), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rsi)
leaq 0xa8(%rsp), %rdi
callq 0x9096
cmpl $0x0, 0xf8(%rsp)
jne 0x5f29
leaq 0x6935(%rip), %rdx      # 0xc820
leaq 0x8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x5dd1
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x3330
movq (%r15), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5f29
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x69f2(%rip), %rdx      # 0xc922
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x5dd1
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x3330
movq (%r15), %rdi
leaq 0x18(%rsp), %r15
cmpq %r15, %rdi
je 0x5f69
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x69b7(%rip), %rdx      # 0xc927
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x5dd1
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x3330
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x5fa7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x8592
leaq 0xa8(%rsp), %rdi
callq 0x85bc
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5fdc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5ff9
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x6010
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x6027
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3290
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x604b
jmp 0x604b
jmp 0x604b
movq %rax, %rbx
jmp 0x605b
movq %rax, %rbx
jmp 0x6076
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x85bc
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6076
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x48(%rsp), %rdi
callq 0x85ee
movq %rbx, %rdi
callq 0x34a0