{"type": "func", "start": 9174132, "end": 9174228, "name": "GJEffectManager::colorForIndex", "pseudocode": "// \n// GJEffectManager::colorForIndex from 0x8bfc74 to 0x8bfcd4 (96 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa7118\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\ncocos2d::ccColor3B GJEffectManager::colorForIndex(GJEffectManager *a1, int a2)\n{\n  ColorAction *ColorAction; // x0\n  unsigned __int8 r; // [xsp+18h] [xbp+18h]\n  unsigned __int8 g; // [xsp+19h] [xbp+19h]\n  unsigned __int8 b; // [xsp+1Ah] [xbp+1Ah]\n\n  ColorAction = GJEffectManager::getColorAction(a1, a2);\n  if ( ColorAction )\n  {\n    r = ColorAction->m_fromColor.r;\n    g = ColorAction->m_fromColor.g;\n    b = ColorAction->m_fromColor.b;\n  }\n  else\n  {\n    r = -1;\n    g = -1;\n    b = -1;\n  }\n  return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16));\n}", "assembly": "; \n; GJEffectManager::colorForIndex from 0x8bfc74 to 0x8bfcd4 (96 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa7118\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x8bfc74\nMOV             X29, SP                                                ; +0x4, 0x8bfc78\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x8, 0x8bfc7c\nCBZ             X0, loc_8BFCC0                                         ; +0xc, 0x8bfc80\nLDRB            W2, [X0,#0x49]                                         ; +0x10, 0x8bfc84\nLDRB            W1, [X0,#0x4A]                                         ; +0x14, 0x8bfc88\nLDRB            W0, [X0,#0x48]                                         ; +0x18, 0x8bfc8c\nSTRB            W0, [X29,#0x20+var_8]                                  ; +0x1c, 0x8bfc90\nSTRB            W2, [X29,#0x20+var_7]                                  ; +0x20, 0x8bfc94\nSTRB            W1, [X29,#0x20+var_6]                                  ; +0x24, 0x8bfc98\nLDRB            W1, [X29,#0x20+var_8]                                  ; +0x28, 0x8bfc9c\nMOV             X0, #0                                                 ; +0x2c, 0x8bfca0\nLDRB            W2, [X29,#0x20+var_7]                                  ; +0x30, 0x8bfca4\nBFXIL           X0, X1, #0, #8                                         ; +0x34, 0x8bfca8\nLDRB            W1, [X29,#0x20+var_6]                                  ; +0x38, 0x8bfcac\nBFI             X0, X2, #8, #8                                         ; +0x3c, 0x8bfcb0\nBFI             X0, X1, #0x10, #8                                      ; +0x40, 0x8bfcb4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0x8bfcb8\nRET                                                                    ; +0x48, 0x8bfcbc\nMOV             W0, #0xFFFFFFFF                                        ; +0x4c, 0x8bfcc0\nSTRB            W0, [X29,#0x20+var_8]                                  ; +0x50, 0x8bfcc4\nSTRB            W0, [X29,#0x20+var_7]                                  ; +0x54, 0x8bfcc8\nSTRB            W0, [X29,#0x20+var_6]                                  ; +0x58, 0x8bfccc\nB               loc_8BFC9C                                             ; +0x5c, 0x8bfcd0", "xrefs": ["<???> @ 0xa7118"], "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"}