{"type": "func", "start": 4298919424, "end": 4298919595, "name": "GJWorldNode::playStep3", "pseudocode": "// \n// GJWorldNode::playStep3 from 0x1003c4e00 to 0x1003c4eab (171 bytes)\n// \n// 1 xrefs:\n// > GJWorldNode::playStep2 @ 0x1003c4dab\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 GJWorldNode::playStep3(GJWorldNode *a1)\n{\n  std::string *p_m_levelString; // r14\n  LocalLevelManager *v2; // rax\n  cocos2d::CCDirector *v3; // r14\n  cocos2d::CCScene *v4; // rax\n  cocos2d::CCTransitionFade *v5; // rax\n  std::string __str; // [rsp+0h] [rbp-30h] BYREF\n\n  GameManager::sharedState()->m_sceneEnum = 9;\n  p_m_levelString = (std::string *)&a1->m_level->m_levelString;\n  v2 = LocalLevelManager::sharedState();\n  LocalLevelManager::getMainLevelString(\n    &__str,\n    v2,\n    (unsigned int)(a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed));\n  std::string::operator=(p_m_levelString, &__str);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__str.__r_.__value_.__l.__data_);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  v4 = PlayLayer::scene(a1->m_level, 0, 0);\n  v5 = cocos2d::CCTransitionFade::create_1(0.5, v4);\n  cocos2d::CCDirector::replaceScene(v3, v5);\n}", "assembly": "; \n; GJWorldNode::playStep3 from 0x1003c4e00 to 0x1003c4eab (171 bytes)\n; \n; 1 xrefs:\n; > GJWorldNode::playStep2 @ 0x1003c4dab\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\npush    rbp                                                            ; +0x0, 0x1003c4e00\nmov     rbp, rsp                                                       ; +0x1, 0x1003c4e01\npush    r15                                                            ; +0x4, 0x1003c4e04\npush    r14                                                            ; +0x6, 0x1003c4e06\npush    rbx                                                            ; +0x8, 0x1003c4e08\nsub     rsp, 18h                                                       ; +0x9, 0x1003c4e09\nmov     rbx, rdi                                                       ; +0xd, 0x1003c4e0d\ncall    GameManager__sharedState                                       ; +0x10, 0x1003c4e10\nmov     dword ptr [rax+29Ch], 9                                        ; +0x15, 0x1003c4e15\nmov     r14d, 188h                                                     ; +0x1f, 0x1003c4e1f\nadd     r14, [rbx+150h]                                                ; +0x25, 0x1003c4e25\ncall    LocalLevelManager__sharedState                                 ; +0x2c, 0x1003c4e2c\nmov     rcx, [rbx+150h]                                                ; +0x31, 0x1003c4e31\nmov     edx, [rcx+148h]                                                ; +0x38, 0x1003c4e38\nsub     edx, [rcx+14Ch]                                                ; +0x3e, 0x1003c4e3e\nlea     r15, [rbp+__str]                                               ; +0x44, 0x1003c4e44\nmov     rdi, r15                                                       ; +0x48, 0x1003c4e48\nmov     rsi, rax                                                       ; +0x4b, 0x1003c4e4b\ncall    LocalLevelManager__getMainLevelString                          ; +0x4e, 0x1003c4e4e\nmov     rdi, r14; this                                                 ; +0x53, 0x1003c4e53\nmov     rsi, r15; __str                                                ; +0x56, 0x1003c4e56\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x59, 0x1003c4e59\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x5e, 0x1003c4e5e\njz      short loc_1003C4E6D                                            ; +0x62, 0x1003c4e62\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x64, 0x1003c4e64\ncall    __ZdlPv; operator delete(void *)                               ; +0x68, 0x1003c4e68\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x6d, 0x1003c4e6d\nmov     r14, rax                                                       ; +0x72, 0x1003c4e72\nmov     rdi, [rbx+150h]                                                ; +0x75, 0x1003c4e75\nxor     esi, esi                                                       ; +0x7c, 0x1003c4e7c\nxor     edx, edx                                                       ; +0x7e, 0x1003c4e7e\ncall    PlayLayer__scene                                               ; +0x80, 0x1003c4e80\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x85, 0x1003c4e85\nmov     rdi, rax                                                       ; +0x8d, 0x1003c4e8d\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x90, 0x1003c4e90\nmov     rdi, r14                                                       ; +0x95, 0x1003c4e95\nmov     rsi, rax                                                       ; +0x98, 0x1003c4e98\ncall    cocos2d__CCDirector__replaceScene                              ; +0x9b, 0x1003c4e9b\nadd     rsp, 18h                                                       ; +0xa0, 0x1003c4ea0\npop     rbx                                                            ; +0xa4, 0x1003c4ea4\npop     r14                                                            ; +0xa5, 0x1003c4ea5\npop     r15                                                            ; +0xa7, 0x1003c4ea7\npop     rbp                                                            ; +0xa9, 0x1003c4ea9\nretn                                                                   ; +0xaa, 0x1003c4eaa", "xrefs": ["GJWorldNode::playStep2 @ 0x1003c4dab"], "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"}