{"type": "func", "start": 5145336, "end": 5145416, "name": "EffectGameObject::getTargetColorIndex", "pseudocode": "// \n// EffectGameObject::getTargetColorIndex from 0x4e82f8 to 0x4e8348 (80 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::updateCopyColor @ 0x4df1de\n// > ColorSelectPopup::updateCopyColor @ 0x4df218\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:06 +0000\n// \n\nint __fastcall EffectGameObject::getTargetColorIndex(EffectGameObject *this)\n{\n  int v1; // r3\n\n  v1 = *((_DWORD *)this + 223);\n  if ( v1 == 105 )\n    return 1004;\n  if ( v1 > 105 )\n  {\n    switch ( v1 )\n    {\n      case 900:\n        return 1009;\n      case 915:\n        return 1002;\n      case 744:\n        return 1003;\n    }\n    return *((_DWORD *)this + 222);\n  }\n  if ( v1 != 29 )\n  {\n    if ( v1 == 30 )\n      return 1001;\n    return *((_DWORD *)this + 222);\n  }\n  return 1000;\n}", "assembly": "; \n; EffectGameObject::getTargetColorIndex from 0x4e82f8 to 0x4e8348 (80 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::updateCopyColor @ 0x4df1de\n; > ColorSelectPopup::updateCopyColor @ 0x4df218\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:06 +0000\n; \nLDR.W           R3, [R0,#0x37C]                                        ; +0x0, 0x4e82f8\nCMP             R3, #0x69 ; 'i'                                        ; +0x4, 0x4e82fc\nBEQ             loc_4E8336                                             ; +0x6, 0x4e82fe\nBGT             loc_4E8310                                             ; +0x8, 0x4e8300\nCMP             R3, #0x1D                                              ; +0xa, 0x4e8302\nBEQ             loc_4E8342                                             ; +0xc, 0x4e8304\nCMP             R3, #0x1E                                              ; +0xe, 0x4e8306\nBNE             loc_4E833C                                             ; +0x10, 0x4e8308\nMOVW            R0, #0x3E9                                             ; +0x12, 0x4e830a\nBX              LR                                                     ; +0x16, 0x4e830e\nCMP.W           R3, #0x384                                             ; +0x18, 0x4e8310\nBEQ             loc_4E832A                                             ; +0x1c, 0x4e8314\nMOVW            R2, #0x393                                             ; +0x1e, 0x4e8316\nCMP             R3, R2                                                 ; +0x22, 0x4e831a\nBEQ             loc_4E8330                                             ; +0x24, 0x4e831c\nCMP.W           R3, #0x2E8                                             ; +0x26, 0x4e831e\nBNE             loc_4E833C                                             ; +0x2a, 0x4e8322\nMOVW            R0, #0x3EB                                             ; +0x2c, 0x4e8324\nBX              LR                                                     ; +0x30, 0x4e8328\nMOVW            R0, #0x3F1                                             ; +0x32, 0x4e832a\nBX              LR                                                     ; +0x36, 0x4e832e\nMOVW            R0, #0x3EA                                             ; +0x38, 0x4e8330\nBX              LR                                                     ; +0x3c, 0x4e8334\nMOV.W           R0, #0x3EC                                             ; +0x3e, 0x4e8336\nBX              LR                                                     ; +0x42, 0x4e833a\nLDR.W           R0, [R0,#0x378]                                        ; +0x44, 0x4e833c\nBX              LR                                                     ; +0x48, 0x4e8340\nMOV.W           R0, #0x3E8                                             ; +0x4a, 0x4e8342\nBX              LR                                                     ; +0x4e, 0x4e8346", "xrefs": ["ColorSelectPopup::updateCopyColor @ 0x4df1de", "ColorSelectPopup::updateCopyColor @ 0x4df218"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}