{"type": "func", "start": 4823448, "end": 4823572, "name": "ColorAction::loadFromState", "pseudocode": "// \n// ColorAction::loadFromState from 0x499998 to 0x499a14 (124 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::loadFromState @ 0x4a6a68\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 ColorAction::loadFromState(ColorAction *a1, CAState *a2)\n{\n  int v3; // r3\n  cocos2d::ccHSVValue *p_m_copyHSV; // r6\n  cocos2d::ccHSVValue *v6; // r3\n  float h; // r0\n  float s; // r1\n  float v; // r2\n  int v10; // r3\n\n  v3 = *(_DWORD *)&a2->m_fromColor.r;\n  p_m_copyHSV = &a1->m_copyHSV;\n  *(_WORD *)&a1->m_fromColor.r = *(_DWORD *)&a2->m_fromColor.r;\n  a1->m_fromColor.b = BYTE2(v3);\n  a1->m_toColor = a2->m_toColor;\n  a1->m_color = a2->m_color;\n  a1->m_paused = a2->m_paused;\n  a1->m_playerColor = a2->m_playerColor;\n  a1->m_duration = a2->m_duration;\n  a1->m_colorID = a2->m_colorID;\n  a1->m_blending = a2->m_blending;\n  a1->m_fromOpacity = a2->m_fromOpacity;\n  a1->m_toOpacity = a2->m_toOpacity;\n  a1->m_copyOpacity = a2->m_copyOpacity;\n  a1->m_copyID = a2->m_copyID;\n  v6 = &a2->m_copyHSV;\n  h = a2->m_copyHSV.h;\n  s = a2->m_copyHSV.s;\n  v = v6->v;\n  v10 = *(_DWORD *)&v6->absoluteSaturation;\n  p_m_copyHSV->h = h;\n  p_m_copyHSV->s = s;\n  p_m_copyHSV->v = v;\n  *(_DWORD *)&p_m_copyHSV->absoluteSaturation = v10;\n  a1->m_deltaTime = a2->m_deltaTime;\n  a1->m_uniqueID = a2->m_uniqueID;\n  a1->m_legacyHSV = a2->m_legacyHSV;\n  a1->m_currentOpacity = a2->m_currentOpacity;\n}", "assembly": "; \n; ColorAction::loadFromState from 0x499998 to 0x499a14 (124 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::loadFromState @ 0x4a6a68\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x499998\nMOV             R4, R0                                                 ; +0x2, 0x49999a\nLDR             R3, [R1]                                               ; +0x4, 0x49999c\nMOV             R5, R1                                                 ; +0x6, 0x49999e\nADD.W           R6, R0, #0x64 ; 'd'                                    ; +0x8, 0x4999a0\nSTRH.W          R3, [R0,#0x44]                                         ; +0xc, 0x4999a4\nLSRS            R3, R3, #0x10                                          ; +0x10, 0x4999a8\nSTRB.W          R3, [R0,#0x46]                                         ; +0x12, 0x4999aa\nMOV             R3, R1                                                 ; +0x16, 0x4999ae\nLDRH.W          R2, [R3,#3]!                                           ; +0x18, 0x4999b0\nSTRH.W          R2, [R0,#0x47]                                         ; +0x1c, 0x4999b4\nLDRB            R3, [R3,#2]                                            ; +0x20, 0x4999b8\nSTRB.W          R3, [R0,#0x49]                                         ; +0x22, 0x4999ba\nMOV             R3, R1                                                 ; +0x26, 0x4999be\nLDRH.W          R2, [R3,#6]!                                           ; +0x28, 0x4999c0\nSTRH            R2, [R0,#0x36]                                         ; +0x2c, 0x4999c4\nLDRB            R3, [R3,#2]                                            ; +0x2e, 0x4999c6\nSTRB.W          R3, [R0,#0x38]                                         ; +0x30, 0x4999c8\nLDRB            R3, [R1,#9]                                            ; +0x34, 0x4999cc\nSTRB.W          R3, [R0,#0x35]                                         ; +0x36, 0x4999ce\nLDR             R3, [R1,#0x10]                                         ; +0x3a, 0x4999d2\nSTR             R3, [R0,#0x54]                                         ; +0x3c, 0x4999d4\nLDR             R3, [R1,#0x20]                                         ; +0x3e, 0x4999d6\nSTR             R3, [R0,#0x4C]                                         ; +0x40, 0x4999d8\nLDR             R3, [R1,#0x14]                                         ; +0x42, 0x4999da\nSTR             R3, [R0,#0x58]                                         ; +0x44, 0x4999dc\nLDRB            R3, [R1,#0xA]                                          ; +0x46, 0x4999de\nSTRB.W          R3, [R0,#0x50]                                         ; +0x48, 0x4999e0\nLDR             R3, [R1,#0x24]                                         ; +0x4c, 0x4999e4\nSTR             R3, [R0,#0x5C]                                         ; +0x4e, 0x4999e6\nLDR             R3, [R1,#0x28]                                         ; +0x50, 0x4999e8\nSTR             R3, [R0,#0x60]                                         ; +0x52, 0x4999ea\nLDRB            R3, [R1,#0xB]                                          ; +0x54, 0x4999ec\nSTRB.W          R3, [R0,#0x79]                                         ; +0x56, 0x4999ee\nLDR             R3, [R1,#0x18]                                         ; +0x5a, 0x4999f2\nSTR             R3, [R0,#0x74]                                         ; +0x5c, 0x4999f4\nADD.W           R3, R1, #0x34 ; '4'                                    ; +0x5e, 0x4999f6\nLDM             R3, {R0-R3}                                            ; +0x62, 0x4999fa\nSTM.W           R6, {R0-R3}                                            ; +0x64, 0x4999fc\nLDR             R3, [R5,#0x2C]                                         ; +0x68, 0x499a00\nSTR             R3, [R4,#0x40]                                         ; +0x6a, 0x499a02\nLDR             R3, [R5,#0x1C]                                         ; +0x6c, 0x499a04\nSTR             R3, [R4,#0x7C]                                         ; +0x6e, 0x499a06\nLDRB            R3, [R5,#0xC]                                          ; +0x70, 0x499a08\nSTRB.W          R3, [R4,#0x84]                                         ; +0x72, 0x499a0a\nLDR             R3, [R5,#0x30]                                         ; +0x76, 0x499a0e\nSTR             R3, [R4,#0x3C]                                         ; +0x78, 0x499a10\nPOP             {R4-R6,PC}                                             ; +0x7a, 0x499a12", "xrefs": ["GJEffectManager::loadFromState @ 0x4a6a68"], "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"}