{"type": "func", "start": 4295022220, "end": 4295022360, "name": "ColorAction::saveToState", "pseudocode": "// \n// ColorAction::saveToState from 0x10000d68c to 0x10000d718 (140 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::saveToState @ 0x100016a68\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall ColorAction::saveToState(ColorAction *a1, CAState *a2)\n{\n  __int16 v2; // w8\n  __int16 v3; // w8\n  __int16 v4; // w8\n  __int64 v5; // d1\n\n  v2 = *(_WORD *)&a1->m_fromColor.r;\n  a2->m_fromColor.b = a1->m_fromColor.b;\n  *(_WORD *)&a2->m_fromColor.r = v2;\n  v3 = *(_WORD *)&a1->m_toColor.r;\n  a2->m_toColor.b = a1->m_toColor.b;\n  *(_WORD *)&a2->m_toColor.r = v3;\n  v4 = *(_WORD *)&a1->m_color.r;\n  a2->m_color.b = a1->m_color.b;\n  *(_WORD *)&a2->m_color.r = v4;\n  a2->m_duration = a1->m_duration;\n  v5 = *(_QWORD *)&a1->m_fromOpacity;\n  *(_QWORD *)&a2->m_playerColor = *(_QWORD *)&a1->m_playerColor;\n  a2->m_paused = a1->m_paused;\n  a2->m_blending = a1->m_blending;\n  *(_QWORD *)&a2->m_fromOpacity = v5;\n  a2->m_copyOpacity = a1->m_copyOpacity;\n  a2->m_copyID = a1->m_copyID;\n  a2->m_copyHSV = a1->m_copyHSV;\n  a2->m_uniqueID = a1->m_uniqueID;\n  a2->m_legacyHSV = a1->m_legacyHSV;\n  *(int32x2_t *)&a2->m_deltaTime = vrev64_s32(*(int32x2_t *)&a1->m_currentOpacity);\n}", "assembly": "; \n; ColorAction::saveToState from 0x10000d68c to 0x10000d718 (140 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::saveToState @ 0x100016a68\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDRH            W8, [X0,#0x48]                                         ; +0x0, 0x10000d68c\nLDRB            W9, [X0,#0x4A]                                         ; +0x4, 0x10000d690\nSTRB            W9, [X1,#2]                                            ; +0x8, 0x10000d694\nSTRH            W8, [X1]                                               ; +0xc, 0x10000d698\nLDURH           W8, [X0,#0x4B]                                         ; +0x10, 0x10000d69c\nLDRB            W9, [X0,#0x4D]                                         ; +0x14, 0x10000d6a0\nSTRB            W9, [X1,#5]                                            ; +0x18, 0x10000d6a4\nSTURH           W8, [X1,#3]                                            ; +0x1c, 0x10000d6a8\nLDRH            W8, [X0,#0x3A]                                         ; +0x20, 0x10000d6ac\nLDRB            W9, [X0,#0x3C]                                         ; +0x24, 0x10000d6b0\nSTRB            W9, [X1,#8]                                            ; +0x28, 0x10000d6b4\nSTRH            W8, [X1,#6]                                            ; +0x2c, 0x10000d6b8\nLDR             S0, [X0,#0x50]                                         ; +0x30, 0x10000d6bc\nSTR             S0, [X1,#0x20]                                         ; +0x34, 0x10000d6c0\nLDP             D0, D1, [X0,#0x58]                                     ; +0x38, 0x10000d6c4\nSTR             D0, [X1,#0x10]                                         ; +0x3c, 0x10000d6c8\nLDRB            W8, [X0,#0x39]                                         ; +0x40, 0x10000d6cc\nSTRB            W8, [X1,#9]                                            ; +0x44, 0x10000d6d0\nLDRB            W8, [X0,#0x54]                                         ; +0x48, 0x10000d6d4\nSTRB            W8, [X1,#0xA]                                          ; +0x4c, 0x10000d6d8\nSTUR            D1, [X1,#0x24]                                         ; +0x50, 0x10000d6dc\nLDRB            W8, [X0,#0x7D]                                         ; +0x54, 0x10000d6e0\nSTRB            W8, [X1,#0xB]                                          ; +0x58, 0x10000d6e4\nLDR             W8, [X0,#0x78]                                         ; +0x5c, 0x10000d6e8\nSTR             W8, [X1,#0x18]                                         ; +0x60, 0x10000d6ec\nLDUR            Q0, [X0,#0x68]                                         ; +0x64, 0x10000d6f0\nSTUR            Q0, [X1,#0x34]                                         ; +0x68, 0x10000d6f4\nLDR             W8, [X0,#0x80]                                         ; +0x6c, 0x10000d6f8\nSTR             W8, [X1,#0x1C]                                         ; +0x70, 0x10000d6fc\nLDRB            W8, [X0,#0x88]                                         ; +0x74, 0x10000d700\nSTRB            W8, [X1,#0xC]                                          ; +0x78, 0x10000d704\nLDR             D0, [X0,#0x40]                                         ; +0x7c, 0x10000d708\nREV64           V0.2S, V0.2S                                           ; +0x80, 0x10000d70c\nSTUR            D0, [X1,#0x2C]                                         ; +0x84, 0x10000d710\nRET                                                                    ; +0x88, 0x10000d714", "xrefs": ["GJEffectManager::saveToState @ 0x100016a68"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}