// File: /workspace/github_cpp_makefile_star2_O1/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 0x7078(%rip), %rdx      # 0xc91b
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x57db
leaq 0xa8(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x7f9c
movq 0x28(%rsp), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rsi)
leaq 0xa8(%rsp), %rdi
callq 0x8b24
cmpl $0x0, 0xf8(%rsp)
jne 0x5933
leaq 0x6f2b(%rip), %rdx      # 0xc820
leaq 0x8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x57db
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x3330
movq (%r15), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5933
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x6fe8(%rip), %rdx      # 0xc922
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x57db
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x3330
movq (%r15), %rdi
leaq 0x18(%rsp), %r15
cmpq %r15, %rdi
je 0x5973
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x6fad(%rip), %rdx      # 0xc927
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x57db
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x3330
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x59b1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x8028
leaq 0xa8(%rsp), %rdi
callq 0x8052
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59e6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5a03
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x5a1a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a31
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 0x5a55
jmp 0x5a55
jmp 0x5a55
movq %rax, %rbx
jmp 0x5a65
movq %rax, %rbx
jmp 0x5a80
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x8052
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a80
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x48(%rsp), %rdi
callq 0x8078
movq %rbx, %rdi
callq 0x34a0