{"type": "func", "start": 4301762032, "end": 4301762080, "name": "GameObject::setDefaultSecondaryColorMode", "pseudocode": "// \n// GameObject::setDefaultSecondaryColorMode from 0x10067adf0 to 0x10067ae20 (48 bytes)\n// \n// 18 xrefs:\n// > LevelEditorLayer::copyObjectState @ 0x1000c79e1\n// > AnimatedGameObject::setupChildSprites @ 0x10019716d\n// > AnimatedGameObject::setupChildSprites @ 0x1001971e7\n// > AnimatedGameObject::setupChildSprites @ 0x1001974f8\n// > GameObject::setupCustomSprites @ 0x1004389cd\n// > GameObject::setupCustomSprites @ 0x100438b97\n// > GameObject::setupCustomSprites @ 0x10043c13a\n// > GameObject::setupCustomSprites @ 0x10043cef2\n// > GameObject::setupCustomSprites @ 0x10043ddb6\n// > GameObject::setupCustomSprites @ 0x10043dfea\n// > GameObject::setupCustomSprites @ 0x10043e5ce\n// > GameObject::setupCustomSprites @ 0x100446095\n// > GameObject::setupCustomSprites @ 0x100447f1f\n// > GameObject::setupCustomSprites @ 0x10044b864\n// > GameObject::setupCustomSprites @ 0x10044f0b3\n// > GameObject::setupCustomSprites @ 0x10044f508\n// > GameObject::setupCustomSprites @ 0x100450678\n// > GameObject::setupCustomSprites @ 0x1004511d2\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:35:03 +0000\n// \n\n_DWORD *__fastcall GameObject::setDefaultSecondaryColorMode(__int64 a1, int a2)\n{\n  _DWORD *result; // rax\n  int v3; // ecx\n  int v4; // edx\n\n  result = *(_DWORD **)(a1 + 1104);\n  if ( result )\n  {\n    v3 = 0;\n    if ( a2 > 0 )\n      v3 = a2;\n    v4 = 1101;\n    if ( v3 < 1101 )\n      v4 = v3;\n    result[1] = v4;\n    *result = 0;\n  }\n  return result;\n}", "assembly": "; \n; GameObject::setDefaultSecondaryColorMode from 0x10067adf0 to 0x10067ae20 (48 bytes)\n; \n; 18 xrefs:\n; > LevelEditorLayer::copyObjectState @ 0x1000c79e1\n; > AnimatedGameObject::setupChildSprites @ 0x10019716d\n; > AnimatedGameObject::setupChildSprites @ 0x1001971e7\n; > AnimatedGameObject::setupChildSprites @ 0x1001974f8\n; > GameObject::setupCustomSprites @ 0x1004389cd\n; > GameObject::setupCustomSprites @ 0x100438b97\n; > GameObject::setupCustomSprites @ 0x10043c13a\n; > GameObject::setupCustomSprites @ 0x10043cef2\n; > GameObject::setupCustomSprites @ 0x10043ddb6\n; > GameObject::setupCustomSprites @ 0x10043dfea\n; > GameObject::setupCustomSprites @ 0x10043e5ce\n; > GameObject::setupCustomSprites @ 0x100446095\n; > GameObject::setupCustomSprites @ 0x100447f1f\n; > GameObject::setupCustomSprites @ 0x10044b864\n; > GameObject::setupCustomSprites @ 0x10044f0b3\n; > GameObject::setupCustomSprites @ 0x10044f508\n; > GameObject::setupCustomSprites @ 0x100450678\n; > GameObject::setupCustomSprites @ 0x1004511d2\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:35:03 +0000\n; \nmov     rax, [rdi+450h]                                                ; +0x0, 0x10067adf0\ntest    rax, rax                                                       ; +0x7, 0x10067adf7\njz      short locret_10067AE1F                                         ; +0xa, 0x10067adfa\npush    rbp                                                            ; +0xc, 0x10067adfc\nmov     rbp, rsp                                                       ; +0xd, 0x10067adfd\nxor     ecx, ecx                                                       ; +0x10, 0x10067ae00\ntest    esi, esi                                                       ; +0x12, 0x10067ae02\ncmovg   ecx, esi                                                       ; +0x14, 0x10067ae04\ncmp     ecx, 44Dh                                                      ; +0x17, 0x10067ae07\nmov     edx, 44Dh                                                      ; +0x1d, 0x10067ae0d\ncmovl   edx, ecx                                                       ; +0x22, 0x10067ae12\nmov     [rax+4], edx                                                   ; +0x25, 0x10067ae15\nmov     dword ptr [rax], 0                                             ; +0x28, 0x10067ae18\npop     rbp                                                            ; +0x2e, 0x10067ae1e\nretn                                                                   ; +0x2f, 0x10067ae1f", "xrefs": ["LevelEditorLayer::copyObjectState @ 0x1000c79e1", "AnimatedGameObject::setupChildSprites @ 0x10019716d", "AnimatedGameObject::setupChildSprites @ 0x1001971e7", "AnimatedGameObject::setupChildSprites @ 0x1001974f8", "GameObject::setupCustomSprites @ 0x1004389cd", "GameObject::setupCustomSprites @ 0x100438b97", "GameObject::setupCustomSprites @ 0x10043c13a", "GameObject::setupCustomSprites @ 0x10043cef2", "GameObject::setupCustomSprites @ 0x10043ddb6", "GameObject::setupCustomSprites @ 0x10043dfea", "GameObject::setupCustomSprites @ 0x10043e5ce", "GameObject::setupCustomSprites @ 0x100446095", "GameObject::setupCustomSprites @ 0x100447f1f", "GameObject::setupCustomSprites @ 0x10044b864", "GameObject::setupCustomSprites @ 0x10044f0b3", "GameObject::setupCustomSprites @ 0x10044f508", "GameObject::setupCustomSprites @ 0x100450678", "GameObject::setupCustomSprites @ 0x1004511d2"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}