{"type": "func", "start": 4297585360, "end": 4297585541, "name": "EditorPauseLayer::playStep2", "pseudocode": "// \n// EditorPauseLayer::playStep2 from 0x10027f2d0 to 0x10027f385 (181 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::onSaveAndPlay @ 0x10027e327\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 12:27:42 +0000\n// \n\n__int64 __fastcall EditorPauseLayer::playStep2(__int64 a1, double a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // r14\n  int v4; // r14d\n  int v5; // eax\n  int v6; // ecx\n  int v7; // r8d\n  int v8; // r9d\n  __int64 v9; // rax\n  _BYTE v11[16]; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  v2 = FMODAudioEngine::sharedEngine(a2);\n  FMODAudioEngine::unloadAllEffects(v2);\n  v3 = FMODAudioEngine::sharedEngine(a2);\n  GJGameLevel::getAudioFileName(v11, *(_QWORD *)(*(_QWORD *)(a1 + 576) + 1936LL));\n  FMODAudioEngine::loadMusic(v3, v11, 1, 0, 0, 0, 1.0, 0.0, 1.0);\n  if ( (v11[0] & 1) != 0 )\n    operator delete(__p);\n  v4 = cocos2d::CCDelayTime::create(0.0);\n  v5 = cocos2d::CCCallFunc::create(a1, EditorPauseLayer::playStep3, 0);\n  v9 = sub_10039EB60(v4, v5, 0, v6, v7, v8);\n  return cocos2d::CCNode::runAction(a1, v9);\n}", "assembly": "; \n; EditorPauseLayer::playStep2 from 0x10027f2d0 to 0x10027f385 (181 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::onSaveAndPlay @ 0x10027e327\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 12:27:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x10027f2d0\nmov     rbp, rsp                                                       ; +0x1, 0x10027f2d1\npush    r15                                                            ; +0x4, 0x10027f2d4\npush    r14                                                            ; +0x6, 0x10027f2d6\npush    rbx                                                            ; +0x8, 0x10027f2d8\nsub     rsp, 18h                                                       ; +0x9, 0x10027f2d9\nmov     rbx, rdi                                                       ; +0xd, 0x10027f2dd\ncall    FMODAudioEngine__sharedEngine                                  ; +0x10, 0x10027f2e0\nmov     rdi, rax                                                       ; +0x15, 0x10027f2e5\ncall    FMODAudioEngine__unloadAllEffects                              ; +0x18, 0x10027f2e8\ncall    FMODAudioEngine__sharedEngine                                  ; +0x1d, 0x10027f2ed\nmov     r14, rax                                                       ; +0x22, 0x10027f2f2\nmov     rax, [rbx+240h]                                                ; +0x25, 0x10027f2f5\nmov     rsi, [rax+790h]                                                ; +0x2c, 0x10027f2fc\nlea     r15, [rbp+var_30]                                              ; +0x33, 0x10027f303\nmov     rdi, r15                                                       ; +0x37, 0x10027f307\ncall    GJGameLevel__getAudioFileName                                  ; +0x3a, 0x10027f30a\nmovss   xmm0, cs:alpha                                                 ; +0x3f, 0x10027f30f\nxorps   xmm1, xmm1                                                     ; +0x47, 0x10027f317\nmov     rdi, r14                                                       ; +0x4a, 0x10027f31a\nmov     rsi, r15                                                       ; +0x4d, 0x10027f31d\nmovaps  xmm2, xmm0                                                     ; +0x50, 0x10027f320\nmov     edx, 1                                                         ; +0x53, 0x10027f323\nxor     ecx, ecx                                                       ; +0x58, 0x10027f328\nxor     r8d, r8d                                                       ; +0x5a, 0x10027f32a\nxor     r9d, r9d                                                       ; +0x5d, 0x10027f32d\ncall    FMODAudioEngine__loadMusic                                     ; +0x60, 0x10027f330\ntest    [rbp+var_30], 1                                                ; +0x65, 0x10027f335\njz      short loc_10027F344                                            ; +0x69, 0x10027f339\nmov     rdi, [rbp+__p]; __p                                            ; +0x6b, 0x10027f33b\ncall    __ZdlPv; operator delete(void *)                               ; +0x6f, 0x10027f33f\nxorps   xmm0, xmm0                                                     ; +0x74, 0x10027f344\ncall    cocos2d__CCDelayTime__create                                   ; +0x77, 0x10027f347\nmov     r14, rax                                                       ; +0x7c, 0x10027f34c\nlea     rsi, EditorPauseLayer__playStep3                               ; +0x7f, 0x10027f34f\nmov     rdi, rbx                                                       ; +0x86, 0x10027f356\nxor     edx, edx                                                       ; +0x89, 0x10027f359\ncall    cocos2d__CCCallFunc__create                                    ; +0x8b, 0x10027f35b\nmov     rdi, r14                                                       ; +0x90, 0x10027f360\nmov     rsi, rax                                                       ; +0x93, 0x10027f363\nxor     edx, edx                                                       ; +0x96, 0x10027f366\nxor     eax, eax                                                       ; +0x98, 0x10027f368\ncall    sub_10039EB60                                                  ; +0x9a, 0x10027f36a\nmov     rdi, rbx                                                       ; +0x9f, 0x10027f36f\nmov     rsi, rax                                                       ; +0xa2, 0x10027f372\ncall    cocos2d__CCNode__runAction                                     ; +0xa5, 0x10027f375\nadd     rsp, 18h                                                       ; +0xaa, 0x10027f37a\npop     rbx                                                            ; +0xae, 0x10027f37e\npop     r14                                                            ; +0xaf, 0x10027f37f\npop     r15                                                            ; +0xb1, 0x10027f381\npop     rbp                                                            ; +0xb3, 0x10027f383\nretn                                                                   ; +0xb4, 0x10027f384", "xrefs": ["EditorPauseLayer::onSaveAndPlay @ 0x10027e327"], "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"}