{"type": "func", "start": 4298556752, "end": 4298556977, "name": "GameManager::loadDeathEffect", "pseudocode": "// \n// GameManager::loadDeathEffect from 0x10036c550 to 0x10036c631 (225 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x10007b4b8\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 12:29:00 +0000\n// \n\nvoid __fastcall GameManager::loadDeathEffect(__int64 a1, int a2, double a3)\n{\n  int v3; // eax\n  int v4; // r12d\n  int v5; // eax\n  __int64 v6; // rbx\n  __int64 v7; // rdi\n  __int64 CString; // r14\n  __int64 v9; // r15\n  __int64 v10; // rax\n  __int64 v11; // rax\n  __int64 v12; // r15\n  __int64 v13; // rax\n  const char *v14; // rax\n  char v15; // [rsp+0h] [rbp-20h]\n  char v16; // [rsp+0h] [rbp-20h]\n\n  v3 = 20;\n  if ( a2 < 20 )\n    v3 = a2;\n  v4 = 1;\n  if ( v3 >= 2 )\n    v4 = v3;\n  v5 = *(_DWORD *)(a1 + 996);\n  if ( v4 != v5 )\n  {\n    v6 = a1;\n    if ( v5 >= 2 )\n    {\n      v7 = sub_10088E820(\"PlayerExplosion_%02d.png\", v15);\n      CString = cocos2d::CCString::getCString(v7);\n      a1 = cocos2d::CCTextureCache::sharedTextureCache(v7);\n      cocos2d::CCTextureCache::removeTextureForKey(a1, CString);\n    }\n    if ( a2 >= 2 )\n    {\n      v9 = cocos2d::CCTextureCache::sharedTextureCache(a1);\n      v10 = sub_10088E820(\"PlayerExplosion_%02d.png\", v15);\n      v11 = cocos2d::CCString::getCString(v10);\n      cocos2d::CCTextureCache::addImage(v9, v11, 0);\n      v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n      v13 = sub_10088E820(\"PlayerExplosion_%02d.plist\", v16);\n      v14 = (const char *)cocos2d::CCString::getCString(v13);\n      cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile_2(v12, v14, a3);\n    }\n    *(_DWORD *)(v6 + 996) = v4;\n  }\n}", "assembly": "; \n; GameManager::loadDeathEffect from 0x10036c550 to 0x10036c631 (225 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x10007b4b8\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 12:29:00 +0000\n; \npush    rbp                                                            ; +0x0, 0x10036c550\nmov     rbp, rsp                                                       ; +0x1, 0x10036c551\npush    r15                                                            ; +0x4, 0x10036c554\npush    r14                                                            ; +0x6, 0x10036c556\npush    r12                                                            ; +0x8, 0x10036c558\npush    rbx; char                                                      ; +0xa, 0x10036c55a\ncmp     esi, 14h                                                       ; +0xb, 0x10036c55b\nmov     eax, 14h                                                       ; +0xe, 0x10036c55e\ncmovl   eax, esi                                                       ; +0x13, 0x10036c563\ncmp     eax, 2                                                         ; +0x16, 0x10036c566\nmov     r12d, 1                                                        ; +0x19, 0x10036c569\ncmovge  r12d, eax                                                      ; +0x1f, 0x10036c56f\nmov     eax, [rdi+3E4h]                                                ; +0x23, 0x10036c573\ncmp     r12d, eax                                                      ; +0x29, 0x10036c579\njz      loc_10036C628                                                  ; +0x2c, 0x10036c57c\nmov     rbx, rdi                                                       ; +0x32, 0x10036c582\ncmp     eax, 2                                                         ; +0x35, 0x10036c585\njl      short loc_10036C5BD                                            ; +0x38, 0x10036c588\ndec     eax                                                            ; +0x3a, 0x10036c58a\nlea     rdi, aPlayerexplosio_37; \"PlayerExplosion_%02d.png\"            ; +0x3c, 0x10036c58c\nmov     r15d, esi                                                      ; +0x43, 0x10036c593\nmov     esi, eax                                                       ; +0x46, 0x10036c596\nxor     eax, eax                                                       ; +0x48, 0x10036c598\ncall    sub_10088E820                                                  ; +0x4a, 0x10036c59a\nmov     rdi, rax                                                       ; +0x4f, 0x10036c59f\ncall    cocos2d__CCString__getCString                                  ; +0x52, 0x10036c5a2\nmov     r14, rax                                                       ; +0x57, 0x10036c5a7\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x5a, 0x10036c5aa\nmov     rdi, rax                                                       ; +0x5f, 0x10036c5af\nmov     rsi, r14                                                       ; +0x62, 0x10036c5b2\ncall    cocos2d__CCTextureCache__removeTextureForKey                   ; +0x65, 0x10036c5b5\nmov     esi, r15d                                                      ; +0x6a, 0x10036c5ba\ncmp     esi, 2                                                         ; +0x6d, 0x10036c5bd\njl      short loc_10036C621                                            ; +0x70, 0x10036c5c0\ncall    cocos2d__CCTextureCache__sharedTextureCache                    ; +0x72, 0x10036c5c2\nmov     r15, rax                                                       ; +0x77, 0x10036c5c7\nlea     r14d, [r12-1]                                                  ; +0x7a, 0x10036c5ca\nlea     rdi, aPlayerexplosio_37; \"PlayerExplosion_%02d.png\"            ; +0x7f, 0x10036c5cf\nmov     esi, r14d                                                      ; +0x86, 0x10036c5d6\nxor     eax, eax                                                       ; +0x89, 0x10036c5d9\ncall    sub_10088E820                                                  ; +0x8b, 0x10036c5db\nmov     rdi, rax                                                       ; +0x90, 0x10036c5e0\ncall    cocos2d__CCString__getCString                                  ; +0x93, 0x10036c5e3\nmov     rdi, r15                                                       ; +0x98, 0x10036c5e8\nmov     rsi, rax                                                       ; +0x9b, 0x10036c5eb\nxor     edx, edx                                                       ; +0x9e, 0x10036c5ee\ncall    cocos2d__CCTextureCache__addImage                              ; +0xa0, 0x10036c5f0\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0xa5, 0x10036c5f5\nmov     r15, rax                                                       ; +0xaa, 0x10036c5fa\nlea     rdi, aPlayerexplosio_38; \"PlayerExplosion_%02d.plist\"          ; +0xad, 0x10036c5fd\nmov     esi, r14d                                                      ; +0xb4, 0x10036c604\nxor     eax, eax                                                       ; +0xb7, 0x10036c607\ncall    sub_10088E820                                                  ; +0xb9, 0x10036c609\nmov     rdi, rax                                                       ; +0xbe, 0x10036c60e\ncall    cocos2d__CCString__getCString                                  ; +0xc1, 0x10036c611\nmov     rdi, r15                                                       ; +0xc6, 0x10036c616\nmov     rsi, rax                                                       ; +0xc9, 0x10036c619\ncall    cocos2d__CCSpriteFrameCache__addSpriteFramesWithFile_2         ; +0xcc, 0x10036c61c\nmov     [rbx+3E4h], r12d                                               ; +0xd1, 0x10036c621\npop     rbx                                                            ; +0xd8, 0x10036c628\npop     r12                                                            ; +0xd9, 0x10036c629\npop     r14                                                            ; +0xdb, 0x10036c62b\npop     r15                                                            ; +0xdd, 0x10036c62d\npop     rbp                                                            ; +0xdf, 0x10036c62f\nretn                                                                   ; +0xe0, 0x10036c630", "xrefs": ["PlayLayer::setupHasCompleted @ 0x10007b4b8"], "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"}