{"type": "func", "start": 4296781744, "end": 4296781847, "name": "EffectGameObject::getTargetColorIndex", "pseudocode": "// \n// EffectGameObject::getTargetColorIndex from 0x1001bafb0 to 0x1001bb017 (103 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::updateCopyColor @ 0x10072b304\n// > ColorSelectPopup::updateCopyColor @ 0x10072b36c\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; // eax\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 0x1001bafb0 to 0x1001bb017 (103 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::updateCopyColor @ 0x10072b304\n; > ColorSelectPopup::updateCopyColor @ 0x10072b36c\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\npush    rbp                                                            ; +0x0, 0x1001bafb0\nmov     rbp, rsp                                                       ; +0x1, 0x1001bafb1\nmov     eax, [rdi+404h]                                                ; +0x4, 0x1001bafb4\ncmp     eax, 2E7h                                                      ; +0xa, 0x1001bafba\njg      short loc_1001BAFD7                                            ; +0xf, 0x1001bafbf\ncmp     eax, 1Dh                                                       ; +0x11, 0x1001bafc1\njz      short loc_1001BAFF3                                            ; +0x14, 0x1001bafc4\ncmp     eax, 1Eh                                                       ; +0x16, 0x1001bafc6\njz      short loc_1001BB009                                            ; +0x19, 0x1001bafc9\ncmp     eax, 69h ; 'i'                                                 ; +0x1b, 0x1001bafcb\njnz     short loc_1001BB001                                            ; +0x1e, 0x1001bafce\nmov     eax, 3ECh                                                      ; +0x20, 0x1001bafd0\npop     rbp                                                            ; +0x25, 0x1001bafd5\nretn                                                                   ; +0x26, 0x1001bafd6\ncmp     eax, 2E8h                                                      ; +0x27, 0x1001bafd7\njz      short loc_1001BAFFA                                            ; +0x2c, 0x1001bafdc\ncmp     eax, 384h                                                      ; +0x2e, 0x1001bafde\njz      short loc_1001BB010                                            ; +0x33, 0x1001bafe3\ncmp     eax, 393h                                                      ; +0x35, 0x1001bafe5\njnz     short loc_1001BB001                                            ; +0x3a, 0x1001bafea\nmov     eax, 3EAh                                                      ; +0x3c, 0x1001bafec\npop     rbp                                                            ; +0x41, 0x1001baff1\nretn                                                                   ; +0x42, 0x1001baff2\nmov     eax, 3E8h                                                      ; +0x43, 0x1001baff3\npop     rbp                                                            ; +0x48, 0x1001baff8\nretn                                                                   ; +0x49, 0x1001baff9\nmov     eax, 3EBh                                                      ; +0x4a, 0x1001baffa\npop     rbp                                                            ; +0x4f, 0x1001bafff\nretn                                                                   ; +0x50, 0x1001bb000\nmov     eax, [rdi+400h]                                                ; +0x51, 0x1001bb001\npop     rbp                                                            ; +0x57, 0x1001bb007\nretn                                                                   ; +0x58, 0x1001bb008\nmov     eax, 3E9h                                                      ; +0x59, 0x1001bb009\npop     rbp                                                            ; +0x5e, 0x1001bb00e\nretn                                                                   ; +0x5f, 0x1001bb00f\nmov     eax, 3F1h                                                      ; +0x60, 0x1001bb010\npop     rbp                                                            ; +0x65, 0x1001bb015\nretn                                                                   ; +0x66, 0x1001bb016", "xrefs": ["ColorSelectPopup::updateCopyColor @ 0x10072b304", "ColorSelectPopup::updateCopyColor @ 0x10072b36c"], "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"}