{"type": "func", "start": 4816888, "end": 4816970, "name": "GJColorSetupLayer::updateSpriteColor", "pseudocode": "// \n// GJColorSetupLayer::updateSpriteColor from 0x497ff8 to 0x49804a (82 bytes)\n// \n// 1 xrefs:\n// > GJColorSetupLayer::updateSpriteColors @ 0x4980cc\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 GJColorSetupLayer::updateSpriteColor(\n        GJColorSetupLayer *a1,\n        ColorChannelSprite *a2,\n        cocos2d::CCLabelBMFont *a3,\n        int a4)\n{\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r8\n  cocos2d::CCString *v9; // r0\n  const char *CString; // r0\n  ColorAction *ColorAction; // r1\n\n  setString = a3->setString;\n  v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"Col %i\", (const char *)a4);\n  CString = cocos2d::CCString::getCString(v9);\n  setString(a3, (const unsigned __int8 *)CString);\n  ColorAction = (ColorAction *)GJEffectManager::colorExists(a1->m_settingsObject->m_effectManager, a4);\n  if ( ColorAction )\n    ColorAction = GJEffectManager::getColorAction(a1->m_settingsObject->m_effectManager, a4);\n  ColorChannelSprite::updateValues(a2, ColorAction);\n}", "assembly": "; \n; GJColorSetupLayer::updateSpriteColor from 0x497ff8 to 0x49804a (82 bytes)\n; \n; 1 xrefs:\n; > GJColorSetupLayer::updateSpriteColors @ 0x4980cc\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.W          {R4-R8,LR}                                             ; +0x0, 0x497ff8\nMOV             R4, R3                                                 ; +0x4, 0x497ffc\nMOV             R6, R0                                                 ; +0x6, 0x497ffe\nLDR             R3, [R2]                                               ; +0x8, 0x498000\nLDR             R0, =(aColI - 0x49800E); \"Col %i\"                      ; +0xa, 0x498002\nMOV             R5, R1                                                 ; +0xc, 0x498004\nMOV             R1, R4; char *                                         ; +0xe, 0x498006\nMOV             R7, R2                                                 ; +0x10, 0x498008\nADD             R0, PC; \"Col %i\"                                       ; +0x12, 0x49800a\nLDR.W           R8, [R3,#0x1C8]                                        ; +0x14, 0x49800c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x18, 0x498010\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1c, 0x498014\nMOV             R1, R0                                                 ; +0x20, 0x498018\nMOV             R0, R7                                                 ; +0x22, 0x49801a\nBLX             R8                                                     ; +0x24, 0x49801c\nLDR.W           R3, [R6,#0x1F8]                                        ; +0x26, 0x49801e\nMOV             R1, R4; int                                            ; +0x2a, 0x498022\nLDR.W           R0, [R3,#0x108]; this                                  ; +0x2c, 0x498024\nBL              _ZN15GJEffectManager11colorExistsEi; GJEffectManager::colorExists(int) ; +0x30, 0x498028\nMOV             R1, R0                                                 ; +0x34, 0x49802c\nCBZ             R0, loc_498040                                         ; +0x36, 0x49802e\nLDR.W           R3, [R6,#0x1F8]                                        ; +0x38, 0x498030\nMOV             R1, R4; int                                            ; +0x3c, 0x498034\nLDR.W           R0, [R3,#0x108]; this                                  ; +0x3e, 0x498036\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x42, 0x49803a\nMOV             R1, R0; ColorAction *                                  ; +0x46, 0x49803e\nMOV             R0, R5; this                                           ; +0x48, 0x498040\nPOP.W           {R4-R8,LR}                                             ; +0x4a, 0x498042\nB.W             _ZN18ColorChannelSprite12updateValuesEP11ColorAction; ColorChannelSprite::updateValues(ColorAction *) ; +0x4e, 0x498046", "xrefs": ["GJColorSetupLayer::updateSpriteColors @ 0x4980cc"], "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"}