{"type": "func", "start": 5372117648, "end": 5372117794, "name": "GJBaseGameLayer::opacityForObject", "pseudocode": "// \n// GJBaseGameLayer::opacityForObject from 0x140340290 to 0x140340322 (146 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x14076b798\n// > <???> @ 0x14078b210\n// > <???> @ 0x1408b770c\n// > <???> @ 0x1408b771c\n// > <???> @ 0x14091fd24\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 11:30:39 +0000\n// \n\n__m128 __fastcall GJBaseGameLayer::opacityForObject(__int64 a1, __int64 a2)\n{\n  int v2; // eax\n  __int128 v4; // xmm1\n  __int64 v5; // rdi\n  unsigned __int64 v6; // rbx\n  __int64 v7; // r14\n  __int64 v8; // rbp\n  __int64 v9; // rax\n  __int64 v10; // rdx\n\n  v2 = *(__int16 *)(a2 + 1176);\n  v4 = 0x3F800000u;\n  if ( *(__int16 *)(a2 + 1176) > 0 && v2 > 0 )\n  {\n    v5 = 0;\n    v6 = 0;\n    v7 = *(_QWORD *)(a1 + 2408);\n    v8 = (unsigned int)v2;\n    do\n    {\n      if ( v6 <= 9 && (v9 = *(_QWORD *)(a2 + 1168)) != 0 )\n        v10 = (unsigned int)*(__int16 *)(v5 + v9);\n      else\n        v10 = 0;\n      ++v6;\n      *(float *)&v4 = *(float *)&v4 * GJEffectManager::opacityModForGroup(v7, v10);\n      v5 += 2;\n      --v8;\n    }\n    while ( v8 );\n  }\n  return (__m128)v4;\n}", "assembly": "; \n; GJBaseGameLayer::opacityForObject from 0x140340290 to 0x140340322 (146 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x14076b798\n; > <???> @ 0x14078b210\n; > <???> @ 0x1408b770c\n; > <???> @ 0x1408b771c\n; > <???> @ 0x14091fd24\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 11:30:39 +0000\n; \npush    rsi                                                            ; +0x0, 0x140340290\nsub     rsp, 20h                                                       ; +0x2, 0x140340292\nmovsx   eax, word ptr [rdx+498h]                                       ; +0x6, 0x140340296\nmov     rsi, rdx                                                       ; +0xd, 0x14034029d\nmovss   xmm1, cs:flt_140835080                                         ; +0x10, 0x1403402a0\ntest    ax, ax                                                         ; +0x18, 0x1403402a8\njle     short loc_140340319                                            ; +0x1b, 0x1403402ab\ntest    eax, eax                                                       ; +0x1d, 0x1403402ad\njle     short loc_140340319                                            ; +0x1f, 0x1403402af\nmov     [rsp+28h+arg_0], rbx                                           ; +0x21, 0x1403402b1\nmov     [rsp+28h+arg_8], rbp                                           ; +0x26, 0x1403402b6\nmov     [rsp+28h+arg_10], rdi                                          ; +0x2b, 0x1403402bb\nxor     edi, edi                                                       ; +0x30, 0x1403402c0\nmov     [rsp+28h+arg_18], r14                                          ; +0x32, 0x1403402c2\nxor     ebx, ebx                                                       ; +0x37, 0x1403402c7\nmov     r14, [rcx+968h]                                                ; +0x39, 0x1403402c9\nmov     ebp, eax                                                       ; +0x40, 0x1403402d0\ncmp     rbx, 9                                                         ; +0x42, 0x1403402d2\nja      short loc_1403402EA                                            ; +0x46, 0x1403402d6\nmov     rax, [rsi+490h]                                                ; +0x48, 0x1403402d8\ntest    rax, rax                                                       ; +0x4f, 0x1403402df\njz      short loc_1403402EA                                            ; +0x52, 0x1403402e2\nmovsx   edx, word ptr [rdi+rax]                                        ; +0x54, 0x1403402e4\njmp     short loc_1403402EC                                            ; +0x58, 0x1403402e8\nxor     edx, edx                                                       ; +0x5a, 0x1403402ea\nmov     rcx, r14                                                       ; +0x5c, 0x1403402ec\ncall    GJEffectManager__opacityModForGroup                            ; +0x5f, 0x1403402ef\ninc     rbx                                                            ; +0x64, 0x1403402f4\nmulss   xmm1, xmm0                                                     ; +0x67, 0x1403402f7\nadd     rdi, 2                                                         ; +0x6b, 0x1403402fb\nsub     rbp, 1                                                         ; +0x6f, 0x1403402ff\njnz     short loc_1403402D2                                            ; +0x73, 0x140340303\nmov     r14, [rsp+28h+arg_18]                                          ; +0x75, 0x140340305\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x7a, 0x14034030a\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x7f, 0x14034030f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x84, 0x140340314\nmovaps  xmm0, xmm1                                                     ; +0x89, 0x140340319\nadd     rsp, 20h                                                       ; +0x8c, 0x14034031c\npop     rsi                                                            ; +0x90, 0x140340320\nretn                                                                   ; +0x91, 0x140340321", "xrefs": ["<???> @ 0x14076b798", "<???> @ 0x14078b210", "<???> @ 0x1408b770c", "<???> @ 0x1408b771c", "<???> @ 0x14091fd24"], "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"}