{"type": "func", "start": 4301038112, "end": 4301038163, "name": "GameObject::resetSecondaryColorMode", "pseudocode": "// \n// GameObject::resetSecondaryColorMode from 0x1005ca220 to 0x1005ca253 (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::resetSecondaryColorMode(GameObject *a1)\n{\n  GJSpriteColor *m_detailColor; // rax\n  int m_defaultColorID; // edx\n  int v3; // ecx\n\n  m_detailColor = a1->m_detailColor;\n  if ( m_detailColor )\n  {\n    m_defaultColorID = 0;\n    if ( m_detailColor->m_defaultColorID > 0 )\n      m_defaultColorID = m_detailColor->m_defaultColorID;\n    v3 = 1101;\n    if ( m_defaultColorID < 1101 )\n      v3 = m_defaultColorID;\n    m_detailColor->m_defaultColorID = v3;\n    m_detailColor->m_colorID = 0;\n  }\n}", "assembly": "; \n; GameObject::resetSecondaryColorMode from 0x1005ca220 to 0x1005ca253 (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+450h]                                                ; +0x0, 0x1005ca220\ntest    rax, rax                                                       ; +0x7, 0x1005ca227\njz      short locret_1005CA252                                         ; +0xa, 0x1005ca22a\npush    rbp                                                            ; +0xc, 0x1005ca22c\nmov     rbp, rsp                                                       ; +0xd, 0x1005ca22d\nmov     ecx, [rax+4]                                                   ; +0x10, 0x1005ca230\nxor     edx, edx                                                       ; +0x13, 0x1005ca233\ntest    ecx, ecx                                                       ; +0x15, 0x1005ca235\ncmovg   edx, ecx                                                       ; +0x17, 0x1005ca237\ncmp     edx, 44Dh                                                      ; +0x1a, 0x1005ca23a\nmov     ecx, 44Dh                                                      ; +0x20, 0x1005ca240\ncmovl   ecx, edx                                                       ; +0x25, 0x1005ca245\nmov     [rax+4], ecx                                                   ; +0x28, 0x1005ca248\nmov     dword ptr [rax], 0                                             ; +0x2b, 0x1005ca24b\npop     rbp                                                            ; +0x31, 0x1005ca251\nretn                                                                   ; +0x32, 0x1005ca252", "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"}