{"type": "func", "start": 4298663240, "end": 4298663356, "name": "EffectGameObject::getTargetColorIndex", "pseudocode": "// \n// EffectGameObject::getTargetColorIndex from 0x100386548 to 0x1003865bc (116 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::updateCopyColor @ 0x100420878\n// > ColorSelectPopup::updateCopyColor @ 0x1004208c4\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 __fastcall EffectGameObject::getTargetColorIndex(EffectGameObject *a1)\n{\n  int m_objectID; // w8\n\n  m_objectID = a1->m_objectID;\n  if ( m_objectID > 743 )\n  {\n    if ( m_objectID == 744 )\n      return 1003;\n    if ( m_objectID != 900 )\n    {\n      if ( m_objectID == 915 )\n        return 1002;\n      return a1->m_targetColor;\n    }\n    return 1009;\n  }\n  else\n  {\n    if ( m_objectID == 29 )\n      return 1000;\n    if ( m_objectID != 30 )\n    {\n      if ( m_objectID == 105 )\n        return 1004;\n      return a1->m_targetColor;\n    }\n    return 1001;\n  }\n}", "assembly": "; \n; EffectGameObject::getTargetColorIndex from 0x100386548 to 0x1003865bc (116 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::updateCopyColor @ 0x100420878\n; > ColorSelectPopup::updateCopyColor @ 0x1004208c4\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             W8, [X0,#0x404]                                        ; +0x0, 0x100386548\nCMP             W8, #0x2E7                                             ; +0x4, 0x10038654c\nB.GT            loc_100386574                                          ; +0x8, 0x100386550\nCMP             W8, #0x1D                                              ; +0xc, 0x100386554\nB.EQ            loc_100386594                                          ; +0x10, 0x100386558\nCMP             W8, #0x1E                                              ; +0x14, 0x10038655c\nB.EQ            loc_1003865AC                                          ; +0x18, 0x100386560\nCMP             W8, #0x69 ; 'i'                                        ; +0x1c, 0x100386564\nB.NE            loc_1003865A4                                          ; +0x20, 0x100386568\nMOV             W0, #0x3EC                                             ; +0x24, 0x10038656c\nRET                                                                    ; +0x28, 0x100386570\nCMP             W8, #0x2E8                                             ; +0x2c, 0x100386574\nB.EQ            loc_10038659C                                          ; +0x30, 0x100386578\nCMP             W8, #0x384                                             ; +0x34, 0x10038657c\nB.EQ            loc_1003865B4                                          ; +0x38, 0x100386580\nCMP             W8, #0x393                                             ; +0x3c, 0x100386584\nB.NE            loc_1003865A4                                          ; +0x40, 0x100386588\nMOV             W0, #0x3EA                                             ; +0x44, 0x10038658c\nRET                                                                    ; +0x48, 0x100386590\nMOV             W0, #0x3E8                                             ; +0x4c, 0x100386594\nRET                                                                    ; +0x50, 0x100386598\nMOV             W0, #0x3EB                                             ; +0x54, 0x10038659c\nRET                                                                    ; +0x58, 0x1003865a0\nLDR             W0, [X0,#0x400]                                        ; +0x5c, 0x1003865a4\nRET                                                                    ; +0x60, 0x1003865a8\nMOV             W0, #0x3E9                                             ; +0x64, 0x1003865ac\nRET                                                                    ; +0x68, 0x1003865b0\nMOV             W0, #0x3F1                                             ; +0x6c, 0x1003865b4\nRET                                                                    ; +0x70, 0x1003865b8", "xrefs": ["ColorSelectPopup::updateCopyColor @ 0x100420878", "ColorSelectPopup::updateCopyColor @ 0x1004208c4"], "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"}