{"type": "func", "start": 5370865504, "end": 5370866013, "name": "GJBaseGameLayer::stopCustomEnterEffect", "pseudocode": "// \n// GJBaseGameLayer::stopCustomEnterEffect from 0x14020e760 to 0x14020e95d (509 bytes)\n// \n// 5 xrefs:\n// > EffectGameObject::triggerObject @ 0x1404a780e\n// > EffectGameObject::triggerObject @ 0x1404a7830\n// > <???> @ 0x14067edbc\n// > <???> @ 0x14067edcc\n// > <???> @ 0x1406cce4c\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\nvoid GJBaseGameLayer::stopCustomEnterEffect(GJBaseGameLayer *a1, EnterEffectObject *a2, bool a3)\n{\n  int v3; // ebx\n  std::unordered_map<int, std::vector<EnterEffectInstance>> *p_m_enterEffectInstanceVectors; // rcx\n  char *v8; // rdx\n  __int64 v9; // rax\n  __int64 v10; // r15\n  __int64 v11; // r9\n  unsigned __int64 v12; // rdx\n  __int64 m_effectID; // r8\n  int v14; // eax\n  __int64 v15; // rcx\n  std::_Vector_val<std::_Simple_types<int>>::pointer Myfirst; // rax\n  __int64 v17; // rcx\n  __int64 v18; // r14\n  __int64 v19; // rdi\n  __int64 i; // rbx\n  __int64 v21; // rbx\n  char v22; // [rsp+20h] [rbp-48h] BYREF\n  char v23; // [rsp+30h] [rbp-38h] BYREF\n  int v24; // [rsp+78h] [rbp+10h] BYREF\n  int m_enterChannel; // [rsp+80h] [rbp+18h] BYREF\n\n  v3 = 0;\n  m_enterChannel = a2->m_enterChannel;\n  if ( (unsigned int)m_enterChannel > 0x64 )\n    m_enterChannel = 0;\n  if ( a3 )\n  {\n    p_m_enterEffectInstanceVectors = &a1->m_gameState.m_enterEffectInstanceVectors;\n    v8 = &v22;\n  }\n  else\n  {\n    p_m_enterEffectInstanceVectors = &a1->m_gameState.m_exitEffectInstanceVectors;\n    v8 = &v23;\n  }\n  v9 = sub_1402502E0(p_m_enterEffectInstanceVectors, v8, &m_enterChannel);\n  v10 = *(_QWORD *)v9;\n  v11 = *(_QWORD *)(*(_QWORD *)v9 + 24LL);\n  v12 = (*(_QWORD *)(*(_QWORD *)v9 + 32LL) - v11) / 232;\n  if ( v12 )\n  {\n    m_effectID = (unsigned int)a2->m_effectID;\n    if ( !(_DWORD)m_effectID )\n    {\n      v14 = m_enterChannel;\n      v24 = m_enterChannel;\n      if ( (unsigned int)m_enterChannel <= 0x64 )\n      {\n        if ( a3 )\n        {\n          sub_14024A470(&a1->m_gameState.m_enterEffectInstanceVectors, &v24);\n          v15 = m_enterChannel;\n          Myfirst = a1->m_gameState.m_enterChannelMap._Mypair._Myval2._Myfirst;\nLABEL_26:\n          Myfirst[v15] = -2;\n          return;\n        }\n        sub_14024A470(&a1->m_gameState.m_exitEffectInstanceVectors, &v24);\n        v14 = m_enterChannel;\n        goto LABEL_12;\n      }\n      if ( !a3 )\n      {\nLABEL_12:\n        v15 = v14;\nLABEL_25:\n        Myfirst = a1->m_gameState.m_exitChannelMap._Mypair._Myval2._Myfirst;\n        goto LABEL_26;\n      }\n      v15 = m_enterChannel;\nLABEL_15:\n      Myfirst = a1->m_gameState.m_enterChannelMap._Mypair._Myval2._Myfirst;\n      goto LABEL_26;\n    }\n    v17 = v11 + 160;\n    while ( *(_DWORD *)(*(_QWORD *)v17 + 2008LL) != (_DWORD)m_effectID )\n    {\n      ++v3;\n      v17 += 232;\n      if ( v3 >= v12 )\n        goto LABEL_23;\n    }\n    v18 = *(_QWORD *)(v10 + 32);\n    v19 = v11 + 232LL * v3;\n    for ( i = v19 + 232; i != v18; i += 232 )\n    {\n      sub_140250C90(v19, i, m_effectID, v11);\n      v19 += 232;\n    }\n    v21 = *(_QWORD *)(v10 + 32);\n    sub_14005E430(v21 - 32);\n    sub_1402508A0(v21 - 232, v21 - 232);\n    *(_QWORD *)(v10 + 32) -= 232LL;\nLABEL_23:\n    if ( !((*(_QWORD *)(v10 + 32) - *(_QWORD *)(v10 + 24)) / 232LL) )\n    {\n      v15 = m_enterChannel;\n      if ( !a3 )\n        goto LABEL_25;\n      goto LABEL_15;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::stopCustomEnterEffect from 0x14020e760 to 0x14020e95d (509 bytes)\n; \n; 5 xrefs:\n; > EffectGameObject::triggerObject @ 0x1404a780e\n; > EffectGameObject::triggerObject @ 0x1404a7830\n; > <???> @ 0x14067edbc\n; > <???> @ 0x14067edcc\n; > <???> @ 0x1406cce4c\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, 0x14020e760\nmov     [r11+20h], rbx                                                 ; +0x3, 0x14020e763\npush    rbp                                                            ; +0x7, 0x14020e767\npush    rsi                                                            ; +0x8, 0x14020e768\npush    rdi                                                            ; +0x9, 0x14020e769\npush    r12                                                            ; +0xa, 0x14020e76a\npush    r15                                                            ; +0xc, 0x14020e76c\nsub     rsp, 40h                                                       ; +0xe, 0x14020e76e\nmov     eax, [rdx+800h]                                                ; +0x12, 0x14020e772\nxor     ebx, ebx                                                       ; +0x18, 0x14020e778\nmov     [r11+18h], eax                                                 ; +0x1a, 0x14020e77a\nmovzx   ebp, r8b                                                       ; +0x1e, 0x14020e77e\nmov     rdi, rdx                                                       ; +0x22, 0x14020e782\nmov     rsi, rcx                                                       ; +0x25, 0x14020e785\ncmp     eax, 64h ; 'd'                                                 ; +0x28, 0x14020e788\njbe     short loc_14020E791                                            ; +0x2b, 0x14020e78b\nmov     [r11+18h], ebx                                                 ; +0x2d, 0x14020e78d\nlea     r8, [rsp+68h+arg_10]                                           ; +0x31, 0x14020e791\ntest    bpl, bpl                                                       ; +0x39, 0x14020e799\njz      short loc_14020E7AC                                            ; +0x3c, 0x14020e79c\nadd     rcx, 5A8h                                                      ; +0x3e, 0x14020e79e\nlea     rdx, [rsp+68h+var_48]                                          ; +0x45, 0x14020e7a5\njmp     short loc_14020E7B8                                            ; +0x4a, 0x14020e7aa\nadd     rcx, 5E8h                                                      ; +0x4c, 0x14020e7ac\nlea     rdx, [rsp+68h+var_38]                                          ; +0x53, 0x14020e7b3\ncall    sub_1402502E0                                                  ; +0x58, 0x14020e7b8\nmov     r12, 469EE58469EE5847h                                         ; +0x5d, 0x14020e7bd\nmov     r15, [rax]                                                     ; +0x67, 0x14020e7c7\nmov     rax, r12                                                       ; +0x6a, 0x14020e7ca\nmov     r9, [r15+18h]                                                  ; +0x6d, 0x14020e7cd\nmov     rcx, [r15+20h]                                                 ; +0x71, 0x14020e7d1\nsub     rcx, r9                                                        ; +0x75, 0x14020e7d5\nimul    rcx                                                            ; +0x78, 0x14020e7d8\nsar     rdx, 6                                                         ; +0x7b, 0x14020e7db\nmov     rax, rdx                                                       ; +0x7f, 0x14020e7df\nshr     rax, 3Fh                                                       ; +0x82, 0x14020e7e2\nadd     rdx, rax                                                       ; +0x86, 0x14020e7e6\njz      loc_14020E949                                                  ; +0x89, 0x14020e7e9\nmov     r8d, [rdi+7D8h]                                                ; +0x8f, 0x14020e7ef\ntest    r8d, r8d                                                       ; +0x96, 0x14020e7f6\njnz     short loc_14020E866                                            ; +0x99, 0x14020e7f9\nmov     eax, [rsp+68h+arg_10]                                          ; +0x9b, 0x14020e7fb\nmov     [rsp+68h+arg_8], eax                                           ; +0xa2, 0x14020e802\ncmp     eax, 64h ; 'd'                                                 ; +0xa6, 0x14020e806\nja      short loc_14020E852                                            ; +0xa9, 0x14020e809\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xab, 0x14020e80b\ntest    bpl, bpl                                                       ; +0xb0, 0x14020e810\njz      short loc_14020E837                                            ; +0xb3, 0x14020e813\nlea     rcx, [rsi+5A8h]                                                ; +0xb5, 0x14020e815\ncall    sub_14024A470                                                  ; +0xbc, 0x14020e81c\nmov     eax, [rsp+68h+arg_10]                                          ; +0xc1, 0x14020e821\nmovsxd  rcx, eax                                                       ; +0xc8, 0x14020e828\nmov     rax, [rsi+628h]                                                ; +0xcb, 0x14020e82b\njmp     loc_14020E942                                                  ; +0xd2, 0x14020e832\nlea     rcx, [rsi+5E8h]                                                ; +0xd7, 0x14020e837\ncall    sub_14024A470                                                  ; +0xde, 0x14020e83e\nmov     eax, [rsp+68h+arg_10]                                          ; +0xe3, 0x14020e843\nmovsxd  rcx, eax                                                       ; +0xea, 0x14020e84a\njmp     loc_14020E93B                                                  ; +0xed, 0x14020e84d\ntest    bpl, bpl                                                       ; +0xf2, 0x14020e852\njz      short loc_14020E84A                                            ; +0xf5, 0x14020e855\nmovsxd  rcx, eax                                                       ; +0xf7, 0x14020e857\nmov     rax, [rsi+628h]                                                ; +0xfa, 0x14020e85a\njmp     loc_14020E942                                                  ; +0x101, 0x14020e861\ntest    rdx, rdx                                                       ; +0x106, 0x14020e866\njz      loc_14020E90C                                                  ; +0x109, 0x14020e869\nlea     rcx, [r9+0A0h]                                                 ; +0x10f, 0x14020e86f\nnop     word ptr [rax+rax+00000000h]                                   ; +0x116, 0x14020e876\nmov     rax, [rcx]                                                     ; +0x120, 0x14020e880\ncmp     [rax+7D8h], r8d                                                ; +0x123, 0x14020e883\njz      short loc_14020E89F                                            ; +0x12a, 0x14020e88a\ninc     ebx                                                            ; +0x12c, 0x14020e88c\nadd     rcx, 0E8h                                                      ; +0x12e, 0x14020e88e\nmovsxd  rax, ebx                                                       ; +0x135, 0x14020e895\ncmp     rax, rdx                                                       ; +0x138, 0x14020e898\njb      short loc_14020E880                                            ; +0x13b, 0x14020e89b\njmp     short loc_14020E90C                                            ; +0x13d, 0x14020e89d\nmovsxd  rax, ebx                                                       ; +0x13f, 0x14020e89f\nimul    rdi, rax, 0E8h                                                 ; +0x142, 0x14020e8a2\nmov     [rsp+68h+arg_0], r14                                           ; +0x149, 0x14020e8a9\nmov     r14, [r15+20h]                                                 ; +0x14e, 0x14020e8ae\nadd     rdi, r9                                                        ; +0x152, 0x14020e8b2\nlea     rbx, [rdi+0E8h]                                                ; +0x155, 0x14020e8b5\ncmp     rbx, r14                                                       ; +0x15c, 0x14020e8bc\njz      short loc_14020E8DF                                            ; +0x15f, 0x14020e8bf\nmov     rdx, rbx                                                       ; +0x161, 0x14020e8c1\nmov     rcx, rdi                                                       ; +0x164, 0x14020e8c4\ncall    sub_140250C90                                                  ; +0x167, 0x14020e8c7\nadd     rdi, 0E8h                                                      ; +0x16c, 0x14020e8cc\nadd     rbx, 0E8h                                                      ; +0x173, 0x14020e8d3\ncmp     rbx, r14                                                       ; +0x17a, 0x14020e8da\njnz     short loc_14020E8C1                                            ; +0x17d, 0x14020e8dd\nmov     rbx, [r15+20h]                                                 ; +0x17f, 0x14020e8df\nlea     rcx, [rbx-20h]                                                 ; +0x183, 0x14020e8e3\ncall    sub_14005E430                                                  ; +0x187, 0x14020e8e7\nlea     rdx, [rbx-0E8h]                                                ; +0x18c, 0x14020e8ec\nlea     rcx, [rbx-0E8h]                                                ; +0x193, 0x14020e8f3\ncall    sub_1402508A0                                                  ; +0x19a, 0x14020e8fa\nadd     qword ptr [r15+20h], 0FFFFFFFFFFFFFF18h                        ; +0x19f, 0x14020e8ff\nmov     r14, [rsp+68h+arg_0]                                           ; +0x1a7, 0x14020e907\nmov     rcx, [r15+20h]                                                 ; +0x1ac, 0x14020e90c\nmov     rax, r12                                                       ; +0x1b0, 0x14020e910\nsub     rcx, [r15+18h]                                                 ; +0x1b3, 0x14020e913\nimul    rcx                                                            ; +0x1b7, 0x14020e917\nsar     rdx, 6                                                         ; +0x1ba, 0x14020e91a\nmov     rax, rdx                                                       ; +0x1be, 0x14020e91e\nshr     rax, 3Fh                                                       ; +0x1c1, 0x14020e921\nadd     rdx, rax                                                       ; +0x1c5, 0x14020e925\njnz     short loc_14020E949                                            ; +0x1c8, 0x14020e928\nmovsxd  rcx, [rsp+68h+arg_10]                                          ; +0x1ca, 0x14020e92a\ntest    bpl, bpl                                                       ; +0x1d2, 0x14020e932\njnz     loc_14020E85A                                                  ; +0x1d5, 0x14020e935\nmov     rax, [rsi+640h]                                                ; +0x1db, 0x14020e93b\nmov     dword ptr [rax+rcx*4], 0FFFFFFFEh                              ; +0x1e2, 0x14020e942\nmov     rbx, [rsp+68h+arg_18]                                          ; +0x1e9, 0x14020e949\nadd     rsp, 40h                                                       ; +0x1f1, 0x14020e951\npop     r15                                                            ; +0x1f5, 0x14020e955\npop     r12                                                            ; +0x1f7, 0x14020e957\npop     rdi                                                            ; +0x1f9, 0x14020e959\npop     rsi                                                            ; +0x1fa, 0x14020e95a\npop     rbp                                                            ; +0x1fb, 0x14020e95b\nretn                                                                   ; +0x1fc, 0x14020e95c", "xrefs": ["EffectGameObject::triggerObject @ 0x1404a780e", "EffectGameObject::triggerObject @ 0x1404a7830", "<???> @ 0x14067edbc", "<???> @ 0x14067edcc", "<???> @ 0x1406cce4c"], "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"}