{"type": "func", "start": 4298446432, "end": 4298446596, "name": "InfoLayer::onOriginal", "pseudocode": "// \n// InfoLayer::onOriginal from 0x100351660 to 0x100351704 (164 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::init @ 0x100350568\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 InfoLayer::onOriginal(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCDirector *v3; // x20\n  cocos2d::CCString *v4; // x0\n  char *CString; // x0\n  char *v6; // x0\n  cocos2d::CCScene *v7; // x0\n  cocos2d::CCTransitionFade *v8; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v10; // [xsp+1Fh] [xbp-11h]\n\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a1->m_level->m_originalLevel.random - a1->m_level->m_originalLevel.seed);\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  sub_100009900(__p, CString);\n  v6 = GJSearchObject::create_1(0, (__int128 *)__p);\n  v7 = LevelBrowserLayer::scene((GJSearchObject *)v6);\n  v8 = cocos2d::CCTransitionFade::create_1(0.5, v7);\n  cocos2d::CCDirector::replaceScene(v3, v8);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n  ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 0);\n}", "assembly": "; \n; InfoLayer::onOriginal from 0x100351660 to 0x100351704 (164 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::init @ 0x100350568\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100351660\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100351664\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100351668\nADD             X29, SP, #0x30                                         ; +0xc, 0x10035166c\nMOV             X19, X0                                                ; +0x10, 0x100351670\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x14, 0x100351674\nMOV             X20, X0                                                ; +0x18, 0x100351678\nLDR             X8, [X19,#0x290]                                       ; +0x1c, 0x10035167c\nLDR             W9, [X8,#0x368]                                        ; +0x20, 0x100351680\nLDR             W8, [X8,#0x36C]                                        ; +0x24, 0x100351684\nSUB             W8, W9, W8                                             ; +0x28, 0x100351688\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x2c, 0x10035168c\nADRL            X0, aI; \"%i\"                                           ; +0x30, 0x100351690\nBL              sub_100268F4C                                          ; +0x38, 0x100351698\nBL              cocos2d__CCString__getCString                          ; +0x3c, 0x10035169c\nMOV             X1, X0; __s                                            ; +0x40, 0x1003516a0\nADD             X0, SP, #0x30+__p; int                                 ; +0x44, 0x1003516a4\nBL              sub_100009900                                          ; +0x48, 0x1003516a8\nADD             X1, SP, #0x30+__p                                      ; +0x4c, 0x1003516ac\nMOV             W0, #0                                                 ; +0x50, 0x1003516b0\nBL              GJSearchObject__create_1                               ; +0x54, 0x1003516b4\nBL              LevelBrowserLayer__scene                               ; +0x58, 0x1003516b8\nFMOV            S0, #0.5                                               ; +0x5c, 0x1003516bc\nBL              cocos2d__CCTransitionFade__create_1                    ; +0x60, 0x1003516c0\nMOV             X1, X0; lpsrc                                          ; +0x64, 0x1003516c4\nMOV             X0, X20; int                                           ; +0x68, 0x1003516c8\nBL              cocos2d__CCDirector__replaceScene                      ; +0x6c, 0x1003516cc\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x70, 0x1003516d0\nTBZ             W8, #0x1F, loc_1003516E0                               ; +0x74, 0x1003516d4\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x78, 0x1003516d8\nBL              __ZdlPv; operator delete(void *)                       ; +0x7c, 0x1003516dc\nLDR             X0, [X19,#0x220]                                       ; +0x80, 0x1003516e0\nLDR             X8, [X0]                                               ; +0x84, 0x1003516e4\nLDR             X8, [X8,#0x4E8]                                        ; +0x88, 0x1003516e8\nMOV             W1, #0                                                 ; +0x8c, 0x1003516ec\nBLR             X8                                                     ; +0x90, 0x1003516f0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x94, 0x1003516f4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x98, 0x1003516f8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x9c, 0x1003516fc\nRET                                                                    ; +0xa0, 0x100351700", "xrefs": ["InfoLayer::init @ 0x100350568"], "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"}