{"type": "func", "start": 4301038000, "end": 4301038041, "name": "GameObject::setSecondaryColorMode", "pseudocode": "// \n// GameObject::setSecondaryColorMode from 0x1005ca1b0 to 0x1005ca1d9 (41 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::setSecondaryColorMode(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_colorID = v4;\n  }\n}", "assembly": "; \n; GameObject::setSecondaryColorMode from 0x1005ca1b0 to 0x1005ca1d9 (41 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, 0x1005ca1b0\ntest    rax, rax                                                       ; +0x7, 0x1005ca1b7\njz      short locret_1005CA1D8                                         ; +0xa, 0x1005ca1ba\npush    rbp                                                            ; +0xc, 0x1005ca1bc\nmov     rbp, rsp                                                       ; +0xd, 0x1005ca1bd\nxor     ecx, ecx                                                       ; +0x10, 0x1005ca1c0\ntest    esi, esi                                                       ; +0x12, 0x1005ca1c2\ncmovg   ecx, esi                                                       ; +0x14, 0x1005ca1c4\ncmp     ecx, 44Dh                                                      ; +0x17, 0x1005ca1c7\nmov     edx, 44Dh                                                      ; +0x1d, 0x1005ca1cd\ncmovl   edx, ecx                                                       ; +0x22, 0x1005ca1d2\nmov     [rax], edx                                                     ; +0x25, 0x1005ca1d5\npop     rbp                                                            ; +0x27, 0x1005ca1d7\nretn                                                                   ; +0x28, 0x1005ca1d8", "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"}