{"type": "func", "start": 5284354, "end": 5284406, "name": "AudioEffectsLayer::resetAudioVars", "pseudocode": "// \n// AudioEffectsLayer::resetAudioVars from 0x50a202 to 0x50a236 (52 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::resetLevel @ 0x4126b6\n// > AudioEffectsLayer::init @ 0x50a7e8\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:27 +0000\n// \n\nint __fastcall AudioEffectsLayer::resetAudioVars(AudioEffectsLayer *this, cocos2d::CCArray *a2)\n{\n  cocos2d::CCArray *v3; // r0\n  cocos2d::CCObject *v4; // r0\n  int result; // r0\n\n  v3 = *((cocos2d::CCArray **)this + 112);\n  if ( v3 )\n  {\n    cocos2d::CCArray::removeAllObjects(v3);\n    cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 112));\n    *((_DWORD *)this + 112) = 0;\n  }\n  v4 = (cocos2d::CCObject *)cocos2d::CCArray::createWithArray(*((cocos2d::CCArray **)this + 111), a2);\n  *((_DWORD *)this + 112) = v4;\n  result = cocos2d::CCObject::retain(v4);\n  *((_DWORD *)this + 113) = 0;\n  return result;\n}", "assembly": "; \n; AudioEffectsLayer::resetAudioVars from 0x50a202 to 0x50a236 (52 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::resetLevel @ 0x4126b6\n; > AudioEffectsLayer::init @ 0x50a7e8\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:27 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x50a202\nMOV             R4, R0                                                 ; +0x2, 0x50a204\nLDR.W           R0, [R0,#0x1C0]; this                                  ; +0x4, 0x50a206\nCBZ             R0, loc_50A21E                                         ; +0x8, 0x50a20a\nBL              _ZN7cocos2d7CCArray16removeAllObjectsEv; cocos2d::CCArray::removeAllObjects(void) ; +0xa, 0x50a20c\nLDR.W           R0, [R4,#0x1C0]; this                                  ; +0xe, 0x50a210\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x12, 0x50a214\nMOVS            R3, #0                                                 ; +0x16, 0x50a218\nSTR.W           R3, [R4,#0x1C0]                                        ; +0x18, 0x50a21a\nLDR.W           R0, [R4,#0x1BC]; this                                  ; +0x1c, 0x50a21e\nBL              _ZN7cocos2d7CCArray15createWithArrayEPS0_; cocos2d::CCArray::createWithArray(cocos2d::CCArray*) ; +0x20, 0x50a222\nSTR.W           R0, [R4,#0x1C0]                                        ; +0x24, 0x50a226\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x28, 0x50a22a\nMOVS            R3, #0                                                 ; +0x2c, 0x50a22e\nSTR.W           R3, [R4,#0x1C4]                                        ; +0x2e, 0x50a230\nPOP             {R4,PC}                                                ; +0x32, 0x50a234", "xrefs": ["PlayLayer::resetLevel @ 0x4126b6", "AudioEffectsLayer::init @ 0x50a7e8"], "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"}