{"type": "func", "start": 4825620, "end": 4825722, "name": "GJEffectManager::updateColorEffects", "pseudocode": "// \n// GJEffectManager::updateColorEffects from 0x49a214 to 0x49a27a (102 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::updateEffects @ 0x49e672\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 GJEffectManager::updateColorEffects(GJEffectManager *a1, float a2)\n{\n  cocos2d::CCDictionary *m_unkObject148; // r3\n  cocos2d::CCDictElement *m_pElements; // r3\n  cocos2d::CCDictElement *next; // r4\n  cocos2d::CCObject *m_pObject; // r5\n  int m_uUnknown; // r3\n  char m_uID; // r2\n  cocos2d::CCDictElement *v9; // r2\n\n  m_unkObject148 = a1->m_unkObject148;\n  if ( m_unkObject148 )\n  {\n    m_pElements = m_unkObject148->m_pElements;\n    if ( m_pElements )\n      next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n    else\n      next = nullptr;\n    while ( m_pElements )\n    {\n      m_pObject = m_pElements->m_pObject;\n      ColorAction::step((ColorAction *)m_pObject, a2);\n      if ( !m_pObject[2].m_nTag )\n      {\n        m_uUnknown = m_pObject[2].m_uUnknown;\n        m_uID = m_pObject[1].m_uID;\n        *(_WORD *)(m_uUnknown + 268) = HIWORD(m_pObject[1].__vftable);\n        *(_BYTE *)(m_uUnknown + 270) = m_uID;\n        *(float *)(m_uUnknown + 264) = *(float *)&m_pObject[1].m_nLuaID * 255.0;\n      }\n      if ( next )\n        v9 = (cocos2d::CCDictElement *)next->hh.next;\n      else\n        v9 = nullptr;\n      m_pElements = next;\n      next = v9;\n    }\n  }\n}", "assembly": "; \n; GJEffectManager::updateColorEffects from 0x49a214 to 0x49a27a (102 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::updateEffects @ 0x49e672\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\nLDR.W           R3, [R0,#0x10C]                                        ; +0x0, 0x49a214\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x49a218\nMOV             R6, R1                                                 ; +0x6, 0x49a21a\nVPUSH           {D8}                                                   ; +0x8, 0x49a21c\nCBZ             R3, loc_49A274                                         ; +0xc, 0x49a220\nLDR             R3, [R3,#0x34]                                         ; +0xe, 0x49a222\nCBZ             R3, loc_49A22C                                         ; +0x10, 0x49a224\nLDR.W           R4, [R3,#0x110]                                        ; +0x12, 0x49a226\nB               loc_49A22E                                             ; +0x16, 0x49a22a\nMOV             R4, R3                                                 ; +0x18, 0x49a22c\nVLDR            S16, =255.0                                            ; +0x1a, 0x49a22e\nCBZ             R3, loc_49A274                                         ; +0x1e, 0x49a232\nLDR.W           R5, [R3,#0x104]                                        ; +0x20, 0x49a234\nMOV             R1, R6; float                                          ; +0x24, 0x49a238\nMOV             R0, R5; this                                           ; +0x26, 0x49a23a\nBL              _ZN11ColorAction4stepEf; ColorAction::step(float)      ; +0x28, 0x49a23c\nLDR             R3, [R5,#0x74]                                         ; +0x2c, 0x49a240\nCBNZ            R3, loc_49A264                                         ; +0x2e, 0x49a242\nMOV             R2, R5                                                 ; +0x30, 0x49a244\nLDR.W           R3, [R5,#0x88]                                         ; +0x32, 0x49a246\nLDRH.W          R1, [R2,#0x36]!                                        ; +0x36, 0x49a24a\nLDRB            R2, [R2,#2]                                            ; +0x3a, 0x49a24e\nSTRH.W          R1, [R3,#0x10C]                                        ; +0x3c, 0x49a250\nSTRB.W          R2, [R3,#0x10E]                                        ; +0x40, 0x49a254\nVLDR            S15, [R5,#0x3C]                                        ; +0x44, 0x49a258\nVMUL.F32        S15, S15, S16                                          ; +0x48, 0x49a25c\nVSTR            S15, [R3,#0x108]                                       ; +0x4c, 0x49a260\nCBZ             R4, loc_49A26C                                         ; +0x50, 0x49a264\nLDR.W           R2, [R4,#0x110]                                        ; +0x52, 0x49a266\nB               loc_49A26E                                             ; +0x56, 0x49a26a\nMOV             R2, R4                                                 ; +0x58, 0x49a26c\nMOV             R3, R4                                                 ; +0x5a, 0x49a26e\nMOV             R4, R2                                                 ; +0x5c, 0x49a270\nB               loc_49A232                                             ; +0x5e, 0x49a272\nVPOP            {D8}                                                   ; +0x60, 0x49a274\nPOP             {R4-R6,PC}                                             ; +0x64, 0x49a278", "xrefs": ["GJEffectManager::updateEffects @ 0x49e672"], "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"}