{"type": "func", "start": 5371202160, "end": 5371202432, "name": "GJEffectManager::runOpacityActionOnGroup", "pseudocode": "// \n// GJEffectManager::runOpacityActionOnGroup from 0x140260a70 to 0x140260b80 (272 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::activateTriggerEffect @ 0x1402dd28e\n// > EffectGameObject::triggerObject @ 0x1404a6529\n// > <???> @ 0x1406cff90\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\nOpacityEffectAction *GJEffectManager::runOpacityActionOnGroup(\n        GJEffectManager *a1,\n        int a2,\n        float a3,\n        float a4,\n        int a5,\n        int a6)\n{\n  float v7; // xmm0_4\n  std::unordered_map<int, OpacityEffectAction> *p_m_opacityEffectMap; // rbx\n  _BYTE v10[16]; // [rsp+20h] [rbp-78h] BYREF\n  _DWORD v11[3]; // [rsp+30h] [rbp-68h] BYREF\n  __int16 v12; // [rsp+3Ch] [rbp-5Ch]\n  int v13; // [rsp+40h] [rbp-58h]\n  int v14; // [rsp+44h] [rbp-54h]\n  float v15; // [rsp+48h] [rbp-50h]\n  int v16; // [rsp+4Ch] [rbp-4Ch]\n  int v17; // [rsp+50h] [rbp-48h]\n  __int64 v18; // [rsp+54h] [rbp-44h]\n  int v19; // [rsp+A8h] [rbp+10h] BYREF\n\n  if ( a2 < 0 )\n    a2 = 0;\n  if ( a2 > 9999 )\n    a2 = 9999;\n  v19 = a2;\n  v7 = GJEffectManager::opacityModForGroup(a1, a2);\n  p_m_opacityEffectMap = &a1->m_opacityEffectMap;\n  sub_14024AC30(p_m_opacityEffectMap, (unsigned __int8 *)&v19);\n  v14 = v19;\n  v16 = a5;\n  v17 = a6;\n  v12 = 0;\n  v13 = 0;\n  *(float *)v11 = a3;\n  *(float *)&v11[1] = v7;\n  *(float *)&v11[2] = a4;\n  v15 = v7;\n  v18 = 0;\n  if ( a3 <= 0.0 )\n  {\n    v15 = a4;\n    LOBYTE(v12) = 1;\n  }\n  sub_140266BC0(p_m_opacityEffectMap, v10, &v19, v11);\n  return (OpacityEffectAction *)(*(_QWORD *)sub_140268BB0(p_m_opacityEffectMap, v10, &v19) + 20LL);\n}", "assembly": "; \n; GJEffectManager::runOpacityActionOnGroup from 0x140260a70 to 0x140260b80 (272 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::activateTriggerEffect @ 0x1402dd28e\n; > EffectGameObject::triggerObject @ 0x1404a6529\n; > <???> @ 0x1406cff90\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\nmov     r11, rsp                                                       ; +0x0, 0x140260a70\npush    rbx                                                            ; +0x3, 0x140260a73\nsub     rsp, 90h                                                       ; +0x4, 0x140260a74\nxor     eax, eax                                                       ; +0xb, 0x140260a7b\nmovaps  xmmword ptr [r11-18h], xmm6                                    ; +0xd, 0x140260a7d\ntest    edx, edx                                                       ; +0x12, 0x140260a82\nmovaps  [rsp+98h+var_28], xmm7                                         ; +0x14, 0x140260a84\nmovaps  xmmword ptr [r11-38h], xmm8                                    ; +0x19, 0x140260a89\nmovaps  xmm7, xmm2                                                     ; +0x1e, 0x140260a8e\ncmovs   edx, eax                                                       ; +0x21, 0x140260a91\nmovaps  xmm8, xmm3                                                     ; +0x24, 0x140260a94\nmov     eax, 270Fh                                                     ; +0x28, 0x140260a98\nmov     rbx, rcx                                                       ; +0x2d, 0x140260a9d\ncmp     edx, eax                                                       ; +0x30, 0x140260aa0\ncmovg   edx, eax                                                       ; +0x32, 0x140260aa2\nmov     [r11+10h], edx                                                 ; +0x35, 0x140260aa5\ncall    GJEffectManager__opacityModForGroup                            ; +0x39, 0x140260aa9\nadd     rbx, 1B0h                                                      ; +0x3e, 0x140260aae\nlea     rdx, [rsp+98h+arg_8]                                           ; +0x45, 0x140260ab5\nmov     rcx, rbx                                                       ; +0x4d, 0x140260abd\nmovaps  xmm6, xmm0                                                     ; +0x50, 0x140260ac0\ncall    sub_14024AC30                                                  ; +0x53, 0x140260ac3\nmov     eax, [rsp+98h+arg_8]                                           ; +0x58, 0x140260ac8\nxorps   xmm1, xmm1                                                     ; +0x5f, 0x140260acf\ncomiss  xmm1, xmm7                                                     ; +0x62, 0x140260ad2\nmov     [rsp+98h+var_54], eax                                          ; +0x65, 0x140260ad5\nmov     eax, [rsp+98h+arg_20]                                          ; +0x69, 0x140260ad9\nmov     [rsp+98h+var_4C], eax                                          ; +0x70, 0x140260ae0\nmov     eax, [rsp+98h+arg_28]                                          ; +0x74, 0x140260ae4\nmov     [rsp+98h+var_48], eax                                          ; +0x7b, 0x140260aeb\nmov     [rsp+98h+var_5C], 0                                            ; +0x7f, 0x140260aef\nmov     [rsp+98h+var_58], 0                                            ; +0x86, 0x140260af6\nmovss   [rsp+98h+var_68], xmm7                                         ; +0x8e, 0x140260afe\nmovss   [rsp+98h+var_64], xmm6                                         ; +0x94, 0x140260b04\nmovss   [rsp+98h+var_60], xmm8                                         ; +0x9a, 0x140260b0a\nmovss   [rsp+98h+var_50], xmm6                                         ; +0xa1, 0x140260b11\nmov     [rsp+98h+var_44], 0                                            ; +0xa7, 0x140260b17\njb      short loc_140260B2E                                            ; +0xb0, 0x140260b20\nmovss   [rsp+98h+var_50], xmm8                                         ; +0xb2, 0x140260b22\nmov     byte ptr [rsp+98h+var_5C], 1                                   ; +0xb9, 0x140260b29\nlea     r9, [rsp+98h+var_68]                                           ; +0xbe, 0x140260b2e\nmov     rcx, rbx                                                       ; +0xc3, 0x140260b33\nlea     r8, [rsp+98h+arg_8]                                            ; +0xc6, 0x140260b36\nlea     rdx, [rsp+98h+var_78]                                          ; +0xce, 0x140260b3e\ncall    sub_140266BC0                                                  ; +0xd3, 0x140260b43\nlea     r8, [rsp+98h+arg_8]                                            ; +0xd8, 0x140260b48\nmov     rcx, rbx                                                       ; +0xe0, 0x140260b50\nlea     rdx, [rsp+98h+var_78]                                          ; +0xe3, 0x140260b53\ncall    sub_140268BB0                                                  ; +0xe8, 0x140260b58\nmovaps  xmm6, [rsp+98h+var_18]                                         ; +0xed, 0x140260b5d\nmovaps  xmm7, [rsp+98h+var_28]                                         ; +0xf5, 0x140260b65\nmovaps  xmm8, [rsp+98h+var_38]                                         ; +0xfa, 0x140260b6a\nmov     rax, [rax]                                                     ; +0x100, 0x140260b70\nadd     rax, 14h                                                       ; +0x103, 0x140260b73\nadd     rsp, 90h                                                       ; +0x107, 0x140260b77\npop     rbx                                                            ; +0x10e, 0x140260b7e\nretn                                                                   ; +0x10f, 0x140260b7f", "xrefs": ["LevelEditorLayer::activateTriggerEffect @ 0x1402dd28e", "EffectGameObject::triggerObject @ 0x1404a6529", "<???> @ 0x1406cff90"], "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"}