{"type": "func", "start": 5371615200, "end": 5371615376, "name": "LevelAreaLayer::onEnterTower", "pseudocode": "// \n// LevelAreaLayer::onEnterTower from 0x1402c57e0 to 0x1402c5890 (176 bytes)\n// \n// 2 xrefs:\n// > LevelAreaLayer::fadeInsideTower @ 0x1402c5799\n// > <???> @ 0x1406d2b28\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\n// Hidden C++ exception states: #wind=2\nbool LevelAreaLayer::onEnterTower(LevelAreaLayer *a1)\n{\n  int v1; // ecx\n  struct cocos2d::CCScene *v2; // rbx\n  __int64 v3; // rcx\n  cocos2d::CCDirector *v4; // rax\n  _QWORD v6[5]; // [rsp+20h] [rbp-28h] BYREF\n  FMODAudioEngine *v7; // [rsp+60h] [rbp+18h]\n\n  v6[1] = 26471;\n  v6[2] = 10;\n  v6[3] = 15;\n  v6[0] = 0x6F2E3130726F6F64LL;\n  v1 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v7 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v1 = qword_1406C2E88;\n  }\n  FMODAudioEngine::playEffect_1(v1, (__int64)v6);\n  v2 = LevelAreaInnerLayer::scene(0);\n  v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);\n  return cocos2d::CCDirector::replaceScene(v4, v2);\n}", "assembly": "; \n; LevelAreaLayer::onEnterTower from 0x1402c57e0 to 0x1402c5890 (176 bytes)\n; \n; 2 xrefs:\n; > LevelAreaLayer::fadeInsideTower @ 0x1402c5799\n; > <???> @ 0x1406d2b28\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    rbx                                                            ; +0x0, 0x1402c57e0\nsub     rsp, 40h                                                       ; +0x2, 0x1402c57e2\nlea     rax, [rsp+48h+var_28]                                          ; +0x6, 0x1402c57e6\nmov     [rsp+48h+arg_8], rax                                           ; +0xb, 0x1402c57eb\nxorps   xmm0, xmm0                                                     ; +0x10, 0x1402c57f0\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x13, 0x1402c57f3\nmov     [rsp+48h+var_18], 0Ah                                          ; +0x18, 0x1402c57f8\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x21, 0x1402c5801\nmovsd   xmm0, cs:qword_140583CD8                                       ; +0x2a, 0x1402c580a\nmovsd   qword ptr [rsp+48h+var_28], xmm0                               ; +0x32, 0x1402c5812\nmovzx   eax, cs:word_140583CE0                                         ; +0x38, 0x1402c5818\nmov     word ptr [rsp+48h+var_28+8], ax                                ; +0x3f, 0x1402c581f\nmov     byte ptr [rsp+48h+var_28+0Ah], 0                               ; +0x44, 0x1402c5824\nmov     rcx, cs:qword_1406C2E88                                        ; +0x49, 0x1402c5829\ntest    rcx, rcx                                                       ; +0x50, 0x1402c5830\njnz     short loc_1402C5864                                            ; +0x53, 0x1402c5833\nmov     ecx, 888h; Size                                                ; +0x55, 0x1402c5835\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5a, 0x1402c583a\nmov     [rsp+48h+arg_10], rax                                          ; +0x5f, 0x1402c583f\nmov     rcx, rax                                                       ; +0x64, 0x1402c5844\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x67, 0x1402c5847\nnop                                                                    ; +0x6c, 0x1402c584c\nmov     cs:qword_1406C2E88, rax                                        ; +0x6d, 0x1402c584d\nmov     rdx, [rax]                                                     ; +0x74, 0x1402c5854\nmov     rcx, rax                                                       ; +0x77, 0x1402c5857\ncall    qword ptr [rdx+48h]                                            ; +0x7a, 0x1402c585a\nmov     rcx, cs:qword_1406C2E88                                        ; +0x7d, 0x1402c585d\nlea     rdx, [rsp+48h+var_28]                                          ; +0x84, 0x1402c5864\ncall    FMODAudioEngine__playEffect_1                                  ; +0x89, 0x1402c5869\nxor     ecx, ecx                                                       ; +0x8e, 0x1402c586e\ncall    LevelAreaInnerLayer__scene                                     ; +0x90, 0x1402c5870\nmov     rbx, rax                                                       ; +0x95, 0x1402c5875\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x98, 0x1402c5878\nmov     rcx, rax                                                       ; +0x9e, 0x1402c587e\nmov     rdx, rbx                                                       ; +0xa1, 0x1402c5881\nadd     rsp, 40h                                                       ; +0xa4, 0x1402c5884\npop     rbx                                                            ; +0xa8, 0x1402c5888\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xa9, 0x1402c5889", "xrefs": ["LevelAreaLayer::fadeInsideTower @ 0x1402c5799", "<???> @ 0x1406d2b28"], "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"}