{"type": "func", "start": 4301899088, "end": 4301899315, "name": "GameObject::getActiveColorForMode", "pseudocode": "// \n// GameObject::getActiveColorForMode from 0x10069c550 to 0x10069c633 (227 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::addObject @ 0x10007f676\n// > PlayLayer::addObject @ 0x10007f692\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\nchar *__fastcall GameObject::getActiveColorForMode(_QWORD *a1, int a2, char a3)\n{\n  char *result; // rax\n  __int64 v4; // r14\n  int v5; // esi\n  _QWORD *v6; // r15\n  unsigned __int16 *v7; // rax\n  int v8; // ecx\n\n  result = (char *)&unk_100A0E35B;\n  if ( a2 <= 1010 )\n  {\n    if ( !a2 )\n      return result;\n    if ( a2 == 1010 )\n      return (char *)&unk_100A0E358;\nLABEL_9:\n    if ( a3 )\n      return (char *)(a1[158] + 323LL);\n    else\n      return (char *)(a1[159] + 323LL);\n  }\n  if ( a2 == 1011 )\n    return result;\n  if ( a2 != 1012 )\n    goto LABEL_9;\n  v4 = a1[160];\n  if ( a3 )\n  {\n    v5 = *(unsigned __int16 *)(a1[158] + 323LL) | (*(unsigned __int8 *)(a1[158] + 325LL) << 16);\n    v6 = a1;\n  }\n  else\n  {\n    v6 = a1;\n    v7 = (unsigned __int16 *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 944LL))(a1);\n    v5 = *v7 | (*((unsigned __int8 *)v7 + 2) << 16);\n  }\n  v8 = GJEffectManager::colorForEffect(0.0001708983909338713, v4, v5, 0x1003E19999ALL);\n  *(_WORD *)((char *)v6 + 637) = v8;\n  *((_BYTE *)v6 + 639) = BYTE2(v8);\n  return (char *)v6 + 637;\n}", "assembly": "; \n; GameObject::getActiveColorForMode from 0x10069c550 to 0x10069c633 (227 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::addObject @ 0x10007f676\n; > PlayLayer::addObject @ 0x10007f692\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; \nlea     rax, unk_100A0E35B                                             ; +0x0, 0x10069c550\ncmp     esi, 3F2h                                                      ; +0x7, 0x10069c557\njg      short loc_10069C573                                            ; +0xd, 0x10069c55d\ntest    esi, esi                                                       ; +0xf, 0x10069c55f\njz      short locret_10069C5E1                                         ; +0x11, 0x10069c561\ncmp     esi, 3F2h                                                      ; +0x13, 0x10069c563\njnz     short loc_10069C5C9                                            ; +0x19, 0x10069c569\nlea     rax, unk_100A0E358                                             ; +0x1b, 0x10069c56b\nretn                                                                   ; +0x22, 0x10069c572\ncmp     esi, 3F3h                                                      ; +0x23, 0x10069c573\njz      short locret_10069C5E1                                         ; +0x29, 0x10069c579\ncmp     esi, 3F4h                                                      ; +0x2b, 0x10069c57b\njnz     short loc_10069C5C9                                            ; +0x31, 0x10069c581\npush    rbp                                                            ; +0x33, 0x10069c583\nmov     rbp, rsp                                                       ; +0x34, 0x10069c584\npush    r15                                                            ; +0x37, 0x10069c587\npush    r14                                                            ; +0x39, 0x10069c589\npush    rbx                                                            ; +0x3b, 0x10069c58b\npush    rax                                                            ; +0x3c, 0x10069c58c\nmov     rbx, 1003E19999Ah                                              ; +0x3d, 0x10069c58d\nmov     r14, [rdi+500h]                                                ; +0x47, 0x10069c597\ntest    dl, dl                                                         ; +0x4e, 0x10069c59e\njz      short loc_10069C5E2                                            ; +0x50, 0x10069c5a0\nmov     rax, [rdi+4F0h]                                                ; +0x52, 0x10069c5a2\nmovzx   ecx, word ptr [rax+143h]                                       ; +0x59, 0x10069c5a9\nmovzx   esi, byte ptr [rax+145h]                                       ; +0x60, 0x10069c5b0\nshl     esi, 10h                                                       ; +0x67, 0x10069c5b7\nor      esi, ecx                                                       ; +0x6a, 0x10069c5ba\nmovsd   xmm0, cs:qword_100A048D0                                       ; +0x6c, 0x10069c5bc\nmov     r15, rdi                                                       ; +0x74, 0x10069c5c4\njmp     short loc_10069C602                                            ; +0x77, 0x10069c5c7\nmov     eax, 143h                                                      ; +0x79, 0x10069c5c9\ntest    dl, dl                                                         ; +0x7e, 0x10069c5ce\njz      short loc_10069C5DA                                            ; +0x80, 0x10069c5d0\nadd     rax, [rdi+4F0h]                                                ; +0x82, 0x10069c5d2\nretn                                                                   ; +0x89, 0x10069c5d9\nadd     rax, [rdi+4F8h]                                                ; +0x8a, 0x10069c5da\nretn                                                                   ; +0x91, 0x10069c5e1\nmov     rax, [rdi]                                                     ; +0x92, 0x10069c5e2\nmov     r15, rdi                                                       ; +0x95, 0x10069c5e5\ncall    qword ptr [rax+3B0h]                                           ; +0x98, 0x10069c5e8\nmovzx   ecx, word ptr [rax]                                            ; +0x9e, 0x10069c5ee\nmovzx   esi, byte ptr [rax+2]                                          ; +0xa1, 0x10069c5f1\nshl     esi, 10h                                                       ; +0xa5, 0x10069c5f5\nor      esi, ecx                                                       ; +0xa8, 0x10069c5f8\nmovsd   xmm0, cs:qword_100A048D0                                       ; +0xaa, 0x10069c5fa\nmov     rdi, r14                                                       ; +0xb2, 0x10069c602\nmov     rdx, rbx                                                       ; +0xb5, 0x10069c605\ncall    GJEffectManager__colorForEffect                                ; +0xb8, 0x10069c608\nmov     ecx, eax                                                       ; +0xbd, 0x10069c60d\nlea     rax, [r15+27Dh]                                                ; +0xbf, 0x10069c60f\nmov     [r15+27Dh], cx                                                 ; +0xc6, 0x10069c616\nshr     ecx, 10h                                                       ; +0xce, 0x10069c61e\nmov     [r15+27Fh], cl                                                 ; +0xd1, 0x10069c621\nadd     rsp, 8                                                         ; +0xd8, 0x10069c628\npop     rbx                                                            ; +0xdc, 0x10069c62c\npop     r14                                                            ; +0xdd, 0x10069c62d\npop     r15                                                            ; +0xdf, 0x10069c62f\npop     rbp                                                            ; +0xe1, 0x10069c631\nretn                                                                   ; +0xe2, 0x10069c632", "xrefs": ["PlayLayer::addObject @ 0x10007f676", "PlayLayer::addObject @ 0x10007f692"], "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"}