{"type": "func", "start": 4300904096, "end": 4300904144, "name": "GameObject::setDefaultSecondaryColorMode", "pseudocode": "// \n// GameObject::setDefaultSecondaryColorMode from 0x1005a96a0 to 0x1005a96d0 (48 bytes)\n// \n// 18 xrefs:\n// > LevelEditorLayer::copyObjectState @ 0x1000f3a21\n// > AnimatedGameObject::setupChildSprites @ 0x1001b6afd\n// > AnimatedGameObject::setupChildSprites @ 0x1001b6b77\n// > AnimatedGameObject::setupChildSprites @ 0x1001b6e88\n// > GameObject::setupCustomSprites @ 0x1004445dd\n// > GameObject::setupCustomSprites @ 0x1004447a7\n// > GameObject::setupCustomSprites @ 0x100447d4a\n// > GameObject::setupCustomSprites @ 0x100448b02\n// > GameObject::setupCustomSprites @ 0x1004499c6\n// > GameObject::setupCustomSprites @ 0x100449bfa\n// > GameObject::setupCustomSprites @ 0x10044a1de\n// > GameObject::setupCustomSprites @ 0x100451ca5\n// > GameObject::setupCustomSprites @ 0x100453b2f\n// > GameObject::setupCustomSprites @ 0x100457474\n// > GameObject::setupCustomSprites @ 0x10045acc3\n// > GameObject::setupCustomSprites @ 0x10045b118\n// > GameObject::setupCustomSprites @ 0x10045c288\n// > GameObject::setupCustomSprites @ 0x10045cde2\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; // rax\n  int v3; // ecx\n  int v4; // edx\n\n  m_detailColor = a1->m_detailColor;\n  if ( m_detailColor )\n  {\n    v3 = 0;\n    if ( a2 > 0 )\n      v3 = a2;\n    v4 = 1101;\n    if ( v3 < 1101 )\n      v4 = v3;\n    m_detailColor->m_defaultColorID = v4;\n    m_detailColor->m_colorID = 0;\n  }\n}", "assembly": "; \n; GameObject::setDefaultSecondaryColorMode from 0x1005a96a0 to 0x1005a96d0 (48 bytes)\n; \n; 18 xrefs:\n; > LevelEditorLayer::copyObjectState @ 0x1000f3a21\n; > AnimatedGameObject::setupChildSprites @ 0x1001b6afd\n; > AnimatedGameObject::setupChildSprites @ 0x1001b6b77\n; > AnimatedGameObject::setupChildSprites @ 0x1001b6e88\n; > GameObject::setupCustomSprites @ 0x1004445dd\n; > GameObject::setupCustomSprites @ 0x1004447a7\n; > GameObject::setupCustomSprites @ 0x100447d4a\n; > GameObject::setupCustomSprites @ 0x100448b02\n; > GameObject::setupCustomSprites @ 0x1004499c6\n; > GameObject::setupCustomSprites @ 0x100449bfa\n; > GameObject::setupCustomSprites @ 0x10044a1de\n; > GameObject::setupCustomSprites @ 0x100451ca5\n; > GameObject::setupCustomSprites @ 0x100453b2f\n; > GameObject::setupCustomSprites @ 0x100457474\n; > GameObject::setupCustomSprites @ 0x10045acc3\n; > GameObject::setupCustomSprites @ 0x10045b118\n; > GameObject::setupCustomSprites @ 0x10045c288\n; > GameObject::setupCustomSprites @ 0x10045cde2\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\nmov     rax, [rdi+450h]                                                ; +0x0, 0x1005a96a0\ntest    rax, rax                                                       ; +0x7, 0x1005a96a7\njz      short locret_1005A96CF                                         ; +0xa, 0x1005a96aa\npush    rbp                                                            ; +0xc, 0x1005a96ac\nmov     rbp, rsp                                                       ; +0xd, 0x1005a96ad\nxor     ecx, ecx                                                       ; +0x10, 0x1005a96b0\ntest    esi, esi                                                       ; +0x12, 0x1005a96b2\ncmovg   ecx, esi                                                       ; +0x14, 0x1005a96b4\ncmp     ecx, 44Dh                                                      ; +0x17, 0x1005a96b7\nmov     edx, 44Dh                                                      ; +0x1d, 0x1005a96bd\ncmovl   edx, ecx                                                       ; +0x22, 0x1005a96c2\nmov     [rax+4], edx                                                   ; +0x25, 0x1005a96c5\nmov     dword ptr [rax], 0                                             ; +0x28, 0x1005a96c8\npop     rbp                                                            ; +0x2e, 0x1005a96ce\nretn                                                                   ; +0x2f, 0x1005a96cf", "xrefs": ["LevelEditorLayer::copyObjectState @ 0x1000f3a21", "AnimatedGameObject::setupChildSprites @ 0x1001b6afd", "AnimatedGameObject::setupChildSprites @ 0x1001b6b77", "AnimatedGameObject::setupChildSprites @ 0x1001b6e88", "GameObject::setupCustomSprites @ 0x1004445dd", "GameObject::setupCustomSprites @ 0x1004447a7", "GameObject::setupCustomSprites @ 0x100447d4a", "GameObject::setupCustomSprites @ 0x100448b02", "GameObject::setupCustomSprites @ 0x1004499c6", "GameObject::setupCustomSprites @ 0x100449bfa", "GameObject::setupCustomSprites @ 0x10044a1de", "GameObject::setupCustomSprites @ 0x100451ca5", "GameObject::setupCustomSprites @ 0x100453b2f", "GameObject::setupCustomSprites @ 0x100457474", "GameObject::setupCustomSprites @ 0x10045acc3", "GameObject::setupCustomSprites @ 0x10045b118", "GameObject::setupCustomSprites @ 0x10045c288", "GameObject::setupCustomSprites @ 0x10045cde2"], "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"}