{"type": "func", "start": 4298358592, "end": 4298358743, "name": "CCAnimatedSprite::cleanupSprite", "pseudocode": "// \n// CCAnimatedSprite::cleanupSprite from 0x10033bf40 to 0x10033bfd7 (151 bytes)\n// \n// 0 xrefs:\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:28:41 +0000\n// \n\n__int64 __fastcall CCAnimatedSprite::cleanupSprite(_QWORD *a1)\n{\n  __int64 v2; // rdi\n  __int64 result; // rax\n  __int64 v4; // rdi\n  __int64 v5; // rdi\n  __int64 v6; // rdi\n  __int64 v7; // rdi\n  _QWORD *v8; // rbx\n\n  v2 = a1[84];\n  if ( v2 )\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 736LL))(v2);\n  v4 = a1[83];\n  if ( v4 )\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 736LL))(v4);\n  v5 = a1[81];\n  if ( v5 )\n    result = SpriteAnimationManager::doCleanup(v5);\n  v6 = a1[83];\n  if ( v6 )\n    result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 528LL))(v6, 1);\n  v7 = a1[84];\n  v8 = a1 + 81;\n  if ( v7 )\n    result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 528LL))(v7, 1);\n  *((_OWORD *)v8 + 1) = 0;\n  *(_OWORD *)v8 = 0;\n  *((_DWORD *)v8 + 8) = 0;\n  return result;\n}", "assembly": "; \n; CCAnimatedSprite::cleanupSprite from 0x10033bf40 to 0x10033bfd7 (151 bytes)\n; \n; 0 xrefs:\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:28:41 +0000\n; \npush    rbp                                                            ; +0x0, 0x10033bf40\nmov     rbp, rsp                                                       ; +0x1, 0x10033bf41\npush    rbx                                                            ; +0x4, 0x10033bf44\npush    rax                                                            ; +0x5, 0x10033bf45\nmov     rbx, rdi                                                       ; +0x6, 0x10033bf46\nmov     rdi, [rdi+2A0h]                                                ; +0x9, 0x10033bf49\ntest    rdi, rdi                                                       ; +0x10, 0x10033bf50\njz      short loc_10033BF5E                                            ; +0x13, 0x10033bf53\nmov     rax, [rdi]                                                     ; +0x15, 0x10033bf55\ncall    qword ptr [rax+2E0h]                                           ; +0x18, 0x10033bf58\nmov     rdi, [rbx+298h]                                                ; +0x1e, 0x10033bf5e\ntest    rdi, rdi                                                       ; +0x25, 0x10033bf65\njz      short loc_10033BF73                                            ; +0x28, 0x10033bf68\nmov     rax, [rdi]                                                     ; +0x2a, 0x10033bf6a\ncall    qword ptr [rax+2E0h]                                           ; +0x2d, 0x10033bf6d\nmov     rdi, [rbx+288h]                                                ; +0x33, 0x10033bf73\ntest    rdi, rdi                                                       ; +0x3a, 0x10033bf7a\njz      short loc_10033BF84                                            ; +0x3d, 0x10033bf7d\ncall    SpriteAnimationManager__doCleanup                              ; +0x3f, 0x10033bf7f\nmov     rdi, [rbx+298h]                                                ; +0x44, 0x10033bf84\ntest    rdi, rdi                                                       ; +0x4b, 0x10033bf8b\njz      short loc_10033BF9E                                            ; +0x4e, 0x10033bf8e\nmov     rax, [rdi]                                                     ; +0x50, 0x10033bf90\nmov     esi, 1                                                         ; +0x53, 0x10033bf93\ncall    qword ptr [rax+210h]                                           ; +0x58, 0x10033bf98\nmov     rdi, [rbx+2A0h]                                                ; +0x5e, 0x10033bf9e\nadd     rbx, 288h                                                      ; +0x65, 0x10033bfa5\ntest    rdi, rdi                                                       ; +0x6c, 0x10033bfac\njz      short loc_10033BFBF                                            ; +0x6f, 0x10033bfaf\nmov     rax, [rdi]                                                     ; +0x71, 0x10033bfb1\nmov     esi, 1                                                         ; +0x74, 0x10033bfb4\ncall    qword ptr [rax+210h]                                           ; +0x79, 0x10033bfb9\nxorps   xmm0, xmm0                                                     ; +0x7f, 0x10033bfbf\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x82, 0x10033bfc2\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x86, 0x10033bfc6\nmov     dword ptr [rbx+20h], 0                                         ; +0x89, 0x10033bfc9\nadd     rsp, 8                                                         ; +0x90, 0x10033bfd0\npop     rbx                                                            ; +0x94, 0x10033bfd4\npop     rbp                                                            ; +0x95, 0x10033bfd5\nretn                                                                   ; +0x96, 0x10033bfd6", "xrefs": [], "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"}