{"type": "func", "start": 4297415644, "end": 4297415676, "name": "GameObject::setDefaultSecondaryColorMode", "pseudocode": "// \n// GameObject::setDefaultSecondaryColorMode from 0x100255bdc to 0x100255bfc (32 bytes)\n// \n// 17 xrefs:\n// > GameObject::setupCustomSprites @ 0x1002aeb08\n// > GameObject::setupCustomSprites @ 0x1002aece0\n// > GameObject::setupCustomSprites @ 0x1002b2110\n// > GameObject::setupCustomSprites @ 0x1002b3bc8\n// > GameObject::setupCustomSprites @ 0x1002b4488\n// > GameObject::setupCustomSprites @ 0x1002b5300\n// > GameObject::setupCustomSprites @ 0x1002b66c4\n// > GameObject::setupCustomSprites @ 0x1002b66fc\n// > GameObject::setupCustomSprites @ 0x1002c1e7c\n// > GameObject::setupCustomSprites @ 0x1002c214c\n// > GameObject::setupCustomSprites @ 0x1002c2a6c\n// > GameObject::setupCustomSprites @ 0x1002c3f68\n// > GameObject::setupCustomSprites @ 0x1002c4534\n// > LevelEditorLayer::copyObjectState @ 0x100363a80\n// > AnimatedGameObject::setupChildSprites @ 0x10038389c\n// > AnimatedGameObject::setupChildSprites @ 0x100383900\n// > AnimatedGameObject::setupChildSprites @ 0x100383b84\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::setDefaultSecondaryColorMode(GameObject *a1, int a2)\n{\n  GJSpriteColor *m_detailColor; // x8\n  int v3; // w9\n\n  m_detailColor = a1->m_detailColor;\n  if ( m_detailColor )\n  {\n    v3 = a2 & ~(a2 >> 31);\n    if ( v3 >= 1101 )\n      v3 = 1101;\n    m_detailColor->m_colorID = 0;\n    m_detailColor->m_defaultColorID = v3;\n  }\n}", "assembly": "; \n; GameObject::setDefaultSecondaryColorMode from 0x100255bdc to 0x100255bfc (32 bytes)\n; \n; 17 xrefs:\n; > GameObject::setupCustomSprites @ 0x1002aeb08\n; > GameObject::setupCustomSprites @ 0x1002aece0\n; > GameObject::setupCustomSprites @ 0x1002b2110\n; > GameObject::setupCustomSprites @ 0x1002b3bc8\n; > GameObject::setupCustomSprites @ 0x1002b4488\n; > GameObject::setupCustomSprites @ 0x1002b5300\n; > GameObject::setupCustomSprites @ 0x1002b66c4\n; > GameObject::setupCustomSprites @ 0x1002b66fc\n; > GameObject::setupCustomSprites @ 0x1002c1e7c\n; > GameObject::setupCustomSprites @ 0x1002c214c\n; > GameObject::setupCustomSprites @ 0x1002c2a6c\n; > GameObject::setupCustomSprites @ 0x1002c3f68\n; > GameObject::setupCustomSprites @ 0x1002c4534\n; > LevelEditorLayer::copyObjectState @ 0x100363a80\n; > AnimatedGameObject::setupChildSprites @ 0x10038389c\n; > AnimatedGameObject::setupChildSprites @ 0x100383900\n; > AnimatedGameObject::setupChildSprites @ 0x100383b84\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,#0x450]                                        ; +0x0, 0x100255bdc\nCBZ             X8, locret_100255BF8                                   ; +0x4, 0x100255be0\nBIC             W9, W1, W1,ASR#31                                      ; +0x8, 0x100255be4\nCMP             W9, #0x44D                                             ; +0xc, 0x100255be8\nMOV             W10, #0x44D                                            ; +0x10, 0x100255bec\nCSEL            W9, W9, W10, LT                                        ; +0x14, 0x100255bf0\nSTP             WZR, W9, [X8]                                          ; +0x18, 0x100255bf4\nRET                                                                    ; +0x1c, 0x100255bf8", "xrefs": ["GameObject::setupCustomSprites @ 0x1002aeb08", "GameObject::setupCustomSprites @ 0x1002aece0", "GameObject::setupCustomSprites @ 0x1002b2110", "GameObject::setupCustomSprites @ 0x1002b3bc8", "GameObject::setupCustomSprites @ 0x1002b4488", "GameObject::setupCustomSprites @ 0x1002b5300", "GameObject::setupCustomSprites @ 0x1002b66c4", "GameObject::setupCustomSprites @ 0x1002b66fc", "GameObject::setupCustomSprites @ 0x1002c1e7c", "GameObject::setupCustomSprites @ 0x1002c214c", "GameObject::setupCustomSprites @ 0x1002c2a6c", "GameObject::setupCustomSprites @ 0x1002c3f68", "GameObject::setupCustomSprites @ 0x1002c4534", "LevelEditorLayer::copyObjectState @ 0x100363a80", "AnimatedGameObject::setupChildSprites @ 0x10038389c", "AnimatedGameObject::setupChildSprites @ 0x100383900", "AnimatedGameObject::setupChildSprites @ 0x100383b84"], "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"}