{"type": "func", "start": 4200580, "end": 4200632, "name": "AudioEffectsLayer::resetAudioVars", "pseudocode": "// \n// AudioEffectsLayer::resetAudioVars from 0x401884 to 0x4018b8 (52 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::resetLevel @ 0x31faf8\n// > AudioEffectsLayer::init @ 0x401996\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 AudioEffectsLayer::resetAudioVars(AudioEffectsLayer *a1)\n{\n  cocos2d::CCArray *v1; // r1\n  cocos2d::CCArray *m_unk1c0; // r0\n  cocos2d::CCArray *v4; // r0\n\n  m_unk1c0 = a1->m_unk1c0;\n  if ( m_unk1c0 )\n  {\n    cocos2d::CCArray::removeAllObjects(m_unk1c0);\n    cocos2d::CCObject::release(a1->m_unk1c0);\n    a1->m_unk1c0 = nullptr;\n  }\n  v4 = (cocos2d::CCArray *)cocos2d::CCArray::createWithArray(a1->m_unk1bc, v1);\n  a1->m_unk1c0 = v4;\n  cocos2d::CCObject::retain(v4);\n  a1->m_timeElapsed = 0.0;\n}", "assembly": "; \n; AudioEffectsLayer::resetAudioVars from 0x401884 to 0x4018b8 (52 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::resetLevel @ 0x31faf8\n; > AudioEffectsLayer::init @ 0x401996\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            {R4,LR}                                                ; +0x0, 0x401884\nMOV             R4, R0                                                 ; +0x2, 0x401886\nLDR.W           R0, [R0,#0x1C0]; this                                  ; +0x4, 0x401888\nCBZ             R0, loc_4018A0                                         ; +0x8, 0x40188c\nBL              _ZN7cocos2d7CCArray16removeAllObjectsEv; cocos2d::CCArray::removeAllObjects(void) ; +0xa, 0x40188e\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0xe, 0x401892\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x12, 0x401896\nMOVS            R3, #0                                                 ; +0x16, 0x40189a\nSTR.W           R3, [R4,#0x1C0]                                        ; +0x18, 0x40189c\nLDR.W           R0, [R4,#0x1BC]; this                                  ; +0x1c, 0x4018a0\nBL              _ZN7cocos2d7CCArray15createWithArrayEPS0_; cocos2d::CCArray::createWithArray(cocos2d::CCArray*) ; +0x20, 0x4018a4\nSTR.W           R0, [R4,#0x1C0]                                        ; +0x24, 0x4018a8\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x28, 0x4018ac\nMOVS            R3, #0                                                 ; +0x2c, 0x4018b0\nSTR.W           R3, [R4,#0x1C4]                                        ; +0x2e, 0x4018b2\nPOP             {R4,PC}                                                ; +0x32, 0x4018b6", "xrefs": ["PlayLayer::resetLevel @ 0x31faf8", "AudioEffectsLayer::init @ 0x401996"], "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"}