{"type": "func", "start": 4298022048, "end": 4298022363, "name": "GJEffectManager::playerDied", "pseudocode": "// \n// GJEffectManager::playerDied from 0x1002e9ca0 to 0x1002e9ddb (315 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::destroyPlayer @ 0x1000b9f76\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 GJEffectManager::playerDied(GJEffectManager *a1)\n{\n  std::__vector_base<ToggleTriggerAction>::pointer begin; // rbx\n  std::__vector_base<ToggleTriggerAction>::pointer end; // rax\n  __int64 v3; // r13\n  unsigned __int64 v4; // r14\n  char *v5; // r15\n  signed __int64 v6; // r12\n  char *v7; // [rsp+0h] [rbp-50h]\n  void *__p[2]; // [rsp+10h] [rbp-40h] BYREF\n  char *v9; // [rsp+20h] [rbp-30h]\n\n  if ( a1->m_triggerEffectDelegate )\n  {\n    begin = a1->m_unkVector248.__begin_;\n    end = a1->m_unkVector248.__end_;\n    if ( end != begin )\n    {\n      v3 = 0;\n      v4 = 0;\n      do\n      {\n        if ( !begin[v3].m_disabled )\n        {\n          *(_OWORD *)__p = 0;\n          v9 = nullptr;\n          v5 = (char *)begin[v3].m_remapKeys.__begin_;\n          v6 = (char *)begin[v3].m_remapKeys.__end_ - v5;\n          if ( v6 )\n          {\n            if ( v6 < 0 )\n              sub_1000C40D0();\n            __p[0] = operator new(v6);\n            __p[1] = __p[0];\n            v7 = (char *)__p[0] + v6;\n            v9 = (char *)__p[0] + v6;\n            memcpy(__p[0], v5, v6);\n            __p[1] = v7;\n          }\n          ((void (__fastcall *)(TriggerEffectDelegate *, _QWORD, bool, void **, _QWORD, _QWORD))a1->m_triggerEffectDelegate->toggleGroupTriggered)(\n            a1->m_triggerEffectDelegate,\n            (unsigned int)begin[v3].m_targetGroupID,\n            begin[v3].m_activateGroup,\n            __p,\n            (unsigned int)begin[v3].m_triggerUniqueID,\n            (unsigned int)begin[v3].m_controlID);\n          if ( __p[0] )\n          {\n            __p[1] = __p[0];\n            operator delete(__p[0]);\n          }\n          begin = a1->m_unkVector248.__begin_;\n          end = a1->m_unkVector248.__end_;\n        }\n        ++v4;\n        ++v3;\n      }\n      while ( 0xAAAAAAAAAAAAAAABLL * (((char *)end - (char *)begin) >> 4) > v4 );\n    }\n  }\n}", "assembly": "; \n; GJEffectManager::playerDied from 0x1002e9ca0 to 0x1002e9ddb (315 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::destroyPlayer @ 0x1000b9f76\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, 0x1002e9ca0\nmov     rbp, rsp                                                       ; +0x1, 0x1002e9ca1\npush    r15                                                            ; +0x4, 0x1002e9ca4\npush    r14                                                            ; +0x6, 0x1002e9ca6\npush    r13                                                            ; +0x8, 0x1002e9ca8\npush    r12                                                            ; +0xa, 0x1002e9caa\npush    rbx                                                            ; +0xc, 0x1002e9cac\nsub     rsp, 28h                                                       ; +0xd, 0x1002e9cad\ncmp     qword ptr [rdi+140h], 0                                        ; +0x11, 0x1002e9cb1\njz      loc_1002E9DC7                                                  ; +0x19, 0x1002e9cb9\nmov     r15, rdi                                                       ; +0x1f, 0x1002e9cbf\nmov     rbx, [rdi+218h]                                                ; +0x22, 0x1002e9cc2\nmov     rax, [rdi+220h]                                                ; +0x29, 0x1002e9cc9\ncmp     rax, rbx                                                       ; +0x30, 0x1002e9cd0\njz      loc_1002E9DC7                                                  ; +0x33, 0x1002e9cd3\nxor     r13d, r13d                                                     ; +0x39, 0x1002e9cd9\nmov     rdx, 0AAAAAAAAAAAAAAABh                                        ; +0x3c, 0x1002e9cdc\nxor     r14d, r14d                                                     ; +0x46, 0x1002e9ce6\nmov     [rbp+var_48], r15                                              ; +0x49, 0x1002e9ce9\njmp     short loc_1002E9D26                                            ; +0x4d, 0x1002e9ced\nalign 10h                                                              ; +0x4f, 0x1002e9cef\nmov     rbx, [r15+218h]                                                ; +0x50, 0x1002e9cf0\nmov     rax, [r15+220h]                                                ; +0x57, 0x1002e9cf7\nmov     rdx, 0AAAAAAAAAAAAAAABh                                        ; +0x5e, 0x1002e9cfe\ninc     r14                                                            ; +0x68, 0x1002e9d08\nmov     rcx, rax                                                       ; +0x6b, 0x1002e9d0b\nsub     rcx, rbx                                                       ; +0x6e, 0x1002e9d0e\nsar     rcx, 4                                                         ; +0x71, 0x1002e9d11\nimul    rcx, rdx                                                       ; +0x75, 0x1002e9d15\nadd     r13, 30h ; '0'                                                 ; +0x79, 0x1002e9d19\ncmp     rcx, r14                                                       ; +0x7d, 0x1002e9d1d\njbe     loc_1002E9DC7                                                  ; +0x80, 0x1002e9d20\ncmp     byte ptr [rbx+r13], 0                                          ; +0x86, 0x1002e9d26\njnz     short loc_1002E9D08                                            ; +0x8b, 0x1002e9d2b\nxorps   xmm0, xmm0                                                     ; +0x8d, 0x1002e9d2d\nmovaps  xmmword ptr [rbp+__p], xmm0                                    ; +0x90, 0x1002e9d30\nmov     [rbp+var_30], 0                                                ; +0x94, 0x1002e9d34\nmov     r15, [rbx+r13+18h]                                             ; +0x9c, 0x1002e9d3c\nmov     r12, [rbx+r13+20h]                                             ; +0xa1, 0x1002e9d41\nsub     r12, r15                                                       ; +0xa6, 0x1002e9d46\njz      short loc_1002E9D83                                            ; +0xa9, 0x1002e9d49\njs      loc_1002E9DD6                                                  ; +0xab, 0x1002e9d4b\nmov     rdi, r12; __sz                                                 ; +0xb1, 0x1002e9d51\ncall    __Znwm; operator new(ulong)                                    ; +0xb4, 0x1002e9d54\nmov     [rbp+__p], rax                                                 ; +0xb9, 0x1002e9d59\nmov     [rbp+__p+8], rax                                               ; +0xbd, 0x1002e9d5d\nlea     rcx, [rax+r12]                                                 ; +0xc1, 0x1002e9d61\nmov     [rbp+var_50], rcx                                              ; +0xc5, 0x1002e9d65\nmov     [rbp+var_30], rcx                                              ; +0xc9, 0x1002e9d69\nmov     rdi, rax; __dst                                                ; +0xcd, 0x1002e9d6d\nmov     rsi, r15; __src                                                ; +0xd0, 0x1002e9d70\nmov     rdx, r12; __n                                                  ; +0xd3, 0x1002e9d73\ncall    _memcpy                                                        ; +0xd6, 0x1002e9d76\nmov     rax, [rbp+var_50]                                              ; +0xdb, 0x1002e9d7b\nmov     [rbp+__p+8], rax                                               ; +0xdf, 0x1002e9d7f\nmov     r15, [rbp+var_48]                                              ; +0xe3, 0x1002e9d83\nmov     rdi, [r15+140h]                                                ; +0xe7, 0x1002e9d87\nmovzx   edx, byte ptr [rbx+r13+8]                                      ; +0xee, 0x1002e9d8e\nmov     esi, [rbx+r13+4]                                               ; +0xf4, 0x1002e9d94\nmov     r8d, [rbx+r13+0Ch]                                             ; +0xf9, 0x1002e9d99\nmov     r9d, [rbx+r13+10h]                                             ; +0xfe, 0x1002e9d9e\nmov     rax, [rdi]                                                     ; +0x103, 0x1002e9da3\nlea     rcx, [rbp+__p]                                                 ; +0x106, 0x1002e9da6\ncall    qword ptr [rax]                                                ; +0x10a, 0x1002e9daa\nmov     rdi, [rbp+__p]; __p                                            ; +0x10c, 0x1002e9dac\ntest    rdi, rdi                                                       ; +0x110, 0x1002e9db0\njz      loc_1002E9CF0                                                  ; +0x113, 0x1002e9db3\nmov     [rbp+__p+8], rdi                                               ; +0x119, 0x1002e9db9\ncall    __ZdlPv; operator delete(void *)                               ; +0x11d, 0x1002e9dbd\njmp     loc_1002E9CF0                                                  ; +0x122, 0x1002e9dc2\nadd     rsp, 28h                                                       ; +0x127, 0x1002e9dc7\npop     rbx                                                            ; +0x12b, 0x1002e9dcb\npop     r12                                                            ; +0x12c, 0x1002e9dcc\npop     r13                                                            ; +0x12e, 0x1002e9dce\npop     r14                                                            ; +0x130, 0x1002e9dd0\npop     r15                                                            ; +0x132, 0x1002e9dd2\npop     rbp                                                            ; +0x134, 0x1002e9dd4\nretn                                                                   ; +0x135, 0x1002e9dd5\ncall    sub_1000C40D0                                                  ; +0x136, 0x1002e9dd6", "xrefs": ["PlayLayer::destroyPlayer @ 0x1000b9f76"], "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"}