{"type": "func", "start": 5372053648, "end": 5372053776, "name": "LocalLevelManager::updateLevelOrder", "pseudocode": "// \n// LocalLevelManager::updateLevelOrder from 0x140330890 to 0x140330910 (128 bytes)\n// \n// 4 xrefs:\n// > EditLevelLayer::FLAlert_Clicked @ 0x1400d8ecf\n// > GJAccountManager::backupAccount @ 0x140201bdb\n// > LocalLevelManager::dataLoaded @ 0x140330a8f\n// > <???> @ 0x1406d5024\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\nint LocalLevelManager::updateLevelOrder(LocalLevelManager *a1)\n{\n  int v2; // ebx\n  unsigned int i; // edi\n  unsigned int v4; // eax\n  struct cocos2d::CCObject *v5; // rax\n\n  v2 = 0;\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_localLevels); ++v2 )\n  {\n    v4 = cocos2d::CCArray::count(a1->m_localLevels);\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_localLevels, v4 + -1 - i++);\n    v5[12].m_uAutoReleaseCount = v2;\n  }\n  return v2;\n}", "assembly": "; \n; LocalLevelManager::updateLevelOrder from 0x140330890 to 0x140330910 (128 bytes)\n; \n; 4 xrefs:\n; > EditLevelLayer::FLAlert_Clicked @ 0x1400d8ecf\n; > GJAccountManager::backupAccount @ 0x140201bdb\n; > LocalLevelManager::dataLoaded @ 0x140330a8f\n; > <???> @ 0x1406d5024\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140330890\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140330895\npush    rdi                                                            ; +0xa, 0x14033089a\nsub     rsp, 20h                                                       ; +0xb, 0x14033089b\nmov     rsi, rcx                                                       ; +0xf, 0x14033089f\nxor     ebx, ebx                                                       ; +0x12, 0x1403308a2\nmov     rcx, [rcx+168h]                                                ; +0x14, 0x1403308a4\nmov     edi, ebx                                                       ; +0x1b, 0x1403308ab\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1d, 0x1403308ad\ntest    eax, eax                                                       ; +0x23, 0x1403308b3\njz      short loc_1403308FE                                            ; +0x25, 0x1403308b5\nnop     word ptr [rax+rax+00000000h]                                   ; +0x27, 0x1403308b7\nmov     rcx, [rsi+168h]                                                ; +0x30, 0x1403308c0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x1403308c7\nmov     rcx, [rsi+168h]                                                ; +0x3d, 0x1403308cd\nmov     edx, 0FFFFFFFFh                                                ; +0x44, 0x1403308d4\nsub     edx, edi                                                       ; +0x49, 0x1403308d9\nadd     edx, eax                                                       ; +0x4b, 0x1403308db\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4d, 0x1403308dd\ninc     edi                                                            ; +0x53, 0x1403308e3\nmov     [rax+2B8h], ebx                                                ; +0x55, 0x1403308e5\ninc     ebx                                                            ; +0x5b, 0x1403308eb\nmov     rcx, [rsi+168h]                                                ; +0x5d, 0x1403308ed\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x64, 0x1403308f4\ncmp     edi, eax                                                       ; +0x6a, 0x1403308fa\njb      short loc_1403308C0                                            ; +0x6c, 0x1403308fc\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6e, 0x1403308fe\nmov     eax, ebx                                                       ; +0x73, 0x140330903\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x75, 0x140330905\nadd     rsp, 20h                                                       ; +0x7a, 0x14033090a\npop     rdi                                                            ; +0x7e, 0x14033090e\nretn                                                                   ; +0x7f, 0x14033090f", "xrefs": ["EditLevelLayer::FLAlert_Clicked @ 0x1400d8ecf", "GJAccountManager::backupAccount @ 0x140201bdb", "LocalLevelManager::dataLoaded @ 0x140330a8f", "<???> @ 0x1406d5024"], "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"}