{"type": "func", "start": 4295030504, "end": 4295030636, "name": "GJEffectManager::traverseInheritanceChain", "pseudocode": "// \n// GJEffectManager::traverseInheritanceChain from 0x10000f6e8 to 0x10000f76c (132 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::processInheritedColors @ 0x10000f578\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 __fastcall GJEffectManager::traverseInheritanceChain(GJEffectManager *a1, InheritanceNode *a2)\n{\n  InheritanceNode *v3; // x20\n  cocos2d::CCArray *m_unkArray430; // x0\n  cocos2d::ccArray *data; // x8\n  __int64 num; // x9\n  unsigned __int64 arr; // x20\n  unsigned __int64 v8; // x21\n\n  if ( a2 )\n  {\n    v3 = a2;\n    do\n    {\n      sub_10024A2D0(a1->m_unkArray430, v3);\n      v3 = v3->m_inheritanceNode;\n    }\n    while ( v3 );\n  }\n  m_unkArray430 = a1->m_unkArray430;\n  if ( m_unkArray430 )\n  {\n    data = m_unkArray430->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (unsigned __int64)data->arr;\n      v8 = arr + 8 * num - 8;\n      do\n      {\n        if ( !*(_QWORD *)v8 )\n          break;\n        GJEffectManager::calculateInheritedColor(a1, (int)a2, *(ColorAction **)(*(_QWORD *)v8 + 72LL));\n        v8 -= 8LL;\n      }\n      while ( v8 >= arr );\n      m_unkArray430 = a1->m_unkArray430;\n    }\n  }\n  sub_10024A45C(m_unkArray430);\n}", "assembly": "; \n; GJEffectManager::traverseInheritanceChain from 0x10000f6e8 to 0x10000f76c (132 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::processInheritedColors @ 0x10000f578\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10000f6e8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10000f6ec\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10000f6f0\nADD             X29, SP, #0x20                                         ; +0xc, 0x10000f6f4\nMOV             X19, X0                                                ; +0x10, 0x10000f6f8\nCBZ             X1, loc_10000F718                                      ; +0x14, 0x10000f6fc\nMOV             X20, X1                                                ; +0x18, 0x10000f700\nLDR             X0, [X19,#0x3E0]                                       ; +0x1c, 0x10000f704\nMOV             X1, X20                                                ; +0x20, 0x10000f708\nBL              sub_10024A2D0                                          ; +0x24, 0x10000f70c\nLDR             X20, [X20,#0x40]                                       ; +0x28, 0x10000f710\nCBNZ            X20, loc_10000F704                                     ; +0x2c, 0x10000f714\nLDR             X0, [X19,#0x3E0]                                       ; +0x30, 0x10000f718\nCBZ             X0, loc_10000F75C                                      ; +0x34, 0x10000f71c\nLDR             X8, [X0,#0x38]                                         ; +0x38, 0x10000f720\nLDR             W9, [X8]                                               ; +0x3c, 0x10000f724\nCBZ             W9, loc_10000F75C                                      ; +0x40, 0x10000f728\nLDR             X20, [X8,#0x10]                                        ; +0x44, 0x10000f72c\nADD             X8, X20, X9,LSL#3                                      ; +0x48, 0x10000f730\nSUB             X21, X8, #8                                            ; +0x4c, 0x10000f734\nLDR             X8, [X21]                                              ; +0x50, 0x10000f738\nCBZ             X8, loc_10000F758                                      ; +0x54, 0x10000f73c\nLDR             X2, [X8,#0x48]                                         ; +0x58, 0x10000f740\nMOV             X0, X19                                                ; +0x5c, 0x10000f744\nBL              GJEffectManager__calculateInheritedColor               ; +0x60, 0x10000f748\nSUB             X21, X21, #8                                           ; +0x64, 0x10000f74c\nCMP             X21, X20                                               ; +0x68, 0x10000f750\nB.CS            loc_10000F738                                          ; +0x6c, 0x10000f754\nLDR             X0, [X19,#0x3E0]                                       ; +0x70, 0x10000f758\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x10000f75c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x10000f760\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x7c, 0x10000f764\nB               sub_10024A45C                                          ; +0x80, 0x10000f768", "xrefs": ["GJEffectManager::processInheritedColors @ 0x10000f578"], "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"}