{"type": "func", "start": 4105744, "end": 4105824, "name": "EffectGameObject::getTargetColorIndex", "pseudocode": "// \n// EffectGameObject::getTargetColorIndex from 0x3ea610 to 0x3ea660 (80 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::updateCopyColor @ 0x3da6aa\n// > ColorSelectPopup::updateCopyColor @ 0x3da6e4\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\nint EffectGameObject::getTargetColorIndex(EffectGameObject *a1)\n{\n  int m_objectID; // r3\n\n  m_objectID = a1->m_objectID;\n  if ( m_objectID == 105 )\n    return 1004;\n  if ( m_objectID > 105 )\n  {\n    switch ( m_objectID )\n    {\n      case 900:\n        return 1009;\n      case 915:\n        return 1002;\n      case 744:\n        return 1003;\n    }\n    return a1->m_targetColor;\n  }\n  if ( m_objectID != 29 )\n  {\n    if ( m_objectID == 30 )\n      return 1001;\n    return a1->m_targetColor;\n  }\n  return 1000;\n}", "assembly": "; \n; EffectGameObject::getTargetColorIndex from 0x3ea610 to 0x3ea660 (80 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::updateCopyColor @ 0x3da6aa\n; > ColorSelectPopup::updateCopyColor @ 0x3da6e4\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.W           R3, [R0,#0x374]                                        ; +0x0, 0x3ea610\nCMP             R3, #0x69 ; 'i'                                        ; +0x4, 0x3ea614\nBEQ             loc_3EA64E                                             ; +0x6, 0x3ea616\nBGT             loc_3EA628                                             ; +0x8, 0x3ea618\nCMP             R3, #0x1D                                              ; +0xa, 0x3ea61a\nBEQ             loc_3EA65A                                             ; +0xc, 0x3ea61c\nCMP             R3, #0x1E                                              ; +0xe, 0x3ea61e\nBNE             loc_3EA654                                             ; +0x10, 0x3ea620\nMOVW            R0, #0x3E9                                             ; +0x12, 0x3ea622\nBX              LR                                                     ; +0x16, 0x3ea626\nCMP.W           R3, #0x384                                             ; +0x18, 0x3ea628\nBEQ             loc_3EA642                                             ; +0x1c, 0x3ea62c\nMOVW            R2, #0x393                                             ; +0x1e, 0x3ea62e\nCMP             R3, R2                                                 ; +0x22, 0x3ea632\nBEQ             loc_3EA648                                             ; +0x24, 0x3ea634\nCMP.W           R3, #0x2E8                                             ; +0x26, 0x3ea636\nBNE             loc_3EA654                                             ; +0x2a, 0x3ea63a\nMOVW            R0, #0x3EB                                             ; +0x2c, 0x3ea63c\nBX              LR                                                     ; +0x30, 0x3ea640\nMOVW            R0, #0x3F1                                             ; +0x32, 0x3ea642\nBX              LR                                                     ; +0x36, 0x3ea646\nMOVW            R0, #0x3EA                                             ; +0x38, 0x3ea648\nBX              LR                                                     ; +0x3c, 0x3ea64c\nMOV.W           R0, #0x3EC                                             ; +0x3e, 0x3ea64e\nBX              LR                                                     ; +0x42, 0x3ea652\nLDR.W           R0, [R0,#0x370]                                        ; +0x44, 0x3ea654\nBX              LR                                                     ; +0x48, 0x3ea658\nMOV.W           R0, #0x3E8                                             ; +0x4a, 0x3ea65a\nBX              LR                                                     ; +0x4e, 0x3ea65e", "xrefs": ["ColorSelectPopup::updateCopyColor @ 0x3da6aa", "ColorSelectPopup::updateCopyColor @ 0x3da6e4"], "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"}