{"type": "func", "start": 4296142560, "end": 4296142839, "name": "GJBaseGameLayer::stopCustomEnterEffect", "pseudocode": "// \n// GJBaseGameLayer::stopCustomEnterEffect from 0x10011eee0 to 0x10011eff7 (279 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x10011eead\n// > GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x10011eecc\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 __fastcall GJBaseGameLayer::stopCustomEnterEffect(GJBaseGameLayer *a1, EnterEffectObject *a2, bool a3)\n{\n  int m_enterChannel; // ecx\n  std::unordered_map<int, std::vector<EnterEffectInstance>> *p_m_enterEffectInstanceVectors; // rdi\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  __int64 v10; // rsi\n  int m_effectID; // r8d\n  __int64 v12; // r9\n  __int64 v13; // rsi\n  __int64 v14; // r15\n  std::vector<int> *p_m_exitChannelMap; // rcx\n  std::vector<int> *p_m_enterChannelMap; // rbx\n  int *v17; // [rsp+8h] [rbp-28h] BYREF\n  int v18; // [rsp+10h] [rbp-20h] BYREF\n  _BYTE v19[25]; // [rsp+17h] [rbp-19h] BYREF\n\n  m_enterChannel = 0;\n  if ( a2->m_enterChannel < 0x65u )\n    m_enterChannel = a2->m_enterChannel;\n  v18 = m_enterChannel;\n  if ( a3 )\n    p_m_enterEffectInstanceVectors = &a1->m_gameState.m_enterEffectInstanceVectors;\n  else\n    p_m_enterEffectInstanceVectors = &a1->m_gameState.m_exitEffectInstanceVectors;\n  v17 = &v18;\n  v8 = sub_100166C80(p_m_enterEffectInstanceVectors, &v18, &unk_100816AE0, &v17, v19);\n  v9 = *(_QWORD *)(v8 + 24);\n  v10 = *(_QWORD *)(v8 + 32) - v9;\n  if ( v10 )\n  {\n    m_effectID = a2->m_effectID;\n    if ( m_effectID )\n    {\n      v12 = (0xEEEEEEEEEEEEEEEFLL * (v10 >> 4) == 0) - 0x1111111111111111LL * (v10 >> 4);\n      v13 = *(_QWORD *)(v8 + 24);\n      while ( *(_DWORD *)(*(_QWORD *)(v13 + 168) + 1988LL) != m_effectID )\n      {\n        v13 += 240;\n        if ( !--v12 )\n        {\n          if ( *(_QWORD *)(v8 + 32) != v9 )\n            return;\n          goto LABEL_15;\n        }\n      }\n      v14 = v8;\n      sub_10011ECC0(v8 + 24, v13);\n      if ( *(_QWORD *)(v14 + 32) != *(_QWORD *)(v14 + 24) )\n        return;\n    }\n    else\n    {\n      GJBaseGameLayer::removeCustomEnterEffects(a1, v18, a3);\n    }\nLABEL_15:\n    p_m_exitChannelMap = &a1->m_gameState.m_exitChannelMap;\n    p_m_enterChannelMap = &a1->m_gameState.m_enterChannelMap;\n    if ( !a3 )\n      p_m_enterChannelMap = p_m_exitChannelMap;\n    p_m_enterChannelMap->__begin_[v18] = -2;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::stopCustomEnterEffect from 0x10011eee0 to 0x10011eff7 (279 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x10011eead\n; > GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x10011eecc\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\npush    rbp                                                            ; +0x0, 0x10011eee0\nmov     rbp, rsp                                                       ; +0x1, 0x10011eee1\npush    r15                                                            ; +0x4, 0x10011eee4\npush    r14                                                            ; +0x6, 0x10011eee6\npush    rbx                                                            ; +0x8, 0x10011eee8\nsub     rsp, 18h                                                       ; +0x9, 0x10011eee9\nmov     r14d, edx                                                      ; +0xd, 0x10011eeed\nmov     r15, rsi                                                       ; +0x10, 0x10011eef0\nmov     rbx, rdi                                                       ; +0x13, 0x10011eef3\nmov     eax, [rsi+7ECh]                                                ; +0x16, 0x10011eef6\nxor     ecx, ecx                                                       ; +0x1c, 0x10011eefc\ncmp     eax, 65h ; 'e'                                                 ; +0x1e, 0x10011eefe\ncmovb   ecx, eax                                                       ; +0x21, 0x10011ef01\nmov     [rbp+var_20], ecx                                              ; +0x24, 0x10011ef04\ntest    edx, edx                                                       ; +0x27, 0x10011ef07\njz      short loc_10011EF14                                            ; +0x29, 0x10011ef09\nlea     rdi, [rbx+548h]                                                ; +0x2b, 0x10011ef0b\njmp     short loc_10011EF1B                                            ; +0x32, 0x10011ef12\nlea     rdi, [rbx+570h]                                                ; +0x34, 0x10011ef14\nlea     rsi, [rbp+var_20]                                              ; +0x3b, 0x10011ef1b\nmov     [rbp+var_28], rsi                                              ; +0x3f, 0x10011ef1f\nlea     rdx, unk_100816AE0                                             ; +0x43, 0x10011ef23\nlea     rcx, [rbp+var_28]                                              ; +0x4a, 0x10011ef2a\nlea     r8, [rbp+var_19]                                               ; +0x4e, 0x10011ef2e\ncall    sub_100166C80                                                  ; +0x52, 0x10011ef32\nmov     rcx, [rax+18h]                                                 ; +0x57, 0x10011ef37\nmov     rdx, [rax+20h]                                                 ; +0x5b, 0x10011ef3b\nmov     rsi, rdx                                                       ; +0x5f, 0x10011ef3f\nsub     rsi, rcx                                                       ; +0x62, 0x10011ef42\njz      loc_10011EFEC                                                  ; +0x65, 0x10011ef45\nmov     r8d, [r15+7C4h]                                                ; +0x6b, 0x10011ef4b\ntest    r8d, r8d                                                       ; +0x72, 0x10011ef52\njz      short loc_10011EFA3                                            ; +0x75, 0x10011ef55\nlea     rdi, [rax+18h]                                                 ; +0x77, 0x10011ef57\nsar     rsi, 4                                                         ; +0x7b, 0x10011ef5b\nmov     r9, 0EEEEEEEEEEEEEEEFh                                         ; +0x7f, 0x10011ef5f\nimul    r9, rsi                                                        ; +0x89, 0x10011ef69\ncmp     r9, 1                                                          ; +0x8d, 0x10011ef6d\nadc     r9, 0                                                          ; +0x91, 0x10011ef71\nmov     rsi, rcx                                                       ; +0x95, 0x10011ef75\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x98, 0x10011ef78\nmov     r10, [rsi+0A8h]                                                ; +0xa0, 0x10011ef80\ncmp     [r10+7C4h], r8d                                                ; +0xa7, 0x10011ef87\njz      short loc_10011EFB4                                            ; +0xae, 0x10011ef8e\nadd     rsi, 0F0h                                                      ; +0xb0, 0x10011ef90\ndec     r9                                                             ; +0xb7, 0x10011ef97\njnz     short loc_10011EF80                                            ; +0xba, 0x10011ef9a\ncmp     rdx, rcx                                                       ; +0xbc, 0x10011ef9c\njnz     short loc_10011EFEC                                            ; +0xbf, 0x10011ef9f\njmp     short loc_10011EFC9                                            ; +0xc1, 0x10011efa1\nmov     esi, [rbp+var_20]                                              ; +0xc3, 0x10011efa3\nmovzx   edx, r14b                                                      ; +0xc6, 0x10011efa6\nmov     rdi, rbx                                                       ; +0xca, 0x10011efaa\ncall    GJBaseGameLayer__removeCustomEnterEffects                      ; +0xcd, 0x10011efad\njmp     short loc_10011EFC9                                            ; +0xd2, 0x10011efb2\nmov     r15, rax                                                       ; +0xd4, 0x10011efb4\ncall    sub_10011ECC0                                                  ; +0xd7, 0x10011efb7\nmov     rcx, [r15+18h]                                                 ; +0xdc, 0x10011efbc\nmov     rdx, [r15+20h]                                                 ; +0xe0, 0x10011efc0\ncmp     rdx, rcx                                                       ; +0xe4, 0x10011efc4\njnz     short loc_10011EFEC                                            ; +0xe7, 0x10011efc7\nmovsxd  rax, [rbp+var_20]                                              ; +0xe9, 0x10011efc9\nlea     rcx, [rbx+5B0h]                                                ; +0xed, 0x10011efcd\nadd     rbx, 598h                                                      ; +0xf4, 0x10011efd4\ntest    r14b, r14b                                                     ; +0xfb, 0x10011efdb\ncmovz   rbx, rcx                                                       ; +0xfe, 0x10011efde\nmov     rcx, [rbx]                                                     ; +0x102, 0x10011efe2\nmov     dword ptr [rcx+rax*4], 0FFFFFFFEh                              ; +0x105, 0x10011efe5\nadd     rsp, 18h                                                       ; +0x10c, 0x10011efec\npop     rbx                                                            ; +0x110, 0x10011eff0\npop     r14                                                            ; +0x111, 0x10011eff1\npop     r15                                                            ; +0x113, 0x10011eff3\npop     rbp                                                            ; +0x115, 0x10011eff5\nretn                                                                   ; +0x116, 0x10011eff6", "xrefs": ["GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x10011eead", "GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x10011eecc"], "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"}