{"type": "func", "start": 4298141940, "end": 4298142044, "name": "AppDelegate::pauseGame", "pseudocode": "// \n// AppDelegate::pauseGame from 0x1003070f4 to 0x10030715c (104 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::applicationWillResignActive @ 0x1003070f0\n// \n// This function is hookable on this platform (idp: arm, 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 11:03:08 +0000\n// \n\n_BYTE *AppDelegate::pauseGame()\n{\n  _BYTE *result; // x0\n  __int64 v1; // x8\n  __int64 v2; // x1\n  __int64 v3; // x0\n\n  result = (_BYTE *)cocos2d::CCDirector::sharedDirector();\n  v1 = *((_QWORD *)result + 34);\n  if ( v1 )\n  {\n    if ( *(_DWORD *)(v1 + 28) == 5 )\n    {\n      result = (_BYTE *)GameManager::sharedState(result);\n      if ( *((_QWORD *)result + 68) )\n      {\n        result = (_BYTE *)GameManager::sharedState(result);\n        if ( (*(_BYTE *)(*((_QWORD *)result + 68) + 14637LL) & 1) == 0 )\n        {\n          result = (_BYTE *)cocos2d::CCApplication::sharedApplication((__int64)result, v2);\n          if ( (result[17] & 1) == 0 )\n          {\n            v3 = GameManager::sharedState(result);\n            return PlayLayer::pauseGame(*(_BYTE **)(v3 + 544), 1);\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; AppDelegate::pauseGame from 0x1003070f4 to 0x10030715c (104 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::applicationWillResignActive @ 0x1003070f0\n; \n; This function is hookable on this platform (idp: arm, 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 11:03:08 +0000\n; \nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x1003070f4\nMOV             X29, SP                                                ; +0x4, 0x1003070f8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x8, 0x1003070fc\nLDR             X8, [X0,#0x110]                                        ; +0xc, 0x100307100\nCBZ             X8, loc_100307140                                      ; +0x10, 0x100307104\nLDR             W8, [X8,#0x1C]                                         ; +0x14, 0x100307108\nCMP             W8, #5                                                 ; +0x18, 0x10030710c\nB.NE            loc_100307140                                          ; +0x1c, 0x100307110\nBL              GameManager__sharedState                               ; +0x20, 0x100307114\nLDR             X8, [X0,#0x220]                                        ; +0x24, 0x100307118\nCBZ             X8, loc_100307140                                      ; +0x28, 0x10030711c\nBL              GameManager__sharedState                               ; +0x2c, 0x100307120\nLDR             X8, [X0,#0x220]                                        ; +0x30, 0x100307124\nMOV             W9, #0x392D                                            ; +0x34, 0x100307128\nLDRB            W8, [X8,X9]                                            ; +0x38, 0x10030712c\nTBNZ            W8, #0, loc_100307140                                  ; +0x3c, 0x100307130\nBL              cocos2d__CCApplication__sharedApplication              ; +0x40, 0x100307134\nLDRB            W8, [X0,#0x11]                                         ; +0x44, 0x100307138\nTBZ             W8, #0, loc_100307148                                  ; +0x48, 0x10030713c\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x4c, 0x100307140\nRET                                                                    ; +0x50, 0x100307144\nBL              GameManager__sharedState                               ; +0x54, 0x100307148\nLDR             X0, [X0,#0x220]                                        ; +0x58, 0x10030714c\nMOV             W1, #1                                                 ; +0x5c, 0x100307150\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x60, 0x100307154\nB               PlayLayer__pauseGame                                   ; +0x64, 0x100307158", "xrefs": ["AppDelegate::applicationWillResignActive @ 0x1003070f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}