{"type": "func", "start": 4823332, "end": 4823448, "name": "ColorAction::saveToState", "pseudocode": "// \n// ColorAction::saveToState from 0x499924 to 0x499998 (116 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::saveToState @ 0x4a6a02\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::saveToState(ColorAction *a1, CAState *a2)\n{\n  int v2; // r3\n  cocos2d::ccHSVValue *p_m_copyHSV; // r6\n  float s; // r1\n  float v; // r2\n  int v7; // r3\n\n  v2 = *(_DWORD *)&a1->m_fromColor.r;\n  p_m_copyHSV = &a2->m_copyHSV;\n  *(_WORD *)&a2->m_fromColor.r = v2;\n  a2->m_fromColor.b = BYTE2(v2);\n  a2->m_toColor = a1->m_toColor;\n  a2->m_color = a1->m_color;\n  a2->m_paused = a1->m_paused;\n  a2->m_playerColor = a1->m_playerColor;\n  a2->m_duration = a1->m_duration;\n  a2->m_colorID = a1->m_colorID;\n  a2->m_blending = a1->m_blending;\n  a2->m_fromOpacity = a1->m_fromOpacity;\n  a2->m_toOpacity = a1->m_toOpacity;\n  a2->m_copyOpacity = a1->m_copyOpacity;\n  a2->m_copyID = a1->m_copyID;\n  s = a1->m_copyHSV.s;\n  v = a1->m_copyHSV.v;\n  v7 = *(_DWORD *)&a1->m_copyHSV.absoluteSaturation;\n  p_m_copyHSV->h = a1->m_copyHSV.h;\n  p_m_copyHSV->s = s;\n  p_m_copyHSV->v = v;\n  *(_DWORD *)&p_m_copyHSV->absoluteSaturation = v7;\n  a2->m_deltaTime = a1->m_deltaTime;\n  a2->m_uniqueID = a1->m_uniqueID;\n  a2->m_legacyHSV = a1->m_legacyHSV;\n  a2->m_currentOpacity = a1->m_currentOpacity;\n}", "assembly": "; \n; ColorAction::saveToState from 0x499924 to 0x499998 (116 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::saveToState @ 0x4a6a02\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, 0x499924\nMOV             R5, R0                                                 ; +0x2, 0x499926\nLDR             R3, [R0,#0x44]                                         ; +0x4, 0x499928\nMOV             R4, R1                                                 ; +0x6, 0x49992a\nADD.W           R6, R1, #0x34 ; '4'                                    ; +0x8, 0x49992c\nSTRH            R3, [R1]                                               ; +0xc, 0x499930\nLSRS            R3, R3, #0x10                                          ; +0xe, 0x499932\nSTRB            R3, [R1,#2]                                            ; +0x10, 0x499934\nMOV             R3, R0                                                 ; +0x12, 0x499936\nLDRH.W          R2, [R3,#0x47]!                                        ; +0x14, 0x499938\nSTRH.W          R2, [R1,#3]                                            ; +0x18, 0x49993c\nLDRB            R3, [R3,#2]                                            ; +0x1c, 0x499940\nSTRB            R3, [R1,#5]                                            ; +0x1e, 0x499942\nMOV             R3, R0                                                 ; +0x20, 0x499944\nLDRH.W          R2, [R3,#0x36]!                                        ; +0x22, 0x499946\nSTRH            R2, [R1,#6]                                            ; +0x26, 0x49994a\nLDRB            R3, [R3,#2]                                            ; +0x28, 0x49994c\nSTRB            R3, [R1,#8]                                            ; +0x2a, 0x49994e\nLDRB.W          R3, [R0,#0x35]                                         ; +0x2c, 0x499950\nSTRB            R3, [R1,#9]                                            ; +0x30, 0x499954\nLDR             R3, [R0,#0x54]                                         ; +0x32, 0x499956\nSTR             R3, [R1,#0x10]                                         ; +0x34, 0x499958\nLDR             R3, [R0,#0x4C]                                         ; +0x36, 0x49995a\nSTR             R3, [R1,#0x20]                                         ; +0x38, 0x49995c\nLDR             R3, [R0,#0x58]                                         ; +0x3a, 0x49995e\nSTR             R3, [R1,#0x14]                                         ; +0x3c, 0x499960\nLDRB.W          R3, [R0,#0x50]                                         ; +0x3e, 0x499962\nSTRB            R3, [R1,#0xA]                                          ; +0x42, 0x499966\nLDR             R3, [R0,#0x5C]                                         ; +0x44, 0x499968\nSTR             R3, [R1,#0x24]                                         ; +0x46, 0x49996a\nLDR             R3, [R0,#0x60]                                         ; +0x48, 0x49996c\nSTR             R3, [R1,#0x28]                                         ; +0x4a, 0x49996e\nLDRB.W          R3, [R0,#0x79]                                         ; +0x4c, 0x499970\nSTRB            R3, [R1,#0xB]                                          ; +0x50, 0x499974\nLDR             R3, [R0,#0x74]                                         ; +0x52, 0x499976\nSTR             R3, [R1,#0x18]                                         ; +0x54, 0x499978\nADD.W           R3, R0, #0x64 ; 'd'                                    ; +0x56, 0x49997a\nLDM             R3, {R0-R3}                                            ; +0x5a, 0x49997e\nSTM.W           R6, {R0-R3}                                            ; +0x5c, 0x499980\nLDR             R3, [R5,#0x40]                                         ; +0x60, 0x499984\nSTR             R3, [R4,#0x2C]                                         ; +0x62, 0x499986\nLDR             R3, [R5,#0x7C]                                         ; +0x64, 0x499988\nSTR             R3, [R4,#0x1C]                                         ; +0x66, 0x49998a\nLDRB.W          R3, [R5,#0x84]                                         ; +0x68, 0x49998c\nSTRB            R3, [R4,#0xC]                                          ; +0x6c, 0x499990\nLDR             R3, [R5,#0x3C]                                         ; +0x6e, 0x499992\nSTR             R3, [R4,#0x30]                                         ; +0x70, 0x499994\nPOP             {R4-R6,PC}                                             ; +0x72, 0x499996", "xrefs": ["GJEffectManager::saveToState @ 0x4a6a02"], "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"}