{"type": "func", "start": 4297495684, "end": 4297495792, "name": "AppDelegate::applicationDidEnterBackground", "pseudocode": "// \n// AppDelegate::applicationDidEnterBackground from 0x100269484 to 0x1002694f0 (108 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1007d2758\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\nvoid __fastcall AppDelegate::applicationDidEnterBackground(AppDelegate *a1)\n{\n  cocos2d::CCDirector *v2; // x0\n  cocos2d::CCDirector *v3; // x0\n  GameManager *v4; // x0\n\n  AppDelegate::pauseSound(a1);\n  ((void (__fastcall *)(AppDelegate *, _QWORD))a1->trySaveGame)(a1, 0);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  ((void (__fastcall *)(cocos2d::CCDirector *))v2->stopAnimation)(v2);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::pause(v3);\n  if ( a1->m_startupScriptFilename.m_data.m_short.sizex2 == 1 )\n  {\n    PlatformToolbox::onNativePause();\n    v4 = GameManager::sharedState();\n    GameManager::applicationDidEnterBackground(v4);\n  }\n}", "assembly": "; \n; AppDelegate::applicationDidEnterBackground from 0x100269484 to 0x1002694f0 (108 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1007d2758\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100269484\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100269488\nADD             X29, SP, #0x10                                         ; +0x8, 0x10026948c\nMOV             X19, X0                                                ; +0xc, 0x100269490\nBL              AppDelegate__pauseSound                                ; +0x10, 0x100269494\nLDR             X8, [X19]                                              ; +0x14, 0x100269498\nLDR             X8, [X8,#0x38]                                         ; +0x18, 0x10026949c\nMOV             X0, X19                                                ; +0x1c, 0x1002694a0\nMOV             W1, #0                                                 ; +0x20, 0x1002694a4\nBLR             X8                                                     ; +0x24, 0x1002694a8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x28, 0x1002694ac\nLDR             X8, [X0]                                               ; +0x2c, 0x1002694b0\nLDR             X8, [X8,#0x68]                                         ; +0x30, 0x1002694b4\nBLR             X8                                                     ; +0x34, 0x1002694b8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x38, 0x1002694bc\nBL              cocos2d__CCDirector__pause                             ; +0x3c, 0x1002694c0\nLDRB            W8, [X19,#0x20]                                        ; +0x40, 0x1002694c4\nCMP             W8, #1                                                 ; +0x44, 0x1002694c8\nB.NE            loc_1002694E4                                          ; +0x48, 0x1002694cc\nBL              PlatformToolbox__onNativePause                         ; +0x4c, 0x1002694d0\nBL              GameManager__sharedState                               ; +0x50, 0x1002694d4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x54, 0x1002694d8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x58, 0x1002694dc\nB               GameManager__applicationDidEnterBackground             ; +0x5c, 0x1002694e0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x60, 0x1002694e4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x1002694e8\nRET                                                                    ; +0x68, 0x1002694ec", "xrefs": ["<???> @ 0x1007d2758"], "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"}