{"type": "func", "start": 4824122, "end": 4824146, "name": "GJEffectManager::wouldCreateLoop", "pseudocode": "// \n// GJEffectManager::wouldCreateLoop from 0x499c3a to 0x499c52 (24 bytes)\n// \n// 2 xrefs:\n// > GJEffectManager::wouldCreateLoop @ 0x499c48\n// > GJEffectManager::processInheritedColors @ 0x49a84e\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\nbool GJEffectManager::wouldCreateLoop(GJEffectManager *a1, InheritanceNode *a2, int a3)\n{\n  while ( 1 )\n  {\n    if ( a2->m_colorID == a3 )\n      return 1;\n    a2 = a2->m_inheritanceNode;\n    if ( !a2 )\n      break;\n    if ( a2->m_colorID == a3 )\n      return 1;\n  }\n  return 0;\n}", "assembly": "; \n; GJEffectManager::wouldCreateLoop from 0x499c3a to 0x499c52 (24 bytes)\n; \n; 2 xrefs:\n; > GJEffectManager::wouldCreateLoop @ 0x499c48\n; > GJEffectManager::processInheritedColors @ 0x49a84e\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             R3, [R1,#0x34]                                         ; +0x0, 0x499c3a\nCMP             R3, R2                                                 ; +0x2, 0x499c3c\nBEQ             loc_499C4A                                             ; +0x4, 0x499c3e\nLDR             R1, [R1,#0x38]                                         ; +0x6, 0x499c40\nCBZ             R1, loc_499C4E                                         ; +0x8, 0x499c42\nLDR             R3, [R1,#0x34]                                         ; +0xa, 0x499c44\nCMP             R3, R2                                                 ; +0xc, 0x499c46\nBNE             _ZN15GJEffectManager15wouldCreateLoopEP15InheritanceNodei; GJEffectManager::wouldCreateLoop(InheritanceNode *,int) ; +0xe, 0x499c48\nMOVS            R0, #1                                                 ; +0x10, 0x499c4a\nBX              LR                                                     ; +0x12, 0x499c4c\nMOV             R0, R1                                                 ; +0x14, 0x499c4e\nBX              LR                                                     ; +0x16, 0x499c50", "xrefs": ["GJEffectManager::wouldCreateLoop @ 0x499c48", "GJEffectManager::processInheritedColors @ 0x49a84e"], "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"}