{"type": "func", "start": 5280248, "end": 5280404, "name": "EditorPauseLayer::playStep2", "pseudocode": "// \n// EditorPauseLayer::playStep2 from 0x5091f8 to 0x509294 (156 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:26 +0000\n// \n\nint __fastcall EditorPauseLayer::playStep2(EditorPauseLayer *this)\n{\n  FMOD::ChannelControl **v2; // r0\n  unsigned __int8 *v3; // r0\n  int v4; // r7\n  float v5; // r1\n  cocos2d::CCSequence *v6; // r7\n  cocos2d::CCFiniteTimeAction *v7; // r0\n  cocos2d::CCAction *v8; // r0\n  unsigned __int8 v10[12]; // [sp+20h] [bp-14h] BYREF\n\n  v2 = (FMOD::ChannelControl **)FMODAudioEngine::sharedEngine(this);\n  v3 = FMODAudioEngine::unloadAllEffects(v2);\n  v4 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)v3);\n  GJGameLevel::getAudioFileName((GJGameLevel *)v10, *(_DWORD *)(*((_DWORD *)this + 114) + 1408));\n  FMODAudioEngine::loadMusic(v4, v10, 1.0, 0, 1.0, 1, 0, 0, 0);\n  std::string::~string((int)v10);\n  v6 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, v5);\n  v7 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, EditorPauseLayer::playStep3, 0);\n  v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v6, v7, 0);\n  return cocos2d::CCNode::runAction(this, v8);\n}", "assembly": "; \n; EditorPauseLayer::playStep2 from 0x5091f8 to 0x509294 (156 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:26 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5091f8\nSUB             SP, SP, #0x34                                          ; +0x2, 0x5091fa\nLDR             R5, =(__stack_chk_guard_ptr - 0x509206)                ; +0x4, 0x5091fc\nMOV             R6, R0                                                 ; +0x6, 0x5091fe\nADD             R4, SP, #0x34+var_14                                   ; +0x8, 0x509200\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x509202\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x509204\nLDR             R3, [R5]                                               ; +0xe, 0x509206\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x10, 0x509208\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x12, 0x50920a\nBL              _ZN15FMODAudioEngine16unloadAllEffectsEv; FMODAudioEngine::unloadAllEffects(void) ; +0x16, 0x50920e\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x1a, 0x509212\nLDR.W           R3, [R6,#0x1C8]                                        ; +0x1e, 0x509216\nLDR.W           R1, [R3,#0x580]                                        ; +0x22, 0x50921a\nMOV             R7, R0                                                 ; +0x26, 0x50921e\nMOV             R0, R4; this                                           ; +0x28, 0x509220\nBL              _ZN11GJGameLevel16getAudioFileNameEv; GJGameLevel::getAudioFileName(void) ; +0x2a, 0x509222\nMOVS            R3, #1                                                 ; +0x2e, 0x509226\nMOV.W           R2, #0x3F800000; int                                   ; +0x30, 0x509228\nSTR             R3, [SP,#0x34+var_30]; char                            ; +0x34, 0x50922c\nSTR             R2, [SP,#0x34+var_34]; float                           ; +0x36, 0x50922e\nMOVS            R3, #0                                                 ; +0x38, 0x509230\nMOV             R0, R7; int                                            ; +0x3a, 0x509232\nSTR             R3, [SP,#0x34+var_2C]; int                             ; +0x3c, 0x509234\nSTR             R3, [SP,#0x34+var_28]; int                             ; +0x3e, 0x509236\nMOV             R1, R4; int                                            ; +0x40, 0x509238\nSTR             R3, [SP,#0x34+var_24]; char                            ; +0x42, 0x50923a\nMOVS            R3, #0; int                                            ; +0x44, 0x50923c\nBL              _ZN15FMODAudioEngine9loadMusicENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEfffbiib; FMODAudioEngine::loadMusic(std::string,float,float,float,bool,int,int,bool) ; +0x46, 0x50923e\nMOV             R0, R4                                                 ; +0x4a, 0x509242\nMOVS            R4, #0                                                 ; +0x4c, 0x509244\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x509246\nMOVS            R0, #0; this                                           ; +0x52, 0x50924a\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x54, 0x50924c\nLDR             R3, =(_ZN16EditorPauseLayer9playStep3Ev_ptr - 0x509258) ; +0x58, 0x509250\nSTR             R4, [SP,#0x34+var_18]                                  ; +0x5a, 0x509252\nADD             R3, PC; _ZN16EditorPauseLayer9playStep3Ev_ptr          ; +0x5c, 0x509254\nLDR             R3, [R3]; EditorPauseLayer::playStep3(void)            ; +0x5e, 0x509256\nSTR             R3, [SP,#0x34+var_1C]                                  ; +0x60, 0x509258\nADD             R3, SP, #0x34+var_1C                                   ; +0x62, 0x50925a\nLDM.W           R3, {R1,R2}                                            ; +0x64, 0x50925c\nMOV             R7, R0                                                 ; +0x68, 0x509260\nMOV             R0, R6                                                 ; +0x6a, 0x509262\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x6c, 0x509264\nMOV             R2, R4                                                 ; +0x70, 0x509268\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x72, 0x50926a\nMOV             R0, R7; this                                           ; +0x74, 0x50926c\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x76, 0x50926e\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x7a, 0x509272\nMOV             R0, R6; this                                           ; +0x7c, 0x509274\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x7e, 0x509276\nLDR             R2, [SP,#0x34+var_8]                                   ; +0x82, 0x50927a\nLDR             R3, [R5]                                               ; +0x84, 0x50927c\nCMP             R2, R3                                                 ; +0x86, 0x50927e\nBEQ             loc_509290                                             ; +0x88, 0x509280\nBLX             __stack_chk_fail                                       ; +0x8a, 0x509282\nMOV             R0, R4                                                 ; +0x8e, 0x509286\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x90, 0x509288\nBL              __cxa_end_cleanup                                      ; +0x94, 0x50928c\nADD             SP, SP, #0x34 ; '4'                                    ; +0x98, 0x509290\nPOP             {R4-R7,PC}                                             ; +0x9a, 0x509292", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}