{"type": "func", "start": 4301037952, "end": 4301037993, "name": "GameObject::setMainColorMode", "pseudocode": "// \n// GameObject::setMainColorMode from 0x1005ca180 to 0x1005ca1a9 (41 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::addObject @ 0x1000b21e3\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::setMainColorMode(GameObject *a1, int a2)\n{\n  GJSpriteColor *m_baseColor; // rax\n  int v3; // ecx\n  int v4; // edx\n\n  m_baseColor = a1->m_baseColor;\n  if ( m_baseColor )\n  {\n    v3 = 0;\n    if ( a2 > 0 )\n      v3 = a2;\n    v4 = 1101;\n    if ( v3 < 1101 )\n      v4 = v3;\n    m_baseColor->m_colorID = v4;\n  }\n}", "assembly": "; \n; GameObject::setMainColorMode from 0x1005ca180 to 0x1005ca1a9 (41 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::addObject @ 0x1000b21e3\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, 0x1005ca180\ntest    rax, rax                                                       ; +0x7, 0x1005ca187\njz      short locret_1005CA1A8                                         ; +0xa, 0x1005ca18a\npush    rbp                                                            ; +0xc, 0x1005ca18c\nmov     rbp, rsp                                                       ; +0xd, 0x1005ca18d\nxor     ecx, ecx                                                       ; +0x10, 0x1005ca190\ntest    esi, esi                                                       ; +0x12, 0x1005ca192\ncmovg   ecx, esi                                                       ; +0x14, 0x1005ca194\ncmp     ecx, 44Dh                                                      ; +0x17, 0x1005ca197\nmov     edx, 44Dh                                                      ; +0x1d, 0x1005ca19d\ncmovl   edx, ecx                                                       ; +0x22, 0x1005ca1a2\nmov     [rax], edx                                                     ; +0x25, 0x1005ca1a5\npop     rbp                                                            ; +0x27, 0x1005ca1a7\nretn                                                                   ; +0x28, 0x1005ca1a8", "xrefs": ["PlayLayer::addObject @ 0x1000b21e3"], "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"}