{"type": "func", "start": 4300469904, "end": 4300470172, "name": "GameLevelManager::deleteLevelList", "pseudocode": "// \n// GameLevelManager::deleteLevelList from 0x10053f690 to 0x10053f79c (268 bytes)\n// \n// 4 xrefs:\n// > LevelListLayer::onFavorite @ 0x1003491c5\n// > LevelListLayer::FLAlert_Clicked @ 0x10034b5a7\n// > LevelListLayer::onDelete @ 0x10034b64a\n// > LevelBrowserLayer::FLAlert_Clicked @ 0x1004883b9\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:31:56 +0000\n// \n\nvoid __fastcall GameLevelManager::deleteLevelList(__int64 a1, __int64 a2, double a3)\n{\n  __int64 v3; // rax\n  __int64 v4; // rbx\n  __int64 v5; // rax\n  const char *CString; // r15\n  size_t v7; // rax\n  size_t v8; // r14\n  char *v9; // r12\n  size_t v10; // r13\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  if ( *(_DWORD *)(a2 + 544) == 2 )\n  {\n    v3 = LocalLevelManager::sharedState(a3);\n    sub_1007FF140(*(_QWORD *)(v3 + 368), a2, 1);\n    return;\n  }\n  v4 = *(_QWORD *)(a1 + 784);\n  v5 = sub_10088E820(\"%i\", __dst[0]);\n  CString = (const char *)cocos2d::CCString::getCString(v5);\n  v7 = strlen(CString);\n  if ( v7 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v8 = v7;\n  if ( v7 >= 0x17 )\n  {\n    v10 = 26;\n    if ( (v7 | 7) != 0x17 )\n      v10 = (v7 | 7) + 1;\n    v9 = (char *)operator new(v10);\n    __p = v9;\n    __dst[0] = v10 + 1;\n    __dst[1] = v8;\n    goto LABEL_10;\n  }\n  LOBYTE(__dst[0]) = 2 * v7;\n  v9 = (char *)__dst + 1;\n  if ( v7 )\nLABEL_10:\n    memmove(v9, CString, v8);\n  v9[v8] = 0;\n  cocos2d::CCDictionary::removeObjectForKey(v4, (char *)__dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; GameLevelManager::deleteLevelList from 0x10053f690 to 0x10053f79c (268 bytes)\n; \n; 4 xrefs:\n; > LevelListLayer::onFavorite @ 0x1003491c5\n; > LevelListLayer::FLAlert_Clicked @ 0x10034b5a7\n; > LevelListLayer::onDelete @ 0x10034b64a\n; > LevelBrowserLayer::FLAlert_Clicked @ 0x1004883b9\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:31:56 +0000\n; \npush    rbp                                                            ; +0x0, 0x10053f690\nmov     rbp, rsp                                                       ; +0x1, 0x10053f691\npush    r15                                                            ; +0x4, 0x10053f694\npush    r14                                                            ; +0x6, 0x10053f696\npush    r13                                                            ; +0x8, 0x10053f698\npush    r12                                                            ; +0xa, 0x10053f69a\npush    rbx                                                            ; +0xc, 0x10053f69c\nsub     rsp, 18h                                                       ; +0xd, 0x10053f69d\ncmp     dword ptr [rsi+220h], 2                                        ; +0x11, 0x10053f6a1\njnz     short loc_10053F6D4                                            ; +0x18, 0x10053f6a8\nmov     rbx, rsi                                                       ; +0x1a, 0x10053f6aa\ncall    LocalLevelManager__sharedState                                 ; +0x1d, 0x10053f6ad\nmov     rdi, [rax+170h]                                                ; +0x22, 0x10053f6b2\nmov     rsi, rbx                                                       ; +0x29, 0x10053f6b9\nmov     edx, 1                                                         ; +0x2c, 0x10053f6bc\nadd     rsp, 18h                                                       ; +0x31, 0x10053f6c1\npop     rbx                                                            ; +0x35, 0x10053f6c5\npop     r12                                                            ; +0x36, 0x10053f6c6\npop     r13                                                            ; +0x38, 0x10053f6c8\npop     r14                                                            ; +0x3a, 0x10053f6ca\npop     r15                                                            ; +0x3c, 0x10053f6cc\npop     rbp                                                            ; +0x3e, 0x10053f6ce\njmp     sub_1007FF140                                                  ; +0x3f, 0x10053f6cf\nmov     rbx, [rdi+310h]                                                ; +0x44, 0x10053f6d4\nmov     esi, [rsi+158h]                                                ; +0x4b, 0x10053f6db\nlea     rdi, aI_14; \"%i\"                                               ; +0x51, 0x10053f6e1\nxor     eax, eax                                                       ; +0x58, 0x10053f6e8\ncall    sub_10088E820                                                  ; +0x5a, 0x10053f6ea\nmov     rdi, rax                                                       ; +0x5f, 0x10053f6ef\ncall    cocos2d__CCString__getCString                                  ; +0x62, 0x10053f6f2\nmov     r15, rax                                                       ; +0x67, 0x10053f6f7\nmov     rdi, rax; __s                                                  ; +0x6a, 0x10053f6fa\ncall    _strlen                                                        ; +0x6d, 0x10053f6fd\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x72, 0x10053f702\njnb     loc_10053F797                                                  ; +0x76, 0x10053f706\nmov     r14, rax                                                       ; +0x7c, 0x10053f70c\ncmp     rax, 17h                                                       ; +0x7f, 0x10053f70f\njnb     short loc_10053F727                                            ; +0x83, 0x10053f713\nlea     eax, [r14+r14]                                                 ; +0x85, 0x10053f715\nmov     byte ptr [rbp+__dst], al                                       ; +0x89, 0x10053f719\nlea     r12, [rbp+__dst+1]                                             ; +0x8c, 0x10053f71c\ntest    r14, r14                                                       ; +0x90, 0x10053f720\njnz     short loc_10053F75A                                            ; +0x93, 0x10053f723\njmp     short loc_10053F768                                            ; +0x95, 0x10053f725\nmov     rax, r14                                                       ; +0x97, 0x10053f727\nor      rax, 7                                                         ; +0x9a, 0x10053f72a\nlea     rcx, [rax+1]                                                   ; +0x9e, 0x10053f72e\ncmp     rax, 17h                                                       ; +0xa2, 0x10053f732\nmov     r13d, 1Ah                                                      ; +0xa6, 0x10053f736\ncmovnz  r13, rcx                                                       ; +0xac, 0x10053f73c\nmov     rdi, r13; __sz                                                 ; +0xb0, 0x10053f740\ncall    __Znwm; operator new(ulong)                                    ; +0xb3, 0x10053f743\nmov     r12, rax                                                       ; +0xb8, 0x10053f748\nmov     [rbp+__p], rax                                                 ; +0xbb, 0x10053f74b\ninc     r13                                                            ; +0xbf, 0x10053f74f\nmov     [rbp+__dst], r13                                               ; +0xc2, 0x10053f752\nmov     [rbp+var_38], r14                                              ; +0xc6, 0x10053f756\nmov     rdi, r12; __dst                                                ; +0xca, 0x10053f75a\nmov     rsi, r15; __src                                                ; +0xcd, 0x10053f75d\nmov     rdx, r14; __len                                                ; +0xd0, 0x10053f760\ncall    _memmove                                                       ; +0xd3, 0x10053f763\nmov     byte ptr [r12+r14], 0                                          ; +0xd8, 0x10053f768\nlea     rsi, [rbp+__dst]                                               ; +0xdd, 0x10053f76d\nmov     rdi, rbx                                                       ; +0xe1, 0x10053f771\ncall    cocos2d__CCDictionary__removeObjectForKey                      ; +0xe4, 0x10053f774\ntest    byte ptr [rbp+__dst], 1                                        ; +0xe9, 0x10053f779\njz      short loc_10053F788                                            ; +0xed, 0x10053f77d\nmov     rdi, [rbp+__p]; __p                                            ; +0xef, 0x10053f77f\ncall    __ZdlPv; operator delete(void *)                               ; +0xf3, 0x10053f783\nadd     rsp, 18h                                                       ; +0xf8, 0x10053f788\npop     rbx                                                            ; +0xfc, 0x10053f78c\npop     r12                                                            ; +0xfd, 0x10053f78d\npop     r13                                                            ; +0xff, 0x10053f78f\npop     r14                                                            ; +0x101, 0x10053f791\npop     r15                                                            ; +0x103, 0x10053f793\npop     rbp                                                            ; +0x105, 0x10053f795\nretn                                                                   ; +0x106, 0x10053f796\ncall    sub_100003630                                                  ; +0x107, 0x10053f797", "xrefs": ["LevelListLayer::onFavorite @ 0x1003491c5", "LevelListLayer::FLAlert_Clicked @ 0x10034b5a7", "LevelListLayer::onDelete @ 0x10034b64a", "LevelBrowserLayer::FLAlert_Clicked @ 0x1004883b9"], "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"}