{"type": "func", "start": 5369993088, "end": 5369993175, "name": "CreatorLayer::onBack", "pseudocode": "// \n// CreatorLayer::onBack from 0x140139780 to 0x1401397d7 (87 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::init @ 0x140136860\n// > <???> @ 0x14091721c\n// \n// This function is hookable on this platform (idp: pc, 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:27:06 +0000\n// \n\nchar __fastcall CreatorLayer::onBack(__int64 a1)\n{\n  struct cocos2d::CCScene *v2; // rax\n  struct cocos2d::CCScene *v3; // rbx\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  char result; // al\n\n  v2 = (struct cocos2d::CCScene *)MenuLayer::scene(0);\n  v3 = cocos2d::CCTransitionFade::create(0.5, v2);\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n  result = cocos2d::CCDirector::replaceScene(v5, v3);\n  if ( result )\n    return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  return result;\n}", "assembly": "; \n; CreatorLayer::onBack from 0x140139780 to 0x1401397d7 (87 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::init @ 0x140136860\n; > <???> @ 0x14091721c\n; \n; This function is hookable on this platform (idp: pc, 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:27:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140139780\npush    rdi                                                            ; +0x5, 0x140139785\nsub     rsp, 20h                                                       ; +0x6, 0x140139786\nmov     rdi, rcx                                                       ; +0xa, 0x14013978a\nxor     ecx, ecx                                                       ; +0xd, 0x14013978d\ncall    MenuLayer__scene                                               ; +0xf, 0x14013978f\nmovss   xmm0, cs:dword_140834F20                                       ; +0x14, 0x140139794\nmov     rdx, rax                                                       ; +0x1c, 0x14013979c\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x1f, 0x14013979f\nmov     rbx, rax                                                       ; +0x25, 0x1401397a5\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x28, 0x1401397a8\nmov     rcx, rax                                                       ; +0x2e, 0x1401397ae\nmov     rdx, rbx                                                       ; +0x31, 0x1401397b1\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x34, 0x1401397b4\ntest    al, al                                                         ; +0x3a, 0x1401397ba\njz      short loc_1401397CC                                            ; +0x3c, 0x1401397bc\nmov     rax, [rdi]                                                     ; +0x3e, 0x1401397be\nxor     edx, edx                                                       ; +0x41, 0x1401397c1\nmov     rcx, rdi                                                       ; +0x43, 0x1401397c3\ncall    qword ptr [rax+3E0h]                                           ; +0x46, 0x1401397c6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4c, 0x1401397cc\nadd     rsp, 20h                                                       ; +0x51, 0x1401397d1\npop     rdi                                                            ; +0x55, 0x1401397d5\nretn                                                                   ; +0x56, 0x1401397d6", "xrefs": ["CreatorLayer::init @ 0x140136860", "<???> @ 0x14091721c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}