{"type": "func", "start": 8876616, "end": 8876720, "name": "EffectGameObject::getTargetColorIndex", "pseudocode": "// \n// EffectGameObject::getTargetColorIndex from 0x877248 to 0x8772b0 (104 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::updateCopyColor @ 0x863138\n// > ColorSelectPopup::updateCopyColor @ 0x86317c\n// > <???> @ 0xa8340\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:55:50 +0000\n// \n\n__int64 __fastcall EffectGameObject::getTargetColorIndex(EffectGameObject *this)\n{\n  int v1; // w1\n  __int64 result; // x0\n\n  v1 = *((_DWORD *)this + 257);\n  if ( v1 == 105 )\n    return 1004;\n  if ( v1 <= 105 )\n  {\n    result = 1000;\n    if ( v1 != 29 )\n    {\n      result = 1001;\n      if ( v1 != 30 )\n        return *((unsigned int *)this + 256);\n    }\n  }\n  else\n  {\n    if ( v1 == 900 )\n      return 1009;\n    result = 1002;\n    if ( v1 != 915 )\n    {\n      result = 1003;\n      if ( v1 != 744 )\n        return *((unsigned int *)this + 256);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EffectGameObject::getTargetColorIndex from 0x877248 to 0x8772b0 (104 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::updateCopyColor @ 0x863138\n; > ColorSelectPopup::updateCopyColor @ 0x86317c\n; > <???> @ 0xa8340\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:55:50 +0000\n; \nLDR             W1, [X0,#0x404]                                        ; +0x0, 0x877248\nMOV             X2, X0                                                 ; +0x4, 0x87724c\nCMP             W1, #0x69 ; 'i'                                        ; +0x8, 0x877250\nB.EQ            loc_8772A8                                             ; +0xc, 0x877254\nB.LE            loc_877284                                             ; +0x10, 0x877258\nCMP             W1, #0x384                                             ; +0x14, 0x87725c\nB.EQ            loc_8772A0                                             ; +0x18, 0x877260\nCMP             W1, #0x393                                             ; +0x1c, 0x877264\nMOV             W0, #0x3EA                                             ; +0x20, 0x877268\nB.EQ            locret_877280                                          ; +0x24, 0x87726c\nCMP             W1, #0x2E8                                             ; +0x28, 0x877270\nMOV             W0, #0x3EB                                             ; +0x2c, 0x877274\nB.EQ            locret_877280                                          ; +0x30, 0x877278\nLDR             W0, [X2,#0x400]                                        ; +0x34, 0x87727c\nRET                                                                    ; +0x38, 0x877280\nCMP             W1, #0x1D                                              ; +0x3c, 0x877284\nMOV             W0, #0x3E8                                             ; +0x40, 0x877288\nB.EQ            locret_877280                                          ; +0x44, 0x87728c\nCMP             W1, #0x1E                                              ; +0x48, 0x877290\nMOV             W0, #0x3E9                                             ; +0x4c, 0x877294\nB.NE            loc_87727C                                             ; +0x50, 0x877298\nRET                                                                    ; +0x54, 0x87729c\nMOV             W0, #0x3F1                                             ; +0x58, 0x8772a0\nRET                                                                    ; +0x5c, 0x8772a4\nMOV             W0, #0x3EC                                             ; +0x60, 0x8772a8\nRET                                                                    ; +0x64, 0x8772ac", "xrefs": ["ColorSelectPopup::updateCopyColor @ 0x863138", "ColorSelectPopup::updateCopyColor @ 0x86317c", "<???> @ 0xa8340"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}