{"type": "func", "start": 3891016, "end": 3891162, "name": "EditLevelLayer::playStep2", "pseudocode": "// \n// EditLevelLayer::playStep2 from 0x3b5f48 to 0x3b5fda (146 bytes)\n// \n// 0 xrefs:\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 EditLevelLayer::playStep2(EditLevelLayer *a1)\n{\n  FMODAudioEngine *v2; // r7\n  cocos2d::CCDelayTime *v3; // r0\n  cocos2d::CCSequence *v4; // r8\n  cocos2d::CCFiniteTimeAction *v5; // r0\n  cocos2d::CCAction *v6; // r0\n  _DWORD v7[2]; // [sp+1Ch] [bp-Ch] BYREF\n\n  v2 = FMODAudioEngine::sharedEngine();\n  GJGameLevel::getAudioFileName((GJGameLevel *)v7);\n  FMODAudioEngine::loadMusic((int)v2, v7, 1.0, 0.0, 1.0, 1, 0, 0, 0);\n  sub_774008(v7);\n  v3 = cocos2d::CCDelayTime::create(0.0);\n  v7[1] = 0;\n  v7[0] = EditLevelLayer::playStep3;\n  v4 = (cocos2d::CCSequence *)v3;\n  v5 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, EditLevelLayer::playStep3, 0);\n  v6 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v4, v5, 0);\n  cocos2d::CCNode::runAction(a1, v6);\n}", "assembly": "; \n; EditLevelLayer::playStep2 from 0x3b5f48 to 0x3b5fda (146 bytes)\n; \n; 0 xrefs:\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.W          {R4-R8,LR}                                             ; +0x0, 0x3b5f48\nSUB             SP, SP, #0x28                                          ; +0x4, 0x3b5f4c\nLDR             R5, =(__stack_chk_guard_ptr - 0x3B5F58)                ; +0x6, 0x3b5f4e\nMOV             R6, R0                                                 ; +0x8, 0x3b5f50\nADD             R4, SP, #0x28+var_C                                    ; +0xa, 0x3b5f52\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3b5f54\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x3b5f56\nLDR             R3, [R5]                                               ; +0x10, 0x3b5f58\nSTR             R3, [SP,#0x28+var_4]                                   ; +0x12, 0x3b5f5a\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x14, 0x3b5f5c\nLDR.W           R1, [R6,#0x154]                                        ; +0x18, 0x3b5f60\nMOV             R7, R0                                                 ; +0x1c, 0x3b5f64\nMOV             R0, R4; this                                           ; +0x1e, 0x3b5f66\nBL              _ZN11GJGameLevel16getAudioFileNameEv; GJGameLevel::getAudioFileName(void) ; +0x20, 0x3b5f68\nMOVS            R3, #1                                                 ; +0x24, 0x3b5f6c\nMOV.W           R2, #0x3F800000; int                                   ; +0x26, 0x3b5f6e\nSTR             R3, [SP,#0x28+var_24]; char                            ; +0x2a, 0x3b5f72\nSTR             R2, [SP,#0x28+var_28]; float                           ; +0x2c, 0x3b5f74\nMOVS            R3, #0                                                 ; +0x2e, 0x3b5f76\nMOV             R0, R7; int                                            ; +0x30, 0x3b5f78\nSTR             R3, [SP,#0x28+var_20]; int                             ; +0x32, 0x3b5f7a\nSTR             R3, [SP,#0x28+var_1C]; int                             ; +0x34, 0x3b5f7c\nMOV             R1, R4; int                                            ; +0x36, 0x3b5f7e\nSTR             R3, [SP,#0x28+var_18]; char                            ; +0x38, 0x3b5f80\nMOVS            R3, #0; int                                            ; +0x3a, 0x3b5f82\nBL              _ZN15FMODAudioEngine9loadMusicESsfffbiib; FMODAudioEngine::loadMusic(std::string,float,float,float,bool,int,int,bool) ; +0x3c, 0x3b5f84\nMOV             R0, R4                                                 ; +0x40, 0x3b5f88\nMOVS            R7, #0                                                 ; +0x42, 0x3b5f8a\nBL              sub_774008                                             ; +0x44, 0x3b5f8c\nMOVS            R0, #0; this                                           ; +0x48, 0x3b5f90\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x4a, 0x3b5f92\nLDR             R3, =(_ZN14EditLevelLayer9playStep3Ev_ptr - 0x3B5F9E)  ; +0x4e, 0x3b5f96\nSTR             R7, [SP,#0x28+var_8]                                   ; +0x50, 0x3b5f98\nADD             R3, PC; _ZN14EditLevelLayer9playStep3Ev_ptr            ; +0x52, 0x3b5f9a\nLDR             R3, [R3]; EditLevelLayer::playStep3(void)              ; +0x54, 0x3b5f9c\nSTR             R3, [SP,#0x28+var_C]                                   ; +0x56, 0x3b5f9e\nLDM.W           R4, {R1,R2}                                            ; +0x58, 0x3b5fa0\nMOV             R8, R0                                                 ; +0x5c, 0x3b5fa4\nMOV             R0, R6                                                 ; +0x5e, 0x3b5fa6\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x60, 0x3b5fa8\nMOV             R2, R7                                                 ; +0x64, 0x3b5fac\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x66, 0x3b5fae\nMOV             R0, R8; this                                           ; +0x68, 0x3b5fb0\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x6a, 0x3b5fb2\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x6e, 0x3b5fb6\nMOV             R0, R6; this                                           ; +0x70, 0x3b5fb8\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x72, 0x3b5fba\nLDR             R2, [SP,#0x28+var_4]                                   ; +0x76, 0x3b5fbe\nLDR             R3, [R5]                                               ; +0x78, 0x3b5fc0\nCMP             R2, R3                                                 ; +0x7a, 0x3b5fc2\nBEQ             loc_3B5FD4                                             ; +0x7c, 0x3b5fc4\nBLX             __stack_chk_fail                                       ; +0x7e, 0x3b5fc6\nMOV             R0, R4                                                 ; +0x82, 0x3b5fca\nBL              sub_774008                                             ; +0x84, 0x3b5fcc\nBL              __cxa_end_cleanup                                      ; +0x88, 0x3b5fd0\nADD             SP, SP, #0x28 ; '('                                    ; +0x8c, 0x3b5fd4\nPOP.W           {R4-R8,PC}                                             ; +0x8e, 0x3b5fd6", "xrefs": [], "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"}