{"type": "func", "start": 5371581744, "end": 5371581934, "name": "InfoLayer::onOriginal", "pseudocode": "// \n// InfoLayer::onOriginal from 0x1402bd530 to 0x1402bd5ee (190 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::init @ 0x1402bb9bc\n// > <???> @ 0x1406d2834\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 InfoLayer::onOriginal(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  size_t v5; // r8\n  GJSearchObject *v6; // rax\n  struct cocos2d::CCScene *v7; // rax\n  struct cocos2d::CCTransitionFade *v8; // rbx\n  __int64 v9; // rcx\n  cocos2d::CCDirector *v10; // rax\n  __int128 v11; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v12; // [rsp+30h] [rbp-18h]\n  __int64 v13; // [rsp+38h] [rbp-10h]\n\n  v3 = cocos2d::CCString::createWithFormat(\n         \"%i\",\n         a1->m_level->m_originalLevel.random - a1->m_level->m_originalLevel.seed);\n  CString = cocos2d::CCString::getCString(v3);\n  v11 = 0;\n  v12 = 0;\n  v5 = -1;\n  v13 = 0;\n  do\n    ++v5;\n  while ( CString[v5] );\n  sub_14003A930(&v11, CString, v5);\n  v6 = (GJSearchObject *)GJSearchObject::create_1(0, (__int64)&v11);\n  v7 = LevelBrowserLayer::scene(v6);\n  v8 = cocos2d::CCTransitionFade::create(0.5, v7);\n  v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);\n  cocos2d::CCDirector::replaceScene(v10, v8);\n  a1->m_buttonMenu->setEnabled(a1->m_buttonMenu, 0);\n}", "assembly": "; \n; InfoLayer::onOriginal from 0x1402bd530 to 0x1402bd5ee (190 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::init @ 0x1402bb9bc\n; > <???> @ 0x1406d2834\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_8], rbx                                               ; +0x0, 0x1402bd530\npush    rdi                                                            ; +0x5, 0x1402bd535\nsub     rsp, 40h                                                       ; +0x6, 0x1402bd536\nmov     rax, [rcx+290h]                                                ; +0xa, 0x1402bd53a\nmov     rdi, rcx                                                       ; +0x11, 0x1402bd541\nlea     rcx, aI_11; \"%i\"                                               ; +0x14, 0x1402bd544\nmov     edx, [rax+3B0h]                                                ; +0x1b, 0x1402bd54b\nsub     edx, [rax+3B4h]                                                ; +0x21, 0x1402bd551\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x27, 0x1402bd557\nmov     rcx, rax                                                       ; +0x2d, 0x1402bd55d\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x30, 0x1402bd560\nxor     ecx, ecx                                                       ; +0x36, 0x1402bd566\nxorps   xmm0, xmm0                                                     ; +0x38, 0x1402bd568\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x3b, 0x1402bd56b\nmov     [rsp+48h+var_18], rcx                                          ; +0x40, 0x1402bd570\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x45, 0x1402bd575\nmov     [rsp+48h+var_10], rcx                                          ; +0x4c, 0x1402bd57c\ninc     r8                                                             ; +0x51, 0x1402bd581\ncmp     [rax+r8], cl                                                   ; +0x54, 0x1402bd584\njnz     short loc_1402BD581                                            ; +0x58, 0x1402bd588\nmov     rdx, rax                                                       ; +0x5a, 0x1402bd58a\nlea     rcx, [rsp+48h+var_28]                                          ; +0x5d, 0x1402bd58d\ncall    sub_14003A930                                                  ; +0x62, 0x1402bd592\nlea     rdx, [rsp+48h+var_28]                                          ; +0x67, 0x1402bd597\nxor     ecx, ecx                                                       ; +0x6c, 0x1402bd59c\ncall    GJSearchObject__create_1                                       ; +0x6e, 0x1402bd59e\nmov     rcx, rax                                                       ; +0x73, 0x1402bd5a3\ncall    LevelBrowserLayer__scene                                       ; +0x76, 0x1402bd5a6\nmovss   xmm0, cs:dword_140622B08                                       ; +0x7b, 0x1402bd5ab\nmov     rdx, rax                                                       ; +0x83, 0x1402bd5b3\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x86, 0x1402bd5b6\nmov     rbx, rax                                                       ; +0x8c, 0x1402bd5bc\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8f, 0x1402bd5bf\nmov     rcx, rax                                                       ; +0x95, 0x1402bd5c5\nmov     rdx, rbx                                                       ; +0x98, 0x1402bd5c8\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x9b, 0x1402bd5cb\nmov     rcx, [rdi+220h]                                                ; +0xa1, 0x1402bd5d1\nxor     edx, edx                                                       ; +0xa8, 0x1402bd5d8\nmov     rax, [rcx]                                                     ; +0xaa, 0x1402bd5da\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xad, 0x1402bd5dd\nadd     rsp, 40h                                                       ; +0xb2, 0x1402bd5e2\npop     rdi                                                            ; +0xb6, 0x1402bd5e6\njmp     qword ptr [rax+400h]                                           ; +0xb7, 0x1402bd5e7", "xrefs": ["InfoLayer::init @ 0x1402bb9bc", "<???> @ 0x1406d2834"], "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"}