{"type": "func", "start": 4301038048, "end": 4301038099, "name": "GameObject::resetMainColorMode", "pseudocode": "// \n// GameObject::resetMainColorMode from 0x1005ca1e0 to 0x1005ca213 (51 bytes)\n// \n// 0 xrefs:\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::resetMainColorMode(GameObject *a1)\n{\n  GJSpriteColor *m_baseColor; // rax\n  int m_defaultColorID; // edx\n  int v3; // ecx\n\n  m_baseColor = a1->m_baseColor;\n  if ( m_baseColor )\n  {\n    m_defaultColorID = 0;\n    if ( m_baseColor->m_defaultColorID > 0 )\n      m_defaultColorID = m_baseColor->m_defaultColorID;\n    v3 = 1101;\n    if ( m_defaultColorID < 1101 )\n      v3 = m_defaultColorID;\n    m_baseColor->m_defaultColorID = v3;\n    m_baseColor->m_colorID = 0;\n  }\n}", "assembly": "; \n; GameObject::resetMainColorMode from 0x1005ca1e0 to 0x1005ca213 (51 bytes)\n; \n; 0 xrefs:\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+448h]                                                ; +0x0, 0x1005ca1e0\ntest    rax, rax                                                       ; +0x7, 0x1005ca1e7\njz      short locret_1005CA212                                         ; +0xa, 0x1005ca1ea\npush    rbp                                                            ; +0xc, 0x1005ca1ec\nmov     rbp, rsp                                                       ; +0xd, 0x1005ca1ed\nmov     ecx, [rax+4]                                                   ; +0x10, 0x1005ca1f0\nxor     edx, edx                                                       ; +0x13, 0x1005ca1f3\ntest    ecx, ecx                                                       ; +0x15, 0x1005ca1f5\ncmovg   edx, ecx                                                       ; +0x17, 0x1005ca1f7\ncmp     edx, 44Dh                                                      ; +0x1a, 0x1005ca1fa\nmov     ecx, 44Dh                                                      ; +0x20, 0x1005ca200\ncmovl   ecx, edx                                                       ; +0x25, 0x1005ca205\nmov     [rax+4], ecx                                                   ; +0x28, 0x1005ca208\nmov     dword ptr [rax], 0                                             ; +0x2b, 0x1005ca20b\npop     rbp                                                            ; +0x31, 0x1005ca211\nretn                                                                   ; +0x32, 0x1005ca212", "xrefs": [], "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"}