{"type": "func", "start": 4297430688, "end": 4297430720, "name": "GameObject::setDefaultMainColorMode", "pseudocode": "// \n// GameObject::setDefaultMainColorMode from 0x1002596a0 to 0x1002596c0 (32 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::addObject @ 0x100118ec8\n// > GameObject::setupCustomSprites @ 0x1002afe94\n// > GameObject::setupCustomSprites @ 0x1002b0a5c\n// > LevelEditorLayer::copyObjectState @ 0x100363a74\n// > EffectGameObject::customSetup @ 0x1003773f0\n// > EffectGameObject::customSetup @ 0x100377438\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\nvoid __fastcall GameObject::setDefaultMainColorMode(GameObject *a1, int a2)\n{\n  GJSpriteColor *m_baseColor; // x8\n  int v3; // w9\n\n  m_baseColor = a1->m_baseColor;\n  if ( m_baseColor )\n  {\n    v3 = a2 & ~(a2 >> 31);\n    if ( v3 >= 1101 )\n      v3 = 1101;\n    m_baseColor->m_colorID = 0;\n    m_baseColor->m_defaultColorID = v3;\n  }\n}", "assembly": "; \n; GameObject::setDefaultMainColorMode from 0x1002596a0 to 0x1002596c0 (32 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::addObject @ 0x100118ec8\n; > GameObject::setupCustomSprites @ 0x1002afe94\n; > GameObject::setupCustomSprites @ 0x1002b0a5c\n; > LevelEditorLayer::copyObjectState @ 0x100363a74\n; > EffectGameObject::customSetup @ 0x1003773f0\n; > EffectGameObject::customSetup @ 0x100377438\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             X8, [X0,#0x448]                                        ; +0x0, 0x1002596a0\nCBZ             X8, locret_1002596BC                                   ; +0x4, 0x1002596a4\nBIC             W9, W1, W1,ASR#31                                      ; +0x8, 0x1002596a8\nCMP             W9, #0x44D                                             ; +0xc, 0x1002596ac\nMOV             W10, #0x44D                                            ; +0x10, 0x1002596b0\nCSEL            W9, W9, W10, LT                                        ; +0x14, 0x1002596b4\nSTP             WZR, W9, [X8]                                          ; +0x18, 0x1002596b8\nRET                                                                    ; +0x1c, 0x1002596bc", "xrefs": ["PlayLayer::addObject @ 0x100118ec8", "GameObject::setupCustomSprites @ 0x1002afe94", "GameObject::setupCustomSprites @ 0x1002b0a5c", "LevelEditorLayer::copyObjectState @ 0x100363a74", "EffectGameObject::customSetup @ 0x1003773f0", "EffectGameObject::customSetup @ 0x100377438"], "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"}