{"type": "func", "start": 4297465412, "end": 4297465444, "name": "GameObject::setMainColorMode", "pseudocode": "// \n// GameObject::setMainColorMode from 0x100261e44 to 0x100261e64 (32 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::addObject @ 0x100118ebc\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; // x8\n  int v3; // w9\n\n  m_baseColor = a1->m_baseColor;\n  if ( m_baseColor )\n  {\n    v3 = a2 & ~(a2 >> 31);\n    if ( v3 >= 1101 )\n      v3 = 1101;\n    m_baseColor->m_colorID = v3;\n  }\n}", "assembly": "; \n; GameObject::setMainColorMode from 0x100261e44 to 0x100261e64 (32 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::addObject @ 0x100118ebc\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\nLDR             X8, [X0,#0x448]                                        ; +0x0, 0x100261e44\nCBZ             X8, locret_100261E60                                   ; +0x4, 0x100261e48\nBIC             W9, W1, W1,ASR#31                                      ; +0x8, 0x100261e4c\nCMP             W9, #0x44D                                             ; +0xc, 0x100261e50\nMOV             W10, #0x44D                                            ; +0x10, 0x100261e54\nCSEL            W9, W9, W10, LT                                        ; +0x14, 0x100261e58\nSTR             W9, [X8]                                               ; +0x18, 0x100261e5c\nRET                                                                    ; +0x1c, 0x100261e60", "xrefs": ["PlayLayer::addObject @ 0x100118ebc"], "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"}