{"type": "func", "start": 5371976720, "end": 5371976938, "name": "LevelPage::playStep2", "pseudocode": "// \n// LevelPage::playStep2 from 0x14031dc10 to 0x14031dcea (218 bytes)\n// \n// 3 xrefs:\n// > LevelPage::onPlay @ 0x14031dbb4\n// > <???> @ 0x1406d4b44\n// > <???> @ 0x1406d4b50\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 LevelPage::playStep2(LevelPage *a1)\n{\n  _QWORD *AudioFileName; // rbx\n  __int64 v3; // rcx\n  __int64 v4; // rbx\n  struct cocos2d::CCDelayTime *v5; // rax\n  struct cocos2d::CCSequence *v6; // rax\n  cocos2d::ccColor3B *v7; // r8\n  _QWORD v8[5]; // [rsp+50h] [rbp-28h] BYREF\n  FMODAudioEngine *v9; // [rsp+88h] [rbp+10h]\n  float v10; // [rsp+A0h] [rbp+28h]\n\n  AudioFileName = GJGameLevel::getAudioFileName((__int64)a1->m_level, v8);\n  v3 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v9 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  FMODAudioEngine::loadMusic(v3, (__int64)AudioFileName, 1.0, 0.0, 1.0, 1, 0, 0, 0);\n  v4 = cocos2d::CCCallFunc::create(a1, LevelPage::playStep3);\n  v5 = cocos2d::CCDelayTime::create(0.0);\n  v6 = cocos2d::CCSequence::create(v5, v4, 0);\n  cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v6, v7, 0.0, v10);\n}", "assembly": "; \n; LevelPage::playStep2 from 0x14031dc10 to 0x14031dcea (218 bytes)\n; \n; 3 xrefs:\n; > LevelPage::onPlay @ 0x14031dbb4\n; > <???> @ 0x1406d4b44\n; > <???> @ 0x1406d4b50\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     r11, rsp                                                       ; +0x0, 0x14031dc10\nmov     [r11+18h], rbx                                                 ; +0x3, 0x14031dc13\npush    rdi                                                            ; +0x7, 0x14031dc17\nsub     rsp, 70h                                                       ; +0x8, 0x14031dc18\nmov     rdi, rcx                                                       ; +0xc, 0x14031dc1c\nlea     rax, [r11-28h]                                                 ; +0xf, 0x14031dc1f\nmov     [r11+8], rax                                                   ; +0x13, 0x14031dc23\nlea     rdx, [r11-28h]                                                 ; +0x17, 0x14031dc27\nmov     rcx, [rcx+1A8h]                                                ; +0x1b, 0x14031dc2b\ncall    GJGameLevel__getAudioFileName                                  ; +0x22, 0x14031dc32\nmov     rbx, rax                                                       ; +0x27, 0x14031dc37\nmov     rcx, cs:qword_1406C2E88                                        ; +0x2a, 0x14031dc3a\ntest    rcx, rcx                                                       ; +0x31, 0x14031dc41\njnz     short loc_14031DC78                                            ; +0x34, 0x14031dc44\nmov     ecx, 888h; Size                                                ; +0x36, 0x14031dc46\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3b, 0x14031dc4b\nmov     [rsp+78h+arg_8], rax                                           ; +0x40, 0x14031dc50\nmov     rcx, rax                                                       ; +0x48, 0x14031dc58\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x4b, 0x14031dc5b\nnop                                                                    ; +0x50, 0x14031dc60\nmov     cs:qword_1406C2E88, rax                                        ; +0x51, 0x14031dc61\nmov     rdx, [rax]                                                     ; +0x58, 0x14031dc68\nmov     rcx, rax                                                       ; +0x5b, 0x14031dc6b\ncall    qword ptr [rdx+48h]                                            ; +0x5e, 0x14031dc6e\nmov     rcx, cs:qword_1406C2E88                                        ; +0x61, 0x14031dc71\nmov     [rsp+78h+var_38], 0                                            ; +0x68, 0x14031dc78\nxor     eax, eax                                                       ; +0x6d, 0x14031dc7d\nmov     [rsp+78h+var_40], eax                                          ; +0x6f, 0x14031dc7f\nmov     [rsp+78h+var_48], eax                                          ; +0x73, 0x14031dc83\nmov     [rsp+78h+var_50], 1                                            ; +0x77, 0x14031dc87\nmovss   xmm2, cs:flt_140622C24                                         ; +0x7c, 0x14031dc8c\nmovss   [rsp+78h+var_58], xmm2                                         ; +0x84, 0x14031dc94\nxorps   xmm3, xmm3                                                     ; +0x8a, 0x14031dc9a\nmov     rdx, rbx                                                       ; +0x8d, 0x14031dc9d\ncall    FMODAudioEngine__loadMusic                                     ; +0x90, 0x14031dca0\nlea     rdx, LevelPage__playStep3                                      ; +0x95, 0x14031dca5\nmov     rcx, rdi                                                       ; +0x9c, 0x14031dcac\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x9f, 0x14031dcaf\nmov     rbx, rax                                                       ; +0xa5, 0x14031dcb5\nxorps   xmm0, xmm0                                                     ; +0xa8, 0x14031dcb8\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0xab, 0x14031dcbb\nmov     rcx, rax                                                       ; +0xb1, 0x14031dcc1\nxor     r8d, r8d                                                       ; +0xb4, 0x14031dcc4\nmov     rdx, rbx                                                       ; +0xb7, 0x14031dcc7\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xba, 0x14031dcca\nmov     rdx, rax                                                       ; +0xc0, 0x14031dcd0\nmov     rcx, rdi                                                       ; +0xc3, 0x14031dcd3\nmov     rbx, [rsp+78h+arg_10]                                          ; +0xc6, 0x14031dcd6\nadd     rsp, 70h                                                       ; +0xce, 0x14031dcde\npop     rdi                                                            ; +0xd2, 0x14031dce2\njmp     cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xd3, 0x14031dce3", "xrefs": ["LevelPage::onPlay @ 0x14031dbb4", "<???> @ 0x1406d4b44", "<???> @ 0x1406d4b50"], "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"}