{"type": "func", "start": 5280012, "end": 5280044, "name": "EditorPauseLayer::saveLevel", "pseudocode": "// \n// EditorPauseLayer::saveLevel from 0x50910c to 0x50912c (32 bytes)\n// \n// 4 xrefs:\n// > EditorPauseLayer::onSaveAndPlay @ 0x50914c\n// > EditorPauseLayer::onSaveAndExit @ 0x5091e4\n// > EditorPauseLayer::FLAlert_Clicked @ 0x50953e\n// > EditorPauseLayer::FLAlert_Clicked @ 0x509578\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:26 +0000\n// \n\nint __fastcall EditorPauseLayer::saveLevel(EditorPauseLayer *this)\n{\n  GManager *v2; // r0\n  int result; // r0\n\n  v2 = (GManager *)LocalLevelManager::sharedState(this);\n  GManager::waitForSave(v2, 30.0);\n  result = *((_DWORD *)this + 114);\n  if ( result )\n    return LevelEditorLayer::saveLevel(result);\n  return result;\n}", "assembly": "; \n; EditorPauseLayer::saveLevel from 0x50910c to 0x50912c (32 bytes)\n; \n; 4 xrefs:\n; > EditorPauseLayer::onSaveAndPlay @ 0x50914c\n; > EditorPauseLayer::onSaveAndExit @ 0x5091e4\n; > EditorPauseLayer::FLAlert_Clicked @ 0x50953e\n; > EditorPauseLayer::FLAlert_Clicked @ 0x509578\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:51:26 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x50910c\nMOV             R4, R0                                                 ; +0x2, 0x50910e\nBL              _ZN17LocalLevelManager11sharedStateEv; LocalLevelManager::sharedState(void) ; +0x4, 0x509110\nMOVS            R2, #0; double                                         ; +0x8, 0x509114\nLDR             R3, =0x403E0000                                        ; +0xa, 0x509116\nBL              _ZN8GManager11waitForSaveEd; GManager::waitForSave(double) ; +0xc, 0x509118\nLDR.W           R0, [R4,#0x1C8]; this                                  ; +0x10, 0x50911c\nCBZ             R0, locret_50912A                                      ; +0x14, 0x509120\nPOP.W           {R4,LR}                                                ; +0x16, 0x509122\nB.W             _ZN16LevelEditorLayer9saveLevelEv; LevelEditorLayer::saveLevel(void) ; +0x1a, 0x509126\nPOP             {R4,PC}                                                ; +0x1e, 0x50912a", "xrefs": ["EditorPauseLayer::onSaveAndPlay @ 0x50914c", "EditorPauseLayer::onSaveAndExit @ 0x5091e4", "EditorPauseLayer::FLAlert_Clicked @ 0x50953e", "EditorPauseLayer::FLAlert_Clicked @ 0x509578"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}