{"type": "func", "start": 4301895808, "end": 4301895849, "name": "GameObject::setMainColorMode", "pseudocode": "// \n// GameObject::setMainColorMode from 0x10069b880 to 0x10069b8a9 (41 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::addObject @ 0x10007f761\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:35:16 +0000\n// \n\nint *__fastcall GameObject::setMainColorMode(__int64 a1, int a2)\n{\n  int *result; // rax\n  int v3; // ecx\n  int v4; // edx\n\n  result = *(int **)(a1 + 1096);\n  if ( result )\n  {\n    v3 = 0;\n    if ( a2 > 0 )\n      v3 = a2;\n    v4 = 1101;\n    if ( v3 < 1101 )\n      v4 = v3;\n    *result = v4;\n  }\n  return result;\n}", "assembly": "; \n; GameObject::setMainColorMode from 0x10069b880 to 0x10069b8a9 (41 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::addObject @ 0x10007f761\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:35:16 +0000\n; \nmov     rax, [rdi+448h]                                                ; +0x0, 0x10069b880\ntest    rax, rax                                                       ; +0x7, 0x10069b887\njz      short locret_10069B8A8                                         ; +0xa, 0x10069b88a\npush    rbp                                                            ; +0xc, 0x10069b88c\nmov     rbp, rsp                                                       ; +0xd, 0x10069b88d\nxor     ecx, ecx                                                       ; +0x10, 0x10069b890\ntest    esi, esi                                                       ; +0x12, 0x10069b892\ncmovg   ecx, esi                                                       ; +0x14, 0x10069b894\ncmp     ecx, 44Dh                                                      ; +0x17, 0x10069b897\nmov     edx, 44Dh                                                      ; +0x1d, 0x10069b89d\ncmovl   edx, ecx                                                       ; +0x22, 0x10069b8a2\nmov     [rax], edx                                                     ; +0x25, 0x10069b8a5\npop     rbp                                                            ; +0x27, 0x10069b8a7\nretn                                                                   ; +0x28, 0x10069b8a8", "xrefs": ["PlayLayer::addObject @ 0x10007f761"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}