{"type": "func", "start": 4301848416, "end": 4301848567, "name": "GameObject::addToOpacityGroup", "pseudocode": "// \n// GameObject::addToOpacityGroup from 0x10068ff60 to 0x10068fff7 (151 bytes)\n// \n// 1 xrefs:\n// > sub_10007C1D0 @ 0x10007c34e\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:07 +0000\n// \n\nchar __fastcall GameObject::addToOpacityGroup(__int64 a1, int a2)\n{\n  __int64 v2; // r14\n  _DWORD *v3; // rax\n  __int64 v4; // rcx\n\n  v2 = *(__int16 *)(a1 + 1200);\n  LOBYTE(v3) = v2 >= 10;\n  if ( v2 < 10 && (unsigned int)(a2 - 10000) >= 0xFFFFD8F1 )\n  {\n    v3 = *(_DWORD **)(a1 + 1192);\n    if ( v3 )\n    {\n      if ( (__int16)v2 <= 0 )\n        goto LABEL_9;\n    }\n    else\n    {\n      v3 = operator new[](0x14u);\n      *(_QWORD *)(a1 + 1192) = v3;\n      *(_OWORD *)v3 = 0;\n      v3[4] = 0;\n      if ( (__int16)v2 <= 0 )\n      {\nLABEL_9:\n        *((_WORD *)v3 + v2) = a2;\n        ++*(_WORD *)(a1 + 1200);\n        return (char)v3;\n      }\n    }\n    v4 = 0;\n    while ( *((__int16 *)v3 + v4) != a2 )\n    {\n      if ( v2 == ++v4 )\n        goto LABEL_9;\n    }\n  }\n  return (char)v3;\n}", "assembly": "; \n; GameObject::addToOpacityGroup from 0x10068ff60 to 0x10068fff7 (151 bytes)\n; \n; 1 xrefs:\n; > sub_10007C1D0 @ 0x10007c34e\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:07 +0000\n; \npush    rbp                                                            ; +0x0, 0x10068ff60\nmov     rbp, rsp                                                       ; +0x1, 0x10068ff61\npush    r15                                                            ; +0x4, 0x10068ff64\npush    r14                                                            ; +0x6, 0x10068ff66\npush    rbx                                                            ; +0x8, 0x10068ff68\npush    rax                                                            ; +0x9, 0x10068ff69\nmov     ebx, esi                                                       ; +0xa, 0x10068ff6a\nmovsx   r14, word ptr [rdi+4B0h]                                       ; +0xc, 0x10068ff6c\ncmp     r14, 0Ah                                                       ; +0x14, 0x10068ff74\nsetnl   al                                                             ; +0x18, 0x10068ff78\nlea     ecx, [rbx-2710h]                                               ; +0x1b, 0x10068ff7b\ncmp     ecx, 0FFFFD8F1h                                                ; +0x21, 0x10068ff81\nsetb    cl                                                             ; +0x27, 0x10068ff87\nor      cl, al                                                         ; +0x2a, 0x10068ff8a\njnz     short loc_10068FFEC                                            ; +0x2c, 0x10068ff8c\nmov     rax, [rdi+4A8h]                                                ; +0x2e, 0x10068ff8e\ntest    rax, rax                                                       ; +0x35, 0x10068ff95\njz      short loc_10068FFA2                                            ; +0x38, 0x10068ff98\ntest    r14w, r14w                                                     ; +0x3a, 0x10068ff9a\njg      short loc_10068FFCC                                            ; +0x3e, 0x10068ff9e\njmp     short loc_10068FFE0                                            ; +0x40, 0x10068ffa0\nmov     r15, rdi                                                       ; +0x42, 0x10068ffa2\nmov     edi, 14h; __sz                                                 ; +0x45, 0x10068ffa5\ncall    __Znam; operator new[](ulong)                                  ; +0x4a, 0x10068ffaa\nmov     rdi, r15                                                       ; +0x4f, 0x10068ffaf\nmov     [r15+4A8h], rax                                                ; +0x52, 0x10068ffb2\nxorps   xmm0, xmm0                                                     ; +0x59, 0x10068ffb9\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5c, 0x10068ffbc\nmov     dword ptr [rax+10h], 0                                         ; +0x5f, 0x10068ffbf\ntest    r14w, r14w                                                     ; +0x66, 0x10068ffc6\njle     short loc_10068FFE0                                            ; +0x6a, 0x10068ffca\nxor     ecx, ecx                                                       ; +0x6c, 0x10068ffcc\nxchg    ax, ax                                                         ; +0x6e, 0x10068ffce\nmovsx   edx, word ptr [rax+rcx*2]                                      ; +0x70, 0x10068ffd0\ncmp     edx, ebx                                                       ; +0x74, 0x10068ffd4\njz      short loc_10068FFEC                                            ; +0x76, 0x10068ffd6\ninc     rcx                                                            ; +0x78, 0x10068ffd8\ncmp     r14, rcx                                                       ; +0x7b, 0x10068ffdb\njnz     short loc_10068FFD0                                            ; +0x7e, 0x10068ffde\nmov     [rax+r14*2], bx                                                ; +0x80, 0x10068ffe0\ninc     word ptr [rdi+4B0h]                                            ; +0x85, 0x10068ffe5\nadd     rsp, 8                                                         ; +0x8c, 0x10068ffec\npop     rbx                                                            ; +0x90, 0x10068fff0\npop     r14                                                            ; +0x91, 0x10068fff1\npop     r15                                                            ; +0x93, 0x10068fff3\npop     rbp                                                            ; +0x95, 0x10068fff5\nretn                                                                   ; +0x96, 0x10068fff6", "xrefs": ["sub_10007C1D0 @ 0x10007c34e"], "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"}