{"type": "func", "start": 4301037648, "end": 4301037694, "name": "GameObject::canChangeCustomColor", "pseudocode": "// \n// GameObject::canChangeCustomColor from 0x1005ca050 to 0x1005ca07e (46 bytes)\n// \n// 6 xrefs:\n// > EditorUI::editObject @ 0x10002b26f\n// > EditorUI::editObject @ 0x10002b3b5\n// > EditorUI::editButtonUsable @ 0x10004827f\n// > EditorUI::editButtonUsable @ 0x1000482c2\n// > EditorUI::getEditColorTargets @ 0x100049d00\n// > CustomizeObjectLayer::init @ 0x1001f6635\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\nbool __fastcall GameObject::canChangeCustomColor(GameObject *a1)\n{\n  bool result; // al\n  GJSpriteColor *m_detailColor; // rax\n\n  result = 1;\n  if ( !a1->m_baseColor->m_defaultColorID )\n  {\n    m_detailColor = a1->m_detailColor;\n    return m_detailColor && m_detailColor->m_defaultColorID != 0;\n  }\n  return result;\n}", "assembly": "; \n; GameObject::canChangeCustomColor from 0x1005ca050 to 0x1005ca07e (46 bytes)\n; \n; 6 xrefs:\n; > EditorUI::editObject @ 0x10002b26f\n; > EditorUI::editObject @ 0x10002b3b5\n; > EditorUI::editButtonUsable @ 0x10004827f\n; > EditorUI::editButtonUsable @ 0x1000482c2\n; > EditorUI::getEditColorTargets @ 0x100049d00\n; > CustomizeObjectLayer::init @ 0x1001f6635\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, 0x1005ca050\nmov     rbp, rsp                                                       ; +0x1, 0x1005ca051\nmov     rcx, [rdi+448h]                                                ; +0x4, 0x1005ca054\nmov     al, 1                                                          ; +0xb, 0x1005ca05b\ncmp     dword ptr [rcx+4], 0                                           ; +0xd, 0x1005ca05d\njz      short loc_1005CA065                                            ; +0x11, 0x1005ca061\npop     rbp                                                            ; +0x13, 0x1005ca063\nretn                                                                   ; +0x14, 0x1005ca064\nmov     rax, [rdi+450h]                                                ; +0x15, 0x1005ca065\ntest    rax, rax                                                       ; +0x1c, 0x1005ca06c\njz      short loc_1005CA07A                                            ; +0x1f, 0x1005ca06f\ncmp     dword ptr [rax+4], 0                                           ; +0x21, 0x1005ca071\nsetnz   al                                                             ; +0x25, 0x1005ca075\npop     rbp                                                            ; +0x28, 0x1005ca078\nretn                                                                   ; +0x29, 0x1005ca079\nxor     eax, eax                                                       ; +0x2a, 0x1005ca07a\npop     rbp                                                            ; +0x2c, 0x1005ca07c\nretn                                                                   ; +0x2d, 0x1005ca07d", "xrefs": ["EditorUI::editObject @ 0x10002b26f", "EditorUI::editObject @ 0x10002b3b5", "EditorUI::editButtonUsable @ 0x10004827f", "EditorUI::editButtonUsable @ 0x1000482c2", "EditorUI::getEditColorTargets @ 0x100049d00", "CustomizeObjectLayer::init @ 0x1001f6635"], "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"}