{"type": "func", "start": 5371456048, "end": 5371456098, "name": "GameObject::setDefaultMainColorMode", "pseudocode": "// \n// GameObject::setDefaultMainColorMode from 0x14029ea30 to 0x14029ea62 (50 bytes)\n// \n// 2 xrefs:\n// > GameObject::setupCustomSprites @ 0x1402af46d\n// > GameObject::setupCustomSprites @ 0x1402b798a\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 11:29:15 +0000\n// \n\nvoid __fastcall GameObject::setDefaultMainColorMode(__int64 a1, int a2)\n{\n  _DWORD *v2; // r8\n  int v3; // eax\n\n  v2 = *(_DWORD **)(a1 + 1104);\n  if ( v2 )\n  {\n    v3 = 1101;\n    if ( a2 < 0 )\n      a2 = 0;\n    if ( a2 <= 1101 )\n      v3 = a2;\n    v2[1] = v3;\n    *v2 = 0;\n  }\n}", "assembly": "; \n; GameObject::setDefaultMainColorMode from 0x14029ea30 to 0x14029ea62 (50 bytes)\n; \n; 2 xrefs:\n; > GameObject::setupCustomSprites @ 0x1402af46d\n; > GameObject::setupCustomSprites @ 0x1402b798a\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 11:29:15 +0000\n; \nmov     r8, [rcx+450h]                                                 ; +0x0, 0x14029ea30\ntest    r8, r8                                                         ; +0x7, 0x14029ea37\njz      short locret_14029EA61                                         ; +0xa, 0x14029ea3a\nxor     r9d, r9d                                                       ; +0xc, 0x14029ea3c\nmov     eax, 44Dh                                                      ; +0xf, 0x14029ea3f\ntest    edx, edx                                                       ; +0x14, 0x14029ea44\ncmovs   edx, r9d                                                       ; +0x16, 0x14029ea46\ncmp     edx, eax                                                       ; +0x1a, 0x14029ea4a\njg      short loc_14029EA5A                                            ; +0x1c, 0x14029ea4c\ntest    edx, edx                                                       ; +0x1e, 0x14029ea4e\nmov     eax, edx                                                       ; +0x20, 0x14029ea50\nmov     ecx, 3F3h                                                      ; +0x22, 0x14029ea52\ncmovs   eax, ecx                                                       ; +0x27, 0x14029ea57\nmov     [r8+4], eax                                                    ; +0x2a, 0x14029ea5a\nmov     [r8], r9d                                                      ; +0x2e, 0x14029ea5e\nretn                                                                   ; +0x31, 0x14029ea61", "xrefs": ["GameObject::setupCustomSprites @ 0x1402af46d", "GameObject::setupCustomSprites @ 0x1402b798a"], "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"}